/* Katalog obiektów — warstwa wizualna na bazie legal.css. */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  padding: 8px 12px; border-radius: 8px; background: #ffb020; color: #08101f;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 12px; }

main { min-width: 0; }
.lead { font-size: 16px; color: #c8d5ea; max-width: 760px; margin: 0 0 18px; }
.livebar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 10px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 10px; background: #0d1727; color: var(--text); font-size: 12.5px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #93a4c2; }
.live-dot.ok { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.14); }
.live-dot.wait { background: #ffb020; box-shadow: 0 0 0 3px rgba(255,176,32,.14); }
.live-dot.off { background: #ff6b78; }
.live-updated { margin-left: auto; color: var(--muted); font-size: 11px; }
.livebar .chip { border: 1px solid var(--line); background: #16233a; color: var(--text); border-radius: 999px; padding: 5px 9px; font: inherit; cursor: pointer; }
.livebar .chip:hover, .livebar .chip:focus-visible { border-color: #ffb020; }
.notice {
  margin: 18px 0 22px; padding: 13px 15px; border-left: 3px solid #ffb020;
  background: #151d2e; color: #c8d5ea; font-size: 13px; border-radius: 0 10px 10px 0;
}
.notice b { color: #ffd27a; }

.stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px; margin: 20px 0 18px;
}
.stat {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 96px; padding: 12px 13px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); color: var(--text);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.stat:hover, .stat:focus-visible { border-color: #ffb020; text-decoration: none; }
.stat-num { display: block; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; line-height: 1; color: #fff; }
.stat > span:last-child { font-size: 12px; line-height: 1.35; color: var(--text); }
.stat small { color: var(--muted); font-size: 10.5px; }
.stat.total { border-color: rgba(255,176,32,.5); background: #1b1a16; }
.stat.total .stat-num { color: #ffd27a; }

.category-nav {
  display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 28px;
  padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.category-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 12px; text-decoration: none;
}
.category-nav a:hover, .category-nav a:focus-visible { color: #fff; border-color: #ffb020; text-decoration: none; }
.category-nav a span {
  min-width: 18px; padding: 1px 5px; border-radius: 999px;
  background: #1b2a43; color: #dbe4f5; text-align: center; font-size: 10.5px;
}

.category { scroll-margin-top: 16px; margin: 0 0 34px; }
.category h2 {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0 0 4px; font-size: 20px;
}
.category h2 .count {
  display: inline-grid; min-width: 24px; height: 22px; padding: 0 7px;
  place-items: center; border-radius: 999px; background: #1b2a43;
  color: #dbe4f5; font: 700 11px/1 system-ui; vertical-align: middle;
}
.cat-desc { margin: 0 0 10px; color: var(--muted); font-size: 13px; max-width: 850px; }
.table-scroll {
  width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px;
  max-height: min(64vh, 680px); overscroll-behavior: contain;
}
.objects-table {
  display: table; width: 100%; min-width: 660px; margin: 0;
  border-collapse: collapse; background: var(--panel); font-size: 13px;
}
.objects-table caption {
  caption-side: top; text-align: left; padding: 9px 12px;
  color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line);
}
.objects-table th, .objects-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.objects-table th {
  position: sticky; top: 0; z-index: 1; background: #162238;
  color: var(--muted); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
}
.objects-table tbody tr:last-child td { border-bottom: 0; }
.objects-table tbody tr:hover { background: #162238; }
.objects-table td { vertical-align: top; }
.objects-table td:first-child { width: 27%; }
.objects-table td:nth-child(2) { width: 15%; white-space: normal; }
.objects-table .mini { display: inline-block; margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.objects-table .empty { color: var(--muted); font-style: italic; }
.objects-table .empty td { padding: 18px 12px; }
.more { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.more .chip { border: 1px solid var(--line); background: #16233a; color: var(--text); border-radius: 999px; padding: 6px 10px; font: inherit; cursor: pointer; }
.more .chip:hover, .more .chip:focus-visible { border-color: #ffb020; }
.symbol { display: inline-flex; align-items: center; gap: 9px; }
.swatch {
  width: 13px; height: 13px; flex: none; border-radius: 50%;
  background: var(--swatch); border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 0 0 2px rgba(255,255,255,.05);
}
.objects-table code {
  padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px;
  background: #0b1424; color: #ffd27a; font-size: 11.5px;
}
footer { margin-top: 42px; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 84px; padding: 10px 11px; }
  .stat-num { font-size: 26px; }
  .category h2 { font-size: 18px; }
  .objects-table { display: table; font-size: 12.5px; }
  .objects-table th, .objects-table td { padding: 8px 9px; }
  .table-scroll { max-height: 68vh; }
  .objects-table { min-width: 760px; }
  .objects-table td:first-child { width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .stat { transition: none; }
}
