:root { --pico-font-size: 100%; }
@media (max-width: 576px) { :root { --pico-font-size: 93%; } }
header nav { flex-wrap: wrap; }
header nav .links { flex-wrap: wrap; }
.brand { text-decoration: none; }
.narrow { max-width: 420px; margin: 10vh auto; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.row-head h2 { margin: 0; }
.row-head [role=button], .row-head button { width: auto; margin: 0; padding: .35rem .8rem; }
article.profile { padding: .9rem 1rem; margin-bottom: .8rem; }
article.profile small { display: block; margin-top: .3rem; color: var(--pico-muted-color); }
article.inactive { opacity: .55; }
.tiles { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles article { margin: 0; text-align: center; padding: .8rem; }
.tiles strong { display: block; font-size: 1.8rem; }
.error { color: #e5534b; }
.ok { color: #57ab5a; }
.muted { color: var(--pico-muted-color); }
fieldset label { display: inline-flex; margin-right: 1rem; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.tile-link { text-decoration: none; color: inherit; }
.add-url { display: flex; gap: .5rem; }
.add-url input { margin: 0; }
.add-url button { width: auto; margin: 0; }
.events { list-style: none; padding: 0; font-size: .85rem; }
.events li { margin-bottom: .35rem; }
.ev-blocked, .ev-error { color: #e5534b; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: 1rem; }
.tabs a { padding: .3rem .7rem; border-radius: 1rem; text-decoration: none; border: 1px solid var(--pico-muted-border-color); white-space: nowrap; }
.tabs a[aria-current] { background: var(--pico-primary-background); color: #fff; }
.card { padding: .7rem; margin-bottom: .8rem; }
.card-link { display: flex; gap: .8rem; text-decoration: none; color: inherit; }
.card img { width: 120px; height: 90px; object-fit: cover; border-radius: .4rem; flex-shrink: 0; }
.card small { display: block; color: var(--pico-muted-color); }
.card small.error { color: #e5534b; }
.price { font-weight: 700; color: var(--pico-primary); }
.price.big { font-size: 1.5rem; margin: 0 0 .5rem; }
.status-btns { display: flex; gap: .3rem; margin-top: .6rem; flex-wrap: wrap; }
.status-btns button { width: auto; padding: .2rem .6rem; font-size: .8rem; margin: 0; }
.gallery { display: flex; gap: .4rem; overflow-x: auto; margin: 1rem 0; scroll-snap-type: x mandatory; }
.gallery img { height: 200px; border-radius: .4rem; scroll-snap-align: start; max-width: none; }
.params th { width: 40%; color: var(--pico-muted-color); font-weight: normal; }
.desc { white-space: pre-line; font-size: .9rem; }
@media (max-width: 576px) {
  header nav .links li { padding: .3rem .4rem; }
  header nav .links a { font-size: .9rem; }
}
.analysis { font-size: .92rem; }
.analysis h1, .analysis h2, .analysis h3 { font-size: 1.05rem; margin-top: 1rem; }
.analysis table { font-size: .85rem; }
.score mark { font-size: .75rem; padding: .05rem .35rem; border-radius: .3rem; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }
#analysis button { width: auto; }

/* statystyki */
.table-wrap { overflow-x: auto; }
.table-wrap table { font-size: .85rem; white-space: nowrap; }
.up { color: #e06c75; }
.down { color: #98c379; }
