:root{
  --bg:#0f1115;
  --panel:#131722;
  --panel2:#1b1f29;
  --border:#2a2f3a;
  --text:#f2f2f2;
  --muted:rgba(242,242,242,.78);
}

*{ box-sizing:border-box; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  margin:0;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  display:flex; gap:10px; align-items:center;
  padding:12px;
  position:sticky; top:0;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  z-index:10;
}

.titles{ flex:1; min-width:0; }
.tytul{ font-size:20px; font-weight:800; }
.podtytul{ font-size:13px; color:var(--muted); margin-top:2px; }

.zegar{
  font-variant-numeric: tabular-nums;
  color:var(--muted);
  min-width:86px;
  text-align:right;
}

#app{ padding:14px; }

.btn{
  background:var(--panel2);
  color:var(--text);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
}
.btn:hover{ filter:brightness(1.08); }
.btnTryb{ min-width:140px; }
.big{ padding:16px; font-size:16px; }
.ok{ border-color:#2b6; }
.warn{ border-color:#f90; }
.w100{ width:100%; }
.mt12{ margin-top:12px; }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap:12px;
}

.tile{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  cursor:pointer;
}
.tile:hover{ filter:brightness(1.1); }

.bigtext{ font-weight:800; font-size:16px; }
.smalltext{ color:var(--muted); margin-top:6px; font-size:13px; }

.infoBox{
  opacity:.9;
  padding:12px;
  border:1px dashed var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.02);
}

.modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
  padding:14px;
  z-index:50;
}

.card{
  width:min(520px, 96vw);
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}

.mHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.mTytul{ font-size:18px; font-weight:900; }
.mOpis{ color:var(--muted); font-size:13px; margin-top:4px; }
.mInfo{ margin:12px 0; min-height:22px; color:var(--muted); }

.row{ display:flex; gap:10px; flex-wrap:wrap; }
.sectionTitle{ margin-top:12px; margin-bottom:8px; color:var(--muted); font-size:13px; }
button:disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(30%);
}
[hidden] { display: none !important; }
.row.wrap { flex-wrap: wrap; gap: 10px; }
.wybor { margin-top: 12px; }

@media (min-width: 1000px){
  .tile { max-width: 420px; }
}
