/* Veřejná stránka tipů – samostatná (nesahá na styly ani soubory interní aplikace) */
:root { --ink: #1f2328; --muted: #6b7280; --line: #e4e2dc; --bg: #f6f5f1; --card: #fff; --accent: #1f5f8b; --accent-soft: #e8f0f7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.top h1 { font-size: 18px; margin: 0; }
.me { font-size: 13px; color: var(--muted); }
.me b { color: var(--ink); }
main.wrap { padding-top: 14px; padding-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.card h2 { font-size: 15px; margin: 0 0 10px; }
.intro p { margin: 6px 0; max-width: 960px; }
.intro h2 b { color: var(--accent); }
.intro details { color: var(--muted); font-size: 12.5px; }
.intro summary { cursor: pointer; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.side { position: sticky; top: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); }
.chip b { font-variant-numeric: tabular-nums; }
.toolbar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; margin-bottom: 8px; }
select, input[type=text], input[type=search] { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
input[type=file] { width: 100%; font-size: 12.5px; }
.tscroll { overflow-x: auto; }
table.st { width: 100%; border-collapse: collapse; font-size: 13px; }
table.st th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.st td { padding: 6px; border-bottom: 1px solid #efede7; vertical-align: middle; }
table.st td.n, table.st th.n { text-align: right; }
table.st tr.picked > td { background: var(--accent-soft); }
.empty { color: var(--muted); padding: 14px 6px; }
.muted { color: var(--muted); }
.sm { font-size: 12px; }
.why { color: var(--muted); font-size: 11.5px; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eeece6; color: var(--muted); white-space: nowrap; }
.pill.ok { background: #e7f5ea; color: #1a7f37; } .pill.bad { background: #fdecec; color: #a4161a; } .pill.warn { background: #fdf3e1; color: #8a5a00; }
.btn { border: 0; background: var(--accent); color: #fff; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--line); padding: 4px 9px; font-weight: 500; font-size: 12px; }
.acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: #faf9f6; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.kpi .k { font-size: 11.5px; color: var(--muted); }
.kpi .v { font-size: 18px; font-weight: 700; }
.kpi.big .v { color: var(--accent); }
.f { margin: 10px 0; }
.f label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
#obec-hits button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 6px; font: inherit; cursor: pointer; border-radius: 6px; }
#obec-hits button:hover { background: var(--accent-soft); }
#obec-state { margin-top: 4px; }
.err { color: #a4161a; font-size: 12.5px; margin-top: 6px; }
.ok-msg { color: #1a7f37; font-size: 12.5px; margin-top: 6px; }
.err:empty, .ok-msg:empty { display: none; }
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .toolbar { grid-template-columns: 1fr 1fr; }
}
