:root { --bg:#fff8ec; --fg:#241c1a; --muted:#6f625a; --card:#fff; --accent:#f43808; --ok:#1f7a3d; --warn:#9a6700; --bad:#b3261e; --line:#eadfce; }
@media (prefers-color-scheme: dark) { :root { --bg:#1b1512; --fg:#f5ede4; --muted:#b0a398; --card:#241c1a; --line:#3d3029; --accent:#ff5a2c; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.45 system-ui, sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: .2em 0; } h2 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px 14px; margin:10px 0; }
.row { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.muted { color:var(--muted); font-size:.9rem; } .ok { color:var(--ok); } .warn { color:var(--warn); } .bad { color:var(--bad); }
.banner { background:#fff3cd; color:#5c4400; border:1px solid #e3c766; border-radius:8px; padding:8px 12px; margin:8px 0; font-size:.9rem; }
@media (prefers-color-scheme: dark) { .banner { background:#3a3012; color:#f1deb0; border-color:#6b5a1e; } }
button, input, select { font:inherit; padding:8px 10px; border-radius:8px; border:1px solid var(--line); background:var(--card); color:var(--fg); }
button { background:var(--accent); color:#fff; border-color:var(--accent); cursor:pointer; } button.secondary { background:transparent; color:var(--fg); border-color:var(--line); }
button:disabled { opacity:.5; cursor:not-allowed; }
label { display:block; margin:.5em 0 .15em; font-size:.9rem; } input { width:100%; }
table { width:100%; border-collapse:collapse; font-size:.92rem; } th, td { text-align:left; padding:6px 4px; border-bottom:1px solid var(--line); vertical-align:top; }
nav a { margin-right:12px; color:var(--accent); cursor:pointer; text-decoration:underline; }
.price { font-variant-numeric: tabular-nums; white-space:nowrap; }
.toolbar { position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; }
.chip { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; font-size: .9rem; }
main.wide { max-width: 1100px; }
.card.narrow { max-width: 420px; } .card.narrow input { margin: 6px 0; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin:10px 0; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; }
.tile b { font-size:1.4rem; }
.pill { border-radius:999px; padding:3px 10px; font-size:.85rem; font-weight:600; border:1px solid var(--line); }
.pill.ok { background:rgba(31,122,61,.12); } .pill.warn { background:rgba(154,103,0,.14); } .pill.bad { background:rgba(179,38,30,.12); }
.branches { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.dot.on { background:var(--ok); } .dot.off { background:var(--bad); }
.actions { margin-top:6px; } button.danger { background:var(--bad); border-color:var(--bad); }

.thumb { width:64px; height:64px; border-radius:10px; border:1px solid var(--line); background:var(--bg) center/cover; display:grid; place-items:center; font-size:.75rem; color:var(--muted); flex:none; }
.thumb.wide { width:160px; }
.row.start { justify-content:flex-start; } .grow { flex:1; min-width:120px; }
.photos .row { padding:6px 0; border-bottom:1px solid var(--line); }

label.inline { display:inline-flex; gap:6px; align-items:center; margin:.3em 0 0; }
.photos .grow input { margin-top:4px; }

.brandbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:6px 0 10px; margin-bottom:6px; border-bottom:1px solid var(--line); }
.brandbar img { display:block; height:auto; max-width:60vw; }
.brandbar .pagetitle { font-size:1rem; font-weight:600; color:var(--muted); margin:0; }
nav a { font-weight:600; }
