/* ==========================================================================
   Generator grafiku - darmowe narzedzie (strona /generator-grafiku).
   Osobny arkusz: nic tutaj nie nadpisuje stylow reszty landinga, a narzedzie
   nie wspoldzieli kodu z grafikiem w aplikacji.
   ========================================================================== */

.st-hero { min-height: auto; padding: 150px 0 88px; }
.st-hero h1 { font-size: 52px; }
.st-hero__content { text-align: center; max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.st-hero__content .hero__sub { max-width: 640px; margin-left: auto; margin-right: auto; }
.st-hero .tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.st-hero__badges {
  margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  position: relative; z-index: 1;
}
.st-hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92); font-size: 13.5px; font-weight: 500;
  padding: 8px 15px; border-radius: var(--radius-full);
}
.st-hero__badge svg { flex-shrink: 0; opacity: .85; }

/* ===== Sekcja narzedzia ===== */
/* Narzedzie dostaje cala szerokosc okna: kalendarz na 31 kolumn dni potrzebuje
   miejsca, a marketingowa szerokosc 1320 px zostawiala go w ciasnocie. */
.st-container { max-width: none; padding: 0 28px; }
.st-section { padding: 0 0 96px; background: var(--bg); }
.st-shell { margin-top: -56px; position: relative; z-index: 2; }

.st-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg);
}

/* Uklad jak na grafiku w aplikacji: konfiguracja na gorze, pod nia panel
   z widokami i godzinami zespolu po lewej, a kalendarz po prawej. */
.st-workspace {
  display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 20px;
  align-items: start; margin-top: 20px;
}
.st-workspace[hidden] { display: none; }
.st-main { min-width: 0; }
.st-result { margin-top: 0; }

