:root { --fg: #1a1a1a; --muted: #6b7280; --line: #e5e7eb; --acc: #1d4ed8; --bg: #fff; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e5e7eb; --muted: #9ca3af; --line: #374151; --acc: #93c5fd; --bg: #111827; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
header { display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
header a { color: var(--fg); text-decoration: none; }
nav a { margin-left: 1rem; color: var(--acc) !important; }
main { max-width: 75rem; margin: 0; padding: 1rem 1.5rem; }
a { color: var(--acc); }
h1 { font-size: 1.4rem; } h2 { font-size: 1.15rem; margin-top: 2rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .2rem; }
table { border-collapse: collapse; width: 100%; }
td, th { padding: .35rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.sub { color: var(--muted); font-size: .85rem; margin: .1rem 0; }
.tag { font-size: .72rem; background: var(--line); border-radius: .3rem;
  padding: .05rem .4rem; vertical-align: middle; }
ul.docs { list-style: none; padding-left: 1rem; margin: .3rem 0; }
ul.docs li { margin: .15rem 0; }
ul.docs a.nodata { color: var(--muted); }
.hit { border: 1px solid var(--line); border-radius: .5rem; padding: .6rem .8rem;
  margin: .6rem 0; }
.hit .meta { font-size: .85rem; }
.hit .itemtitle { font-weight: 600; margin: .15rem 0; }
.hit .docline { font-size: .9rem; margin: .15rem 0; }
.snip { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; line-height: 1.45; }
.snip mark { background: #fde68a; color: #111; border-radius: .15rem; padding: 0 .1rem; }
form.search { margin: 1rem 0; display: flex; flex-direction: column; gap: .5rem; }
form.search .row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.search input[name=q] { flex: 1; min-width: 14rem; }
form.search label { display: flex; gap: .3rem; align-items: center;
  color: var(--muted); font-size: .9rem; }
input, select, button { font: inherit; padding: .4rem .6rem; border: 1px solid var(--line);
  border-radius: .35rem; background: var(--bg); color: var(--fg); }
button { background: var(--acc); color: #fff; border: 0; cursor: pointer; }
form.login { display: flex; gap: .5rem; max-width: 22rem; }
.err { color: #dc2626; }
pre.doc { white-space: pre-wrap; font-size: .85rem; background: color-mix(in srgb, var(--line) 40%, var(--bg));
  padding: 1rem; border-radius: .5rem; overflow-x: auto; }
.hit .itemtitle a { color: var(--fg); text-decoration: none; }
.hit .itemtitle a:hover { text-decoration: underline; }
.summary { font-size: .9rem; margin: .3rem 0; line-height: 1.45; }
.also { font-size: .82rem; color: var(--muted); margin: .35rem 0 0; }
.qinfo { font-size: .9rem; margin: .3rem 0; }
.qinfo.miss { color: #b45309; }
.tag.lacks { background: #fef3c7; color: #92400e; }
details.weak { margin-top: 1.6rem; }
details.weak > summary { cursor: pointer; color: var(--muted); font-size: .95rem; padding: .3rem 0; }
details.weak .hit { opacity: .85; }
div.fb { margin-top: .35rem; font-size: .8rem; color: var(--muted); }
button.fb { font-size: .75rem; padding: .1rem .5rem; background: transparent; color: var(--muted);
  border: 1px solid var(--line); margin-right: .3rem; }
button.fb:hover { color: var(--fg); border-color: var(--muted); }
h3.subitem { margin-left: 1rem; font-weight: 500; }
a.plain { color: var(--fg); text-decoration: none; }
a.plain:hover { text-decoration: underline; }
a.links { font-size: .78rem; font-weight: 400; margin-left: .4rem; }
.box { border-left: 3px solid var(--line); padding: .4rem .8rem; margin: .8rem 0; font-size: .93rem; line-height: 1.5; }
.box.res { border-left-color: var(--acc); }
.boxlabel { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .2rem; }
.ents, .entbox { margin: .6rem 0; line-height: 2; }
.chip { display: inline-block; font-size: .78rem; border: 1px solid var(--line); border-radius: 1rem;
  padding: 0 .55rem; margin: 0 .15rem .15rem 0; line-height: 1.6; color: var(--fg); text-decoration: none; }
a.chip:hover { border-color: var(--acc); }
.chip .n { color: var(--muted); font-size: .7rem; }
.chip.k-firma { border-color: #93c5fd; } .chip.k-osoba { border-color: #c4b5fd; }
.chip.k-budova, .chip.k-parcela, .chip.k-ulice { border-color: #86efac; }
.chip.k-akce { border-color: #fcd34d; } .chip.k-odkaz { border-color: #f87171; }
ul.timeline { list-style: none; padding-left: 0; border-left: 2px solid var(--line); margin-left: .3rem; }
ul.timeline li { padding: .35rem 0 .35rem .9rem; position: relative; }
ul.timeline li::before { content: ""; position: absolute; left: -6px; top: .8rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
ul.timeline li.strong::before { border-color: var(--acc); }
ul.timeline li.strong > a { font-weight: 600; }
ul.timeline li.cur::before { background: var(--acc); border-color: var(--acc); }
.tldate { font-size: .8rem; color: var(--muted); min-width: 5.5rem; display: inline-block; }
.tlrm { font-size: .8rem; color: var(--muted); }
.why { margin-top: .15rem; }
.tag.amount { background: #dcfce7; color: #166534; }
/* ── dokument ── */
.actions { margin: .4rem 0 1rem; font-size: .9rem; }
a.btn { display: inline-block; background: var(--acc); color: #fff !important; text-decoration: none;
  padding: .3rem .8rem; border-radius: .35rem; font-size: .9rem; }
a.orig { font-size: .75rem; color: var(--muted); margin-left: .3rem; }
article.doc { max-width: 46rem; line-height: 1.6; font-size: .97rem; }
article.doc p { margin: .55rem 0; }
article.doc .li { display: inline-block; padding-left: 1.4rem; text-indent: -1.4rem; }
article.doc .dh { font-weight: 600; }
.dtitle { font-size: 1.15rem; margin: 1rem 0 .6rem; }
.dmeta { color: var(--muted); font-size: .85rem; }
.dsec { margin: 1rem 0; }
ul.att { margin: .2rem 0; padding-left: 1.2rem; }
h3.sheet { font-size: .95rem; margin: 1.2rem 0 .3rem; color: var(--muted); }
.tablewrap { overflow-x: auto; margin: .6rem 0; }
table.doctable { font-size: .85rem; width: auto; }
table.doctable td { padding: .2rem .5rem; vertical-align: top; border: 1px solid var(--line); }
table.doctable tr:first-child td { font-weight: 600; background: color-mix(in srgb, var(--line) 40%, var(--bg)); }
table.doctable td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
mark.hl { background: #fde68a; color: #111; border-radius: .15rem; padding: 0 .1rem; }
mark.hl.cur { background: #f59e0b; outline: 2px solid #f59e0b; }
.hlbar { position: sticky; top: 0; z-index: 5; background: var(--bg); border: 1px solid var(--line);
  border-radius: .4rem; padding: .3rem .6rem; margin: .4rem 0; font-size: .85rem; display: flex; gap: .5rem; align-items: center; }
.hlbar button { padding: .1rem .6rem; }
/* ── výsledek ze zápisu ── */
.box.outcome { border-left-color: #16a34a; }
.tag.oc.ok { background: #dcfce7; color: #166534; }
.tag.oc.split { background: #fef3c7; color: #92400e; }
.tag.oc.no { background: #fee2e2; color: #991b1b; }
.tag.oc.chg { background: #ede9fe; color: #5b21b6; }
/* ── přehled schůze a kontrola ── */
.dash { margin: 1rem 0 2rem; }
.dstats { font-size: .95rem; }
ul.dlist { padding-left: 1.1rem; } ul.dlist li { margin: .35rem 0; }
table.overview td { vertical-align: top; font-size: .9rem; }
table.overview td:first-child { white-space: nowrap; }
table.tasks td { font-size: .88rem; }
.box.check { border-left-color: #7c3aed; }
.tag.sev-vysoka { background: #fee2e2; color: #991b1b; }
.tag.sev-stredni { background: #fef3c7; color: #92400e; }
.tag.sev-nizka { background: var(--line); }
ul.nalezy { padding-left: 1rem; } ul.nalezy li { margin: .3rem 0; }
.anon { border-bottom: 1px dotted var(--muted); }
form.upload textarea { width: 100%; font-family: monospace; font-size: .8rem; }
p.ok { color: #166534; }

/* kontrola v2: pravomoc, argumenty, fakta, otázky, odpovědi po schůzi */
.tag.ok { background: #e3f3e6; color: #1d6b2d; }
.tag.warn { background: #fff1d6; color: #8a5a00; }
.pravomoc { margin: .4em 0; }
.args { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin: .6em 0; }
.args > div { background: rgba(0,0,0,.03); border-radius: 6px; padding: .4em .7em; }
.args > div:first-child { border-left: 3px solid #3c9a52; }
.args > div:last-child { border-left: 3px solid #c0533f; }
.args p { margin: .3em 0 0; }
table.fakta { width: 100%; border-collapse: collapse; font-size: .92em; margin: .3em 0 .6em; }
table.fakta td, table.fakta th { border-bottom: 1px solid rgba(0,0,0,.08); padding: .25em .4em; vertical-align: top; text-align: left; }
table.fakta tr.miss td { background: #fff6e8; }
b.miss { color: #a0450f; }
ul.otazky li, ul.odpovedi li { margin: .25em 0; }
.tag.ans-zodpovezeno { background: #e3f3e6; color: #1d6b2d; }
.tag.ans-vyhnuli_se, .tag.ans-nezodpovezeno { background: #fff1d6; color: #8a5a00; }
.tag.ans-odporuje { background: #fbe3df; color: #9a2d1c; }
@media (max-width: 700px) { .args { grid-template-columns: 1fr; } }

/* stránka schůze: přehled, na co si dát pozor, body popořadě */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: 1rem 0; }
.stats div { background: color-mix(in srgb, var(--line) 45%, var(--bg)); border-radius: .5rem; padding: .5rem .8rem; }
.stats span { display: block; font-size: .8rem; color: var(--muted); }
.stats b { font-size: 1.4rem; font-weight: 600; }
.overall { line-height: 1.55; margin: .6rem 0 1rem; }
details.overall > summary { cursor: pointer; list-style: none; }
details.overall[open] > summary { display: none; }
.watch { border: 1px solid var(--line); border-left: 3px solid #dc2626; border-radius: 0 .5rem .5rem 0; padding: .55rem .8rem; margin: .55rem 0; }
.watch .wh a { font-weight: 600; text-decoration: none; color: var(--fg); }
.watch .wh a:hover { text-decoration: underline; }
ul.wf { list-style: none; padding: 0; margin: .4rem 0 0; }
ul.wf li { margin: .25rem 0; line-height: 1.45; font-size: .93rem; }
.wq { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
details.ktools { border: 1px solid var(--line); border-radius: .5rem; padding: .4rem .8rem; margin: 1.2rem 0; }
details.ktools > summary { cursor: pointer; font-weight: 600; }
details.ktools textarea { width: 100%; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .6rem; }
.filters button { font-size: .82rem; padding: .2rem .65rem; border-radius: 1rem; background: transparent; color: var(--fg); cursor: pointer; }
.filters button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.blist { border-top: 1px solid var(--line); }
.brow { border-bottom: 1px solid var(--line); padding: .5rem 0 .3rem; }
.brow[hidden] { display: none; }
.bhead { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .6rem; align-items: baseline; }
.bhead .bt > a { font-weight: 600; }
.brow.sub .bhead { padding-left: 1.2rem; }
.bno { color: var(--muted); font-variant-numeric: tabular-nums; }
.btags { text-align: right; white-space: nowrap; }
.bbody { padding: .2rem .4rem .7rem 3.2rem; font-size: .93rem; line-height: 1.5; }
.bbody p { margin: .3rem 0; }
.bgroup { padding: .5rem .2rem .2rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.bgdocs { padding-left: 3.2rem; }
details.other { margin: 1rem 0; }
details.other > summary { cursor: pointer; color: var(--muted); }
.box.about { border-left-color: var(--acc); }
ul.ksouv li { margin: .3rem 0; line-height: 1.45; }
@media (max-width: 640px) { .bhead { grid-template-columns: 2.2rem minmax(0, 1fr); } .btags { grid-column: 2; text-align: left; white-space: normal; } .bbody { padding-left: .4rem; } }

/* dokument v pravém panelu */
body.embed header { display: none; }
body.embed main { max-width: none; padding: .6rem 1rem; }
body.withside main { margin-right: 46vw; }
aside#side { position: fixed; top: 0; right: 0; bottom: 0; width: 45vw; background: var(--bg);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 10; }
aside#side .sidehead { display: flex; gap: .8rem; align-items: center; padding: .45rem .8rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
aside#side .sidehead span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
aside#side .sidehead button { font-size: 1.1rem; line-height: 1; padding: .1rem .5rem; cursor: pointer; background: transparent; color: var(--fg); }
aside#side iframe { flex: 1; border: 0; width: 100%; }
a.sideon { font-weight: 600; }

/* kdo text napsal */
.src { display: inline-block; font-size: .7rem; font-weight: 600; padding: .05rem .4rem; border-radius: .3rem; vertical-align: .1em; white-space: nowrap; }
.src-cw { background: #ede9fe; color: #5b21b6; }
.src-hk { background: #dbeafe; color: #1e40af; }
.src-ol { background: #f3f4f6; color: #4b5563; }
@media (prefers-color-scheme: dark) { .src-cw { background: #3b2a6b; color: #ddd6fe; } .src-hk { background: #1e3a5f; color: #bfdbfe; } .src-ol { background: #374151; color: #e5e7eb; } }
.srclegend { margin: .2rem 0 .8rem; }

/* přihlášený uživatel a poznámky */
nav .who { margin-left: 1rem; color: var(--muted); font-size: .9rem; }
.login input { display: block; margin: .4rem 0; min-width: 16rem; }
.note { border: 1px solid var(--line); border-radius: .5rem; padding: .45rem .7rem; margin: .5rem 0; }
.note.own { border-left: 3px solid var(--acc); }
.note .nh { font-size: .88rem; margin-bottom: .2rem; }
.note .nt { line-height: 1.5; }
.tag.priv { background: #fef3c7; color: #92400e; }
.tag.note { text-decoration: none; background: #e0f2fe; color: #075985; }
details.nedit > summary { cursor: pointer; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
form.nnew textarea, details.nedit textarea { width: 100%; margin: .3rem 0; font: inherit; }

/* ── pracovní režimy schůze: Příprava a Jednání ── */
.modes { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .3rem 0 1rem; }
a.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
body.studio main { max-width: none; margin: 0; padding: 0; }
body.studio header { padding: .4rem 1rem; }
.stbar { display: flex; gap: .9rem; align-items: center; padding: .4rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.stbar .stmeet { font-weight: 600; color: var(--fg); text-decoration: none; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: .4rem; overflow: hidden; }
.seg a { padding: .2rem .8rem; color: var(--muted); text-decoration: none; font-size: .85rem; }
.seg a.on { background: var(--fg); color: var(--bg); }
.stsearch { flex: 1; max-width: 26rem; }
.stsearch input { width: 100%; padding: .25rem .6rem; font-size: .85rem; }
.stprog, .stnav { margin-left: auto; color: var(--muted); white-space: nowrap; display: flex; gap: .5rem; align-items: center; }
.stnav .btn.off { opacity: .35; }
/* Příprava: tři sloupce, každý se posouvá zvlášť */
.st3 { display: grid; grid-template-columns: 17rem minmax(0, 1fr) minmax(20rem, 36%); height: calc(100vh - 6rem); }
.st3 > * { overflow: auto; min-height: 0; }
.stlist { border-right: 1px solid var(--line); padding: .2rem 0; }
a.sti { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) .6rem auto; gap: .35rem; align-items: center;
  padding: .32rem .6rem; font-size: .86rem; color: var(--fg); text-decoration: none; border-left: 3px solid transparent; }
a.sti:hover { background: color-mix(in srgb, var(--line) 40%, var(--bg)); }
a.sti.on { background: color-mix(in srgb, var(--acc) 12%, var(--bg)); border-left-color: var(--acc); }
a.sti .no { color: var(--muted); font-variant-numeric: tabular-nums; }
a.sti .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.sti.done .tt { color: var(--muted); }
a.sti.notok .no { color: #b45309; font-weight: 600; }
a.sti.ov { border-bottom: 1px solid var(--line); margin-bottom: .25rem; }
a.sti.ov .tt { font-weight: 600; }
.stmain .dash .fhead h2 { margin-top: 0; }
.sev { width: .5rem; height: .5rem; border-radius: 50%; }
.sev.vysoka { background: #dc2626; } .sev.stredni { background: #d97706; } .sev.nizka { background: #9ca3af; }
.mk { font-size: .78rem; color: var(--muted); }
.mk.read { visibility: hidden; color: #15803d; }
a.sti.done .mk.read { visibility: visible; cursor: pointer; padding: 0 .2rem; border-radius: .25rem; }
a.sti.done .mk.read:hover { background: #fee2e2; color: #b91c1c; }
.mk.note { color: var(--acc); margin: 0 .15rem 0 0; padding: 0; border: 0; }
.stmain { padding: .6rem 1.4rem 3rem; }
.stmain .fhead h2 { margin: .3rem 0 .3rem; font-size: 1.15rem; line-height: 1.35; }
.ftags { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.readbtn { font-size: .78rem; padding: .1rem .55rem; background: transparent; color: var(--muted); cursor: pointer; }
.readbtn.on { color: #15803d; border-color: #15803d; }
.stmain h2 { font-size: 1rem; margin-top: 1.4rem; }
.stside { border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden !important; }
.sttabs { display: flex; gap: .2rem; flex-wrap: wrap; padding: .3rem .5rem; border-bottom: 1px solid var(--line); min-height: 2rem; align-items: center; }
.sttabs a.tab { font-size: .78rem; padding: .15rem .3rem .15rem .55rem; border: 1px solid var(--line); border-radius: .35rem;
  color: var(--muted); text-decoration: none; display: inline-flex; gap: .2rem; align-items: center; max-width: 15rem; }
.sttabs a.tab.on { color: var(--acc); border-color: var(--acc); }
.sttabs a.tab button { border: 0; background: transparent; padding: 0 .2rem; font-size: .9rem; line-height: 1; color: inherit; cursor: pointer; }
#stdoc { flex: 1; border: 0; width: 100%; min-height: 0; display: none; }
.stside.has #stdoc { display: block; }
.stnotes { border-top: 1px solid var(--line); padding: .3rem .8rem .6rem; max-height: 45%; overflow: auto; flex: none; }
/* záložka „Fakta a dokumenty": fakta a dokumenty se posouvají zvlášť, poznámky zůstávají dole na očích */
.stside.has .stinfo { display: none; }
.sttabs { flex: none; }
.sttabs a.tab.home { padding-right: .55rem; }
.stinfo { padding: .2rem .8rem .6rem; flex: 1; min-height: 0; overflow: auto; }
.stinfo h2 { font-size: .9rem; margin: .7rem 0 .3rem; }
.stinfo h2 .src { font-weight: 400; }
/* fakta v úzkém sloupci: druh vlevo a hodnota vpravo, popis a „kde" na celou šířku pod tím */
.sideinfo table.fakta, .sideinfo table.fakta tbody { display: block; }
.sideinfo table.fakta tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 .7rem;
  padding: .35rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.sideinfo table.fakta tr:first-child { display: none; }
.sideinfo table.fakta td { border: 0; padding: 0; background: transparent !important; }
.sideinfo table.fakta td:first-child { display: contents; }            /* druh a popis jako samostatné buňky mřížky */
.sideinfo table.fakta td:first-child br { display: none; }
.sideinfo table.fakta td:first-child .sub { grid-row: 2; grid-column: 1 / -1; color: var(--fg); font-size: .9rem; }
.sideinfo table.fakta td:nth-child(2) { grid-row: 1; grid-column: 2; text-align: right; font-weight: 600; color: var(--fg); font-size: .95rem; }
.sideinfo table.fakta td:nth-child(3) { grid-row: 3; grid-column: 1 / -1; }
.sideinfo table.fakta td:nth-child(3):empty { display: none; }
.sideinfo table.fakta tr.miss { border-left: 3px solid #d97706; padding-left: .45rem; }
.sideinfo ul.docs { padding-left: 0; font-size: .88rem; }
.sideinfo ul.docs li { margin: .3rem 0; overflow-wrap: anywhere; }
.sideinfo ul.docs a.orig { white-space: nowrap; }
details.jall { margin-top: .6rem; } details.jall > summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
/* poznámka jako otázka na schůzi */
.note.ask { border-left: 3px solid #7c3aed; }
.tag.askt { background: #ede9fe; color: #5b21b6; }
form.nask { margin: .2rem 0 0; }
button.linkbtn { border: 0; background: transparent; padding: 0; font-size: .82rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
label.askchk { font-size: .85rem; white-space: nowrap; }
ol.jq li.mine { border-left: 3px solid #7c3aed; padding-left: .6rem; margin-left: -.75rem; }
.stnotes h2 { font-size: .9rem; margin: .4rem 0; }
.stnotes .note { font-size: .88rem; }
.stnotes textarea { font-size: .88rem; }
/* Jednání: jeden bod, větší písmo */
.stj { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) minmax(17rem, 26%); height: calc(100vh - 6rem); }
.stj > * { overflow: auto; min-height: 0; }
.stnums { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; padding: .4rem .45rem; }
.stnums a { display: block; text-align: center; font-size: .8rem; padding: .22rem 0; border-radius: .35rem; color: var(--muted); text-decoration: none; }
.stnums a.vysoka { background: #fee2e2; color: #991b1b; } .stnums a.stredni { background: #fef3c7; color: #92400e; }
.stnums a.on { background: var(--fg); color: var(--bg); font-weight: 600; }
.jmain { padding: 1rem 2rem 3rem; font-size: 1.06rem; line-height: 1.6; max-width: 62rem; }
.jmain h2 { font-size: 1.35rem; line-height: 1.3; margin: .2rem 0 .4rem; }
.jabout { color: var(--muted); margin: .4rem 0; }
.jsec { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 1.3rem 0 .35rem; }
.jres { background: color-mix(in srgb, var(--line) 40%, var(--bg)); border-radius: .5rem; padding: .7rem 1rem; }
ol.jq { padding-left: 1.4rem; margin: 0; } ol.jq li { margin: .35rem 0; }
ul.jf { list-style: none; padding: 0; margin: 0; } ul.jf li { margin: .4rem 0; }
.jside { border-left: 1px solid var(--line); padding: .6rem 1rem 2rem; font-size: .92rem; }
.jside .jsec:first-child { margin-top: .3rem; }
.jbig { font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.jmid { font-size: 1.15rem; font-weight: 600; margin-top: .5rem; }
ul.jfacts { padding-left: 1rem; margin: .6rem 0 0; color: var(--muted); } ul.jfacts b { color: var(--fg); font-weight: 600; }
.jnote { border-left: 3px solid var(--acc); padding: .2rem .6rem; margin: .4rem 0; }
form.jnew textarea { width: 100%; font: inherit; font-size: .9rem; margin: .3rem 0; }
.st3:not(.has) { grid-template-columns: 17rem minmax(0, 1fr) 23rem; }
/* otevřený podklad: seznam bodů se smrskne na čísla (název je v bublině), místo dostane rozbor a podklad */
.st3.has { grid-template-columns: 3.6rem minmax(0, 1fr) minmax(24rem, 46%); }
.st3.has a.sti { grid-template-columns: minmax(0, 1fr) .5rem; padding: .32rem .35rem .32rem .3rem; gap: .2rem; }
.st3.has a.sti .tt, .st3.has a.sti .mks { display: none; }
.st3.has a.sti .no { text-align: center; }
.st3.has a.sti.done .no { text-decoration: line-through; }
body.embed h1 { font-size: 1.05rem; margin: .2rem 0 .4rem; }
@media (max-width: 1200px) {
  .st3 { grid-template-columns: 14rem minmax(0, 1fr) minmax(16rem, 42%); }
  .st3:not(.has) { grid-template-columns: 14rem minmax(0, 1fr) 19rem; }
  .stj { grid-template-columns: 3rem minmax(0, 1fr) 15rem; }
  .jmain { padding: .8rem 1.2rem 3rem; }
  .stsearch { max-width: 14rem; }
}
.jbig, .jmid { white-space: nowrap; }
@media (max-width: 1200px) { .jbig { font-size: 1.35rem; } .jmid { font-size: 1.05rem; } }
/* široký monitor: Jednání bez prázdného pruhu — obsah do dvou sloupců, pravý panel širší */
.jmain { max-width: none; }
.jcols { display: block; }
@media (min-width: 1700px) {
  .jcols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .jc2 > .jsec:first-child, .jc1 > .jsec:first-child { margin-top: 1.3rem; }
  .stj { grid-template-columns: 3.4rem minmax(0, 1fr) minmax(20rem, 24%); }
}
@media (min-width: 2300px) {
  .jmain { font-size: 1.12rem; padding: 1.2rem 3rem 3rem; }
  .st3 { grid-template-columns: 20rem minmax(0, 1fr) minmax(24rem, 40%); }
  .st3:not(.has) { grid-template-columns: 20rem minmax(0, 1fr) 28rem; }
}

/* zobrazení dokumentu: originál / tabulky / text */
.dbar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: .3rem 0 .8rem; }
.dlinks { display: inline-flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .85rem; }
.dviews { display: inline-flex; border: 1px solid var(--line); border-radius: .4rem; overflow: hidden; }
.dviews a { padding: .2rem .75rem; font-size: .85rem; color: var(--muted); text-decoration: none; }
.dviews a.on { background: var(--fg); color: var(--bg); }
iframe.pdfview { width: 100%; height: calc(100vh - 13rem); border: 1px solid var(--line); border-radius: .4rem; }
body.embed iframe.pdfview { height: calc(100vh - 9.5rem); }
article.layout { font-size: .93rem; line-height: 1.5; }
article.layout h3, article.layout h4, article.layout h5, article.layout h6 { margin: 1rem 0 .4rem; font-size: 1rem; }
article.layout .lpage { font-size: .75rem; color: var(--muted); border-top: 1px dashed var(--line); margin: 1.2rem 0 .5rem; padding-top: .2rem; }
.ltable { overflow-x: auto; margin: .5rem 0; }
.ltable table { border-collapse: collapse; font-size: .86rem; width: auto; min-width: 50%; }
.ltable th, .ltable td { border: 1px solid var(--line); padding: .2rem .45rem; vertical-align: top; }
.ltable th { background: color-mix(in srgb, var(--line) 45%, var(--bg)); text-align: left; font-weight: 500; }

/* ── Příprava, rozbor bodu jako karty (návrh 29. 11. 2026) ─────────────────
   Dřív souvislý text s barevnou čárou vlevo — části splývaly. Teď: šedé pozadí sloupce,
   každá část bílá karta s nadpisem, nálezy jako řádky podle závažnosti, otázky číslované,
   nahoře připnutá hlavička s lištou částí (skok na kartu). */
:root { --panel: color-mix(in srgb, var(--line) 42%, var(--bg)); }
.stmain:has(.frag) { background: var(--panel); padding: 0 1.2rem 3rem; }
.frag { max-width: 58rem; margin: 0 auto; }
.frag .fhead { position: sticky; top: 0; z-index: 3; background: var(--panel); margin: 0 -1.2rem; padding: .7rem 1.2rem .5rem;
  border-bottom: 1px solid var(--line); }
.frag .fhead h2 { margin: 0 0 .4rem; font-size: 1.12rem; display: flex; gap: .6rem; align-items: baseline; }
.frag .fhead .fno { flex: none; background: var(--fg); color: var(--bg); border-radius: .4rem; padding: .05rem .5rem; font-size: .95rem;
  font-variant-numeric: tabular-nums; }
.frag .ftags { margin-bottom: .45rem; }
.fnav { display: flex; flex-wrap: wrap; gap: .3rem; }
.fnav:empty { display: none; }
.fnav button { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 1rem; padding: .12rem .7rem;
  font-size: .8rem; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.fnav button:hover { border-color: var(--acc); color: var(--acc); }
.fnav button span { background: var(--line); border-radius: 1rem; padding: 0 .4rem; font-size: .72rem; font-weight: 600; }
.fnav button.s-vysoka span { background: #dc2626; color: #fff; }
.fnav button.s-stredni span { background: #d97706; color: #fff; }
.frag [data-nav], .frag .souv { scroll-margin-top: 7.5rem; }

/* karta */
.frag .box, .frag .ksec, .frag .pravomoc, .frag .ents, .frag .souv, .frag .dsec {
  background: var(--bg); border: 1px solid var(--line); border-radius: .65rem; padding: .8rem 1.1rem; margin: .8rem 0;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05); font-size: .95rem; line-height: 1.55; }
.frag .souv:empty { display: none; }
/* kontrola už není jeden box, ale skupina karet s tenkým nadpisem */
.frag .box.check { background: none; border: 0; box-shadow: none; padding: 0; margin: 1.3rem 0 0; }
.frag .box.check > .boxlabel { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 .2rem; font-size: .72rem; }
.frag .box.check > .boxlabel::after { content: ""; flex: 1; border-top: 1px solid var(--line); min-width: 2rem; }
.frag .knote { margin: .2rem .3rem; font-size: .82rem; }
/* nadpis karty: tučný, s barevnou značkou druhu */
.frag .box > .boxlabel, .frag .kh { margin: 0 0 .5rem; }
.frag .box:not(.check) > .boxlabel, .frag .kh .boxlabel, .frag .pravomoc > .boxlabel, .frag .ents .entl {
  font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fg); }
.frag .box:not(.check) > .boxlabel::before, .frag .kh .boxlabel::before, .frag .pravomoc > .boxlabel::before, .frag .ents .entl::before {
  content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 2px; margin-right: .5rem; background: var(--muted); }
.frag .box.about > .boxlabel::before { background: var(--acc); }
.frag .k-nalezy .boxlabel::before { background: #d97706; }
.frag .k-nalezy[data-sev="vysoka"] .boxlabel::before { background: #dc2626; }
.frag .k-otazky .boxlabel::before { background: #7c3aed; }
.frag .k-ukoly .boxlabel::before, .frag .k-ukoly > .boxlabel::before { background: #0891b2; }
.frag .box.res > .boxlabel::before { background: var(--fg); }
.frag .box.outcome > .boxlabel::before { background: #16a34a; }
.frag .box.about { font-size: 1rem; }
.frag .box.about p { margin: .2rem 0 .5rem; }
.frag .box.res { border-left: 4px solid var(--fg); font-size: 1rem; white-space: pre-line; }
.frag .box.res > .boxlabel { white-space: normal; }
.frag .box.outcome { border-left: 4px solid #16a34a; }
/* kdo rozhoduje: jeden řádek */
.frag .pravomoc { padding: .55rem 1.1rem; }
.frag .pravomoc > .boxlabel { margin-right: .5rem; }
/* pro a proti: dvě karty vedle sebe */
.frag .args { gap: .8rem; margin: .8rem 0; }
.frag .args > div { border-radius: .65rem; padding: .8rem 1.1rem; border: 1px solid; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.frag .args > div:first-child { background: color-mix(in srgb, #16a34a 7%, var(--bg)); border-color: color-mix(in srgb, #16a34a 35%, var(--line)); border-left-width: 1px; }
.frag .args > div:last-child { background: color-mix(in srgb, #dc2626 6%, var(--bg)); border-color: color-mix(in srgb, #dc2626 30%, var(--line)); border-left-width: 1px; }
.frag .args .boxlabel { font-weight: 700; letter-spacing: .05em; }
.frag .args > div:first-child .boxlabel { color: #15803d; } .frag .args > div:last-child .boxlabel { color: #b91c1c; }
/* nálezy: řádek = jeden nález, barva podle závažnosti */
.frag ul.nalezy { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.frag ul.nalezy li { margin: 0; padding: .5rem .8rem; border-left: 4px solid var(--muted); border-radius: .2rem .45rem .45rem .2rem;
  background: color-mix(in srgb, var(--line) 30%, var(--bg)); }
.frag ul.nalezy li:has(> .sev-vysoka) { border-left-color: #dc2626; background: color-mix(in srgb, #dc2626 7%, var(--bg)); }
.frag ul.nalezy li:has(> .sev-stredni) { border-left-color: #d97706; background: color-mix(in srgb, #d97706 8%, var(--bg)); }
/* otázky: číslované řádky */
.frag ul.otazky { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.frag ul.otazky li { counter-increment: q; position: relative; margin: 0; padding: .5rem 0 .5rem 2.3rem; border-top: 1px solid var(--line); }
.frag ul.otazky li:first-child { border-top: 0; padding-top: .1rem; }
.frag ul.otazky li::before { content: counter(q); position: absolute; left: 0; top: .5rem; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: color-mix(in srgb, #7c3aed 14%, var(--bg)); color: #6d28d9; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.frag ul.otazky li:first-child::before { top: .1rem; }
.frag ul.otazky li.mine::before { background: #7c3aed; color: #fff; }      /* otázka z vlastní poznámky */
.frag ul.odpovedi { list-style: none; padding: 0; margin: 0; } .frag ul.odpovedi li { padding: .45rem 0; border-top: 1px solid var(--line); margin: 0; }
.frag ul.odpovedi li:first-child { border-top: 0; }
/* tabulka úkolů */
.frag table.tasks th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.frag table.tasks tr:last-child td { border-bottom: 0; }
.frag .ents { line-height: 2.1; }
.frag .souv h2 { margin: 0 0 .4rem; font-size: 1rem; }
.frag .souv details.weak { margin-top: .8rem; }
@media (prefers-color-scheme: dark) {
  .frag ul.otazky li::before { color: #c4b5fd; }
  .frag .args > div:first-child .boxlabel { color: #86efac; } .frag .args > div:last-child .boxlabel { color: #fca5a5; }
}

/* odebírání otázek a přihrané soubory */
form.qx { display: inline; margin: 0; }
button.qxb { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .35rem; border-radius: .25rem; }
button.qxb:hover { background: #fee2e2; color: #b91c1c; }
.frag ul.otazky li { padding-right: 1.8rem; }
.frag ul.otazky li form.qx { position: absolute; right: 0; top: .45rem; }
.frag ul.otazky li:first-child form.qx { top: .05rem; }
details.qgone { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
details.qgone > summary { cursor: pointer; }
details.qgone ul { padding-left: 1.1rem; margin: .3rem 0 0; } details.qgone li { margin: .25rem 0; }
h2.uplh { margin-top: 1rem; }
ul.docs.upl .sub { font-size: .78rem; }
details.uplnew { margin: .4rem 0 .2rem; font-size: .88rem; }
details.uplnew > summary { cursor: pointer; color: var(--acc); }
details.uplnew form { margin-top: .4rem; display: grid; gap: .4rem; }
details.uplnew input[type=file] { max-width: 100%; font-size: .85rem; }
p.flash { background: color-mix(in srgb, var(--acc) 10%, var(--bg)); border-left: 3px solid var(--acc); padding: .3rem .6rem; border-radius: .2rem; font-size: .88rem; margin: .3rem 0; }
img.uplimg { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: .4rem; }
.jside h2.uplh { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 400; margin: 1rem 0 .35rem; }

