:root{
  --bg:#0f1115;
  --panel:#171a21;
  --muted:#a7b0c0;
  --text:#e8ecf3;
  --ok:#1ec28b;
  --down:#ff6b6b;
  --chip:#222733;
  --chip-border:#2b3240;
}
body{
  margin:0;
  font-family:Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
/* było: header { ... } */
.site-header{
  padding:20px 16px;
  max-width:800px;
  margin:0 auto;
}

h1{margin:0 0 4px 0;}
.sub{color:var(--muted);font-size:14px;}
.toolbar{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:12px;
  max-width:300px;
}
.search input, .role-filter select{
  width:100%;
  background:var(--panel);
  border:1px solid var(--chip-border);
  border-radius:8px;
  padding:8px 10px;
  color:var(--text);
}
main{
  max-width:800px;
  margin:0 auto;
  padding:16px;
}
.grid{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.card{
  background:var(--panel);
  border:1px solid var(--chip-border);
  border-radius:10px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px; /* odstęp pod nagłówkiem */
}
.status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--chip-border);
  background:var(--chip);
}
.dot{
  width:8px;height:8px;border-radius:50%;
}
.up .dot{background:var(--ok);}
.down .dot{background:var(--down);}
.field{
  display:grid;
  grid-template-columns:110px 1fr auto;
  gap:8px;
  align-items:center;
  margin-bottom: 6px; /* odstęp między kolejnymi wierszami */
}
.field label{color:var(--muted);font-size:14px;}
.value{
  background:#11141b;
  border:1px solid var(--chip-border);
  padding:6px 8px;
  border-radius:6px;
  font-family:monospace;
  font-size:14px;
  overflow:auto;
  white-space:nowrap;
}
.btn{
  background:var(--chip);
  border:1px solid var(--chip-border);
  border-radius:6px;
  padding:6px 8px;
  font-size:12px;
  color:var(--text);
  cursor:pointer;
}
details{
  border:1px solid var(--chip-border);
  border-radius:8px;
  background:#121723;
}
summary{
  list-style:none;
  cursor:pointer;
  padding:8px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
summary::-webkit-details-marker{display:none;}
.panel{
  padding:10px;
  border-top:1px solid var(--chip-border);
  white-space:pre-line;
  font-size:14px;
}
.title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.meta {
  color: var(--muted);
  font-size: 12px;
}
/* Nazwa stacji zawsze przy lewej krawędzi */
.station-name{
  margin:0;
  font-size:18px;
  line-height:1.2;
  text-align:left;
  margin-right:auto; /* wypycha status do prawej */
}

/* Drobny odstęp między nazwą a statusem, jeśli potrzeba */
.card-header .status{ margin-left:12px; }
.field:last-child {
  margin-bottom: 0; /* brak odstępu pod ostatnim polem */
}