:root {
  --tlo: #f3efe6;
  --tusz: #1c1a16;
  --akcent: #0b5f4a;
  --ostrzezenie: #9b1c1c;
  --pas: #e4ddd0;
  --ramka: #c9c0b0;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: "IBM Plex Mono", "Source Code Pro", Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--tusz);
  background:
    radial-gradient(ellipse at top left, #fff8ea 0%, transparent 50%),
    linear-gradient(160deg, #f7f2e8, #e8e0d2 60%, #ddd4c4);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: var(--akcent); }
.pas-gorny {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--pas);
  border-bottom: 1px solid var(--ramka);
}
.pas-gorny nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.wiek { font-size: 0.9rem; }
.wiek.stary { color: var(--ostrzezenie); font-weight: 700; }
.nieaktualne { opacity: 0.65; outline: 1px dashed var(--ostrzezenie); }
main { padding: 1rem 1.25rem 3rem; max-width: 1100px; margin: 0 auto; }
.pas-liczb {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.pas-liczb div {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--ramka);
}
.pas-liczb span { display: block; font-size: 1.6rem; font-weight: 700; }
.pas-liczb label { font-size: 0.85rem; color: #555; }
.pas-sprawy {
  order: 0;
  padding: 0.75rem 1rem;
  background: rgba(11, 95, 74, 0.08);
  border: 1px solid var(--ramka);
  margin-bottom: 1rem;
}
.formularz { display: grid; gap: 0.6rem; max-width: 32rem; }
.formularz label { display: grid; gap: 0.25rem; }
input, textarea, select, button {
  font: inherit;
  padding: 0.45rem 0.6rem;
}
button {
  background: var(--akcent);
  color: #fff;
  border: none;
  cursor: pointer;
  width: fit-content;
}
button.niebezpieczny { background: var(--ostrzezenie); }
.blad { color: var(--ostrzezenie); }
.etapy { display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.8rem; }
.etapy span {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--ramka);
  opacity: 0.55;
}
.etapy span.biezacy {
  opacity: 1;
  background: var(--akcent);
  color: #fff;
  border-color: var(--akcent);
}
.zlecenie-wiersz {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ramka);
}
.stoi { color: var(--ostrzezenie); font-weight: 600; }
.diagram {
  height: 420px;
  border: 1px solid var(--ramka);
  background: #fff;
  margin-top: 0.75rem;
}
.warianty { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.warianty button.domyslny { outline: 2px solid var(--akcent); }
.tlo {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.5);
  padding: 0.75rem;
  border: 1px solid var(--ramka);
}
.karta-okna {
  padding: 0.75rem;
  border: 1px solid var(--ramka);
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.4);
}
.login-strona {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-pudlo { text-align: center; }
.przycisk {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--akcent);
  color: #fff;
  text-decoration: none;
}
.ostrzezenie { color: var(--ostrzezenie); }
.bpmn-highlight-aktywny:not(.djs-connection) .djs-visual > :nth-child(1) {
  stroke: var(--akcent) !important;
  stroke-width: 3px !important;
}
.bpmn-highlight-koniec:not(.djs-connection) .djs-visual > :nth-child(1) {
  fill: rgba(11, 95, 74, 0.25) !important;
}
.runda-znaczik {
  background: var(--tusz);
  color: #fff;
  border-radius: 2px;
  font-size: 10px;
  padding: 1px 4px;
}

@media (max-width: 699px) {
  main { display: flex; flex-direction: column; }
  .pas-sprawy { order: -1; }
  .pas-liczb { grid-template-columns: 1fr 1fr; }
}
