:root {
  --pico-font-size: 15px;
  --pico-spacing: 0.75rem;
  --ok: #1e8e3e;
  --warn: #e8a10a;
  --bad: #c5221f;
  --down: #80868b;
}

.muted { color: var(--pico-muted-color); }
.nowrap { white-space: nowrap; }
.r { text-align: right; font-variant-numeric: tabular-nums; }

.card { padding: 0.9rem 1rem; margin-bottom: 1rem; }
.card > header { padding: 0 0 0.5rem; margin: 0 0 0.5rem; background: none; }
.card .detail { font-size: 0.85rem; color: var(--pico-muted-color); margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.grid.two { grid-template-columns: 3fr 2fr; }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } }

button.small, [role="button"].small, .buttons button, .buttons [role="button"] {
  padding: 0.3rem 0.8rem; font-size: 0.85rem; width: auto; margin-bottom: 0;
}

.dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--down); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }

.stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.stats a { display: flex; flex-direction: column; text-decoration: none; }
.stats b { font-size: 1.8rem; line-height: 1.1; }
.stats span { font-size: 0.8rem; color: var(--pico-muted-color); }

table.compact { font-size: 0.85rem; margin-bottom: 0; }
table.compact th, table.compact td { padding: 0.3rem 0.5rem; }
.table-wrap { overflow-x: auto; }
td.url { max-width: 34rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.removed td { opacity: 0.5; text-decoration: line-through; }
td.thumb { width: 64px; padding: 2px; }
td.thumb img { width: 60px; height: 42px; object-fit: cover; border-radius: 4px; display: block; }

.badge { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.75rem;
  background: var(--pico-muted-border-color); white-space: nowrap; }
.badge.ok { background: #e6f4ea; color: #137333; }
.badge.blocked { background: #fce8e6; color: #a50e0e; }
.badge.error { background: #fef7e0; color: #8a5a00; }
.badge.not_found { background: #e8eaed; color: #3c4043; }
.badge.src-site { background: #e6f4ea; color: #137333; }
.badge.src-label { background: #e8f0fe; color: #1a56c4; }
.badge.src-llm { background: #f3e8fd; color: #7627bb; }
.badge.src-review { background: #e0f2f1; color: #00695c; }
.badge.src-regex { background: #fef7e0; color: #8a5a00; }
.badge.src-land_sq_m { background: #e6f4ea; color: #137333; }

.filters { margin-bottom: 1rem; }
.filters fieldset.cats { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.5rem; }
.filters .row { display: flex; flex-wrap: wrap; gap: 0 0.75rem; align-items: end; }
.filters .row label { flex: 1 1 9rem; font-size: 0.85rem; margin-bottom: 0.25rem; }
.filters .row label.check { flex: 0 0 auto; padding-bottom: 0.9rem; }
.filters input, .filters select { margin-bottom: 0.5rem; padding-top: 0.35rem; padding-bottom: 0.35rem; height: auto; }
.filters .buttons { display: flex; gap: 0.5rem; padding-bottom: 0.5rem; }

#map { height: 420px; border-radius: 8px; margin-bottom: 0.5rem; z-index: 0; }
.pager { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; }

.listing-head { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.listing-head .hero { width: 320px; max-width: 100%; border-radius: 8px; }
.listing-head h2 { margin-bottom: 0.4rem; }
.big { font-size: 1.15rem; }
.description { font-size: 0.92rem; line-height: 1.55; }
.description mark { padding: 0 0.15rem; }
.label-form { margin-top: 0.75rem; }
.label-form label { font-size: 0.85rem; }
.label-form input { padding-top: 0.35rem; padding-bottom: 0.35rem; height: auto; margin-bottom: 0.5rem; }
.label-form .buttons { display: flex; gap: 0.5rem; }

a.tab { margin-right: 1rem; }
a.tab[aria-current] { font-weight: 700; text-decoration: underline; }

.login { max-width: 24rem; margin-top: 12vh; }
.login .error { color: var(--bad); font-size: 0.9rem; }

.shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; margin-bottom: 0.75rem; }
.chip { padding: 0.15rem 0.7rem; border-radius: 999px; border: 1px solid var(--pico-muted-border-color);
  text-decoration: none; white-space: nowrap; }
.chip.active { background: var(--pico-primary); border-color: var(--pico-primary); color: var(--pico-primary-inverse); }