.st-side {
  position: sticky; top: 92px; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
  max-height: calc(100vh - 116px); overflow-y: auto;
}
.st-side__section { padding: 18px; border-bottom: 1px solid var(--border-light); }
.st-side__section:last-child { border-bottom: none; }
.st-side__title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.st-side__views { display: flex; flex-direction: column; gap: 4px; }
.st-side__view {
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-2);
  background: transparent; border: none; border-radius: 10px; padding: 10px 12px;
  cursor: pointer; text-align: left; transition: all .18s var(--ease);
}
.st-side__view:hover { background: var(--bg); color: var(--accent); }
.st-side__view--on { background: var(--accent); color: #fff; }
.st-side__view--on:hover { background: var(--accent); color: #fff; }
.st-side__nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; }
.st-side__nav .st-nav__label { min-width: 0; flex: 1; font-size: 13px; }

.st-side__team { display: flex; flex-direction: column; gap: 4px; }
.st-side__row {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px;
  cursor: pointer; transition: background .16s var(--ease); border: none; background: none;
  font-family: var(--font); width: 100%; text-align: left;
}
.st-side__row:hover { background: var(--bg); }
.st-side__row .st-emp__avatar { width: 30px; height: 30px; font-size: 11px; flex-shrink: 0; }
.st-side__meta { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.st-side__sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-side__badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full);
  background: rgba(5,150,105,.1); color: #059669; white-space: nowrap;
}
.st-side__badge--warn { background: rgba(217,119,6,.12); color: #d97706; }
.st-side__note { font-size: 11.5px; color: var(--text-3); margin-top: 10px; }
.st-side__row--off { opacity: .42; }
.st-side__name {
  flex: 1; font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-side__hours {
  font-size: 12.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.st-side__stats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.st-side__stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.st-side__stat b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-side__stat span { font-size: 12px; color: var(--text-3); }
.st-side__stat--good b { color: #059669; }
.st-side__stat--warn b { color: #d97706; }
.st-side__actions { display: flex; flex-direction: column; gap: 6px; }
.st-side__actions .st-btn-sm { justify-content: flex-start; }

.st-viewhint { font-size: 12.5px; color: var(--text-3); padding: 0 24px 14px; }

.st-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.st-step { padding: 24px 28px; border-bottom: 1px solid var(--border-light); }
.st-step--full { grid-column: 1 / -1; }
.st-step--left { border-right: 1px solid var(--border-light); }

.st-step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.st-step__num {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.st-step__title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.st-step__opt {
  font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-3); background: var(--border-light);
  padding: 3px 9px; border-radius: var(--radius-full);
}
.st-step__desc { font-size: 14px; color: var(--text-2); margin-bottom: 18px; line-height: 1.55; }

/* ===== Miniaturki pracownikow ===== */
.st-team { display: flex; flex-wrap: wrap; gap: 10px; }
.st-emp {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 8px 12px 8px 8px; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  position: relative; text-align: left;
  font-family: var(--font); font-size: 14px; color: var(--text);
}
.st-emp:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.st-emp--active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-emp__avatar {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px;
}
.st-emp__meta { display: flex; flex-direction: column; line-height: 1.25; }
.st-emp__name { font-weight: 600; font-size: 14px; }
.st-emp__sub { font-size: 12px; color: var(--text-3); }
.st-emp--add { border-style: dashed; color: var(--text-2); font-weight: 600; padding: 8px 16px 8px 12px; }
.st-emp--add .st-emp__avatar { background: var(--border-light); color: var(--text-3); }

.st-editor {
  margin-top: 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.st-editor__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-editor__row--full { grid-column: 1 / -1; }
.st-editor__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }

.st-field { display: flex; flex-direction: column; gap: 7px; }
.st-field__label { font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--text-3); }
.st-input, .st-select {
  font-family: var(--font); font-size: 14.5px; color: var(--text);
  background: var(--card); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 12px; width: 100%; transition: border-color .2s;
}
.st-input:focus, .st-select:focus { outline: none; border-color: var(--accent); }
.st-select { cursor: pointer; }

.st-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.st-chip {
  font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-full);
  padding: 7px 14px; cursor: pointer; transition: all .18s var(--ease);
}
.st-chip:hover { border-color: var(--accent); color: var(--accent); }
.st-chip--on { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-chip--on:hover { color: #fff; }
.st-chip--day { padding: 7px 0; width: 42px; text-align: center; }

/* Przelacznik priorytetu: trzy pozycje zamiast suwaka, zeby wybor byl
   jednoznaczny i czytelny bez tlumaczenia. */
.st-seg {
  display: flex; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 3px; gap: 3px;
}
.st-seg__btn {
  flex: 1; font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: transparent; border: none; border-radius: 7px; padding: 9px 6px; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.st-seg__btn:hover { color: var(--accent); }
.st-seg__btn--on { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(219,112,147,.28); }
.st-seg__btn--on:hover { color: #fff; }
.st-seg__hint { font-size: 12.5px; color: var(--text-3); line-height: 1.5; margin-top: 8px; }

.st-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.st-swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border) inset;
  transition: transform .18s var(--ease);
}
.st-swatch:hover { transform: scale(1.12); }
.st-swatch--on { border-color: var(--text); }

.st-link {
  background: none; border: none; font-family: var(--font); font-size: 13.5px; font-weight: 600;
  color: var(--accent); cursor: pointer; padding: 0;
}
.st-link:hover { color: var(--accent-hover); text-decoration: underline; }
.st-link--danger { color: #dc2626; }
.st-link--danger:hover { color: #b91c1c; }
.st-link--muted { color: var(--text-3); }
.st-link--muted:hover { color: var(--text-2); }

/* ===== Godziny otwarcia ===== */
.st-hours { display: flex; flex-direction: column; gap: 4px; max-width: 460px; }
.st-hours__row {
  display: grid; grid-template-columns: 104px auto 1fr; align-items: center; gap: 12px;
  padding: 6px 10px; border-radius: 10px;
}
.st-hours__row:hover { background: var(--bg); }
.st-hours__row--closed .st-hours__times { opacity: .35; pointer-events: none; }
.st-hours__day { font-size: 13.5px; font-weight: 600; }
.st-hours__times { display: flex; align-items: center; gap: 8px; }
.st-hours__times .st-input { width: 104px; padding: 7px 10px; font-size: 14px; }
.st-hours__dash { color: var(--text-3); }

.st-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.st-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-toggle__track {
  width: 38px; height: 22px; border-radius: var(--radius-full); background: var(--border);
  position: relative; transition: background .2s var(--ease); flex-shrink: 0;
}
.st-toggle__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .2s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.st-toggle input:checked + .st-toggle__track { background: var(--accent); }
.st-toggle input:checked + .st-toggle__track::after { transform: translateX(16px); }
.st-toggle input:focus-visible + .st-toggle__track { box-shadow: 0 0 0 3px var(--accent-soft); }
.st-toggle__label { font-size: 14px; color: var(--text-2); }

/* ===== Stanowiska ===== */
.st-stations { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.st-station { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.st-station__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-station__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.st-station__head .st-input { flex: 1; padding: 7px 10px; }
.st-station__hint { font-size: 12px; color: var(--text-3); margin-top: 10px; line-height: 1.5; }

/* ===== Reguly ===== */
/* Pola nie rozciagaja sie na cala szerokosc ekranu: select miesiaca szeroki na
   pol monitora wyglada jak blad, a nie jak formularz. */
.st-rules { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.st-hours { max-width: 460px; }
.st-step .st-editor { max-width: 720px; }
.st-station { max-width: 720px; }
.st-station__hint { max-width: 520px; }
.st-rule { display: flex; align-items: flex-start; gap: 10px; }
.st-rule__text { display: flex; flex-direction: column; gap: 2px; }
.st-rule__name { font-size: 14px; font-weight: 500; color: var(--text); }
.st-rule__desc { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }

/* ===== Pasek akcji ===== */
.st-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px 28px; background: var(--card); border-radius: 0 0 20px 20px;
}
.st-actions__left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.st-actions__note { font-size: 13px; color: var(--text-3); line-height: 1.5; max-width: 420px; }
.st-generate[disabled] { opacity: .6; pointer-events: none; }

/* ===== Wynik ===== */
.st-result { margin-top: 0; }
.st-live {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: var(--radius-full);
}
.st-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: stPulse 1.4s ease-in-out infinite;
}
.st-live[hidden] { display: none; }

.st-progress { padding: 22px 24px; }
.st-progress--done { display: none; }
.st-progress__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.st-progress__title { font-size: 16px; font-weight: 700; }
.st-progress__pct { font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.st-progress__bar { height: 6px; border-radius: var(--radius-full); background: var(--border-light); overflow: hidden; }
.st-progress__fill {
  height: 100%; width: 0; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), #f0a7c0);
  transition: width .25s linear;
}
.st-progress__steps { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
.st-progress__step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.st-progress__step--on { color: var(--text); font-weight: 500; }
.st-progress__step--done { color: var(--text-2); }
.st-progress__dot {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.st-progress__step--on .st-progress__dot { border-color: var(--accent); animation: stPulse 1s ease-in-out infinite; }
.st-progress__step--done .st-progress__dot { border-color: var(--accent); background: var(--accent); }
.st-progress__step--done .st-progress__dot::after {
  content: ""; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(0, -1px);
}
@keyframes stPulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }

/* ===== Metryki na zywo ===== */
.st-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
  background: var(--border-light); border-top: 1px solid var(--border-light);
}
.st-metric { background: var(--card); padding: 18px 24px; }
.st-metric__val {
  font-size: 26px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums;
  font-family: 'Plus Jakarta Sans', var(--font);
}
.st-metric__label { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.st-metric--good .st-metric__val { color: #059669; }
.st-metric--warn .st-metric__val { color: #d97706; }

/* ===== Siatka grafiku ===== */
.st-grid-wrap { padding: 26px 0 8px; }
.st-grid-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding: 0 24px 16px; flex-wrap: wrap;
}
.st-grid-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.st-grid-head__sub { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.st-grid-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.st-btn-sm {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: var(--card); border: 1.5px solid var(--border); border-radius: 9px;
  padding: 9px 14px; cursor: pointer; transition: all .2s var(--ease);
}
.st-btn-sm:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Pasek widoku ===== */
.st-viewbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0 24px 16px;
}
.st-seg--views { flex: 0 0 auto; width: 260px; }
.st-nav { display: flex; align-items: center; gap: 4px; }
.st-nav__btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .18s var(--ease);
}
.st-nav__btn:hover { border-color: var(--accent); color: var(--accent); }
.st-nav__label {
  font-size: 14px; font-weight: 600; min-width: 168px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.st-viewbar__hint { font-size: 12.5px; color: var(--text-3); margin-left: auto; }

.st-scroll { overflow-x: auto; padding: 0 24px 8px; }

/* ===== Widok dnia: pelna doba na osi czasu ===== */
/* Kafelki sa jasne i obrysowane kolorem osoby: pelne nasycenie na duzej
   powierzchni meczy oczy, a pasek z boku wyglada jak szablon. */
.st-day {
  display: flex; gap: 14px; min-width: 0;
  max-height: 620px; overflow: auto;
  /* Bez tego przegladarka sama koryguje pozycje przy zmianie wysokosci
     kafelka i widok podskakuje w trakcie przeciagania. */
  overflow-anchor: none;
  border: 1px solid var(--border); border-radius: 16px; background: var(--card);
  padding: 0 14px 14px;
}
/* Os czasu zostaje na miejscu przy przewijaniu w bok, inaczej przy wiekszym
   zespole nie wiadomo, o ktorej godzinie sie patrzy. */
.st-day__time {
  width: 56px; flex-shrink: 0; position: sticky; left: 0; z-index: 4; background: var(--card);
}
.st-day__timehead {
  height: 62px; position: sticky; top: 0; z-index: 5; background: var(--card);
}
/* Os czasu musi startowac dokladnie tam, gdzie tor zmian, inaczej godziny
   rozjezdzaja sie z kafelkami o wysokosc marginesu. */
.st-day__hours { position: relative; margin-top: 8px; }
.st-day__hour {
  position: absolute; right: 10px; font-size: 12px; color: var(--text-3);
  transform: translateY(-50%); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.st-day__cols { display: flex; gap: 12px; flex: 1 1 auto; min-width: 0; }
/* Gorna granica szerokosci kolumny: przy jednej osobie zmiana nie ma rozlewac
   sie na caly ekran. */
.st-day__col { flex: 1 1 172px; min-width: 172px; max-width: 260px; }
.st-day__cols { justify-content: flex-start; }
.st-day__head {
  display: flex; align-items: center; gap: 10px; height: 62px;
  position: sticky; top: 0; z-index: 2; background: var(--card);
  border-bottom: 1px solid var(--border-light);
}
.st-day__head .st-emp__avatar { width: 34px; height: 34px; font-size: 12px; }
.st-day__who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.st-day__name {
  font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-day__sub {
  font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-day__track {
  position: relative; background: var(--card); border: 1px solid var(--border-light);
  border-radius: 12px; overflow: hidden; cursor: pointer; margin-top: 8px;
}
.st-day__track:hover { border-color: var(--accent); }
.st-day__line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border-light); }
.st-day__off {
  position: absolute; left: 0; right: 0;
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 5px, #f1f5f9 5px, #f1f5f9 10px);
}
.st-day__shift {
  position: absolute; left: 8px; right: 8px; border-radius: 14px; color: var(--text);
  border: 1.5px solid var(--border); padding: 12px 14px; font-size: 13.5px; line-height: 1.35;
  cursor: pointer; overflow: hidden;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.st-day__shift b { font-weight: 700; display: block; white-space: nowrap; }
.st-day__badge {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: var(--radius-full);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .2px;
}
.st-day__station { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 6px; }
.st-day__shift:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15,23,42,.14); }
.st-day__shift { cursor: grab; touch-action: none; }
.st-day__shift--dragging {
  cursor: grabbing; transform: none; box-shadow: 0 14px 30px rgba(15,23,42,.2);
  opacity: .95; z-index: 5;
}
/* Uchwyty do rozciagania zmiany, jak na grafiku w aplikacji. */
.st-day__grip {
  position: absolute; left: 0; right: 0; height: 12px; cursor: ns-resize;
  display: flex; align-items: center; justify-content: center;
}
.st-day__grip--top { top: 0; }
.st-day__grip--bottom { bottom: 0; }
.st-day__grip::after {
  content: ""; width: 34px; height: 3px; border-radius: 3px; background: currentColor;
  opacity: 0; transition: opacity .16s var(--ease);
}
.st-day__shift:hover .st-day__grip::after { opacity: .28; }
.st-day__closed {
  margin-top: 14px; text-align: center; color: var(--text-3); font-size: 14px;
  background: var(--bg); border-radius: 12px; padding: 14px;
}

/* ===== Widok tygodnia ===== */
.st-week { border-collapse: separate; border-spacing: 0; width: max-content; }
.st-week th, .st-week td { padding: 0; vertical-align: top; }
.st-week__corner {
  position: sticky; left: 0; z-index: 3; background: var(--card); min-width: 196px;
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase; color: var(--text-3); padding: 0 12px 12px 4px;
}
.st-week__day {
  min-width: 140px; padding: 0 4px 14px; text-align: center;
  font-size: 12px; color: var(--text-3); line-height: 1.35;
}
.st-week__dow { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
.st-week__day b { display: block; font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.st-week__open { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.st-week__day--off, .st-week__day--off b { color: var(--accent); }
.st-week__day--outside, .st-week__day--outside b { color: var(--text-3); opacity: .55; }
.st-week__name {
  position: sticky; left: 0; z-index: 2; background: var(--card);
  padding: 4px 14px 4px 4px; min-width: 196px; max-width: 196px; overflow: hidden;
}
.st-week__cell { padding: 4px; }
.st-week__box {
  min-height: 76px; border-radius: 12px; background: var(--bg);
  border: 1.5px dashed var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-3); cursor: pointer; transition: all .18s var(--ease);
}
.st-week__box span { opacity: .55; font-weight: 300; line-height: 1; }
.st-week__box:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.st-week__box--off {
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 4px, #eef2f7 4px, #eef2f7 8px);
  border-color: transparent; cursor: default;
}
.st-week__box--off:hover { border-color: transparent; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 4px, #eef2f7 4px, #eef2f7 8px); }
.st-week__shift {
  width: 100%; min-height: 84px; border-radius: 14px; color: var(--text);
  border: 1.5px solid var(--border);
  padding: 12px 14px; font-size: 13.5px; line-height: 1.4;
  cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s var(--ease);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.st-week__shift b { font-weight: 700; white-space: nowrap; }
.st-week__shift:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.14); }
.st-week__badge {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: var(--radius-full);
  color: #fff; font-size: 11px; font-weight: 700;
}
.st-week__station { font-size: 11.5px; color: var(--text-2); margin-top: 6px; }

/* ===== Okno edycji zmiany ===== */
.st-editmodal {
  position: fixed; inset: 0; z-index: 9998; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.st-editmodal[hidden] { display: none; }
.st-editmodal__box {
  background: var(--card); border-radius: 18px; width: 100%; max-width: 480px;
  padding: 24px; box-shadow: 0 24px 60px rgba(15,23,42,.28);
}
.st-editmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-editmodal__head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.st-editmodal__close {
  background: none; border: none; font-size: 26px; line-height: 1; color: var(--text-3);
  cursor: pointer; padding: 0 4px;
}
.st-editmodal__close:hover { color: var(--text); }
.st-editmodal__date { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }
.st-editmodal__grid {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; margin-top: 18px; align-items: end;
}
.st-editmodal__grid .st-input[type="time"] { width: 116px; }
.st-editmodal__warnings { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.st-editmodal__warnings:empty { margin-top: 0; }
.st-editmodal__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px;
}
.st-editmodal__actions { display: flex; gap: 10px; }
.st-editmodal__actions .btn { padding: 11px 22px; }

@media (max-width: 640px) {
  .st-day { max-height: 460px; min-width: 460px; }
  .st-day__col { min-width: 132px; }
  .st-viewbar { padding-left: 20px; padding-right: 20px; }
  .st-seg--views { width: 100%; }
  .st-viewbar__hint { display: none; }
  .st-nav__label { min-width: 120px; font-size: 13px; }
  .st-editmodal__grid { grid-template-columns: 1fr 1fr; }
  .st-editmodal__grid .st-field:first-child { grid-column: 1 / -1; }
  .st-editmodal__grid .st-input[type="time"] { width: 100%; }
}
/* Tabela rozciaga sie do tresci, a nie do kontenera: przy 31 kolumnach dni
   uklad procentowy zgniatal komorki do kilku pikseli. Poziomy scroll bierze
   na siebie .st-scroll. */
.st-grid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.st-grid th, .st-grid td { padding: 0; }
.st-grid__corner {
  position: sticky; left: 0; z-index: 3; background: var(--card);
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase; color: var(--text-3);
  padding: 0 16px 10px 4px; min-width: 208px;
}
.st-grid__day {
  width: 48px; min-width: 48px; padding-bottom: 12px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--text-3); line-height: 1.4;
}
.st-grid__day b { display: block; font-size: 15px; font-weight: 700; color: var(--text-2); }
.st-grid__day--off, .st-grid__day--off b { color: var(--accent); }
.st-grid__name {
  position: sticky; left: 0; z-index: 2; background: var(--card);
  padding: 6px 16px 6px 4px; min-width: 208px; max-width: 208px; overflow: hidden;
}
.st-grid__name-inner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-grid__name-inner .st-emp__avatar { width: 32px; height: 32px; font-size: 11.5px; }
/* Twarde obciecie nazwiska: max-width na komorce tabeli bywa ignorowane, wiec
   ograniczamy sam tekst, inaczej dlugie nazwisko wchodzi na kolumny dni. */
.st-grid__name-text { display: flex; flex-direction: column; line-height: 1.25; max-width: 152px; }
.st-grid__name-text b, .st-grid__name-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-week__name .st-grid__name-text { max-width: 140px; }
.st-grid__name-text b {
  font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-grid__name-text span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: 1px; }

.st-cell { padding: 3px; min-width: 48px; }
.st-cell__box {
  height: 48px; min-width: 42px; border-radius: 10px; background: var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: transparent;
  transition: transform .18s var(--ease), background .2s;
  line-height: 1.05; text-align: center;
}
.st-cell--off .st-cell__box { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 3px, #eef2f7 3px, #eef2f7 6px); }
.st-cell--work .st-cell__box { color: #fff; }
.st-cell--work .st-cell__box { cursor: pointer; }
.st-cell--work .st-cell__box:hover { transform: scale(1.18); position: relative; z-index: 4; }
.st-cell[data-act="add-shift"] .st-cell__box { cursor: pointer; }
.st-cell[data-act="add-shift"]:hover .st-cell__box { background: var(--accent-soft); }
.st-cell--pop .st-cell__box { animation: stPop .34s var(--ease); }
.st-cell--flash .st-cell__box { animation: stFlash .55s var(--ease); }
@keyframes stPop { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.14); } 100% { transform: scale(1); opacity: 1; } }
@keyframes stFlash { 0% { box-shadow: 0 0 0 0 rgba(219,112,147,.6); } 100% { box-shadow: 0 0 0 9px rgba(219,112,147,0); } }

.st-grid__foot-label {
  position: sticky; left: 0; background: var(--card); z-index: 2;
  font-size: 11.5px; color: var(--text-3); padding: 10px 12px 0 4px; text-align: left;
}
.st-grid__foot .st-cell { padding-top: 10px; }
.st-count {
  height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.st-count--zero { background: var(--border-light); color: var(--text-3); }

/* Godziny, w ktorych salon jest otwarty, ale nie ma w nim nikogo. */
.st-gap {
  height: 28px; border-radius: 8px; background: var(--border-light); color: var(--text-3);
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.st-gap--warn { background: rgba(217,119,6,.14); color: #b45309; }
.st-grid__foot--gaps .st-cell { padding-top: 4px; }

.st-scrollhint {
  font-size: 12.5px; color: var(--text-3); padding: 10px 24px 0; display: flex; align-items: center; gap: 7px;
}
.st-scrollhint::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent));
}
.st-scrollhint[hidden] { display: none; }

.st-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 24px 0; }
.st-legend__item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.st-legend__dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ===== Podsumowanie ===== */
.st-summary { padding: 22px 24px 26px; border-top: 1px solid var(--border-light); margin-top: 20px; }
.st-summary--notes h3 { margin-bottom: 14px; }
.st-summary h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase; color: var(--text-3); padding: 0 12px 10px 0; white-space: nowrap;
}
.st-table td { padding: 10px 12px 10px 0; border-top: 1px solid var(--border-light); font-variant-numeric: tabular-nums; }
.st-table__emp { display: flex; align-items: center; gap: 9px; }
.st-table__emp .st-emp__avatar { width: 26px; height: 26px; font-size: 10px; }
.st-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px;
  border-radius: var(--radius-full); white-space: nowrap;
}
.st-badge--ok { background: rgba(5,150,105,.1); color: #059669; }
.st-badge--warn { background: rgba(217,119,6,.12); color: #d97706; }

.st-notes { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.st-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55;
  padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--text-2);
}
.st-note svg { flex-shrink: 0; margin-top: 2px; }
.st-note--ok { background: rgba(5,150,105,.07); color: #047857; }
.st-note--warn { background: rgba(217,119,6,.08); color: #b45309; }

/* ===== CTA pod wynikiem ===== */
.st-cta {
  margin-top: 28px; padding: 36px 40px; border-radius: 20px;
  background: linear-gradient(135deg, var(--dark) 0%, #2d1530 60%, var(--accent) 150%);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.st-cta h3 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.st-cta p { color: rgba(255,255,255,.75); font-size: 15px; margin-top: 8px; max-width: 580px; line-height: 1.6; }
.st-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.st-cta .btn--outline { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.st-cta .btn--outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ===== Sekcja "jak to dziala" ===== */
.st-how { padding: 96px 0; background: var(--card); }
.st-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.st-how__card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.st-how__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.st-how__card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.st-how__card p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .st-workspace { grid-template-columns: 1fr; }
  .st-side { position: static; max-height: none; }
  .st-side__section { border-bottom: 1px solid var(--border-light); }
  .st-side__views { flex-direction: row; }
  .st-side__view { flex: 1; text-align: center; }
}

@media (max-width: 980px) {
  .st-hero h1 { font-size: 38px; }
  .st-steps { grid-template-columns: 1fr; }
  .st-step--left { border-right: 1px solid var(--border-light); }
  .st-metrics { grid-template-columns: 1fr 1fr; }
  .st-how__grid { grid-template-columns: 1fr; }
  .st-actions { flex-direction: column; align-items: stretch; }
  .st-actions .btn { width: 100%; }
}
@media (max-width: 640px) {
  .st-hero { padding: 120px 0 72px; }
  .st-hero h1 { font-size: 32px; }
  .st-shell { margin-top: -40px; }
  .st-step, .st-actions, .st-summary, .st-progress { padding-left: 20px; padding-right: 20px; }
  .st-scroll, .st-grid-head, .st-legend { padding-left: 20px; padding-right: 20px; }
  .st-editor__grid { grid-template-columns: 1fr; }
  .st-hours__row { grid-template-columns: 74px auto; row-gap: 6px; }
  .st-hours__times { grid-column: 1 / -1; }
  .st-cta { padding: 28px 24px; }
  .st-metric { padding: 14px 18px; }
  .st-metric__val { font-size: 22px; }
}

/* ===== Wydruk: sam grafik ===== */
@media print {
  .nav, .footer, .st-hero, .st-how, .st-actions, .st-progress, .st-cta,
  .cookie-banner, .cookie-modal, .st-grid-tools, .st-panel, .st-viewbar,
  .st-editmodal, .st-scrollhint { display: none !important; }
  .st-week { min-width: 0; font-size: 9px; }
  .st-week__shift, .st-day__shift { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .st-section { padding: 0; background: #fff; }
  .st-shell { margin-top: 0; }
  .st-card { border: none; box-shadow: none; }
  .st-scroll { overflow: visible; padding: 0; }
  .st-grid { min-width: 0; font-size: 8px; }
  .st-cell__box { height: 20px; font-size: 7px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
