/* Design snapshot from /home/michal/vo/src/vokb/viewer/templates/base.html. Source read only. */
:root { --fg:#0D0D0D; --muted:#5D5D5D; --line:#E5E5E5; --bg:#ffffff; --soft:#F4F4F4; --accent:#10A37F; --accent-soft:#E6F6F1; --on-accent:#ffffff; --bar:#F9F9F9; --rail:#F9F9F9; --ink-btn:#0D0D0D; --on-ink:#ffffff;
        --diff:#fff1c2; --bad:#a32020; --ok:#1f6b33; --warn:#8a5a00; }
@media (prefers-color-scheme: dark) {
  :root { --fg:#ECECEC; --muted:#B4B4B4; --line:#3A3A3A; --bg:#212121; --soft:#2F2F2F; --accent:#19C37D; --accent-soft:#1E3A30; --on-accent:#0B1F17; --bar:#2A2A2A; --rail:#171717; --ink-btn:#ECECEC; --on-ink:#0D0D0D;
          --diff:#4a3e12; --bad:#ff8a8a; --ok:#7fd99a; --warn:#e0b45c; }
}
* { box-sizing: border-box; }
body { margin:0; padding-left:60px; font:15px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif; color:var(--fg); background:var(--bg); }
header.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  padding:8px 16px; background:var(--bar); border-bottom:1px solid var(--line); box-shadow:0 1px 2px rgba(0,0,0,.04); }
header.topbar .brand { display:flex; align-items:center; gap:9px; margin-right:18px; color:var(--fg); text-decoration:none; font-weight:700; font-size:17px; letter-spacing:.01em; }
header.topbar .brand .mark { width:28px; height:28px; border-radius:5px; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; font-size:15px; font-weight:700; }
header.topbar nav { display:flex; gap:4px; flex-wrap:wrap; }
header.topbar nav a { padding:6px 12px; border-radius:5px; color:var(--fg); text-decoration:none; font-weight:500; font-size:14px; }
header.topbar nav a:hover { background:var(--soft); }
header.topbar nav a[aria-current="page"] { background:var(--accent-soft); color:var(--accent); font-weight:600; }
header.topbar .meta { margin-left:auto; display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; }
header.topbar .tb-act { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:5px; border:1px solid var(--accent); color:var(--accent); background:var(--bg); text-decoration:none; font-weight:600; font-size:13px; }
header.topbar .tb-act:hover { background:var(--accent-soft); }
header.topbar .tb-act.on { background:var(--accent); color:var(--on-accent); }
header.topbar .user { display:flex; align-items:center; gap:7px; padding:3px 10px 3px 3px; border:1px solid var(--line); border-radius:5px; background:var(--bg); color:var(--fg); }
header.topbar .user .av { width:24px; height:24px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; font-weight:700; font-size:12px; text-transform:uppercase; }
header.topbar details.umenu { position:relative; }
header.topbar details.umenu > summary { list-style:none; cursor:pointer; }
header.topbar details.umenu > summary::-webkit-details-marker { display:none; }
header.topbar .caret { font-size:11px; color:var(--muted); }
header.topbar .umenu-panel { position:absolute; right:0; top:36px; z-index:30; min-width:240px; padding:6px; background:var(--bg); border:1px solid var(--line); border-radius:6px; box-shadow:0 8px 24px rgba(0,0,0,.14); display:flex; flex-direction:column; }
header.topbar .umenu-panel a { padding:7px 10px; border-radius:4px; color:var(--fg); text-decoration:none; font-size:14px; }
header.topbar .umenu-panel a:hover, header.topbar .umenu-panel a:focus-visible { background:var(--soft); }
header.topbar .umenu-panel hr { border:none; border-top:1px solid var(--line); margin:6px 0; }
header.topbar .umenu-tech { padding:2px 10px 4px; font-size:11px; color:var(--muted); }
header.topbar details.tech { position:relative; }
header.topbar details.tech > summary { list-style:none; cursor:pointer; width:24px; height:24px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; font-size:12px; color:var(--muted); }
header.topbar details.tech > summary::-webkit-details-marker { display:none; }
header.topbar details.tech[open] > div { position:absolute; right:0; top:30px; width:min(360px, 80vw); padding:8px 10px; background:var(--bg); border:1px solid var(--line); border-radius:5px; box-shadow:0 8px 24px rgba(0,0,0,.12); color:var(--muted); font-size:12px; }
@media (max-width:640px) { header.topbar .brand { margin-right:6px; } header.topbar .meta { margin-left:0; width:100%; justify-content:flex-end; } }
main { padding:12px 16px 40px; max-width:1700px; }
a { color:var(--accent); }
h1 { font-size:22px; margin:8px 0 4px; } h2 { font-size:18px; margin:22px 0 6px; } h3 { font-size:15px; margin:14px 0 4px; }
.muted { color:var(--muted); } .small { font-size:13px; }
table { border-collapse:collapse; width:100%; margin:6px 0; }
th, td { border-bottom:1px solid var(--line); padding:4px 8px; text-align:left; vertical-align:top; }
th { background:var(--soft); font-weight:600; }
td.k { width:220px; color:var(--muted); }
pre { white-space:pre-wrap; word-break:break-word; margin:0; font:13px/1.4 ui-monospace, monospace; }
pre.long { font:14px/1.5 system-ui, sans-serif; max-height:28em; overflow:auto; background:var(--soft); padding:8px; }
.badge { display:inline-block; padding:0 6px; border-radius:5px; font-size:12px; border:1px solid var(--line); background:var(--soft); }
.badge.final { color:var(--ok); border-color:var(--ok); } .badge.proposed { color:var(--warn); border-color:var(--warn); }
.badge.locked { color:var(--bad); border-color:var(--bad); }
tr.diff td { background:var(--diff); font-weight:600; }
tr.diff td.k { border-left:4px solid var(--warn); }
.warn { color:var(--warn); } .error { color:var(--bad); font-weight:600; } .ok { color:var(--ok); font-weight:600; }
.box { border:1px solid var(--line); border-radius:4px; padding:8px 12px; margin:8px 0; }
.cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:12px; }
form.inline { display:inline; }
form.act { border:1px solid var(--line); border-radius:4px; padding:8px 12px; margin:8px 0; }
form.act label { display:block; margin:4px 0; }
input[type=text], textarea, select { font:inherit; padding:3px 6px; max-width:100%; background:var(--bg); color:var(--fg); border:1px solid var(--line); }
textarea { width:100%; min-height:3.5em; }
button { font:inherit; padding:3px 10px; cursor:pointer; }
ul.tree { list-style:none; padding-left:18px; border-left:1px dotted var(--line); margin:2px 0; }
ul.tree li { margin:2px 0; }
.tl { position:relative; height:16px; background:var(--soft); border-radius:3px; }
.tl span { position:absolute; top:2px; height:12px; background:var(--accent); border-radius:3px; }
.filters input { width:140px; }
details > summary { cursor:pointer; color:var(--muted); }
.question { font-size:19px; font-weight:600; margin:10px 0 6px; line-height:1.4; }
.choices { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.choices button { padding:8px 14px; border-radius:4px; border:1px solid var(--line); background:var(--soft); color:var(--fg); text-align:left; max-width:520px; }
.choices button.yes { border-color:var(--ok); }
.choices button.unclear { border-style:dashed; color:var(--muted); } .choices button.no { border-color:var(--bad); }
.choices a.button.neutral { border-color:var(--line); font-weight:normal; border-style:dashed; }
.choices a.button { display:inline-block; padding:8px 14px; border-radius:4px; border:1px solid var(--ok); background:var(--soft); color:var(--fg); text-decoration:none; font-weight:600; }
.choices a.button small { display:block; color:var(--muted); font-weight:normal; }
.choices button small { display:block; color:var(--muted); font-weight:normal; }
.flow { max-width:900px; }
.flow p { margin:4px 0; padding:2px 10px; white-space:pre-wrap; }
.flow p.in-p { border-left:5px solid var(--accent); }
.flow p.in-o { border-left:5px dashed var(--warn); }
.flow p.ctx { color:var(--muted); border-left:5px solid transparent; }
.flow .mk { font-size:13px; font-weight:600; color:var(--accent); margin:8px 0 2px; }
.flow .mk.end { color:var(--warn); }
.flow .mk.v0, .mk.v0 { color:#1f5f8b; } .flow .mk.v1, .mk.v1 { color:#b5651d; } .flow .mk.v2, .mk.v2 { color:#2e7d32; }
.flow .mk.v3, .mk.v3 { color:#8e24aa; } .flow .mk.v4, .mk.v4 { color:#c62828; } .flow .mk.all { color:var(--fg); }
.inline-mk { display:inline; font-size:16px; }
.flow .mk.ctxl { color:var(--muted); font-weight:normal; font-style:italic; }
.flow .mk.heading { font-size:15px; color:var(--fg); border-top:1px solid var(--line); padding-top:6px; }
.flow .pg { font-size:12px; color:var(--muted); text-align:center; margin:10px 0 4px; }
.flow .num { font-weight:600; margin-right:4px; }
.flow form.inline button { font-size:11px; padding:0 6px; margin-left:6px; }
mark { background:var(--diff); color:inherit; padding:0 2px; }
.progress { font-size:14px; }
.layer { border-left:6px solid var(--line); }
.layer-document { border-left-color:#1f5f8b; } .layer-logical { border-left-color:#2e7d32; }
.layer-document h2 { color:#1f5f8b; } .layer-logical h2 { color:#2e7d32; }
.focusbox h2.ft { margin-top:2px; }
ul.dtree { list-style:none; padding-left:16px; margin:2px 0 6px; border-left:1px dotted var(--line); }
ul.dtree li.ti { margin:3px 0; } ul.dtree li.focus > a, ul.dtree li.focus > details > summary > a { font-weight:700; background:var(--diff); }
.tg-title { margin-top:6px; text-transform:lowercase; }
.xl a { color:#b5651d; }
.tabs > input[type=radio] { position:absolute; opacity:0; width:1px; height:1px; }
.tabs .tabl { display:inline-block; padding:6px 11px; margin-right:3px; font-size:14.5px; white-space:nowrap; cursor:pointer; border:1px solid var(--line); border-bottom:none; border-radius:4px 6px 0 0; background:var(--soft); }
.tabs .tabl.lay-document { border-top:4px solid #1f5f8b; } .tabs .tabl.lay-logical { border-top:4px solid #2e7d32; }
.tabs .tabp { display:none; border:1px solid var(--line); padding:8px 12px; margin-top:-1px; }
.tabs > input:focus-visible + label { outline:2px solid var(--accent); }
.leaf { white-space:pre-wrap; margin:4px 0 8px 4px; padding:4px 8px; background:var(--soft); border-radius:4px; font-size:14px; }
.preview .pg-wrap { margin:0 0 14px; }
.preview .pg { position:relative; border:1px solid var(--line); background:#fff; }
.preview .pg img { display:block; width:100%; height:auto; }
.preview .ov { position:absolute; }
.preview .ov.on { outline:2px solid #1f5f8b; background:rgba(31,95,139,.18); }
.preview .ov.on.lay-logical { outline-color:#2e7d32; background:rgba(46,125,50,.18); }
.preview .vl { position:absolute; width:4px; border-radius:2px; background:#00838f; }
.preview .vl.vl-focus { width:7px; background:#1f5f8b; } .preview .vl.vl-focus.lay-logical { background:#2e7d32; }
.tg .preview .ov.mm, .tg .preview .vl.mm { display:none; }
.leaf.lined { border-left:5px solid #00838f; }
.badge.diffb { color:#b5651d; border-color:#b5651d; }
.preview .vl.vl-sel { width:5px; }
.preview .vm { position:absolute; transform:translateX(-2px); font-size:10px; font-weight:700; white-space:nowrap; background:rgba(255,255,255,.85); padding:0 3px; border-radius:2px; pointer-events:none; }
.selbar button.nojs { font-size:12px; }
.lg { margin-right:10px; } .lgsw { display:inline-block; width:4px; height:12px; margin-right:4px; vertical-align:middle; }
.preview .ov.hov { outline:2px dashed #d9822b; background:rgba(217,130,43,.22); }
.flow p.u.hov { background:rgba(217,130,43,.18); box-shadow:inset 3px 0 0 #d9822b; }
.split { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 3fr); gap:20px; align-items:start; }
.split > .left { min-width:0; }
.split > .left { height:calc(100vh - 150px); overflow-y:auto; padding-right:10px; }
.split > .right { min-width:0; height:calc(100vh - 150px); overflow-y:auto; border-left:3px solid var(--line); padding-left:14px; }
.split.resizable { grid-template-columns:var(--split-left, minmax(0, 2fr)) 14px minmax(0, 3fr); gap:0; }
.split.resizable > .right { border-left:none; }
.split.dragging { user-select:none; cursor:col-resize; }
.split-handle { position:relative; height:calc(100vh - 150px); cursor:col-resize; touch-action:none; }
.split-handle::before { content:""; position:absolute; left:5px; top:0; bottom:0; width:3px; border-radius:2px; background:var(--line); }
.split-handle:hover::before, .split-handle:focus-visible::before, .split.dragging .split-handle::before { background:var(--accent); width:4px; }
.split-handle:focus-visible { outline:none; }
@media (max-width: 900px) { .split, .split.resizable { grid-template-columns:1fr; } .split-handle { display:none; } .split > .left, .split > .right { height:auto; overflow:visible; border-left:none; padding-left:0; } }
.q3 p { margin:4px 0; } .q3 .ql { font-weight:600; color:var(--muted); margin-right:4px; }
.q3 p.question { font-size:18px; font-weight:600; }
.tg > input[type=checkbox] { position:absolute; opacity:0; width:1px; height:1px; }
.tg .tgl { display:inline-block; cursor:pointer; font-size:13px; padding:2px 9px; margin:2px 2px 6px 0; border:1px solid var(--line); border-radius:6px; }
.tg .tgl .sw { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:middle; }
.tg > input:focus-visible + label { outline:2px solid var(--accent); }
.tg .flow .mk.mm { display:none; }
.tg .flow p.u { display:flex; gap:6px; border-left:none; padding-left:0; }
.tg .flow p.u.ctx { color:var(--muted); }
.flow p.u .gut { display:flex; gap:2px; flex:0 0 auto; min-width:4px; align-self:stretch; }
.flow p.u .b { display:none; width:5px; border-radius:2px; }
.flow p.u .t { flex:1 1 auto; white-space:pre-wrap; }
.flow p.u.ocr-img .t { background:rgba(0,137,123,.08); border-radius:3px; }
.flow .adesc { margin:2px 0 8px 10px; padding:4px 8px; font-size:13px; font-style:italic; color:var(--muted); border-left:3px dotted var(--line); }
.flow .adesc .adl { font-style:normal; font-size:11px; text-transform:uppercase; letter-spacing:.03em; margin-right:4px; }
.flow p.u .ocrb { flex:0 0 auto; align-self:flex-start; font-size:11px; line-height:16px; color:var(--muted); border:1px dashed var(--line); border-radius:4px; padding:0 4px; margin-right:4px; white-space:nowrap; }

.rail { position:fixed; inset:0 auto 0 0; width:60px; z-index:40; display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 0; background:var(--rail); border-right:1px solid var(--line); }
.rail-logo { width:36px; height:36px; display:grid; place-items:center; border-radius:6px; background:var(--ink-btn); color:var(--on-ink); font-weight:700; text-decoration:none; margin-bottom:10px; }
.rail nav { display:flex; flex-direction:column; gap:4px; flex:1 1 auto; }
.rail-sep { display:block; width:24px; height:1px; margin:5px auto; background:var(--line); }
.rail-item, .rail-user > summary { position:relative; width:40px; height:40px; display:grid; place-items:center; border-radius:6px; color:var(--muted); text-decoration:none; }
.rail-item:hover, .rail-item:focus-visible { background:var(--soft); color:var(--fg); }
.rail-item[aria-current="page"] { background:var(--soft); color:var(--fg); }
.rail-item[aria-current="page"]::before { content:""; position:absolute; left:-10px; top:9px; bottom:9px; width:3px; border-radius:2px; background:var(--fg); }
.rail [data-tip]:hover::after, .rail [data-tip]:focus-visible::after { content:attr(data-tip); position:absolute; left:48px; top:50%; transform:translateY(-50%); white-space:nowrap; padding:4px 8px; border-radius:5px; background:var(--ink-btn); color:var(--on-ink); font-size:12px; font-weight:500; pointer-events:none; z-index:50; }
.rail-user { position:relative; }
.rail-user > summary { list-style:none; cursor:pointer; }
.rail-user > summary::-webkit-details-marker { display:none; }
.rail .av, .umenu-who .av { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:var(--on-accent); font-weight:700; font-size:13px; text-transform:uppercase; }
.rail-user .umenu-panel { position:absolute; left:50px; bottom:2px; min-width:250px; padding:6px; background:var(--bg); border:1px solid var(--line); border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.18); display:flex; flex-direction:column; }
.umenu-who { display:flex; align-items:center; gap:10px; padding:8px 10px; font-weight:600; }
.umenu-panel a { padding:8px 10px; border-radius:5px; color:var(--fg); text-decoration:none; font-size:14px; }
.umenu-panel a:hover, .umenu-panel a:focus-visible { background:var(--soft); }
.umenu-panel hr { border:none; border-top:1px solid var(--line); margin:6px 0; }
.umenu-tech { padding:2px 10px 4px; font-size:11px; color:var(--muted); }
.pagebar { position:sticky; top:0; z-index:20; display:flex; justify-content:flex-end; gap:8px; padding:8px 16px; background:var(--bg); border-bottom:1px solid var(--line); }
.tb-act { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:6px; border:1px solid var(--line); color:var(--fg); background:var(--bg); text-decoration:none; font-weight:600; font-size:13px; }
.tb-act:hover { background:var(--soft); }
.tb-act.on { background:var(--ink-btn); color:var(--on-ink); border-color:var(--ink-btn); }
@media (max-width:640px) { body { padding-left:52px; } .rail { width:52px; } }

/* Design snapshot from /home/michal/vo/src/vokb/viewer/templates/_catalog_css.html. Source read only. */
.cat-head { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.cat-search { display:flex; gap:6px; margin-left:auto; }
.cat-search input[type=search] { min-width:min(320px, 70vw); padding:6px 10px; border:1px solid var(--line); border-radius:5px; background:var(--bg); color:var(--fg); font:inherit; }
.cat-search button { padding:6px 14px; border-radius:5px; border:1px solid var(--ink-btn); background:var(--ink-btn); color:var(--on-ink); font:inherit; font-weight:600; cursor:pointer; }
.cat-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; margin:14px 0 16px; }
.cat-hero { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; margin:4px 0 6px; }
.cat-hero h1 { margin:0; font-size:26px; }
.cat-sub { margin:2px 0 0; color:var(--muted); font-size:14px; }
.cat-hero .cat-search { margin-left:auto; }
.cat-tile { position:relative; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center; padding:14px 16px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--fg); text-decoration:none; transition:border-color .12s, box-shadow .12s, transform .12s; }
.cat-tile .cat-mark { grid-row:1 / span 2; width:40px; height:40px; border-radius:5px; font-size:16px; }
.cat-tile:hover, .cat-tile:focus-visible { box-shadow:0 4px 14px rgba(0,0,0,.08); transform:translateY(-1px); }
.cat-tile:hover, .cat-tile:focus { border-color:var(--accent); }
.cat-tile .cat-n { font-size:28px; font-weight:700; color:var(--accent); line-height:1.1; }
.cat-tile .cat-l { font-weight:600; }
.cat-all { background:var(--bar); } .cat-all .cat-mark { background:var(--fg); color:var(--bg); }
.cat-years { overflow-x:auto; max-width:100%; }
.cat-years svg { display:block; }
.cat-years .cat-bar { fill:var(--accent); }
.cat-years .cat-hit { fill:transparent; }
.cat-years a:hover .cat-bar, .cat-years a:focus .cat-bar { fill:var(--fg); }
.cat-years .cat-num { fill:var(--fg); font-size:12px; font-weight:600; }
.cat-years .cat-yr { fill:var(--muted); font-size:12px; }
.cat-panel { border:1px solid var(--line); border-radius:6px; background:var(--bar); padding:12px 14px 14px; margin:0 0 16px; }
.cat-ph { display:flex; align-items:baseline; gap:10px; margin:0 0 10px; }
.cat-ph > span { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.cat-ph > a { margin-left:auto; font-size:13px; }
.cat-cols { display:grid; grid-template-columns:minmax(0, 2fr) minmax(260px, 1fr); gap:16px; align-items:start; }
@media (max-width:900px) { .cat-cols { grid-template-columns:1fr; } }
.cat-recent .cat-card { padding:8px 12px; }
.cat-dec { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.cat-dec a { display:grid; grid-template-columns:minmax(0, 1fr) 90px 30px; gap:8px; align-items:center; padding:4px 6px; border-radius:5px; color:var(--fg); text-decoration:none; font-size:14px; }
.cat-dec a:hover { background:var(--soft); }
.cat-dbar { height:8px; border-radius:5px; background:var(--soft); overflow:hidden; }
.cat-dbar span { display:block; height:100%; background:var(--accent); border-radius:5px; }
.cat-dn { text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
.cat-links { margin:10px 0 0; }
.cat-split { display:grid; grid-template-columns:minmax(230px, 290px) 1fr; gap:24px; align-items:start; }
@media (max-width:800px) { .cat-split { grid-template-columns:1fr; } }
.cat-facets { position:sticky; top:16px; max-height:calc(100vh - 32px); overflow:auto; border:1px solid var(--line); border-radius:6px; background:var(--bar); padding:6px 14px 10px; }
.cat-ftitle { margin:6px 0 2px; font-weight:700; font-size:15px; }
.cat-facets fieldset { border:none; border-top:1px solid var(--line); margin:0; padding:10px 0 8px; }
.cat-facets legend { font-weight:600; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:0 0 4px; }
.cat-facets label { display:flex; gap:8px; align-items:baseline; font-size:14px; margin:1px 0; padding:2px 6px; border-radius:5px; cursor:pointer; }
.cat-facets label:hover { background:var(--soft); }
.cat-facets input[type=checkbox] { accent-color:var(--accent); }
.cat-facets label.sub { margin-left:20px; font-size:13px; }
.cat-facets .cnt { margin-left:auto; min-width:24px; text-align:center; padding:0 6px; border-radius:5px; background:var(--bg); border:1px solid var(--line); color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.cat-facets label.zero { color:var(--muted); }
.cat-bar-top { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:4px 0 12px; font-size:14px; }
.cat-count { font-size:18px; font-weight:700; margin-right:6px; }
.cat-seg { display:inline-flex; border:1px solid var(--line); border-radius:5px; overflow:hidden; background:var(--bg); }
.cat-seg > a, .cat-seg > span { padding:4px 12px; font-size:13px; text-decoration:none; color:var(--fg); }
.cat-seg > a:hover { background:var(--soft); }
.cat-seg > .on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.cat-alt { margin-left:auto; font-size:13px; }
.cat-chip { display:inline-flex; gap:4px; align-items:center; padding:1px 8px; border-radius:5px; background:var(--accent-soft); color:var(--accent); font-size:13px; text-decoration:none; margin:0 4px 2px 0; }
.cat-rows { list-style:none; padding:0; margin:0; }
.cat-rows { display:flex; flex-direction:column; gap:8px; }
.cat-card { display:flex; gap:12px; align-items:flex-start; padding:10px 14px; border:1px solid var(--line); border-radius:6px; background:var(--bg); transition:border-color .12s, box-shadow .12s; }
.cat-card:hover { border-color:var(--accent); box-shadow:0 2px 10px rgba(0,0,0,.06); }
.cat-mark { flex:0 0 auto; width:32px; height:32px; border-radius:5px; display:grid; place-items:center; font-weight:700; font-size:14px; background:var(--accent-soft); color:var(--accent); }
.fam-kontrola .cat-mark { background:#EAF1F8; color:#1F5F8B; } .fam-rada_predseda .cat-mark { background:#F3ECF6; color:#6A3D7C; } .fam-metodika .cat-mark { background:#F6F0E4; color:#7A5A18; }
.cat-body { flex:1 1 auto; min-width:0; }
.cat-line1 { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.cat-title { text-decoration:none; color:var(--fg); }
.cat-title:hover .cat-num { text-decoration:underline; }
.cat-kind { color:var(--muted); font-size:14px; }
.cat-num { font-weight:700; font-size:15px; color:var(--accent); }
.cat-date { margin-left:auto; color:var(--muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cat-note { font-size:12px; color:var(--muted); font-style:italic; }
.cat-line2 { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:4px; font-size:13px; }
.cat-pill { padding:1px 9px; border-radius:5px; background:var(--soft); border:1px solid var(--line); color:var(--fg); }
.cat-pill.none { color:var(--muted); }
.cat-proc { color:var(--muted); }
.cat-case { padding:1px 9px; border-radius:5px; border:1px solid var(--accent); color:var(--accent); text-decoration:none; }
.cat-case:hover { background:var(--accent-soft); }
.cat-card.cat-out { opacity:.65; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fam-kontrola .cat-mark { background:#1D2C3A; color:#8CC0E8; } :root:not([data-theme="light"]) .fam-rada_predseda .cat-mark { background:#2E2234; color:#D2A8E2; } :root:not([data-theme="light"]) .fam-metodika .cat-mark { background:#33291A; color:#E4C27A; } }
.cat-group { border:1px solid var(--line); border-radius:6px; padding:8px 12px 12px; margin:10px 0; background:var(--bar); }
.cat-group > h3 { margin:4px 0; font-size:15px; }
.cat-pager { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0; font-size:14px; }
.cat-pager span.gap { border:none; } .cat-pager a, .cat-pager span { padding:4px 11px; border:1px solid var(--line); border-radius:5px; text-decoration:none; }
.cat-pager span.cur { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
.cat-yearsel { margin:0 0 16px; }
.cat-yrow { display:flex; gap:6px; align-items:stretch; width:100%; }
.cat-ycol { flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 2px; border-radius:5px; border:1px solid transparent; text-decoration:none; color:var(--fg); }
.cat-ycol:hover, .cat-ycol:focus-visible { background:var(--soft); }
.cat-ycol.on { border-color:var(--accent); background:var(--accent-soft); }
.cat-ycol.dim .cat-ybar span { opacity:.35; }
.cat-yn { font-size:12px; font-weight:600; }
.cat-ybar { position:relative; width:100%; max-width:44px; height:110px; display:flex; align-items:flex-end; }
.cat-ybar span { display:block; width:100%; background:var(--accent); border-radius:2px 2px 0 0; min-height:2px; }
.cat-yl { font-size:12px; color:var(--muted); white-space:nowrap; }
.cat-ynd .cat-yl { font-size:11px; }
@media (max-width:640px) { .cat-yl { font-size:10px; } .cat-yn { font-size:10px; } }

/* EVVOO application and login adaptations of the unchanged VO design snapshot. */
:root { color-scheme:light dark; }
.ev-pagebar { min-height:52px; align-items:center; gap:12px; }
.ev-brand { color:var(--fg); font-weight:700; text-decoration:none; letter-spacing:.01em; }
.ev-product { color:var(--muted); font-size:13px; margin-right:auto; }
.ev-session { color:var(--muted); font-size:13px; }
.ev-main { max-width:1320px; padding:28px 32px 40px; }
.ev-main .cat-hero { margin-bottom:18px; }
.ev-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:24px; }
.ev-tiles .cat-sub { font-size:13px; }
.ev-main .cat-panel p { margin:6px 0 16px; }
.ev-card-title { margin:0 0 6px; font-size:16px; }
.ev-main .cat-card { padding:18px; }
.ev-main .cat-panel > .cat-ph { margin-bottom:14px; }
.ev-text-link { font-size:14px; font-weight:600; text-decoration:none; }
.ev-text-link:hover { text-decoration:underline; }
.ev-technical { margin-top:8px; }
.ev-technical summary { font-size:13px; }
.ev-technical code { overflow-wrap:anywhere; }
.ev-footer { color:var(--muted); font-size:12px; padding:8px 32px 24px; }
.ev-account { display:flex; align-items:center; gap:9px; margin:0 0 24px; font-size:14px; flex-wrap:wrap; }
.ev-account strong { font-weight:600; overflow-wrap:anywhere; }
.ev-status-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.ev-steps { list-style:none; padding:0; margin:0 0 20px; }
.ev-steps li { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.ev-steps li:first-child { padding-top:0; }
.ev-steps li:last-child { border-bottom:0; padding-bottom:0; }
.ev-step-num { width:26px; height:26px; border:1px solid var(--line); border-radius:5px; display:grid; place-items:center; font-size:12px; font-weight:600; flex-shrink:0; }
.ev-main .ev-steps p { margin:2px 0 0; font-size:14px; }
.ev-skip { position:fixed; z-index:100; top:8px; left:76px; padding:8px 12px; background:var(--bg); border:1px solid var(--accent); border-radius:5px; transform:translateY(-200%); }
.ev-skip:focus { transform:translateY(0); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

/* Keep Keycloak's native forms, validation, CSRF and consent controls intact. */
.login-pf { background:var(--bg); }
.login-pf body { background:var(--bg); color:var(--fg); min-height:100vh; margin:0; padding:76px 24px 32px 84px; font:15px/1.5 ui-sans-serif,-apple-system,"Segoe UI",Inter,system-ui,sans-serif; }
.login-pf-page { width:100%; padding:0; margin:0; }
.login-pf-page #kc-header { display:none; }
.login-pf-page .card-pf { background:var(--bg); color:var(--fg); border:1px solid var(--line); border-radius:6px; box-shadow:none; width:100%; max-width:480px; padding:24px; margin:40px auto 0; }
.login-pf-page .login-pf-header { text-align:left; margin:0 0 22px; }
.login-pf-page #kc-page-title { font-size:22px; line-height:1.35; font-weight:600; color:var(--fg); margin:0; padding:0; }
.login-pf-page #kc-page-title p { margin:0; }
.login-pf-page #kc-content-wrapper { margin:0; padding:0; }
.login-pf-page .form-horizontal .form-group { margin:0 0 18px; }
.login-pf-page .card-pf [class*="col-"] { float:none; width:100%; padding-left:0; padding-right:0; }
.login-pf-page .card-pf label { color:var(--fg); font:500 14px/1.5 ui-sans-serif,-apple-system,"Segoe UI",Inter,system-ui,sans-serif; margin-bottom:6px; }
.login-pf-page .card-pf input:not([type=submit]):not([type=checkbox]):not([type=hidden]),
.login-pf-page .card-pf select, .login-pf-page .card-pf textarea {
  background:var(--bg); color:var(--fg); border:1px solid var(--line); border-radius:5px; box-shadow:none; min-height:42px; padding:9px 11px; font:inherit; font-size:16px;
}
.login-pf-page .card-pf input[aria-invalid=true] { border-color:var(--bad); }
.login-pf-page .card-pf .pf-c-input-group { display:flex; }
.login-pf-page .card-pf .pf-c-input-group input { min-width:0; border-top-right-radius:0; border-bottom-right-radius:0; }
.login-pf-page .card-pf [data-password-toggle] { color:var(--muted); background:var(--bar); border:1px solid var(--line); border-left:0; border-radius:0 5px 5px 0; min-width:42px; }
.login-pf-page .card-pf .pf-c-button::after { border:0; }
.login-pf-page .card-pf input[type=checkbox] { accent-color:var(--accent); }
.login-pf-page .card-pf .pf-c-button { font:600 14px/1.5 ui-sans-serif,-apple-system,"Segoe UI",Inter,system-ui,sans-serif; border-radius:5px; padding:9px 16px; min-height:40px; }
.login-pf-page .card-pf .pf-m-primary { background:var(--ink-btn); color:var(--on-ink); border:1px solid var(--ink-btn); }
.login-pf-page .card-pf .btn-default { background:var(--bg); color:var(--fg); border:1px solid var(--line); }
.login-pf-page .card-pf .pf-m-primary:hover { opacity:.88; }
.login-pf-page .card-pf .btn-default:hover { background:var(--soft); }
.login-pf-page #kc-form-buttons { margin-top:20px; }
.login-pf-page .card-pf input[name=accept] { margin-right:8px; }
.login-pf-page #kc-form-options { margin:0; }
.login-pf-page #kc-form-options:empty { display:none; }
.login-pf-page #kc-oauth h3 { margin:0 0 12px; color:var(--muted); font-size:14px; font-weight:400; }
.login-pf-page #kc-oauth ul { list-style:none; padding:0; margin:0 0 18px; border:1px solid var(--line); border-radius:5px; }
.login-pf-page #kc-oauth li { padding:10px 12px; border-bottom:1px solid var(--line); color:var(--fg); font-size:14px; }
.login-pf-page #kc-oauth li:last-child { border-bottom:0; }
.login-pf-page #kc-oauth li::before { content:"✓"; color:var(--accent); font-weight:600; margin-right:9px; }
.login-pf-page .card-pf .pf-c-alert { padding:12px; border:1px solid var(--line); border-radius:5px; background:var(--bar); color:var(--fg); margin-bottom:18px; box-shadow:none; }
.login-pf-page .card-pf .pf-c-alert__title { color:var(--fg); font:inherit; font-size:14px; }
.login-pf-page .card-pf .alert-error, .login-pf-page .card-pf .alert-danger { border-color:var(--bad); }
.login-pf-page .card-pf .pf-m-error { color:var(--bad); font-size:13px; }
.login-pf-page .card-pf .subtitle, .login-pf-page #kc-info-wrapper { color:var(--muted); font-size:13px; }
.login-pf-page #kc-info-wrapper { background:var(--bar); border-radius:5px; padding:12px; }
.login-pf-page #kc-locale { position:relative; float:right; top:auto; right:auto; }
.login-pf-page #kc-current-locale-link { color:var(--muted); background:var(--bg); border:1px solid var(--line); border-radius:4px; padding:2px 6px; font-size:12px; }
.login-pf-page .ev-auth-pagebar { position:fixed; top:0; left:60px; right:0; min-height:52px; z-index:30; }
.ev-auth-note { color:var(--muted); border-top:1px solid var(--line); margin:22px 0 0; padding-top:14px; font-size:12px; }
.ev-auth-note a { color:var(--muted); text-decoration:none; }
.ev-auth-note a:hover { color:var(--accent); }
.login-pf-page a { color:var(--accent); }
.login-pf-page .rail a { color:var(--muted); }
.login-pf-page .rail .rail-logo { color:var(--on-ink); }
.login-pf-page .ev-brand { color:var(--fg); }
@media (max-width:800px) { .ev-tiles { grid-template-columns:1fr; gap:8px; } }
@media (max-width:640px) {
  .ev-main { padding:22px 16px 30px; }
  .ev-pagebar { padding:8px 12px; gap:8px; }
  .ev-product { font-size:12px; }
  .ev-footer { padding:8px 16px 20px; }
  .ev-session { display:none; }
  .login-pf body { padding:68px 14px 24px 66px; }
  .login-pf-page .card-pf { padding:20px 16px; margin-top:20px; }
  .login-pf-page .ev-auth-pagebar { left:52px; }
  .login-pf-page .card-pf input[name=accept], .login-pf-page .card-pf input[name=cancel] { width:100%; margin:0 0 8px; }
}
