/* Search UI shared byte for byte by Р„Р”Р РЎР  neo and VRP (docs/parity). Rules: .claude/skills/edrsr-ui (vanilla CSS, grid,
   WCAG 2.2 AA). Domain blocks (VRP votes, semantic search, people menus) use classes the other system never renders;
   layout differences are opt-in modifiers on the containers ([data-qf], [data-cols]).
   Three themes on one set of tokens (agreed 2026-10-25, Р 2): light (navy, default), dark, warm (brown / beige / peach).
   <html data-theme="light|dark|warm"> from the В«a11yВ» cookie; without it вЂ” the system preference (light or dark).
   Every text/background pair is checked в‰Ґ 4.5:1, borders and icons в‰Ґ 3:1, in each theme.
   --brand = accent as text/lines on the page; --fill = filled surfaces under --on-brand text (buttons, table title, rail). */
:root{
  --bg:#fff;--bg-soft:#f4f6f9;--ink:#1a2433;--ink-2:#3d4756;--muted:#586374;
  --line:#dfe4ea;--field:#7b8794;--rb:#c9d1da;
  --brand:#1f4e79;--brand-hover:#163b5c;--fill:#1f4e79;--fill-hover:#163b5c;--on-brand:#fff;--rail-bg:#1f4e79;--logo:#1b4b8f;
  --danger:#f96060;--danger-hover:#e04848;   /* light coral red, agreed; white Г— on it 3.05:1 = icon minimum (WCAG 1.4.11) */
  --hl:#d4e8f8;--cite:#cfe9d6;--cite-line:#2e7d4f;--chip:#eef2f6;--focus:#1f4e79;--ok:#1d6b45;--ok-hover:#155336;--pdf:#b42318;--pdf-hover:#912018;--pdf-ink:#b42318;--xlsx-ink:#1d6b45;--ok-bg:#e3f3ea;--ok-ink:#1d6b45;--warn:#7a4a00;--warn-bg:#fdf0dc;
  --r:6px;--wrap:80rem;
  /* В«chosenВ» (checked records, counters): orange, white digits on it 5.0:1; as text on the page --pick-ink */
  --pick:#b4530f;--pick-ink:#b4530f;
  /* band behind the search form; menu buttons and the В«eyeВ» are clearly darker than the band */
  --band:#e4edf6;--band-line:#cfdcea;--soft-btn:#c4d5e9;--soft-btn-hover:#b0c6e0;--peek-line:#b9cbe0;
  --snip-bg:#fdf9ec;--snip-line:#e6dcbc;--src-bg:#fdf6ef;--proto:#b42318;--shadow-rgb:26 36 51;
  /* filter types of the search-field suggestions and tokens: colour (text / frame в‰Ґ 4.5:1) + a faint tint behind */
  --k-court:#1f4e79;--k-court-bg:#e8f0f8;--k-judge:#9b2c5a;--k-judge-bg:#faecf2;--k-cat:#7a4a00;--k-cat-bg:#fbf1df;
  --k-vr:#5b3a9a;--k-vr-bg:#f1ecf9;--k-law:#1d6b45;--k-law-bg:#e5f4eb;--k-num:#4a5566;--k-num-bg:#eef0f3;
  /* query builder groups: РўРђ / РђР‘Рћ / РќР• РњР†РЎРўРРўР¬ (text, frame and toggles в‰Ґ 4.5:1 on the tint) */
  --qb-and:#1f4e79;--qb-and-bg:#e3eefa;--qb-or:#8a4300;--qb-or-bg:#fdecd9;--qb-not:#a3242f;--qb-not-bg:#fbe4e6;
  --qb-add:#5e8a72;--qb-add-hover:#4c7560;   /* В«+В» of a new group: dusty green, white + 4.1:1 */
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
/* Dark: deep blue-grey, light-blue accent; filled surfaces mid blue (white text 5.6:1). Shown when chosen, or when
   the system prefers dark and nothing is chosen. */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#12171e;--bg-soft:#19202a;--ink:#e6ebf2;--ink-2:#c2cbd7;--muted:#97a3b3;--line:#2b3542;--field:#6e7b8c;--rb:#3a4554;
  --brand:#8dbdf0;--brand-hover:#b0d2f5;--fill:#3a6aa3;--fill-hover:#325d90;--on-brand:#fff;--rail-bg:#1d2a3a;--logo:#8dbdf0;
  --hl:#33506e;--cite:#24503a;--cite-line:#6fcf97;--chip:#232c38;--focus:#8dbdf0;--ok:#1d6b45;--ok-hover:#24804f;--pdf:#b42318;--pdf-hover:#912018;--pdf-ink:#f08a7e;--xlsx-ink:#6fcf97;--ok-bg:#16301f;--ok-ink:#6fcf97;--warn:#f0b866;--warn-bg:#3a2a10;
  --pick:#b4530f;--pick-ink:#f0a468;
  --band:#1b2430;--band-line:#2b3542;--soft-btn:#2a3c52;--soft-btn-hover:#34496a;--peek-line:#3d5068;
  --snip-bg:#24211a;--snip-line:#3d3626;--src-bg:#2a2119;--proto:#b42318;--shadow-rgb:0 0 0;
  --k-court:#8dbdf0;--k-court-bg:#1b2a3b;--k-judge:#f09ab9;--k-judge-bg:#36202a;--k-cat:#f0b866;--k-cat-bg:#2f2513;
  --k-vr:#c3a6f2;--k-vr-bg:#272038;--k-law:#6fcf97;--k-law-bg:#16301f;--k-num:#b4bfcc;--k-num-bg:#222932;
  --qb-and:#8dbdf0;--qb-and-bg:#1b2a3b;--qb-or:#f0a468;--qb-or-bg:#3a2614;--qb-not:#f29b9b;--qb-not-bg:#3d1d21;--qb-add:#4f7d64;--qb-add-hover:#5f8f75;
}
@media (prefers-color-scheme:dark){
  html:not([data-theme]){
    color-scheme:dark;
    --bg:#12171e;--bg-soft:#19202a;--ink:#e6ebf2;--ink-2:#c2cbd7;--muted:#97a3b3;--line:#2b3542;--field:#6e7b8c;--rb:#3a4554;
    --brand:#8dbdf0;--brand-hover:#b0d2f5;--fill:#3a6aa3;--fill-hover:#325d90;--on-brand:#fff;--rail-bg:#1d2a3a;--logo:#8dbdf0;
    --hl:#33506e;--cite:#24503a;--cite-line:#6fcf97;--chip:#232c38;--focus:#8dbdf0;--ok:#1d6b45;--ok-hover:#24804f;--pdf:#b42318;--pdf-hover:#912018;--pdf-ink:#f08a7e;--xlsx-ink:#6fcf97;--ok-bg:#16301f;--ok-ink:#6fcf97;--warn:#f0b866;--warn-bg:#3a2a10;
    --pick:#b4530f;--pick-ink:#f0a468;
    --band:#1b2430;--band-line:#2b3542;--soft-btn:#2a3c52;--soft-btn-hover:#34496a;--peek-line:#3d5068;
    --snip-bg:#24211a;--snip-line:#3d3626;--src-bg:#2a2119;--proto:#b42318;--shadow-rgb:0 0 0;
    --k-court:#8dbdf0;--k-court-bg:#1b2a3b;--k-judge:#f09ab9;--k-judge-bg:#36202a;--k-cat:#f0b866;--k-cat-bg:#2f2513;
    --k-vr:#c3a6f2;--k-vr-bg:#272038;--k-law:#6fcf97;--k-law-bg:#16301f;--k-num:#b4bfcc;--k-num-bg:#222932;
    --qb-and:#8dbdf0;--qb-and-bg:#1b2a3b;--qb-or:#f0a468;--qb-or-bg:#3a2614;--qb-not:#f29b9b;--qb-not-bg:#3d1d21;--qb-add:#4f7d64;--qb-add-hover:#5f8f75;
  }
}
/* Warm (the designer's colours): brown #48332d as the accent and fill, peach #fbe9d4 band, beige #dddcd7 buttons,
   warm off-white page. */
html[data-theme="warm"]{
  color-scheme:light;
  --bg:#fdfaf6;--bg-soft:#f6efe6;--ink:#2b211d;--ink-2:#4b3f39;--muted:#6a5b53;--line:#e8ddd0;--field:#8a7769;--rb:#d9cbbb;
  --brand:#48332d;--brand-hover:#33241f;--fill:#48332d;--fill-hover:#33241f;--on-brand:#fff;--rail-bg:#48332d;--logo:#48332d;
  --hl:#f3d3ae;--cite:#dce8cf;--cite-line:#4f7a35;--chip:#f1e8dc;--focus:#48332d;--ok:#1d6b45;--ok-hover:#155336;--pdf:#b42318;--pdf-hover:#912018;--pdf-ink:#b42318;--xlsx-ink:#1d6b45;--ok-bg:#e5efe4;--ok-ink:#1d6b45;--warn:#7a4a00;--warn-bg:#fdf0dc;
  --pick:#b4530f;--pick-ink:#a84b0c;
  --band:#f1e8dc;--band-line:#e2d5c4;--soft-btn:#e6d9c8;--soft-btn-hover:#dacab5;--peek-line:#c9c2b8;
  --snip-bg:#fbf2e6;--snip-line:#ead9c0;--src-bg:#f8ece0;--proto:#b42318;--shadow-rgb:72 51 45;
}
*{box-sizing:border-box}
html{color-scheme:light;scroll-padding-top:1rem;scrollbar-gutter:stable}   /* the page keeps its width when the viewer stops its scroll */
@media (prefers-color-scheme:dark){html:not([data-theme]){color-scheme:dark}}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}   /* В«РќР°РіРѕСЂСѓВ» glides */
body{margin:0;background:var(--bg);color:var(--ink);line-height:1.5;font-size:1rem;min-height:100vh;overflow-x:clip}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 clamp(1rem,3vw,2rem)}
a{color:var(--brand)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-999px;top:.5rem;z-index:10;padding:.6rem 1rem;background:var(--fill);color:var(--on-brand);border-radius:var(--r)}
.skip:focus{left:1rem}

/* Page grid (reference shot): full width, navy rail | app (header, main, footer).
   Main gutter --gx is shared by header and content so the brand lines up with the filter column. */
:root{--gx:clamp(1rem,2.5vw,2.5rem);--rail:3.5rem}
.shell{display:grid;grid-template-columns:minmax(0,1fr);min-height:100vh}
.rail{display:none}
.app{display:grid;grid-template-rows:auto 1fr auto;min-width:0}
.main{--main-pt:2rem;padding:var(--main-pt) var(--gx) 0}   /* air above the main search form */
@media (min-width:60rem){
  .shell{grid-template-columns:var(--rail) minmax(0,1fr)}
  .rail{display:flex;flex-direction:column;align-items:center;gap:0;padding-top:var(--top-h);background:var(--rail-bg)}
  /* В«РќР°РіРѕСЂСѓВ»: sticks to the bottom of the window inside the rail; appears once the page is scrolled
     (scroll-driven animation, no JS; without support it is simply always there) */
  /* В«РџР РћРўРћРўРРџВ» label: white on red, read bottom-to-top (vertical, turned -90В°); red #b42318 = 6.2:1 for the text */
  /* at the bottom of the rail, 200px above the window's bottom edge (sticky), red across the full rail width */
  /* fixed in the rail, 10% of the window height above its bottom edge, full rail width; smaller, regular weight */
  .rail-proto{position:fixed;left:0;bottom:10vh;width:var(--rail);display:flex;align-items:center;justify-content:center;padding:.9rem 0;border-radius:0;background:var(--proto);color:#fff;font-size:calc(var(--rail) * .5);font-weight:400;letter-spacing:.08em;text-transform:uppercase;line-height:1;writing-mode:vertical-rl;transform:rotate(180deg);user-select:none}
  .rail-top{position:sticky;bottom:0;margin-top:auto;color:var(--on-brand)}   /* pushed to the rail's end, sticks to the window bottom */
  .rail-top:hover{background:rgba(255,255,255,.15)}
  @supports (animation-timeline:scroll()){
    .rail-top{animation:rail-top linear both;animation-timeline:scroll(root);animation-range:0 12rem}
    @keyframes rail-top{from{opacity:0;visibility:hidden}to{opacity:1;visibility:visible}}
  }
  .rail-i{display:grid;place-items:center;width:var(--rail);height:2.75rem;color:var(--on-brand)}
  .rail-i:not(.on):not(.rail-top){background:rgb(255 255 255 / .08)}
  .rail-i:not(.on):not(.rail-top):hover{background:rgb(255 255 255 / .16)}
  .rail-i.on{background:var(--band);color:var(--brand)}   /* same tint as the band behind the search form */
  .rail-i:focus-visible{outline:3px solid var(--on-brand);outline-offset:-5px}
  .rail-i.on:focus-visible{outline-color:var(--brand)}
  .rail-i[hidden]{display:none!important}
}

/* Header */
/* compact header: logo + name only (the working tabs are gone); its height = the rail's top padding (--top-h) */
:root{--top-h:4.75rem}
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.25rem 2rem;min-height:var(--top-h);padding:.55rem var(--gx);border-bottom:1px solid var(--line)}
/* Brand: logo | "Р„Р”Р РЎР " over the full name (upper case via CSS, so screen readers read normal words) */
.brand{display:flex;align-items:center;gap:.9rem;color:inherit;text-decoration:none}
/* Keep the SVG's brand colours, including its yellow details. */
.logo{display:block;flex:none;width:auto;max-width:3.6rem;height:3.4rem;object-fit:contain}   /* each system's SVG keeps its own proportions */
.brand-t{display:grid;gap:.4rem;padding-left:.9rem;border-left:1px solid var(--line)}   /* a little air between В«Р„Р”Р РЎР В» and the full name */
.mark{font-weight:800;font-size:1.35rem;line-height:1;letter-spacing:.04em;color:var(--brand)}
h1{margin:0;font-size:.72rem;line-height:1.25;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}

/* Top menu: information pages (Р—Р°РєРѕРЅРѕРґР°РІСЃС‚РІРѕ, РљРѕРЅС‚Р°РєС‚Рё, РџСЂР°РІРёР»Р°, Р”РѕРїРѕРјРѕРіР°, Р—РјС–РЅРµРЅС– РЅР°Р·РІРё СЃСѓРґС–РІ) */
/* Accessibility settings (text size, black-and-white): applied on <html>; everything is in rem, so the root size
   scales text, fields and menus together. Grayscale keeps contrast (luminance is preserved). */
html[data-zoom="90"]{font-size:90%}
html[data-zoom="115"]{font-size:115%}
html[data-zoom="130"]{font-size:130%}
html[data-zoom="150"]{font-size:150%}
html[data-bw="1"]{filter:grayscale(1)}
/* a low window: the fixed В«РџР РћРўРћРўРРџВ» label would cover the rail's search item */
@media (max-height:34rem){.rail-proto{display:none}}
/* header right side: information menu + the accessibility block */
.tbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem 1.5rem}
.tbar .themes{margin-left:-1rem}   /* the theme switch sits next to the a11y block */
/* The bar is a popover (no JS): on wide screens it simply stands in the header (the UA popover look is reset); on
   narrower ones the в° button (popovertarget) opens it as a panel under the header, Esc / a tap outside close it. */
.tbar{position:static;inset:auto;margin:0;padding:0;border:0;background:none;color:inherit;overflow:visible;width:auto;height:auto}
.burger{display:none;place-items:center;width:2.75rem;height:2.75rem;margin-left:auto;padding:0;border:1px solid var(--rb);border-radius:4px;background:var(--bg);color:var(--brand);cursor:pointer}
.burger:hover{background:var(--soft-btn)}
.burger:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (max-width:64rem){
  /* the header has a fixed height here, so the menu below it starts exactly at its bottom edge */
  :root{--top-m:3.5rem}
  .top{flex-wrap:nowrap!important;gap:.5rem!important;padding:.4rem var(--gx)!important;min-height:0!important;height:var(--top-m);box-sizing:border-box}
  .brand{min-width:0!important;flex:1 1 auto!important;gap:.5rem!important}
  .logo{height:2.5rem!important;flex:none!important}
  .brand-t{padding-left:.5rem!important;min-width:0!important;gap:.15rem!important}
  .brand-t h1{font-size:.58rem!important;line-height:1.2!important;white-space:normal!important}
  .brand-t .mark{font-size:1.05rem!important;line-height:1.1!important}
  .burger{display:grid;flex:none!important;margin-left:auto!important;width:2.4rem!important;height:2.4rem!important}
  .tbar:not(:popover-open){display:none}
  .tbar:popover-open{position:fixed;inset:var(--top-h) 0 auto auto;display:flex;flex-direction:column;align-items:flex-start;gap:1.25rem;width:min(22rem,100vw);max-height:calc(100dvh - var(--top-h));overflow:auto;padding:1.25rem;border:1px solid var(--rb);border-right:0;background:var(--bg);box-shadow:0 10px 28px rgb(var(--shadow-rgb) / .2)}
  .tbar:popover-open .tnav ul{flex-direction:column;align-items:flex-start;gap:.9rem}
  .tbar:popover-open .themes{margin-left:0}
  /* the в° menu: the whole width under the header down to the bottom of the screen, no gap; no tour button on phones;
     text size and theme buttons on one row, the information links and the languages on rows of their own */
  .tbar:popover-open{inset:var(--top-m) 0 0 0;width:auto;max-height:none;margin:0;flex-flow:row wrap;align-content:flex-start;align-items:center;gap:1.25rem .75rem;padding:1.25rem var(--gx) 2rem;border:0;border-radius:0;box-shadow:none}
  .tbar:popover-open{justify-content:space-between}
  .tbar:popover-open>.tnav{flex:0 0 100%;order:0}
  .tbar:popover-open>:is(.a11y,.themes){order:1;margin:0}   /* text size on the left, themes on the right */
  .tbar:popover-open::before{content:"";flex:0 0 100%;order:2;height:0;margin-top:-1.25rem}   /* a line break: the languages below */
  .tbar:popover-open>.langs{flex:0 0 auto;order:3}   /* only as wide as its buttons, at the left */
  .tbar:popover-open .tour-open{display:none}
  .top:has(.tbar:popover-open) .burger{background:var(--fill);color:var(--on-brand)}   /* the browser keeps aria-expanded itself */
}
/* PC: the bar fills the space after the brand; the info menu sits centred between the title and the buttons */
@media (min-width:64.01rem){
  /* one row whatever the language: a long title (fr, de) wraps inside the brand, which gives way first */
  .top{flex-wrap:nowrap}
  .brand{flex:0 4 auto;min-width:0}
  .brand-t{min-width:0}
  .tbar{flex:1 1 auto;min-width:0}
  .tbar .tnav{margin-inline:auto}
}
.themes .a11y-b{min-width:2.1rem}
/* Language: on the desktop a dropdown that shows only the current code (details[data-dd]); the plain buttons stay in
   the phone menu (в°). The list names each language in itself, its code on the right. */
.lang-dd{position:relative;display:none}
@media (min-width:64.01rem){.tbar .langs{display:none}.lang-dd{display:block}}
.lang-cur{display:flex;align-items:center;gap:.4rem;min-height:2.25rem;padding:0 .7rem;border:1px solid var(--fill);border-radius:4px;background:var(--fill);color:var(--on-brand);font-size:.9rem;font-weight:600;line-height:1;cursor:pointer;list-style:none;user-select:none}
.lang-cur::-webkit-details-marker{display:none}
.lang-cur::after{content:"";width:.4rem;height:.4rem;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-.12rem) rotate(45deg)}
.lang-dd[open]>.lang-cur::after{transform:translateY(.12rem) rotate(-135deg)}
.lang-cur:hover{background:var(--fill-hover);border-color:var(--fill-hover)}
.lang-cur:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.lang-list{position:absolute;right:0;top:calc(100% + .35rem);z-index:60;min-width:12rem;margin:0;padding:.3rem 0;list-style:none;background:var(--bg);border:1px solid var(--rb);border-radius:6px;box-shadow:0 10px 28px rgb(var(--shadow-rgb) / .16)}
.lang-list a{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem .9rem;color:var(--ink);font-size:.9rem;text-decoration:none}
.lang-list a span{color:var(--muted);font-size:.78rem;font-weight:600}
.lang-list a:hover{background:var(--chip);color:var(--brand)}
.lang-list a:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.lang-list a[aria-current]{font-weight:700;color:var(--brand)}
.a11y{display:flex;align-items:stretch;border:1px solid var(--rb);border-radius:4px;overflow:hidden}
.a11y-b{display:grid;place-items:center;min-width:2.25rem;min-height:2.25rem;padding:0 .5rem;border-left:1px solid var(--rb);background:var(--bg);color:var(--brand);font-size:.9rem;font-weight:600;line-height:1;text-decoration:none}
.a11y-b:first-child{border-left:0}
.a11y-b.a-s{font-size:.78rem}
.a11y-b.a-l{font-size:1.05rem}
.a11y-b.a-bw{font-size:.8rem;letter-spacing:.02em}
a.a11y-b:hover{background:var(--soft-btn)}
.a11y-b[aria-disabled="true"]{color:var(--muted);background:var(--bg-soft);cursor:default}
.a11y-b[aria-current="true"]{background:var(--fill);color:var(--on-brand)}
.a11y-b:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.tnav ul{display:flex;flex-wrap:wrap;gap:.15rem 1.4rem;margin:0;padding:0;list-style:none;font-size:.88rem}
.tnav a{display:inline-block;padding:.35rem 0;color:var(--ink-2);text-decoration:none;border-bottom:2px solid transparent}
.tnav a:hover{color:var(--brand);border-bottom-color:var(--rb)}
.tnav a[aria-current="page"]{color:var(--brand);font-weight:600;border-bottom-color:var(--brand)}
/* Information pages: one reading column */
.infopage{max-width:52rem;min-width:0;margin:0 auto 3rem;line-height:1.6;color:var(--ink);overflow-wrap:break-word}
/* phones: a long address in inline code wraps, a code block scrolls inside itself; the page never gets wider than the screen */
.main{min-width:0}
.infopage :not(pre)>code{overflow-wrap:anywhere}
.infopage pre{max-width:100%}
.infopage h2{margin:0 0 1rem;font-size:1.4rem;color:var(--brand)}
.infopage h3{margin:1.5rem 0 .5rem;font-size:1.05rem;color:var(--ink)}
.infopage p{margin:0 0 .8em}
.infopage ul{margin:0 0 1em;padding-left:1.25rem}
.infopage li{margin:.2em 0}
.infopage .pg-links{display:grid;gap:.6rem;padding:0;list-style:none}
.infopage .pg-links a{display:block;padding:.75rem 1rem;border:1px solid var(--rb);border-left:4px solid var(--brand);border-radius:6px;text-decoration:none}
.infopage .pg-links a:hover{background:var(--chip)}
.pg-dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.4rem 1.25rem;margin:0}
.pg-dl dt{color:var(--muted)}
.pg-dl dd{margin:0}
.infopage table{width:100%;margin:0 0 1.5rem;border-collapse:collapse;font-size:.9rem}
.infopage caption{padding:.5rem 0;text-align:left;font-weight:700;color:var(--brand)}
.infopage th{padding:.45rem .6rem;text-align:left;background:var(--fill);color:var(--on-brand);font-weight:600}
.infopage td{padding:.45rem .6rem;border-bottom:1px solid var(--line);vertical-align:top}
.infopage tr:nth-child(even) td{background:var(--bg-soft)}
.infopage code{padding:.12em .35em;border-radius:4px;background:var(--chip);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em}
.infopage pre{margin:0 0 1.25rem;padding:.85rem 1rem;border:1px solid var(--line);border-radius:6px;background:var(--bg-soft);overflow-x:auto;font-size:.84rem;line-height:1.5}
.infopage pre code{padding:0;background:none;font-size:inherit}
.pg-src{margin-top:2rem;font-size:.8rem;color:var(--muted)}
@media (max-width:40rem){.infopage table,.infopage tbody,.infopage tr,.infopage td{display:block}.infopage thead{display:none}.infopage td:first-child{color:var(--muted);border-bottom:0;padding-bottom:0}.infopage td:last-child::before{content:"в†’ "}}
/* Working tabs: small, one line where possible */
.tabs{display:flex;flex-wrap:wrap;gap:.15rem 1.25rem;font-size:.82rem}
.tab{display:inline-block;padding:.35rem 0;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent}
.tab:hover{color:var(--brand)}
.tab.on{color:var(--brand);font-weight:600;border-bottom-color:var(--brand)}

/* Controls */
label,legend{font-size:.875rem;font-weight:600;color:var(--ink)}
input[type=search],input[type=text],input[type=date],select{width:100%;min-height:2.5rem;padding:.45rem .65rem;font:inherit;font-size:.95rem;color:var(--ink);background:var(--bg);border:1px solid var(--field);border-radius:4px}
select[multiple]{min-height:0}
input::placeholder{color:var(--muted)}
/* Fields: no thick outline on click; focus = navy border + 1px ring (8.6:1, WCAG 2.4.7 / 1.4.11). */
input[type=search]:focus,input[type=text]:focus,input[type=date]:focus,select:focus{outline:none;border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
/* the field joined to a button on its right: no brand edge on that side, the button's own thin border separates them */
.searchrow:has(.qb-open) .float input:focus{box-shadow:inset 0 1px 0 var(--brand),inset 1px 0 0 var(--brand),inset 0 -1px 0 var(--brand)}
.results:focus{outline:none}
.hint{color:var(--muted);font-size:.82rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.75rem;padding:.5rem 1.15rem;font:inherit;font-weight:600;font-size:.95rem;border:1px solid var(--brand);border-radius:4px;background:var(--bg);color:var(--brand);text-decoration:none;cursor:pointer}
.btn.primary{background:var(--fill);color:var(--on-brand)}
.btn.primary:hover{background:var(--fill-hover);border-color:var(--brand-hover)}
.btn.ghost:hover{background:var(--chip)}
.btn.block{width:100%}
.link{font-size:.875rem;text-underline-offset:.15em}
.spinner{display:inline-block;width:1.25rem;height:1.25rem;border-radius:50%;border:3px solid var(--line);border-top-color:var(--brand);animation:spin .7s linear infinite;vertical-align:middle}
.htmx-indicator{opacity:0;transition:opacity .15s}
.htmx-request .htmx-indicator,.htmx-request.htmx-indicator{opacity:1}
@keyframes spin{to{transform:rotate(360deg)}}
/* A download button while its file is being made (ui.js: .busy, aria-busy): a spinner in the colour of the icon in
   place of the icon, on the button itself (like Ladda); the print button .prn the same while its page is made */
:is(.dl,.prn){position:relative}
:is(.dl,.prn).busy{cursor:progress}
:is(.dl,.prn).busy>svg{visibility:hidden}
:is(.dl,.prn).busy::after{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:1.3rem;height:1.3rem;margin:-.65rem 0 0 -.65rem;border-radius:50%;border:3px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite}
@media (prefers-reduced-motion:reduce){:is(.dl,.prn).busy::after{animation-duration:2s}}

/* Combined form (tab "all"): sidebar filters + main column; one column on phones */
.layout{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}
.form-all{display:contents}
/* Full-width band behind the form (search, fields, menus = grid rows 1вЂ“3), in the colour of the active rail item;
   it reaches the window edges through the .main gutters. */
/* Band colour: a soft tint of the brand navy (organic with the white cards and navy controls), a hairline below. */
.layout{isolation:isolate}
/* the band takes rows 1вЂ“3 explicitly, so the form rows must be placed explicitly too (auto-placement would skip
   the band's cells and push the form below it on narrow screens; the desktop uses named areas) */
.form-all>.searchbar{grid-row:1;grid-column:1/-1}.form-all>.qfields{grid-row:2;grid-column:1/-1}.form-all>.qfilters{grid-row:3;grid-column:1/-1}.form-all>.within{grid-row:4;grid-column:1/-1}
.layout::before{content:"";grid-row:1/4;grid-column:1/-1;align-self:stretch;z-index:-1;margin:calc(-1 * var(--main-pt,2rem)) calc(-1 * var(--gx)) 0;background:var(--band);border-bottom:1px solid var(--band-line)}   /* top: flush with the header border */
.layout:has(#within:not([hidden]))::before{grid-row:1/5;margin-bottom:0}
.layout:has(#within[hidden]) .qfilters,.layout:not(:has(#within:not([hidden]))) .qfilters{margin-bottom:1rem}
.layout>.results,.layout>.afilters{margin-top:.75rem}
/* chips row (shown above the table when there is no side panel) starts below the band, not under it */
.layout>#chips{margin-top:.75rem}
.searchbar{display:grid;gap:.35rem}
.searchrow{position:relative;display:flex;align-items:stretch}
.searchrow input{flex:1;min-width:0;min-height:2.75rem;font-size:1rem;border-radius:4px 0 0 4px;border-right:0}
/* Field + button form one control (reference): shared edge, no gap; spinner sits outside. */
.searchrow .btn{border-radius:0 4px 4px 0;margin-left:0}
/* В«вЂ№В» back to the search a case number came from: the left end of the row, mirroring В«РџРѕС€СѓРєВ» on the right */
.searchrow .sb-back{flex:none;width:2.75rem;padding:0;justify-content:center;border-radius:4px 0 0 4px}
.searchrow:has(.sb-back) .float input{border-top-left-radius:0;border-bottom-left-radius:0}
/* While the search runs (htmx marks #spinner), the spinner stands in the В«РџРѕС€СѓРєВ» button in place of the magnifier;
   the text stays. Hidden otherwise (not just transparent), so the button keeps its width. */
/* В«РћС‡РёСЃС‚РёС‚РёВ» before В«РџРѕС€СѓРєВ»: red like the other reset buttons, dark red text; hidden in the builder and on phones (there the
   full-screen filters panel has В«РћС‡РёСЃС‚РёС‚Рё РІСЃС–В») */
.searchrow .sb-clr{display:none;align-items:center;flex:none;min-height:0;padding:0 1rem;border:1px solid color-mix(in srgb,var(--danger) 75%,#000);border-width:1px 0;border-radius:0;background:var(--danger);color:color-mix(in srgb,var(--danger) 25%,#000);font-size:.9rem;font-weight:600;text-decoration:none;white-space:nowrap}
.searchrow .sb-clr:hover{background:var(--danger-hover,var(--danger));color:color-mix(in srgb,var(--danger) 25%,#000)}
/* shown only when there is something to clear: a typed value, a ticked option, a token in the field */
#sf:not(.qb-on):is(:has(input:is([type=search],[type=text]):not(:placeholder-shown)),:has(.sel:checked),:has(#sb-tok .tk)) .searchrow .sb-clr{display:inline-flex}
.searchrow .sb-clr:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
/* the row reads as one frame: В«РџРѕС€СѓРєВ» closes it on top, bottom and right */
@media (min-width:36.01rem){#sf:not(.qb-on) .searchrow .sb-go{border:1px solid color-mix(in srgb,var(--fill) 70%,#000);border-left:0}}
/* the field in focus has a 2px frame: the buttons' own frames thicken with it */
.searchrow:has(.float:focus-within) .sb-clr{box-shadow:inset 0 1px 0 color-mix(in srgb,var(--danger) 75%,#000),inset 0 -1px 0 color-mix(in srgb,var(--danger) 75%,#000)}
@media (min-width:36.01rem){#sf:not(.qb-on) .searchrow:has(.float:focus-within) .sb-go{box-shadow:inset 0 1px 0 color-mix(in srgb,var(--fill) 70%,#000),inset 0 -1px 0 color-mix(in srgb,var(--fill) 70%,#000),inset -1px 0 0 color-mix(in srgb,var(--fill) 70%,#000)}}


#sf.qb-on .sb-clr{display:none!important}
@media (max-width:36rem){.searchrow .sb-clr{display:none!important}}
.sb-go .spinner{display:none;width:18px;height:18px;border-width:2px;border-color:rgb(255 255 255 / .35);border-top-color:var(--on-brand)}
.sb-go .spinner.htmx-request{display:inline-block}
.sb-go:has(.spinner.htmx-request)>svg{display:none}
.sb-go:has(.spinner.htmx-request){cursor:progress}
/* Clear the field: the red В«Г—В» of the menus / date fields; only while there is text (the browser's own Г— hidden) */
.searchrow input::-webkit-search-cancel-button{display:none}
.sb-x{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:3px;background:var(--danger);color:var(--on-brand);font-size:1rem;line-height:1;cursor:pointer}
.sb-x:hover{background:var(--danger-hover,var(--danger))}
.sb-x:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.float:has(input:placeholder-shown)>.sb-x{display:none}
.searchrow .float input{padding-right:2.6rem}
/* Phones: В«РџРѕС€СѓРєВ» is a separate full-width button after all the menus (the search row is unwrapped into the page grid). */
@media (max-width:36rem){
  .searchbar,.searchrow{display:contents}
  .searchrow>.float{grid-row:1;grid-column:1}
  .searchrow input{border-radius:4px;border-right:1px solid var(--field)}
  .form-all>.qfields{grid-row:2;grid-column:1/-1;margin-top:calc(.6rem - 1rem)}
  .form-all>.qfilters{grid-row:3;grid-column:1/-1}
  .searchrow>.btn{grid-row:4;grid-column:1;justify-content:center;min-height:2.75rem;margin-top:calc(.6rem - 1rem);border-radius:4px}
  /* phones: В«вЂ№В» in row 1 with the search field */
  .searchrow>.sb-back{grid-row:1;grid-column:1;justify-self:start;width:2.75rem;min-height:3.25rem;border-radius:4px 0 0 4px;z-index:2;margin-top:0}
  .searchrow:has(.sb-back)>.float{margin-left:2.75rem}
  .searchrow:has(.sb-back)>.float input{border-top-left-radius:0;border-bottom-left-radius:0}
  .form-all>.within{grid-row:5;grid-column:1}
  .layout::before{grid-row:1/5}
  .layout:has(#within:not([hidden]))::before{grid-row:1/6;margin-bottom:0}
  .layout:has(#within[hidden]) .searchrow>.btn,.layout:not(:has(#within:not([hidden]))) .searchrow>.btn{margin-bottom:1rem}
  /* the semantic switch (VRP) takes its own row 2 under the field: everything below moves down one row */
  .form-all:has(.sem-sw)>.qfields{grid-row:3}
  .form-all:has(.sem-sw)>.qfilters{grid-row:4}
  .form-all:has(.sem-sw) .searchrow>.btn{grid-row:5}
  .form-all:has(.sem-sw)>.within{grid-row:6}
  .layout:has(.sem-sw)::before{grid-row:1/6}
  .layout:has(.sem-sw):has(#within:not([hidden]))::before{grid-row:1/7}
}
/* Floating label, outlined variant (pure CSS): label sits in the field and moves onto the top border on focus or when filled; its white background cuts the border line. */
.float{position:relative;flex:1;min-width:0}
.float input{width:100%;height:3.25rem;padding:.5rem .75rem}
.float label{position:absolute;left:.5rem;top:50%;padding:0 .25rem;background:var(--bg);font-size:1rem;font-weight:400;line-height:1.2;color:var(--muted);pointer-events:none;transform:translateY(-50%);transform-origin:0 50%;transition:top .12s ease,transform .12s ease,color .12s ease}
.float input:focus+label,.float input:not(:placeholder-shown)+label{top:0;transform:translateY(-50%) scale(.8)}
.float input:focus+label{color:var(--brand)}
/* A floated label sits across the top border: its background is split at the border line вЂ” page/band colour above,
   field white below вЂ” so it only "cuts" the border and never shows as a white patch on the coloured band. */
.float input:focus+label,.float input:not(:placeholder-shown)+label{background:linear-gradient(to bottom,var(--band,var(--bg)) 50%,var(--bg) 50%)}
/* Filter suggestions of the main field (agreed 2026-10-28): a listbox under the field, above the fields and menus
   below it (their row is z 35); the active option (в†“ в†‘) and the hovered one are tinted, the typed part is a <mark>. */
.searchrow>.float{z-index:36}
.sg{position:absolute;left:0;right:0;top:calc(100% + .3rem);z-index:40;max-height:min(60vh,28rem);overflow-y:auto;margin:0;padding:.3rem 0;list-style:none;background:var(--bg);border:1px solid var(--field);border-radius:6px;box-shadow:0 10px 28px rgb(var(--shadow-rgb) / .16)}
.sg[hidden],.sg:not(:has([role=option])){display:none}
.sg-wait{display:none}
.sg-o{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.6rem;align-items:baseline;padding:.45rem .75rem;cursor:pointer;line-height:1.35}
/* hovered / chosen with в†“ в†‘: a clear tint of the type colour, a bar of it on the left, the В«Р¤С–Р»СЊС‚СЂВ» badge filled
   (all text в‰Ґ 4.5:1 on the tint in every theme) */
.sg-o:hover,.sg-o.on{background:color-mix(in srgb,var(--k,var(--brand)) 16%,var(--bg));box-shadow:inset 5px 0 0 var(--k,var(--brand))}
.sg-o:hover .sg-k,.sg-o.on .sg-k{border-style:solid;background:var(--k,var(--brand));color:var(--bg)}
.sg-o:hover mark,.sg-o.on mark{background:var(--bg)}   /* the typed part stays visible on the tint */
/* a line between suggestions of different types (dates | numbers | forms | courts | categories | judges) */
.sg-o:not([data-kind=law])+[data-kind=law],.sg-o:not([data-kind=case])+[data-kind=case],.sg-o:not([data-kind=reg])+[data-kind=reg],
.sg-o:not([data-kind=vr])+[data-kind=vr],.sg-o:not([data-kind=court])+[data-kind=court],.sg-o:not([data-kind=cat])+[data-kind=cat],
.sg-o:not([data-kind=judge])+[data-kind=judge],.sg-o:not([data-kind=person])+[data-kind=person]{margin-top:.35rem;border-top:3px solid var(--field);padding-top:.65rem}
/* colour of the filter type: the В«Р¤С–Р»СЊС‚СЂВ» badge of a suggestion and the token in the field (frame + faint tint) */
[data-kind=court],[data-k^="court:"]{--k:var(--k-court);--k-bg:var(--k-court-bg)}
[data-kind=judge],[data-k^="judge:"]{--k:var(--k-judge);--k-bg:var(--k-judge-bg)}
[data-kind=person],[data-k^="person:"]{--k:var(--k-court);--k-bg:var(--k-court-bg)}
[data-kind=cat],[data-k^="cat:"]{--k:var(--k-cat);--k-bg:var(--k-cat-bg)}
[data-kind=vr],[data-k^="vr:"]{--k:var(--k-vr);--k-bg:var(--k-vr-bg)}
[data-kind=law],[data-k^="law:"]{--k:var(--k-law);--k-bg:var(--k-law-bg)}
[data-kind=case],[data-kind=reg],[data-k^="case:"],[data-k^="reg:"]{--k:var(--k-num);--k-bg:var(--k-num-bg)}
.sg-k{grid-row:span 2;align-self:start;padding:.05rem .4rem;border:1px dashed var(--k,var(--brand));border-radius:999px;background:var(--k-bg,transparent);color:var(--k,var(--brand));font-size:.75rem;font-weight:600}
.sg-g{color:var(--muted)}
.sg-o .hint{grid-column:2;color:var(--muted);font-size:.85rem}
.sg mark{padding:0;background:var(--hl);color:inherit}
/* Tokens: filters taken from the typed text stay in the field (dashed rounded frame, tinted) until the search runs.
   With a token the frame moves from the input to the whole field, so tokens and text sit inside one box. */
.sb-tok:empty{display:none}
.float:has(.tk){display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;min-height:3.25rem;padding:.35rem 2.6rem .35rem .45rem;background:var(--bg);border:1px solid var(--field);border-right:0;border-radius:4px 0 0 4px}
.float:has(.tk):focus-within{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.searchrow .sb-back+.float:has(.tk){border-top-left-radius:0;border-bottom-left-radius:0}
.float:has(.tk) .sb-tok{display:contents}
.searchrow .float:has(.tk) #f-q{flex:1 1 8rem;width:auto;height:auto;min-height:2.25rem;padding:0 .3rem;border:0;box-shadow:none;background:transparent}
#sf:not(.qb-on) .qb-r{display:inline-flex;align-items:center;flex:0 0 auto;max-width:min(28rem,100%)}
#sf:not(.qb-on) .qb-r .qb-t{flex:0 1 auto;min-width:0;max-width:calc(28rem - 3.5rem);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
#sf:not(.qb-on) .qb-r .qb-del{margin-left:auto}
.float:has(.tk) input+label{top:0;transform:translateY(-50%) scale(.8);background:linear-gradient(to bottom,var(--band,var(--bg)) 50%,var(--bg) 50%)}
.tk{display:inline-flex;align-items:center;gap:.1rem;max-width:100%;min-height:2rem;padding:0 .15rem 0 .65rem;border:1.5px dashed var(--k,var(--brand));border-radius:999px;background:var(--k-bg,var(--hl));color:var(--ink);font-size:.9rem;line-height:1.2}
.tk-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-n{flex:none;margin-left:.3rem;padding:0 .4rem;border-radius:999px;background:var(--k,var(--brand));color:var(--bg);font-size:.8rem;font-weight:600;line-height:1.35}
.tk-x{flex:none;display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:1.05rem;line-height:1;cursor:pointer}
.tk-x:hover{background:var(--danger);color:var(--on-brand)}
@media (max-width:36rem){.float:has(.tk){border-right:1px solid var(--field);border-radius:4px}}
/* Query builder (agreed 2026-11-02). Groups are joined by their type (data-op): РўРђ blue, РђР‘Рћ orange, РќР• РњР†РЎРўРРўР¬ red вЂ”
   the tint of the group, of its В«+В» button and of its toggles. Closed: the groups are tokens in the field (.qb-r.tk,
   before the filter tokens): the type word (not on the first РўРђ), В«вЂ¦В» for exact, В«вЂ¦В»~N for words at most N apart, the
   priority number while В«rankВ» is on (CSS counter over the groups that are not РќР• РњР†РЎРўРРўР¬). .qb-open is a square end
   of the field before В«РџРѕС€СѓРєВ». Open (#sf.qb-on): the fields and menus below give way; В«вЂ№В» on the left, the groups,
   the В«+ РўРђ / + РђР‘Рћ / + РќР• РњР†РЎРўРРўР¬В» buttons and the rank switch under them, В«РџРѕС€СѓРєВ» at the bottom right. */
[data-op=and]{--k:var(--qb-and);--k-bg:var(--qb-and-bg)}
[data-op=or]{--k:var(--qb-or);--k-bg:var(--qb-or-bg)}
[data-op=not]{--k:var(--qb-not);--k-bg:var(--qb-not-bg)}
.qb-back,.qb-foot,.qb-h,.qb-o,.qb-ib,.qb-dn,.qb-q,.qb-n,.qb-more{display:none}
.qb-list{display:contents}
.searchrow>.float{counter-reset:qb}
.qb-r:not([data-op=not]){counter-increment:qb}
#sf .qb-r input:not([type=checkbox]){flex:none;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit}
#sf .qb-r input.qb-t{flex:0 1 auto;field-sizing:content;min-width:3ch;max-width:min(40ch,100%);padding:0 .1rem;text-overflow:ellipsis}
.qb-dn input{appearance:textfield;text-align:center}
.qb-dn input::-webkit-inner-spin-button,.qb-dn input::-webkit-outer-spin-button{appearance:none;margin:0}
/* not the floating label / field of the search input that share .float with them */
#sf .float :is(.qb-r,.qb-foot) label{position:static;inset:auto;transform:none;padding:0;background:none;color:var(--ink);font-size:inherit;pointer-events:auto;transition:none}
#sf .float input[type=checkbox]{flex:none;width:1.15rem;height:1.15rem;min-height:0;margin:0;padding:0}
#sf .qb-r input:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
#sf .qb-r .qb-t:focus,#sf .qb-r .qb-t:focus-visible{outline:none}
.qb-op{margin-right:.3rem;color:var(--k);font-size:.72rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap}
.qb-r:first-child[data-op=and] .qb-op{display:none}
.qb-r:has(:is(.qb-x,.qb-d):checked) .qb-q{display:inline;color:var(--muted)}
.qb-r:has(.qb-d:checked) .qb-o{display:inline-flex;align-items:center}
.qb-r:has(.qb-d:checked) .qb-dn{display:inline-flex;align-items:center}
.qb-r:has(.qb-d:checked) .qb-dn::before{content:"~";color:var(--muted)}
#sf .qb-dn input[type=number]{width:2.6ch;field-sizing:content;min-width:1ch;color:var(--ink)}
#sf:has(.qb-rank:checked) .qb-r:not([data-op=not]) .qb-n{display:inline-grid;place-items:center;flex:none;min-width:1.35rem;height:1.35rem;margin-right:.3rem;padding:0 .2rem;border-radius:999px;background:var(--k);color:var(--bg);font-size:.75rem;font-weight:700;line-height:1}
.qb-n::before{content:counter(qb)}
.searchrow .qb-open{display:grid;place-items:center;flex:none;width:3.25rem;padding:0;border:1px solid var(--field);border-width:1px 0;border-radius:0;background:color-mix(in srgb,var(--brand) 9%,var(--bg));color:var(--brand);cursor:pointer;transition:background-color .12s ease,color .12s ease}
/* the thin line between the field and the builder button is drawn, not a border: in focus the brand frame paints over its ends */
.searchrow .qb-open{border-left:0;background-image:linear-gradient(var(--field),var(--field));background-repeat:no-repeat;background-size:1px 100%;background-position:left center}
.qb-open svg{width:22px;height:22px}
.searchrow .qb-open:hover{background-color:var(--soft-btn)}
/* the field in focus has a 2px brand frame: the button continues it on top and bottom */
.searchrow:has(.float:focus-within) .qb-open{border-color:var(--brand);box-shadow:inset 0 1px 0 var(--brand),inset 0 -1px 0 var(--brand)}
.qb-open:focus-visible{outline-offset:-3px}
/* Semantic search switch (VRP): joins the field like the builder button; the result notes and badges of that mode */
.searchrow:has(.float:focus-within) .sem-sw{border-color:var(--brand);border-left-color:var(--field);box-shadow:inset 0 1px 0 var(--brand),inset 0 -1px 0 var(--brand)}
.searchrow .sem-sw{position:relative;display:inline-flex;align-items:center;gap:.45rem;flex:none;padding:0 .75rem;border:1px solid var(--field);border-width:1px 0;border-left:1px solid var(--field);background:color-mix(in srgb,var(--brand) 6%,var(--bg));color:var(--ink);font-size:.86rem;font-weight:600;white-space:nowrap;cursor:pointer;user-select:none;transition:background-color .12s ease}
.searchrow .sem-sw:hover{background:var(--soft-btn)}
.searchrow .sem-sw:has(:checked){background:color-mix(in srgb,var(--brand) 14%,var(--bg));color:var(--brand)}
.searchrow .sem-sw input:checked+.within-k{border-color:var(--fill);background:var(--fill)}
.searchrow .sem-sw input:checked+.within-k::after{background:var(--on-brand);transform:translateX(1rem)}
.searchrow .sem-sw input:focus-visible+.within-k{outline:3px solid var(--focus);outline-offset:2px}
#sf.qb-on .sem-sw{display:none}
/* phones: a plain switch like В«РЁСѓРєР°С‚Рё РІ СЂРµР·СѓР»СЊС‚Р°С‚Р°С…В», not the joined pill-button look of wider screens */
@media (max-width:36rem){.searchrow .sem-sw{grid-row:2;grid-column:1;justify-self:start;min-height:1.5rem;margin:0;padding:0;border:0;border-radius:0;background:none;font-weight:600}.searchrow .sem-sw:hover,.searchrow .sem-sw:has(:checked){background:none}.searchrow:has(.float:focus-within) .sem-sw{box-shadow:none}}
.sem-note{margin:0 0 .75rem;padding:.55rem .85rem;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:4px;background:var(--bg-soft);color:var(--ink-2);font-size:.88rem}
.sem-ico{display:inline-flex;align-items:center;vertical-align:-.18em;margin-right:.45rem;color:var(--brand);flex:none}
.sem-ico svg{width:1.05rem;height:1.05rem;flex:none}
.sem-badge{display:inline-flex;align-items:center;gap:.3rem;margin-right:.45rem;padding:.1rem .5rem;border:1px solid rgba(99,102,241,.3);border-radius:999px;background:rgba(99,102,241,.12);color:#4f46e5;font-size:.74rem;font-weight:600;vertical-align:baseline}
.sem-badge svg{width:.92rem;height:.92rem;flex:none}
.stats-sem{display:inline-flex;align-items:center;gap:.3rem;margin-left:.6rem;padding:.12rem .55rem;border:1px solid rgba(99,102,241,.3);border-radius:999px;background:rgba(99,102,241,.12);color:#4f46e5;font-size:.74rem;font-weight:600}
.stats-sem svg{width:.92rem;height:.92rem;flex:none}
.searchrow .qb-back{flex:none;width:2.75rem;padding:0;border-radius:4px 0 0 4px}
#sf.qb-on>:is(.qfields,.qfilters,.within),#sf.qb-on .sb-back,#sf.qb-on .qb-open,#sf.qb-on .float>:is(#sb-tok,#f-q,label,.sb-x,.sg){display:none}
/* open: no frame of its own; В«вЂ№В» and В«РџРѕС€СѓРєВ» are plain buttons at the height of the search field, at its top, so
   nothing jumps when the builder opens; the title sits above В«вЂ№В» where the field's label was */
#sf.qb-on .searchrow{align-items:stretch;gap:.75rem;min-width:0;max-width:100%}
#sf.qb-on>.searchbar{grid-column:1/-1;min-width:0;max-width:100%;padding-bottom:1.5rem}   /* air under the builder, inside the band */
#sf.qb-on .qb-back{display:inline-flex;flex:none;align-self:flex-start;height:2.75rem;min-height:2.75rem;border-radius:4px}
#sf.qb-on .sb-go{flex:none;align-self:flex-end;height:3.25rem;border-radius:4px}   /* bottom right: the end of the builder */
#sf.qb-on .float{display:flex!important;flex:1 1 0;min-width:0;max-width:100%;width:0;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:1rem;min-height:100%;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.qb-head{display:none;margin:0;font-size:.95rem;font-weight:600;line-height:1.2;color:var(--brand)}
#sf.qb-on .qb-head{display:block;position:absolute;left:3.5rem;bottom:calc(100% + .35rem)}   /* after В«вЂ№В» (2.75rem + gap) */
/* groups size to their text (the first to its placeholder), up to the width of the builder */
#sf.qb-on .qb-list{display:flex;flex-wrap:wrap;align-items:center;align-self:stretch;justify-content:flex-start;min-width:0;max-width:100%;gap:.45rem .55rem}
#sf.qb-on .qb-r{display:inline-flex;flex-wrap:nowrap;min-width:0;max-width:100%;align-items:center;gap:.35rem .4rem;min-height:2.75rem;padding:.3rem .45rem .3rem .2rem;border-radius:1.4rem;font-size:.95rem;box-sizing:border-box;transition:max-width .15s ease,margin-right .15s ease}
#sf.qb-on .qb-r:focus-within{border-style:solid}
#sf.qb-on .qb-r.drag{border-style:solid;box-shadow:0 4px 14px rgb(var(--shadow-rgb) / .2)}
#sf.qb-on .qb-h{display:grid;place-items:center;flex:none;width:1.5rem;height:2rem;padding:0;border:0;border-radius:4px;background:transparent;color:var(--k);cursor:grab;touch-action:none}
#sf.qb-on .qb-r.drag .qb-h{cursor:grabbing}
#sf.qb-on .qb-r.qb-dragging{position:fixed!important;z-index:9999!important;pointer-events:none!important;opacity:.95;border-style:solid!important;border-width:2px!important;box-shadow:0 16px 36px rgb(var(--shadow-rgb) / .32),0 6px 14px rgb(0 0 0 / .15);margin:0!important;cursor:grabbing!important;will-change:transform;transition:none!important}
#sf.qb-on .qb-r.qb-dragging .qb-more{display:none!important}
#sf.qb-on .qb-r.qb-dragging .qb-h{cursor:grabbing!important}
#sf.qb-on .qb-ph{display:inline-flex;flex:0 0 auto;box-sizing:border-box;border:2px dashed var(--k,var(--brand));border-radius:1.4rem;background:color-mix(in srgb,var(--k,var(--brand)) 12%,transparent);min-height:2.75rem;pointer-events:none;animation:qbPulse 1.2s infinite ease-in-out;transition:width .15s ease}
@keyframes qbPulse{0%,100%{border-color:var(--k,var(--brand));background:color-mix(in srgb,var(--k,var(--brand)) 8%,transparent);box-shadow:0 0 0 0 color-mix(in srgb,var(--k,var(--brand)) 30%,transparent)}50%{border-color:color-mix(in srgb,var(--k,var(--brand)) 60%,#fff);background:color-mix(in srgb,var(--k,var(--brand)) 22%,transparent);box-shadow:0 0 10px 2px color-mix(in srgb,var(--k,var(--brand)) 35%,transparent)}}
body.qb-is-dragging{user-select:none!important;cursor:grabbing!important}
body.qb-is-dragging *{cursor:grabbing!important}
#sf.qb-on .qb-r .qb-q{display:none}
#sf.qb-on .qb-op{margin:0;line-height:1;font-size:.95rem;font-weight:800;letter-spacing:.03em}
/* the text is typed into the group itself: no visible field */
#sf.qb-on .qb-r .qb-t{flex:0 1 auto;field-sizing:content;min-width:0;max-width:100%;height:2rem;min-height:0;padding:0 .3rem .2rem;box-sizing:border-box;font-size:1.08rem}
/* В«Г—В» of a group: shown as on hover (red), the size of the toggles */
#sf.qb-on .qb-del{width:2rem;height:2rem;background:var(--danger);color:var(--on-brand);font-size:1.15rem}
#sf.qb-on .qb-del:hover{background:var(--danger-hover)}
#sf.qb-on .qb-r:first-child .qb-del{display:none}   /* the builder always keeps its first group */
#sf.qb-on .qb-r .qb-t:focus{outline:none}
#sf.qb-on .qb-o{display:flex;flex:none;align-items:center;gap:.4rem}
/* toggles: В«exactВ» a round target, В«distanceВ» a badge with arrows; a shade darker than the group, filled when on */
#sf.qb-on .qb-r label.qb-ib{position:relative;display:grid;place-items:center;flex:none;width:2rem;height:2rem;border-radius:999px;background:color-mix(in srgb,var(--k) 20%,var(--k-bg));color:var(--k);cursor:pointer}
#sf.qb-on .qb-r label.qb-db{width:2.75rem}
#sf.qb-on .qb-r label.qb-ib:hover{background:color-mix(in srgb,var(--k) 32%,var(--k-bg))}
#sf.qb-on .qb-r label.qb-ib:has(:checked){background:var(--k);color:var(--bg)}
#sf.qb-on .qb-ib input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#sf.qb-on .qb-ib:has(:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
#sf.qb-on .qb-dn::before{content:none}
/* В«distanceВ» on: the badge and the number of words form one pill */
#sf.qb-on .qb-r:has(.qb-d:checked) label.qb-db{border-radius:999px 0 0 999px}
#sf.qb-on .qb-dn{margin-left:-.4rem}
#sf.qb-on .qb-dn input:focus-visible{outline:none}   /* the group's frame turns solid instead (:focus-within) */
#sf.qb-on .qb-dn input[type=number]{width:3rem;height:2rem;padding:0 .4rem 0 .2rem;border:1.5px solid var(--k);border-left:0;border-radius:0 999px 999px 0;background:var(--bg);color:var(--ink);font-weight:600}
#sf.qb-on .qb-foot{display:flex;align-items:flex-end;justify-content:flex-start;height:3.25rem;margin-top:auto;padding-bottom:0}
#sf.qb-on .qb-sw{display:inline-flex;align-items:center;line-height:1;margin:0;padding-bottom:0}
/* В«+В» right after the last group (outside its frame); click / focus shows the joins of a new group beside it */
#sf.qb-on .qb-r{position:relative;max-width:100%}
#sf.qb-on .qb-r:last-child{max-width:calc(100% - 3.25rem);margin-right:3.25rem}
#sf.qb-on .qb-r:last-child:has(.qb-more:is(.open,:focus-within)){max-width:calc(100% - 22.5rem);margin-right:22.5rem}
#sf.qb-on .qb-r:last-child .qb-more{display:flex;align-items:center;gap:.45rem;position:absolute;left:100%;top:50%;padding-left:.5rem;transform:translateY(-50%);z-index:2}
.qb-plus{display:grid;place-items:center;flex:none;width:2.5rem;height:2.5rem;padding:0;border:0;border-radius:999px;background:var(--qb-add);color:var(--on-brand);font-size:1.6rem;font-weight:500;line-height:1;cursor:pointer}
.qb-plus:hover,.qb-more:is(.open,:focus-within) .qb-plus{background:var(--qb-add-hover)}
.qb-ops{display:none;gap:.45rem}
.qb-more:is(.open,:focus-within) .qb-ops{display:flex}
@media (max-width:36rem){   /* no room beside: the joins open below В«+В» */
  #sf.qb-on .qb-r:last-child,#sf.qb-on .qb-r:last-child:has(.qb-more:is(.open,:focus-within)){margin-right:2.75rem;max-width:calc(100% - 2.75rem)}
  #sf.qb-on .qb-r:last-child .qb-more{flex-direction:column;align-items:flex-end;left:auto;right:-2.75rem;top:.35rem;transform:none}
  .qb-more .qb-ops{flex-direction:column;align-items:flex-end}
}
.qb-add{white-space:nowrap;min-height:2.25rem;padding:.25rem .9rem;border:1.5px dashed var(--k);border-radius:999px;background:var(--k-bg);color:var(--k);font:inherit;font-size:.85rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;cursor:pointer}
.qb-add:hover{border-style:solid;background:color-mix(in srgb,var(--k) 18%,var(--k-bg))}
.qb-sw{position:relative;display:inline-flex;align-items:center;gap:.55rem;font-size:.9rem;line-height:1.25rem;cursor:pointer}
.qb-sw .within-k{margin-top:-1px}
.qb-sw input{position:absolute;width:1px;height:1px;opacity:0}
.qb-sw input:checked+.within-k{border-color:var(--fill);background:var(--fill)}
.qb-sw input:checked+.within-k::after{background:var(--on-brand);transform:translateX(1rem)}
.qb-sw input:focus-visible+.within-k{outline:3px solid var(--focus);outline-offset:2px}
/* the band: only behind the builder (the rows below are hidden), the results start below it */
.layout:has(#sf.qb-on){row-gap:0}
.layout:has(#sf.qb-on)>:is(#chips,.results,.afilters){margin-top:2.75rem}   /* where the closed form puts them */
@media (max-width:36rem){
  /* closed: the builder button is the right end of the search field (as on wide screens), В«РџРѕС€СѓРєВ» full width below */
  html.js .searchrow:has(.qb-open)>.float{margin-right:3.25rem}
  html.js .searchrow:has(.qb-open) .float input,html.js .searchrow:has(.qb-open)>.float:has(.tk){border-right:0;border-radius:4px 0 0 4px}
  .searchrow>.qb-open{grid-row:1;grid-column:1;justify-self:end;align-self:stretch;width:3.25rem;height:auto;min-height:3.25rem;border:1px solid var(--field);border-left:0;border-radius:0 4px 4px 0;z-index:37}
  /* the field in focus: the button keeps the brand frame on top, right and bottom */
  .searchrow:has(.float:focus-within)>.qb-open{border-color:var(--brand);box-shadow:inset 0 1px 0 var(--brand),inset -1px 0 0 var(--brand),inset 0 -1px 0 var(--brand)}
  /* open: the title, then the groups on the full width, then В«вЂ№В» and В«РџРѕС€СѓРєВ» */
  #sf.qb-on .searchrow>.btn{grid-row:3;height:2.75rem;min-height:2.75rem;margin-top:1rem;margin-bottom:1rem;align-self:start}
  #sf.qb-on .searchrow>.qb-back{grid-column:1;justify-self:start;width:2.75rem;border-radius:4px;z-index:1}
  #sf.qb-on .searchrow>.sb-go{margin-left:3.25rem;margin-right:0}
  #sf.qb-on .qb-head{position:static;grid-row:1;grid-column:1;align-self:start;margin:0}
  #sf.qb-on .searchrow>.float{grid-row:2;grid-column:1;width:auto;min-height:0;margin:.5rem 0 0;gap:1rem;justify-content:flex-start}
  #sf.qb-on .qb-list{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  /* one line per group: the (placeholder-sized) input shrinks instead of wrapping the group onto two lines */
  #sf.qb-on .qb-r{flex-wrap:nowrap;height:auto;min-height:2.75rem;border-radius:1.4rem}
  #sf.qb-on .qb-r .qb-t{flex:1 1 0;width:0;min-width:0;field-sizing:fixed}
  /* В«+В» centred on the last group, the joins drop below it */
  #sf.qb-on .qb-r:last-child .qb-more{top:50%;transform:translateY(-1.25rem);z-index:5}
  #sf.qb-on .qb-o{min-width:0}
  #sf.qb-on .qb-foot{height:auto;margin:0}
  #sf.qb-on .qb-sw{line-height:1.3}
  .layout:has(#sf.qb-on)::before{grid-row:1/4}
}
.filters{display:grid;align-content:start}
.filters-head{display:flex;align-items:baseline;justify-content:space-between;padding-bottom:.4rem}
.filters-head h2{margin:0;font-size:1rem}
.fgroup{border-top:1px solid var(--line)}
.fgroup>summary{display:flex;align-items:center;gap:.6rem;min-height:2.75rem;cursor:pointer;list-style:none;font-weight:600;color:var(--brand)}
.fgroup>summary::-webkit-details-marker{display:none}
.fgroup>summary::before{content:"";width:.45rem;height:.45rem;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg);transition:transform .15s}
.fgroup[open]>summary::before{transform:rotate(45deg)}
.count{min-width:1.4rem;padding:0 .4rem;border-radius:999px;background:var(--fill);color:var(--on-brand);font-size:.75rem;text-align:center}
.fbody{display:grid;gap:1rem;padding:.25rem 0 1.1rem}
.field{display:grid;gap:.35rem}
.period,.checks{margin:0;padding:0;border:0;min-width:0}
.period legend,.checks legend{padding:0;margin-bottom:.35rem}
.period{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.4rem .6rem;align-items:center}
.period label{font-weight:400;color:var(--muted)}
.checks{display:grid}
/* Checkbox rows: the box lines up with the FIRST line of a multi-line label; small gaps between rows. */
.check{display:flex;align-items:flex-start;gap:.6rem;padding:.35rem 0;font-weight:400;font-size:.92rem;line-height:1.35;cursor:pointer}
.check input{width:1.15rem;height:1.15rem;margin:.05rem 0 0;flex:none;accent-color:var(--brand)}
.filters>.btn{margin-top:1rem}

.chips-active:empty{display:none}
.achips{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}
.achip{display:inline-flex;align-items:center;gap:.4rem;min-height:2rem;padding:.25rem .65rem;border:1px solid transparent;border-radius:4px;background:var(--chip);color:var(--ink);font-size:.85rem;text-decoration:none}
.achip:hover{border-color:var(--brand)}
.achip span[aria-hidden]{font-size:1.05rem;line-height:1;color:var(--muted)}
/* Compact chip under the form: long names cut with В«вЂ¦В» (full text in title and in the side panel), В«+NВ» for more. */
.achips .achip{max-width:min(20rem,100%)}
.achips li{max-width:100%;min-width:0}   /* 320px: a chip never wider than the screen (WCAG 1.4.10) */
.achip-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.achip-n{flex:none;padding:0 .35rem;border-radius:3px;background:var(--fill);color:var(--on-brand);font-size:.75rem;font-weight:700;line-height:1.5}

/* Floating panel В«РћР±СЂР°РЅС– С„С–Р»СЊС‚СЂРёВ» (right column, sticky): every chosen value, each removable. Desktop only вЂ” on
   narrow screens the compact chips and the menus themselves show the selection. */
.afilters{display:none}
.afilters:empty{display:none!important}
.af-h{margin:0 0 .5rem;font-size:1rem}
/* Export menu: appears once a result row is checked; В«РћР±СЂР°РЅРѕ СЂС–С€РµРЅСЊ: NВ» is a CSS counter (the panel follows the
   results in the DOM). */
.layout{counter-reset:picked achip}
.afilters .achip{counter-increment:achip}   /* the panel's chips: the count on its floating button */
.pick:checked{counter-increment:picked}
.af-exp{display:none;margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--line)}
.layout:has(.pick:checked) .af-exp{display:block}
.af-exp .af-g{margin:0 0 .5rem;font-size:.8rem;font-weight:600;color:var(--ink-2)}
.af-cnt::after{content:counter(picked)}
/* no filters (recent list, Р 18): the panel holds only the export form вЂ” hidden until a row is checked, no top rule */
.layout:not(:has(.pick:checked)) .afilters:not(:has(.af-h)){display:none}
.af-exp:first-child{margin-top:0;padding-top:0;border-top:0}
/* Menu buttons: a badge with a count (something chosen) is orange in every state; the empty В«+В» stays navy. */
.cm:has(:is(input[name=court],.tree-node,.sel,input[name=judge]):checked) .cm-badge{background:var(--pick)!important;color:var(--on-brand)!important}
/* the count in the orange of checked rows (white on #c25e12 в‰€ 4.6:1) */
.af-cnt{display:inline-block;min-width:1.5rem;margin-left:.2rem;padding:0 .4rem;border-radius:3px;background:var(--pick);color:var(--on-brand);font-weight:700;text-align:center;line-height:1.5}
/* Three filled buttons in one row: XLSX, CSV (list), DOCX (decisions with text); full names in title / for SR. */
.af-menu{display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0;list-style:none}
/* export: icon-only square buttons (format name on the page icon), colour of the file type */
.af-menu .af-act.af-f{width:2.25rem;height:2.25rem;min-height:0;padding:0;flex:none;background:transparent;color:var(--brand)}
.af-menu .af-act.af-f:hover{background:var(--chip)}
.af-f svg{width:2rem;height:2rem}
.af-f:is(.af-bm,.prn) svg{width:1.4rem;height:1.4rem}
.af-f text{fill:var(--bg)}
.af-menu .af-act.af-f.x{color:var(--xlsx-ink)}
.af-menu .af-act.af-f.p{color:var(--pdf-ink)}
/* print and bookmark stay filled buttons (actions, not files) */
.af-menu .af-act.af-f:is(.af-bm,.prn){background:var(--fill);color:var(--on-brand)}
.af-menu .af-act.af-f:is(.af-bm,.prn):hover{background:var(--fill-hover)}
/* the hidden frame the checked decisions are printed from (ui.js); not display:none вЂ” such a frame does not print */
.print-frame{position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden}
.af-act{display:flex;align-items:center;justify-content:center;gap:.35rem;width:100%;min-height:2.5rem;padding:.35rem .4rem;border:0;border-radius:4px;background:var(--fill);color:var(--on-brand);font:inherit;font-size:.8rem;font-weight:700;letter-spacing:.03em;cursor:pointer}
.af-act:hover{background:var(--fill-hover)}
.af-act.x{background:var(--ok)}
.af-act.x:hover{background:var(--ok-hover)}
.af-act svg{flex:none}
.af-msg{margin:.4rem 0 0;font-size:.8rem;color:var(--ink-2)}
.af-msg:empty{display:none}
.afilters .achips{flex-direction:column;align-items:flex-start}
.afilters .achip{max-width:100%}
.afilters .achips li{max-width:100%}
.afilters .achips li:last-child{margin-top:.35rem}

/* Desktop: the main column (search + results, в‰¤ 62rem) starts at the left gutter, under the brand; the right column
   holds the floating filters panel. */
@media (min-width:60rem){
  .layout{grid-template-columns:minmax(0,62rem) minmax(0,1fr);grid-template-rows:auto auto auto auto auto 1fr;align-items:start;column-gap:2rem;
    grid-template-areas:"search search" "qx qx" "qf qf" "within within" "chips ." "results ."}
  .qfilters{grid-area:qf}.qfields{grid-area:qx}.searchbar{grid-area:search}.form-all>.within{grid-area:within}#chips{grid-area:chips}.layout>.results{grid-area:results;margin-top:0}
  .afilters{grid-row:7;grid-column:1}
  .layout:has(#viewer:is(:not(:empty),.htmx-request)) .afilters{display:none!important}
}
@media (min-width:60rem){.form-all>:is(.searchbar,.qfields,.qfilters,.within){width:100%;max-width:74.4rem}}
/* The right column (filters panel) only where the results table really fits beside it: table 52rem + gap 2rem +
   panel 15rem + rail + gutters в‰€ 78rem. Media queries count rem from the default font size, while the text-size
   setting (data-zoom) scales the page's rem вЂ” so each step has its own threshold (78rem Г— zoom). Below it the compact
   chips stay above the table. */
@media (min-width:70rem){
  html[data-zoom="90"] .layout{grid-template-columns:minmax(0,62rem) minmax(15rem,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="90"] .layout:has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="90"] #chips{display:none}
  html[data-zoom="90"] .afilters{grid-area:side;display:block}
}
@media (min-width:78rem){
  html:not([data-zoom]) .layout{grid-template-columns:minmax(0,62rem) minmax(15rem,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html:not([data-zoom]) .layout:has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html:not([data-zoom]) #chips{display:none}
  html:not([data-zoom]) .afilters{grid-area:side;display:block}
}
@media (min-width:89rem){
  html[data-zoom="115"] .layout{grid-template-columns:minmax(0,62rem) minmax(15rem,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="115"] .layout:has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="115"] #chips{display:none}
  html[data-zoom="115"] .afilters{grid-area:side;display:block}
}
@media (min-width:101rem){
  html[data-zoom="130"] .layout{grid-template-columns:minmax(0,62rem) minmax(15rem,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="130"] .layout:has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="130"] #chips{display:none}
  html[data-zoom="130"] .afilters{grid-area:side;display:block}
}
@media (min-width:117rem){
  html[data-zoom="150"] .layout{grid-template-columns:minmax(0,62rem) minmax(15rem,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="150"] .layout:has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="150"] #chips{display:none}
  html[data-zoom="150"] .afilters{grid-area:side;display:block}
}
/* the panel itself (shown only by the rules above) */
.afilters{position:sticky;top:1rem;align-self:start;max-width:22rem;max-height:calc(100vh - 2rem);overflow:auto;padding:1rem 1.1rem;border:1px solid var(--rb);border-radius:6px;background:var(--bg);box-shadow:0 6px 18px rgb(var(--shadow-rgb) / .1)}
.layout:not(:has(.pick:checked)) .afilters:not(:has(.af-h,.achips)){display:none!important}
@media (min-width:60rem) and (max-width:77.99rem){.layout:has(.pick:checked) .afilters{display:block;position:static;max-width:none;max-height:none}}
/* The panel is a popover (<aside popover>) for narrow screens; elsewhere it stays in the page: the browser's popover
   look (fixed, centred, fit-content) is reset, the margin-top of the layout rules is kept. */
.afilters[popover]{top:1rem;right:auto;bottom:auto;left:auto;width:auto;height:auto;margin-right:0;margin-bottom:0;margin-left:0;color:inherit}
/* No rail (< 60rem): the panel opens full screen from floating buttons in the bottom right corner (popovertarget,
   no JS): В«РћР±СЂР°РЅС– С„С–Р»СЊС‚СЂРёВ» while filters are set, the export one while rows are ticked, each with its count. Closed,
   the panel stays rendered but invisible, so the CSS counter of its chips still counts and nothing in it takes focus. */
.af-fab,.af-x{display:none}
@media (max-width:59.99rem){
  body:not(:has(input[name="tour"][value="5"]:checked)) .layout:has(.afilters .achip,.pick:checked) .afilters:not(:popover-open){display:block;visibility:hidden;position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0}
  .layout .afilters:popover-open{position:fixed;inset:0;display:block;visibility:visible;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:3.75rem 1rem 1.5rem;border:0;border-radius:0;box-shadow:none;overflow:auto;background:var(--bg);color:var(--ink)}
  .afilters::backdrop{background:var(--bg)}
  .afilters:popover-open .af-x{display:grid;place-items:center;position:absolute;top:.6rem;right:.6rem;width:2.5rem;height:2.5rem;padding:0;border:1px solid var(--rb);border-radius:4px;background:var(--bg);color:var(--ink);font-size:1.5rem;line-height:1;cursor:pointer}
  .afilters:popover-open .af-x:hover{background:var(--danger);border-color:var(--danger);color:var(--on-brand)}
  .afilters:popover-open .af-x:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
  .af-fab{position:fixed;right:10px;bottom:10px;z-index:50;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
  .af-fab-b{display:none;position:relative;place-items:center;width:3.25rem;height:3.25rem;padding:0;border:0;border-radius:50%;background:var(--fill);color:var(--on-brand);box-shadow:0 4px 14px rgb(var(--shadow-rgb) / .3);cursor:pointer}
  .af-fab-b:hover{background:var(--fill-hover)}
  .af-fab-b:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
  .af-fab-b svg{width:1.5rem;height:1.5rem}
  .layout:has(.afilters .achip) .af-fab-f,.layout:has(.pick:checked) .af-fab-x{display:grid}
  .af-fab-n{position:absolute;top:-.3rem;left:-.3rem;display:grid;place-items:center;min-width:1.4rem;height:1.4rem;padding:0 .3rem;box-sizing:border-box;border-radius:999px;background:var(--pick);color:var(--on-brand);font-size:.75rem;font-weight:700;line-height:1}
  .af-fab-f .af-fab-n::after{content:counter(achip)}
  .af-fab-x .af-fab-n::after{content:counter(picked)}
  /* an open menu, the quick viewer or the open panel cover the page: the buttons give way */
  html:has(.cm:not(.cm-shut) .cm-toggle:checked) .af-fab,.layout:has(#viewer:is(:not(:empty),.htmx-request)) .af-fab,.layout:has(.afilters:popover-open) .af-fab{display:none}
}

/* Stats line (technical indicators of the prototype) */
.stats{display:flex;flex-wrap:wrap;gap:.35rem 1rem;align-items:center;color:var(--muted);font-size:.85rem;min-height:1.4em}
.stats b{color:var(--ink);font-size:1rem}
.foot .stats{justify-content:center;margin-bottom:.35rem;font-size:.8rem}
.foot .stats b{font-size:.85rem}
.pill{padding:.05rem .5rem;border-radius:999px;font-size:.75rem;font-weight:600}
.pill.hit{background:var(--ok-bg);color:var(--ok-ink)}
.pill.miss{background:var(--warn-bg);color:var(--warn)}

/* Results list */
.results{display:block;margin:0 0 2.5rem}   /* a block, not a grid: as a fixed-height scroller beside the viewer a grid squeezes the cards */
mark{background:var(--hl);color:var(--ink);padding:0 .12em;border-radius:2px}
.more,.end{text-align:center;color:var(--muted);padding:1.1rem;font-size:.9rem}
/* В«РџРѕРєР°Р·Р°С‚Рё С‰РµВ»: the next portion on request (Р 3); while loading the button gives way to the spinner line */
.more-btn{min-width:12rem;background:var(--soft-btn);border-color:var(--brand)}
.more-btn:hover{background:var(--soft-btn-hover)}
.more-load{display:none;align-items:center;justify-content:center;gap:.5rem}
.more.htmx-request .more-btn{display:none}
.more-auto{display:block;height:1px}   /* htmx В«intersectВ» trigger at the end of the list */
html.js:not(.scrolled) .more-auto{display:none}   /* no autoload before the reader scrolls: a short first portion stays as it is */
.more.htmx-request .more-load{display:flex}
.pgsep:focus{outline:none}
.pgsep:focus-visible span{outline:3px solid var(--focus);outline-offset:4px}
.empty{text-align:center;color:var(--muted);padding:3rem 1rem}
.empty .big{font-size:2.5rem;opacity:.45}
.foot{color:var(--muted);font-size:.8rem;padding:1.25rem var(--gx) 1.5rem;text-align:center;border-top:1px solid var(--line)}

/* Legacy working tabs (context / court / decision / case) */
.card{max-width:62rem;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:1.25rem}
.card~.results{max-width:62rem}
.form{display:grid;gap:1rem}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem}
.muted{color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{position:relative}
.chip input{position:absolute;opacity:0}
.chip span{display:inline-block;padding:.35rem .8rem;border:1px solid var(--field);border-radius:999px;font-size:.9rem;cursor:pointer}
.chip input:checked+span{background:var(--fill);border-color:var(--brand);color:var(--on-brand)}
.chip input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
.actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.card~.stats{margin:1rem 0 .5rem}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* "РЎСѓРґРё" menu (combined form). No JS: opens on hover or keyboard focus inside, a click pins it open
   (unnamed checkbox .cm-toggle). The badge counts checked regions/courts with a CSS counter (it sits after the
   lists in the DOM, positioned onto the button), so hidden parts use visibility, never display:none. */
.qfilters{--ic-w:3.25rem;--sud-w:9.25rem;--jud-w:9rem;--km-w:11.25rem;--cs-w:12.5rem;--cm-w:var(--sud-w);--dd-w:12.75rem;--ins-w:9.5rem;--g:.6rem;position:relative;display:flex;flex-wrap:nowrap;gap:var(--g)}
.cm{position:relative;display:flex;align-items:center;gap:.6rem;flex:none;min-width:0;counter-reset:cm}
/* Big menus: the panel is positioned against the whole menu row (.qfilters), so it always spans the row whatever
   button opened it; buttons keep their place and size (no growing / reordering on hover). */
.cm:not(.cm-dd){position:static}
.cm-head{position:relative;display:inline-flex}
/* Pointer arrow of an open menu: drawn under its button / field (big panels span the whole row, so the arrow must
   come from the opener), sitting on the panel's top border; panel top = 100% + .4rem. */
.cm-head::after,.dm-head::after{content:"";position:absolute;z-index:33;left:50%;top:calc(100% + .4rem - .283rem);width:.566rem;height:.566rem;visibility:hidden;background:var(--bg);border:1px solid var(--field);border-right:0;border-bottom:0;transform:translateX(-50%) rotate(45deg);pointer-events:none}
.cm:is(:focus-within,:has(.cm-toggle:checked)):not(.cm-shut) :is(.cm-head,.dm-head)::after{visibility:visible}
/* the badge counts the ticked values: a whole region counts as its courts (not the hidden .cm-keep copies) */
.cm input:is([data-name=court]:not(.cm-keep),[name=cat],[name=judge]):checked,.cm-dd .sel:checked{counter-increment:cm}
.cm-btn{position:relative;z-index:31;display:inline-flex;align-items:center;gap:.5rem;width:var(--cm-w);min-height:2.75rem;padding:.5rem 2.6rem .5rem .85rem;border:1px solid var(--field);border-radius:4px;background:var(--soft-btn);color:var(--brand);font-size:.95rem;font-weight:600;cursor:pointer;flex:none}   /* soft blue, a step darker than the band */
.cm-btn:hover{border-color:var(--brand);background:var(--soft-btn-hover)}
/* Open menu (hover, focus inside or pinned) = dark button with inverted badge */
.cm:is(:focus-within,:has(.cm-toggle:checked)):not(.cm-shut) .cm-btn{border-color:var(--brand);background:var(--fill);color:var(--on-brand)}
.cm:is(:focus-within,:has(.cm-toggle:checked)):not(.cm-shut) .cm-badge{background:var(--on-brand);color:var(--fill)}
.cm:has(>.cm-toggle:focus-visible) .cm-btn{outline:3px solid var(--focus);outline-offset:2px}
/* Badge grows to the left from a fixed right edge (inside the button), so 4-digit counts fit. */
.cm-badge,.cm-x{position:absolute;z-index:32;left:calc(var(--cm-w) - .65rem);top:50%;transform:translate(-100%,-50%);min-width:1.6rem;padding:0 .3rem;box-sizing:border-box;height:1.6rem;place-items:center;border-radius:3px;background:var(--fill);color:var(--on-brand);font-size:.8rem;font-weight:700;line-height:1}
.cm-badge{display:grid;pointer-events:none}
.cm-badge::after{content:counter(cm);display:block;line-height:1;text-box:trim-both cap alphabetic}
/* a menu whose server sends the exact count (one value chosen twice is counted once) shows it instead of the counter */
.cm-badge[data-count]::after{content:attr(data-count)}
/* "+" is drawn with two centred bars (glyph metrics would sit it low) */
.cm:not(:has(.sel:checked)) .cm-badge::after{content:"";width:.7rem;height:.7rem;background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat}
.cm-x{display:none;padding:0;border:0;font-size:1.15rem;cursor:pointer;background:var(--danger)!important;color:var(--on-brand)!important}
.cm-x:hover{background:var(--danger-hover)!important}
.cm:has(.sel:checked):has(.cm-btn:hover,.cm-x:hover,.cm-x:focus-visible,.cm-toggle:focus-visible) .cm-x{display:grid}
.cm:has(.sel:checked):has(.cm-btn:hover,.cm-x:hover,.cm-x:focus-visible,.cm-toggle:focus-visible) .cm-badge{visibility:hidden}
.cm-x:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
/* Quick search: first row of the panel, above the results */
/* Phones: a menu of the search form opens over the whole screen (easier to pick from), with its name and Г— on top;
   the page under it does not scroll. */
.cm-top{display:none;position:absolute;top:0;left:0;right:0;height:3.25rem;align-items:center;justify-content:space-between;gap:.5rem;padding:0 .5rem 0 1rem;border-bottom:1px solid var(--line);background:var(--bg-soft)}
.cm-foot{display:none}
.cm-apply{display:block;width:100%;min-height:2.75rem;border:0;border-radius:4px;background:var(--fill);color:var(--on-brand);font:inherit;font-weight:700;cursor:pointer}
.cm-apply:hover{background:var(--fill-hover)}
.cm-apply:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.cm-ttl{font-size:1.05rem;font-weight:700;color:var(--brand)}
.cm:not(:is(:focus-within,:has(.cm-toggle:checked))) .cm-panel,
.cm.cm-shut .cm-panel{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media (max-width:36rem){
  html:has(.cm:not(.cm-shut) .cm-toggle:checked) .searchrow,
  html:has(.cm:not(.cm-shut):not(.dm):focus-within) .searchrow,
  html:has(.cm:not(.cm-shut):not(.dm) :focus-within) .searchrow{display:none!important}
  .form-all:has(.cm:not(.cm-shut) .cm-toggle:checked),
  .form-all:has(.cm:not(.cm-shut):not(.dm):focus-within),
  .qfields:has(.cm:not(.cm-shut) .cm-toggle:checked),
  .qfields:has(.cm:not(.cm-shut):not(.dm):focus-within),
  .qfilters:has(.cm:not(.cm-shut) .cm-toggle:checked),
  .qfilters:has(.cm:not(.cm-shut):not(.dm):focus-within){position:relative!important;z-index:2000!important}
  .cm:not(.cm-shut):has(.cm-toggle:checked),
  .cm:not(.cm-shut):not(.dm):focus-within{position:relative!important;z-index:2001!important}
  .cm:not(.cm-shut):is(:not(.dm):focus-within,:has(.cm-toggle:checked)) :is(.cm-head,.dm-head){visibility:hidden!important}
  :is(.qfilters,.qfields) .cm:not(.cm-shut):is(:not(.dm):focus-within,:has(.cm-toggle:checked)) .cm-panel,
  .cm-dd.dm:not(.cm-shut):has(.cm-toggle:checked) .cm-panel{position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;z-index:2002!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;background:var(--bg)!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding:3.25rem 0 4.5rem!important;display:flex!important;flex-direction:column!important;visibility:visible!important}
  :is(.qfilters .cm,.qfields .cm) .cm-top{display:flex!important;position:fixed!important;top:0!important;left:0!important;right:0!important;height:3.25rem!important;z-index:2005!important;background:var(--bg-soft)!important;border-bottom:1px solid var(--line)!important;padding:0 .5rem 0 1rem!important;box-sizing:border-box!important}
  :is(.qfilters .cm,.qfields .cm) :is(.cm-panel>.cm-q,.cm-l){border-bottom:3px solid var(--fill)}
  .qfilters .jm-picked{border-top:3px solid var(--fill)}
  :is(.qfilters .cm,.qfields .cm) .cm-foot{display:block!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;height:auto!important;z-index:2005!important;padding:.75rem 1rem!important;border-top:1px solid var(--line)!important;background:var(--bg-soft)!important;box-sizing:border-box!important}
  :is(.qfilters .cm,.qfields .cm) :is(.cm-head,.dm-head)::after{display:none!important}
  html:has(.cm:not(.cm-shut) .cm-toggle:checked),
  html:has(.cm:not(.cm-shut):not(.dm):focus-within),
  html:has(.cm:not(.cm-shut):not(.dm) :focus-within){overflow:hidden!important}
  /* the date field: typing in it never opens the full-screen calendar, only its calendar button does */
  .cm-dd.dm:not(:has(.cm-toggle:checked)) .cm-panel{visibility:hidden!important}

  /* Drill-down container for Courts and Categories on mobile */
  .cm-drill{display:flex!important;position:relative!important;width:100%!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
  .cm-drill>.cm-l{flex:0 0 100%!important;width:100%!important;min-width:100%!important;border-right:0!important;border-bottom:0!important;overflow-y:auto!important;transition:transform .25s ease-in-out!important}
  .cm-drill>.cm-c{flex:0 0 100%!important;width:100%!important;min-width:100%!important;overflow-y:auto!important;transition:transform .25s ease-in-out!important}

  /* #cm: default #rv-0 shows regions, selecting region slides to courts */
  #cm:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut):has(#rv-0:checked) .cm-drill>.cm-l{transform:translateX(0)!important;display:block!important;visibility:visible!important}
  #cm:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut):has(#rv-0:checked) .cm-drill>.cm-c{transform:translateX(0)!important;display:none!important;visibility:hidden!important}
  #cm:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut):has(.rv:not(#rv-0):checked) .cm-drill>.cm-l{transform:translateX(-100%)!important;display:none!important;visibility:hidden!important}
  #cm:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut):has(.rv:not(#rv-0):checked) .cm-drill>.cm-c{transform:translateX(0)!important;display:block!important;visibility:visible!important}
  #cm:has(.cm-c.found) .cm-drill>.cm-l{display:none!important}
  #cm:has(.cm-c.found) .cm-drill>.cm-c{transform:none!important;display:block!important;visibility:visible!important}

  /* #km: default shows root categories, .cm-in-tree slides to tree pane */
  #km:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut):not(.cm-in-tree) .cm-drill>.cm-l{transform:translateX(0)!important;display:block!important;visibility:visible!important}
  #km:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut):not(.cm-in-tree) .cm-drill>.cm-c{transform:translateX(0)!important;display:none!important;visibility:hidden!important}
  #km:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut).cm-in-tree .cm-drill>.cm-l{transform:translateX(-100%)!important;display:none!important;visibility:hidden!important}
  #km:is(:has(.cm-toggle:checked),:focus-within):not(.cm-shut).cm-in-tree .cm-drill>.cm-c{transform:translateX(0)!important;display:block!important;visibility:visible!important}
  #km:has(.tree-pane.found) .cm-drill>.cm-l{display:none!important}
  #km:has(.tree-pane.found) .cm-drill>.cm-c{transform:none!important;display:block!important;visibility:visible!important}

  /* Back buttons in drill-down headers */
  .cg-back{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:2.25rem!important;height:2.25rem!important;min-width:2.25rem!important;padding:0!important;margin-right:.5rem!important;border:0!important;border-radius:4px!important;background:var(--fill)!important;color:var(--on-brand)!important;font:inherit!important;font-size:1.35rem!important;font-weight:700!important;cursor:pointer!important;line-height:1!important;user-select:none!important;flex:none!important}
  .cg-back:hover{background:var(--fill-hover)!important}
  .cg>.cg-h{align-items:center!important}
  .tree-pane-h{display:flex!important;align-items:center!important;gap:.5rem!important}
  /* the drill-down header (вЂ№, the region / category, В«РћР±СЂР°С‚Рё РІСЃС–В») stays on top while its list scrolls; the chevron
     is drawn, so it sits in the exact middle of its button */
  :is(.cg,.cm-c)>.cg-h,.tree-pane-h{position:sticky!important;top:-.6rem!important;z-index:3!important;float:none!important;margin:-.6rem 0 .4rem!important;padding:.6rem 0 .4rem!important;background:var(--bg)!important}
  .cg-back{font-size:0!important}
  .cg-back::before{content:"";width:.55rem;height:.55rem;border:solid currentColor;border-width:0 0 2.5px 2.5px;transform:translateX(.12rem) rotate(45deg)}
}
.cm-drill{display:contents}
.cg-back{display:none}
.km-pick-btn{display:none}
.km-picked{display:none}
#cm:has(#rv-0:checked) .cg:first-of-type{display:block;visibility:visible}
.cm-panel>.cm-q{grid-column:1/-1;padding:.6rem .75rem;border-bottom:1px solid var(--line)}
.cm-q input{min-height:2.75rem}
.cm-panel{position:absolute;z-index:30;left:var(--cm-off,0px);right:0;top:calc(100% + .4rem);height:55vh;min-height:20rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-rows:auto minmax(0,1fr) auto;visibility:hidden;background:var(--bg);border:1px solid var(--field);border-radius:6px;box-shadow:0 10px 28px rgb(var(--shadow-rgb) / .16)}
.cm:is(:focus-within,:has(.cm-toggle:checked)) .cm-panel{visibility:visible}
/* Invisible bridge over the gap between the button row and the panel keeps the hover.
   Extends across and above the button bottom edge so moving cursor into the panel doesn't lose hover. */
.cm-panel::before{content:"";position:absolute;left:-.5rem;right:-.5rem;top:-.75rem;height:.85rem;pointer-events:auto}
.cm-l{margin:0;padding:.6rem .75rem;border:0;border-right:1px solid var(--line);overflow:auto;min-width:0}
.cm-l>.cm-lg,.cg>.cg-h,.cm-h{float:left;width:100%;margin:0 0 .4rem;padding:0;font-size:.8rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.cm-r{clear:both;display:flex;align-items:center;gap:.55rem;padding:.35rem 0;line-height:1.35}
.cm-r input{width:1.15rem;height:1.15rem;margin:0;flex:none;accent-color:var(--brand)}
.cm-rn{flex:0 1 auto;margin-right:auto;font-weight:400;font-size:.92rem;color:var(--brand);cursor:pointer;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:.2em;border-radius:4px;padding:.15rem .55rem;margin:-.15rem auto -.15rem -.3rem;transition:background .12s ease,color .12s ease}
.cm-rn:hover{text-decoration-color:currentColor}
.cm-n{flex:none;color:var(--muted);font-size:.78rem;line-height:1.59}
.cm-c{position:relative;overflow:auto;min-width:0}
.cg{position:absolute;inset:0;overflow:auto;margin:0;padding:.6rem 1rem;border:0;visibility:hidden}
.court{clear:both}
.cm:is(:focus-within,:has(.cm-toggle:checked)) .rv:checked+.cg{visibility:visible}
.rv:focus-visible+.cg>.cg-h{outline:3px solid var(--focus);outline-offset:2px}
/* Quick-search results ("Р—РЅР°Р№РґРµРЅС– СЃСѓРґРё"): region under each court, matches highlighted */
.cm-c.found{padding:.6rem 1rem}
.cn{display:grid;gap:.1rem;line-height:1.35}
.cn .hint{font-size:.78rem}
.cm-keep{position:absolute;visibility:hidden}
.cm-none{clear:both;margin:.5rem 0;color:var(--muted)}
@media (max-width:40rem){
  .cm-panel{height:65vh;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,2fr) minmax(0,3fr) auto}
  .cm-l{border-right:0;border-bottom:1px solid var(--line)}
}
/* Esc / outside click (ui.js) force the menu shut until the pointer or focus leaves it. */
.cm.cm-shut .cm-q{display:none!important}
.cm.cm-shut :is(.cm-panel,.cg){visibility:hidden!important}
/* "РћР±СЂР°С‚Рё СѓСЃС–" / "РџСЂРёР±СЂР°С‚Рё СѓСЃС–" right of the region name in the courts pane: a label for the region checkbox
   (ui.js then (un)checks its courts). Text follows that checkbox via generated .cm:has([data-group-all=N]:checked) state. */
.cg>.cg-h{display:flex;align-items:center;gap:.75rem}
.cm-all{display:inline-flex;align-items:center;min-height:1.6rem;padding:.1rem .5rem;border:1px solid var(--brand);border-radius:3px;background:transparent;color:var(--brand);font-size:.75rem;font-weight:600;letter-spacing:0;text-transform:none;white-space:nowrap;cursor:pointer}
.cm-all:hover{background:var(--chip)}
.cm-all .a-off{display:none}
/* Two menus in one row ("РЎСѓРґРё", "РљР°С‚РµРіРѕСЂС–С—"): every panel spans the whole row. Both buttons share --cm-w,
   so the panel of a menu that is not first is shifted left by the buttons before it. */
/* Region / root-category names as buttons (categories load their tree on click) */
button.cm-rn{appearance:none;border:0;background:none;font:inherit;font-size:.92rem;text-align:left}
/* Category tree */
.tree-pane{padding:.6rem 1rem}
.tree-pane-h{display:flex;align-items:center;gap:.75rem;margin:0 0 .4rem;font-size:.8rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.tree,.tree ul{margin:0;padding:0;list-style:none}
.tree ul{padding-left:1.4rem}
.tree summary{display:flex;align-items:flex-start;list-style:none;cursor:pointer}
.tree summary::-webkit-details-marker{display:none}
.tree-x{flex:none;width:1.4rem;height:1.92rem;position:relative}
.tree-x::before{content:"";position:absolute;left:.35rem;top:50%;width:.4rem;height:.4rem;margin-top:-.25rem;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(-45deg);transition:transform .12s}
details[open]>summary>.tree-x::before{transform:rotate(45deg)}
details>summary:hover>.tree-x::before{border-color:var(--brand)}
.tree .check{font-size:.9rem;min-width:0}
.tree input:disabled+*,.tree-node:disabled{opacity:.6}
/* Row of filter menus: [Р†РЅСЃС‚Р°РЅС†С–СЏ][РЎСѓРґРё][РљР°С‚РµРіРѕСЂС–С—][Р¤РѕСЂРјР° СЂС–С€РµРЅРЅСЏ]. The big menus' panels span the whole row
   (shifted by the buttons around them); "Р¤РѕСЂРјР° СЂС–С€РµРЅРЅСЏ" is a plain dropdown under its own button. */
/* Big-menu panels span the whole menu row (positioned against .qfilters), indented on the left (BeOS style). */
.cm:not(.cm-dd) .cm-panel{left:var(--cm-off,0px);right:0}
#km{--cm-w:var(--km-w)}
#jm{--cm-w:var(--jud-w)}
#csm{--cm-w:var(--cs-w)}
.cm-one{grid-template-columns:minmax(0,1fr)}
.cm-c.cm-list{padding:.6rem 1rem}
.cm-dd{--cm-w:var(--dd-w)}
#im{--cm-w:var(--ins-w)}
/* the rightmost dropdown (В«Р¤РѕСЂРјР° СЂС–С€РµРЅРЅСЏВ») opens to the left: at в‰Ґ17rem it would stick out of the page (h-scroll) */
.qfilters>.cm-dd:last-child:not(.cm-sort) .cm-panel{left:auto;right:0}
.cm-dd .cm-panel{left:var(--cm-off,0px);right:0;width:auto;height:auto;max-height:60vh;min-height:0;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}   /* a long list scrolls inside the panel */
.cm-list{margin:0;padding:.5rem .9rem;border:0;overflow:auto}
.cm-list .check>.hint,.cg .check>.hint{margin-left:auto;padding-left:.5rem;white-space:nowrap;flex:none}
/* Where the 4 menu buttons (в‰€ 44rem) do not fit the main column вЂ” phones/narrow tablets and narrow desktops вЂ”
   menus wrap; an open big menu takes its own line and its panel that line's width. */
@media (max-width:84rem){
  .qfilters{flex-wrap:wrap}
  .cm:not(.cm-dd) .cm-panel{left:var(--cm-off,0px);right:0}
}
/* "РЎСѓРґРґСЏ" pane: В«РћР±СЂР°РЅС– СЃСѓРґРґС–В» | В«Р—РЅР°Р№РґРµРЅС– СЃСѓРґРґС–В» (matches VRP, one column on phones) */
.jm-pane{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);overflow:hidden}
.jm-col{overflow:auto;padding:.6rem 1rem;min-width:0}
.jm-picked{grid-area:1/1;border-right:1px solid var(--line);background:var(--bg-soft)}
/* Explicit cells: the loading overlay shares the "found" cell, so auto-placement must not shift the columns. */
.jm-found,.jm-load{grid-area:1/2}
.jm-picked-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.35rem}
.jm-picked-head .cm-h{margin:0}
:is(.jm-pick-btn,.km-pick-btn){display:none}
.btn-clear-all{display:inline-flex;align-items:center;padding:.15rem .45rem;border:1px solid var(--line);border-radius:3px;background:var(--bg);color:var(--brand);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer;line-height:1.2;white-space:nowrap}
.btn-clear-all:hover{background:var(--chip);color:var(--danger);border-color:var(--danger)}
.btn-clear-all:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
@media (max-width:40rem){.jm-pane{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,2fr) minmax(0,3fr)}.jm-picked{grid-area:1/1;border-right:0;border-bottom:1px solid var(--line)}:is(.jm-found,.jm-load){grid-area:2/1}}
@media (max-width:36rem){
  :is(#jm,#km) .cm-panel>.cm-q{display:flex!important;align-items:center!important;gap:.5rem!important}
  :is(#jm,#km) .cm-q input[type=search]{flex:1!important;min-width:0!important}
  :is(.jm-pick-btn,.km-pick-btn){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:2.75rem!important;height:2.75rem!important;padding:0 .85rem!important;border:0!important;border-radius:4px!important;background:var(--fill)!important;color:var(--on-brand)!important;font:inherit!important;font-size:.95rem!important;font-weight:700!important;cursor:pointer!important;flex:none!important;user-select:none!important}
  :is(.jm-pick-btn,.km-pick-btn):hover{background:var(--fill-hover)!important}
  :is(.jm-pick-toggle,.km-pick-toggle):focus-visible+:is(.jm-pick-btn,.km-pick-btn){outline:3px solid var(--focus)!important;outline-offset:2px!important}
  :is(.jm-pick-cnt,.km-pick-cnt)::after{content:attr(data-count)!important;display:block!important;line-height:1!important}
  /* В«РћР±СЂР°РЅС–В» open: the counter turns into the red Г— that closes them (back to the found list) */
  :is(.jm-pick-toggle,.km-pick-toggle):checked+:is(.jm-pick-btn,.km-pick-btn){background:var(--danger)!important;color:var(--on-brand)!important;box-shadow:none!important}
  :is(.jm-pick-toggle,.km-pick-toggle):checked+:is(.jm-pick-btn,.km-pick-btn):hover{background:var(--danger-hover,var(--danger))!important}
  :is(.jm-pick-toggle,.km-pick-toggle):checked+:is(.jm-pick-btn,.km-pick-btn) :is(.jm-pick-cnt,.km-pick-cnt)::after{content:""!important;width:1.1rem;height:1.1rem;background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat;transform:rotate(45deg)}   /* drawn, so it sits in the exact middle */
  .jm-pick-btn:has(.jm-pick-cnt[data-count="0"]),
  .jm-pick-btn:has(.jm-pick-cnt:not([data-count])),
  .km-pick-btn:has(.km-pick-cnt[data-count="0"]),
  .km-pick-btn:has(.km-pick-cnt:not([data-count])){display:none!important}

  #jm .jm-pane{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  #jm :is(.jm-picked,.jm-found,.jm-load){grid-area:1/1;border:0;background:var(--bg)}
  #jm:not(:has(.jm-pick-toggle:checked)) .jm-picked{display:none}
  #jm:has(.jm-pick-toggle:checked) :is(.jm-found,.jm-load){display:none}
  /* VRP people menus (.people-menu): one column, В«РћР±СЂР°РЅС–В» behind the pick button, like #jm above */
  .people-menu .cm-panel>.cm-q{display:flex;align-items:center;gap:.5rem}
  .people-menu .cm-q input[type=search]{flex:1;min-width:0}
  .people-menu .jm-pane{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .people-menu :is(.jm-picked,.jm-found,.jm-load){grid-area:1/1;border:0;background:var(--bg)}
  .people-menu:not(:has(.jm-pick-toggle:checked)) .jm-picked{display:none}
  .people-menu:has(.jm-pick-toggle:checked) :is(.jm-found,.jm-load){display:none}

  #km:not(:has(#km-picked:checked)) .km-picked{display:none!important}
  #km:has(#km-picked:checked) .cm-drill{display:none!important}
  #km:has(#km-picked:checked) .km-picked{display:block!important;flex:1 1 auto!important;overflow-y:auto!important;background:var(--bg)!important;padding:.6rem 1rem!important}
}
/* Loading states. Judge suggestions (hx-indicator): overlay over the "found" column, spinner centred, ~10% of its width. */
.jm-load{z-index:1;display:none;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;margin:0;background:color-mix(in srgb,var(--bg) 85%,transparent);color:var(--muted);font-size:.95rem}
.jm-load.htmx-request{display:flex}
.jm-load .spinner{width:clamp(2.5rem,10%,6rem);height:auto;aspect-ratio:1;border-width:4px}
.kl-load .spinner{width:1rem;height:1rem;border-width:2px}
.kl-load{display:flex;align-items:center;gap:.5rem;padding:.3rem 0 .3rem 1.4rem;color:var(--muted);font-size:.85rem;list-style:none}
/* Menu row = full width of the search form; all five buttons equal. Badge / Г— sit at the button's right edge. */
.qfilters>.cm{flex:1 1 0;min-width:0}
.qfilters .cm-head{flex:1;min-width:0;width:100%}
.qfilters .cm-btn{width:100%;min-width:0}
.qfilters .cm-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qfilters :is(.cm-badge,.cm-x){left:auto;right:.65rem;transform:translateY(-50%)}
/* Second row: case в„–, registration в„–, decision date, receipt date, decision form. */
.qfields{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem;align-items:start}
@media (min-width:36rem){.qfields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:60rem){.qfields{grid-template-columns:minmax(8.5rem,1fr) minmax(8.5rem,1fr) minmax(11rem,1.3fr) minmax(11rem,1.3fr) minmax(10.5rem,1.2fr)}}
.qfields>.cm-dd:not(.dm){min-width:0}
.qfields>.cm-dd:not(.dm) .cm-head,.qfields>.cm-dd:not(.dm) .cm-btn{width:100%}
.qfields>.cm-dd:not(.dm) .cm-btn{height:var(--ctl-h);min-height:var(--ctl-h);gap:.4rem;padding:0 2.3rem 0 .7rem;font-size:.86rem}
.qfields>.cm-dd:not(.dm) .cm-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qfields>.cm-dd:not(.dm) :is(.cm-badge,.cm-x){left:auto;right:.65rem;transform:translateY(-50%);height:1.4rem;min-width:1.4rem;font-size:.75rem}
.qfields>.cm-dd .cm-panel{z-index:36}
.qfields>.cm-dd :is(.cm-head,.dm-head)::after{top:calc(100% + .4rem - .283rem);z-index:37}
.qfields>.cm-dd:last-child .cm-panel{left:var(--cm-off,0px);right:0;width:auto}
@media (min-width:84rem){
  .qfields>.cm-dd:not(.dm) .cm-panel{left:var(--cm-off,0px);right:auto;width:max(calc(100% - var(--cm-off,0px)),22rem);max-width:calc(100vw - 2rem)}
  #m-body .cm-panel{left:auto;right:0;width:max(calc(100% - var(--cm-off,0px)),28rem)}
  .qfields>.cm-dd:last-child .cm-panel{left:auto;right:0;width:max(calc(100% - var(--cm-off,0px)),32rem);max-width:calc(100vw - 2rem)}
}
@media (min-width:36.01rem) and (max-width:83.99rem){
  .qfields>.cm-dd:not(.dm){position:relative}
  .qfields>.cm-dd:not(.dm):nth-child(odd) .cm-panel{left:var(--cm-off);right:0;width:auto}
  .qfields>.cm-dd:not(.dm):nth-child(even) .cm-panel{left:0;right:var(--cm-off);width:auto}
}
/* Menu row: instance, court, judge, category, proceedings form, sort */
.qfilters{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem;margin-top:calc(.6rem - 1rem)}
.qfilters>.cm{min-width:0}
/* Facet panels must cover the people buttons in the next grid row. */
.qfilters .cm-panel{z-index:34}
.qfilters .cm-head::after{z-index:35}
@media (min-width:36rem){.qfilters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:60rem){
  .qfilters{grid-template-columns:repeat(5,minmax(0,1fr)) var(--ctl-h)}
}
.qfields .field{gap:.25rem}
.qfields .float label{font-size:.95rem;max-width:calc(100% - 1rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* One control height for the menu row and the fields row (agreed 2026-10-24): 2.5rem = 40px (в‰Ґ 24px, WCAG 2.5.8).
   --cm-off indents dropdown panels from the left edge of their button (BeOS style) so menus underneath stay visible. */
.layout{--ctl-h:2.5rem;--cm-off:2.25rem}
@media (max-width:36rem){.layout{--cm-off:0px}}
.qfilters .cm-btn{min-height:var(--ctl-h);height:var(--ctl-h);padding-top:0;padding-bottom:0;font-size:.9rem}
.qfilters :is(.cm-badge,.cm-x){height:1.4rem;min-width:1.4rem;font-size:.75rem}
.qfields .float input{height:var(--ctl-h);min-height:0;padding:0 .7rem;font-size:.95rem}
.qfields .float label{font-size:.9rem}
@media (min-width:36.01rem) and (max-width:83.99rem){
  .layout{--cm-off:3.75rem}
  :is(.form-all[data-qf="6"] .qfilters, .qfilters) .people-menu,
  .form-all[data-qf="6"] .qfilters>.cm:not(.cm-dd){position:relative}
  :is(.form-all[data-qf="6"] .qfilters, .qfilters) .people-menu:nth-child(odd) .cm-panel,
  .form-all[data-qf="6"] .qfilters>.cm:not(.cm-dd):nth-child(odd) .cm-panel{left:var(--cm-off);right:calc(-100% - .6rem + var(--cm-off));width:auto}
  :is(.form-all[data-qf="6"] .qfilters, .qfilters) .people-menu:nth-child(even) .cm-panel,
  .form-all[data-qf="6"] .qfilters>.cm:not(.cm-dd):nth-child(even) .cm-panel{left:calc(-100% - .6rem + var(--cm-off));right:var(--cm-off);width:auto}
}
@media (min-width:36.01rem) and (max-width:59.99rem){
  .qfilters>.cm:not(.cm-dd){position:relative}
  .qfilters>.cm:not(.cm-dd):nth-child(odd) .cm-panel{left:var(--cm-off);right:calc(-100% - .6rem + var(--cm-off));width:auto}
  .qfilters>.cm:not(.cm-dd):nth-child(even) .cm-panel{left:calc(-100% - .6rem + var(--cm-off));right:var(--cm-off);width:auto}
  .qfilters>.cm-dd:nth-child(odd) .cm-panel{left:var(--cm-off);right:0;width:auto}
  .qfilters>.cm-dd:nth-child(even) .cm-panel{left:0;right:var(--cm-off);width:auto}
}
/* Sort button at the end of the menu row */
.cm-sort{flex:none;--cm-w:var(--ctl-h)}
.cm-sort .cm-head,.cm-sort .cm-btn{width:var(--ctl-h)}
.cm-sort .cm-btn{height:var(--ctl-h);min-height:0;padding:0;justify-content:center}
.cm-sort .cm-panel{left:auto;right:0;width:20rem;max-width:calc(100vw - 2rem)}
.cm-sort .check input{accent-color:var(--fill)}
.cm-sort .cm-btn{background:var(--bg);border-color:var(--brand)}
.so-v{display:none}
.cm-sort .so-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:59.99rem){
  .qfilters>.cm-sort{--cm-w:100%;width:100%}
  .cm-sort .cm-head{display:flex;width:100%}
  .cm-sort .cm-btn{width:100%;padding:0 .85rem;justify-content:flex-start;gap:.5rem;font-size:.9rem}
  .cm-sort .so-l{position:static;flex:none;width:auto;height:auto;overflow:hidden;clip:auto;text-overflow:ellipsis}
  .qfilters>.cm-sort .cm-panel,
  .cm-sort .cm-panel{left:0!important;right:var(--cm-off)!important;width:auto!important;max-width:none!important}
  .cm-sort .so-v{display:block;margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:.85rem;color:var(--muted)}
  .cm-sort:is(:focus-within,:has(.cm-toggle:checked)) .so-v{color:inherit}
}
/* Six quick fields (VRP: <form class="form-all" data-qf="6">): fields, menus and the order button stay in two columns
   up to 84rem and form one row from there; the long body / subject names get wider dropdowns. */
@media (min-width:60rem) and (max-width:83.99rem){
  .form-all[data-qf="6"]>:is(.qfields,.qfilters){grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-all[data-qf="6"]>.qfilters>.cm-sort{--cm-w:100%;width:100%}
  .form-all[data-qf="6"] .cm-sort .cm-head{display:flex;width:100%}
  .form-all[data-qf="6"] .cm-sort .cm-btn{width:100%;padding:0 .85rem;justify-content:flex-start;gap:.5rem;font-size:.9rem}
  .form-all[data-qf="6"] .cm-sort .so-l{position:static;flex:none;width:auto;height:auto;overflow:hidden;clip:auto;text-overflow:ellipsis}
  .form-all[data-qf="6"] .qfilters>.cm-sort .cm-panel,
  .form-all[data-qf="6"] .cm-sort .cm-panel{left:0!important;right:var(--cm-off)!important;width:auto!important;max-width:none!important}
  .form-all[data-qf="6"] .cm-sort .so-v{display:block;margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:.85rem;color:var(--muted)}
  .form-all[data-qf="6"] .cm-sort:is(:focus-within,:has(.cm-toggle:checked)) .so-v{color:inherit}
}
@media (min-width:84rem){
  .form-all[data-qf="6"]>.qfields{--date-width:14.75rem;grid-template-columns:minmax(11rem,1.3fr) minmax(11rem,1.3fr) minmax(0,var(--date-width)) minmax(10.6rem,1.15fr) minmax(11.5rem,1.15fr) minmax(11.5rem,1.2fr)}
  .form-all[data-qf="6"]>.qfields:has(.dm-x){--date-width:15.5rem}
  .form-all[data-qf="6"]>.qfields>.cm-dd:not(.dm) .cm-panel{left:0;right:auto;width:max(100%,22rem);max-width:calc(100vw - 2rem)}
  .form-all[data-qf="6"]>.qfields>.cm-dd:nth-last-child(2) .cm-panel{left:auto;right:0;width:max(100%,28rem)}
  .form-all[data-qf="6"]>.qfields>.cm-dd:last-child .cm-panel{left:auto;right:0;width:max(100%,32rem)}
}
/* option: the name, the date arrow (as in the В«Р”Р°С‚Р° СЂС–С€РµРЅРЅСЏВ» title) by it, the explanation on its own line under it */
.so-t>.hint{display:block;margin-top:.1rem}
.so-a{margin-left:.4rem;color:var(--brand);font-size:.8rem}
.qfields{position:relative;z-index:35} /* above the menu row (buttons z 31), so the calendar covers it */
/* An open search menu must stay usable where it crosses the quick viewer and float inputs. */
.qfields:has(.cm:not(.cm-shut):has(.cm-toggle:checked)),
.qfields:has(.cm:not(.cm-shut):focus-within),
.qfilters:has(.cm:not(.cm-shut):has(.cm-toggle:checked)),
.qfilters:has(.cm:not(.cm-shut):focus-within){z-index:70}
.cm.dm{position:relative;display:block}
.dm-head{position:relative;display:block}
.cm-dd.dm .cm-panel{left:0;right:auto;width:min(44rem,calc(100vw - 2 * var(--gx)));height:auto;max-height:none;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}
@media (min-width:60rem){
  .cm-dd.dm .cm-panel{width:min(44rem,calc(100vw - var(--rail) - 2 * var(--gx)))}
  .qfields>:is(#dm-reg,.cm-dd.dm:nth-child(4)) .cm-panel{left:auto;right:0}
}
@media (min-width:36.01rem) and (max-width:59.99rem){
  .qfields>.cm-dd.dm:nth-child(odd) .cm-panel{left:var(--cm-off);right:calc(-100% - .6rem + var(--cm-off));width:auto}
  .qfields>.cm-dd.dm:nth-child(even) .cm-panel{left:calc(-100% - .6rem + var(--cm-off));right:var(--cm-off);width:auto}
}
@media (min-width:60rem) and (max-width:83.99rem){
  .form-all[data-qf="6"] .qfields>.cm-dd.dm:nth-child(odd) .cm-panel{left:var(--cm-off);right:calc(-100% - .6rem + var(--cm-off));width:auto}
  .form-all[data-qf="6"] .qfields>.cm-dd.dm:nth-child(even) .cm-panel{left:calc(-100% - .6rem + var(--cm-off));right:var(--cm-off);width:auto}
}
.dm-c{display:grid;grid-template-columns:auto minmax(0,1fr)}
.dm-pre{display:grid;align-content:start;gap:.1rem;margin:0;padding:.5rem;list-style:none;border-right:1px solid var(--line)}
.dm-p{width:100%;padding:.4rem .6rem;border:0;border-radius:4px;background:none;font:inherit;font-size:.88rem;color:var(--ink);text-align:left;white-space:nowrap;cursor:pointer}
.dm-p:hover{background:var(--chip)}
.dm-cal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.25rem;padding:.4rem .75rem .6rem}
.dm-nav{grid-column:1/-1;display:flex;justify-content:space-between;margin-bottom:-1.9rem}
.dm-nav button{position:relative;z-index:1;width:2rem;height:2rem;padding:0;border:0;border-radius:4px;background:none;font:inherit;font-size:1.2rem;line-height:1;color:var(--brand);cursor:pointer}
.dm-nav button:hover,.dm-d:hover{background:var(--chip)}
.dm-m{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.85rem}
.dm-m caption{height:2rem;line-height:2rem;font-weight:600;color:var(--ink)}
.dm-m th{padding:.2rem 0;font-size:.75rem;font-weight:600;color:var(--muted)}
.dm-m td{padding:1px 0;text-align:center}
.dm-d{width:100%;height:2rem;padding:0;border:0;background:none;font:inherit;color:var(--ink);cursor:pointer}
.dm-d.in{background:var(--hl)}
.dm-d.s,.dm-d.e{border-radius:4px;background:var(--fill);color:var(--on-brand)}
.dm-d.t{font-weight:700;text-decoration:underline;text-underline-offset:.2em}
@media (max-width:40rem){
  .dm-c{grid-template-columns:minmax(0,1fr)}
  .dm-pre{display:flex;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line)}
  .dm-p{width:auto}
  .dm-cal{grid-template-columns:minmax(0,1fr)}
  .dm-m~.dm-m{display:none}
}
@media (max-width:36rem){
  .cm-dd.dm .cm-panel{position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;width:100vw!important;height:100vh!important;max-height:none!important;min-height:0!important;background:var(--bg)!important;z-index:2002!important;padding:3.25rem 0 4.5rem!important;box-sizing:border-box!important}
  .dm-c{display:flex!important;flex-direction:column!important;width:100%!important;background:var(--bg)!important;box-sizing:border-box!important;flex:1 1 auto!important;overflow-y:auto!important}
  .dm-pre{display:flex!important;flex-wrap:wrap!important;border-right:0!important;border-bottom:1px solid var(--line)!important;padding:.5rem .75rem!important;gap:.35rem!important}
  .dm-p{width:auto!important;padding:.35rem .6rem!important;border:1px solid var(--line)!important;border-radius:4px!important;background:var(--chip)!important}
  .dm-cal{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:.75rem!important;gap:0!important}
  .dm-m~.dm-m{display:none!important}
}
/* Date range field = text input (РґРґ.РјРј.СЂСЂСЂСЂ вЂ“ РґРґ.РјРј.СЂСЂСЂСЂ) with the floating label of .float; the hint shows only
   while the empty field has focus. Right edge: "Г—" (with a value), then the calendar icon вЂ” no free space after. */
.dm-head input{padding-right:2.5rem}
.dm-head:has(.dm-x) input{padding-right:4.3rem}
.dm-head input::placeholder{color:transparent}
.dm-head input:focus::placeholder{color:var(--muted)}
.qfields .dm-head .dm-ico{left:auto;max-width:none;padding:0;overflow:visible;background:none;font-size:inherit;pointer-events:auto;transition:none;position:absolute;right:.3rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:2rem;height:2rem;border-radius:4px;color:var(--brand);cursor:pointer}
.qfields .dm-head .dm-ico:hover{background:var(--chip)}
.dm:has(>.cm-toggle:focus-visible) .dm-ico{outline:3px solid var(--focus);outline-offset:0}
.dm-x{position:absolute;right:2.4rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:3px;background:var(--danger);color:var(--on-brand);font-size:1rem;line-height:1;cursor:pointer}
.dm-x:hover{background:var(--danger-hover)}
.dm:has(.cm-toggle:checked):not(.cm-shut) .dm-head input{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.dm-head input[aria-invalid=true]{border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger)}
.dm-err{position:absolute;left:.1rem;top:calc(100% + .15rem);font-size:.75rem;color:var(--danger);white-space:nowrap}
/* Results (agreed 2026-10-24): a table like the legacy registry on wide screens, one block per decision on phones.
   Each decision is an <article> grid row; every cell has its own label (.lb): visually hidden in the table (screen
   readers still hear "РќР°Р·РІР° СЃСѓРґСѓ: вЂ¦"), shown on phones. The header row is visual only. Excerpts = second line. */
/* Class .res (not .row: that one lays out legacy form rows). Rows are bordered like table rows (agreed 2026-10-24). */
.results{--cols:7.5rem 6rem 6.5rem minmax(6.5rem,1fr) minmax(9rem,1.7fr) 8rem 2.25rem;--cg:.75rem}
/* В«EyeВ» quick-view button at the end of a record: a framed icon (2.25rem в‰€ 36px target) */
.peek{display:grid;place-items:center;width:2.25rem;height:2.25rem;margin-top:-.35rem;border:1px solid var(--peek-line);border-radius:4px;background:var(--soft-btn);color:var(--brand)}
.peek:hover{border-color:var(--brand);background:var(--soft-btn-hover)}
/* the В«eyeВ» of the decision open in the viewer: dark (aria-current is set/cleared by ui.js on open/close) */
.peek[aria-current]{border-color:var(--brand);background:var(--fill);color:var(--on-brand)}
.peek:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
/* the record whose decision is open in the viewer */
.res:has(.peek[aria-current]){border-color:var(--brand)}
.rhead,.res{display:grid;grid-template-columns:var(--cols);column-gap:var(--cg);padding:.6rem .75rem;border:1px solid var(--rb);border-top:0}
.rhead{align-items:center;text-align:left;border-top:1px solid var(--rb);border-radius:6px 6px 0 0;border-color:var(--brand);background:var(--fill);font-size:.76rem;font-weight:600;line-height:1.25;color:var(--on-brand)}
.res{align-items:start;font-size:.85rem;line-height:1.4;overflow-wrap:break-word;hyphens:none;cursor:default}   /* arrow, not I-beam: a double click opens the full text (ui.js); links keep the hand. No content-visibility here: its style containment would hide the В«pickedВ» counter */
.res:nth-of-type(even){background:var(--bg-soft)}
/* Each decision reads as one unit: a separate block with a gap, a navy accent on the left, the decision form and
   the case number in bold; the header stays a bar of its own. */
.rhead{border-radius:6px;margin-bottom:.5rem;padding-block:.25rem;line-height:1.1}
.res{margin-bottom:.5rem;padding:.75rem .9rem;border:1px solid var(--rb);border-left:4px solid var(--brand);border-radius:6px;background:var(--bg)!important;box-shadow:0 1px 2px rgb(var(--shadow-rgb) / .06);color:var(--ink)}
.res:hover{border-color:var(--brand)}
/* Row checkbox (agreed 2026-10-24): the left accent bar is drawn by ::before; on hover / keyboard focus it widens to
   reveal the checkbox, a checked row keeps it wide and turns the bar orange. The checkbox stays focusable when hidden. */
.res{position:relative;border-left-width:1px;padding-left:calc(.9rem + 4px)}
.res::before{content:"";position:absolute;z-index:0;left:-1px;top:-1px;bottom:-1px;width:5px;border-radius:6px 0 0 6px;background:var(--fill);transition:left .12s ease,width .12s ease,background-color .12s ease}
/* centred in the open zone horizontally (inner zone: 0вЂ¦2.25rem), level with the first text line (В«Р С–С€РµРЅРЅСЏВ»); the
   bookmark button sits at the bottom of the zone (icon as a mask: /img/bm.svg, filled bm-on.svg when bookmarked) */
.pick{position:absolute;z-index:1;left:calc(1.125rem - .575rem - 1px);top:.7rem;width:1.15rem;height:1.15rem;margin:0;opacity:0;cursor:pointer;accent-color:var(--pick)}
.res:is(:hover,:has(:focus-visible),:has(.pick:checked)) .pick{opacity:1}
/* 24Г—24 target (2.5.8); the row is at least 4rem high so the 24px circle around the (smaller) checkbox stays clear of it */
.rbm{position:absolute;z-index:1;left:calc(1.125rem - .75rem - 1px);bottom:.3rem;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:3px;background:var(--on-brand);opacity:0;cursor:pointer;mask-image:url(/img/bm.svg),url(/img/bm-on.svg);mask-position:center;mask-repeat:no-repeat;mask-size:1.05rem,0}
.res:has(.rbm){min-height:4rem}
.rbm[aria-pressed="true"]{mask-size:0,1.05rem}   /* both masks are loaded from the start: no blank moment when it toggles */
.res:is(:hover,:has(:focus-visible),:has(.pick:checked)) .rbm{opacity:1}
.rbm:focus-visible{opacity:1;outline:3px solid var(--on-brand);outline-offset:1px}
.res:has(.pick:checked)::before{background:var(--pick)}
.res:has(.pick:checked){border-color:var(--pick)}
.pick:focus-visible{outline:3px solid var(--on-brand);outline-offset:1px}
/* Wide screens with a pointer: the zone opens OUTWARDS, over the free page margin on the left вЂ” the record keeps its
   size and the columns stay under their titles. */
@media (hover:hover) and (min-width:72rem){
  .res:is(:hover,:has(:focus-visible),:has(.pick:checked))::before{left:calc(-1px - 1.9rem);width:calc(1.9rem + 5px)}
  /* outward zone spans from -(1.9rem + 1px) to +4px: its centre is -.95rem + 1.5px */
  .pick{left:calc(-.95rem + 1.5px - .575rem)}
  .rbm{left:calc(-.95rem + 1.5px - .75rem)}
}
/* Narrow or touch screens (no free margin / no hover): the zone sits inside the record and is always open on touch. */
@media not ((hover:hover) and (min-width:72rem)){
  .results .res:is(:hover,:has(:focus-visible),:has(.pick:checked)){padding-left:calc(.85rem + 2.2rem)}
  .res:is(:hover,:has(:focus-visible),:has(.pick:checked))::before{width:2.25rem}
}
@media (hover:none){.results .res{padding-left:calc(.85rem + 2.2rem)}.res::before{width:2.25rem}.pick,.rbm{opacity:1}}
/* В«All shownВ» checkbox (.pick-all in .rsel): the header gets the same checkbox zone as the rows, in the header's
   colour вЂ” with a pointer on wide screens it opens outwards on hover / keyboard focus and stays open while anything is
   ticked (all, or some вЂ” indeterminate); on touch screens it is always open inside the header (as the rows). Where the
   zone only opens on hover inside the row (pointer, < 72rem) there is no export panel either, so no zone. */
.rsel{display:none}
.pick-all{width:1.15rem;height:1.15rem;margin:0;cursor:pointer;accent-color:var(--pick)}
.pick-all:focus-visible{outline:3px solid var(--on-brand);outline-offset:1px}
/* The zone is the header itself: opening, the header grows to the left (negative margin + the same padding, so its
   columns stay put) вЂ” one box, so its edges are pixel-snapped together (a separate positioned block ended 1px below the
   header at fractional zoom) and it keeps its rounded corners on the new left edge, like the rows' zone. All ticked:
   the zone part in the colour of ticked rows (a hard-stop gradient over the border box). */
@media (hover:hover) and (min-width:72rem){
  .rhead{position:relative;transition:margin-left .12s ease,padding-left .12s ease}
  .rsel{display:contents}
  .rhead:is(:hover,:has(:focus-visible),:has(.pick-all:checked,.pick-all:indeterminate)){margin-left:-1.9rem;padding-left:calc(.75rem + 1.9rem)}
  /* the zone of the rows spans -1.9rem вЂ¦ +5px of their border box */
  .rhead:has(.pick-all:checked){border-color:transparent;background:linear-gradient(to right,var(--pick) calc(1.9rem + 5px),var(--fill) 0) border-box}
  /* the checkbox at the rows' place (centre -.95rem + 2.5px of the row's border box), whether the header is grown or not */
  .pick-all{position:absolute;top:50%;left:calc(-.95rem + 1.5px - .575rem);transform:translateY(-50%);opacity:0;transition:left .12s ease}
  .rhead:is(:hover,:has(:focus-visible),:has(.pick-all:checked,.pick-all:indeterminate)) .pick-all{left:calc(.95rem + 1.5px - .575rem);opacity:1}
}
@media (hover:none){
  .rhead{position:relative;padding-left:calc(.75rem + 2.2rem)}
  .rsel{display:contents}
  .pick-all{position:absolute;top:50%;left:calc(1.125rem - .575rem - 1px);transform:translateY(-50%)}
  .rhead:has(.pick-all:checked){border-color:transparent;background:linear-gradient(to right,var(--pick) 2.25rem,var(--fill) 0) border-box}
}
/* cells start after the .pick checkbox: 2 = form, 3 = date, 5 = case number */
.res>:nth-child(2),.res>:nth-child(5){font-weight:600}
.res>:nth-child(2) .c-reg{font-weight:400}
/* Sort arrows in the В«Р”Р°С‚Р° СЂС–С€РµРЅРЅСЏВ» title: dim when off, white plate when on (в‰Ґ 24px targets, WCAG 2.5.8). */
.rh-sort{display:inline-flex;align-items:center;justify-content:center;gap:.3rem}
/* one vertical column в–І over в–ј; off = dim, chosen = bright white (no plate) */
.rh-arr{display:inline-flex;flex-direction:column;flex:none}
/* each arrow is a full 24Г—24px target (WCAG 2.5.8); the glyphs sit at the touching edges (в–І at the bottom of its
   target, в–ј at the top), so they still look close together */
.rh-a{display:grid;justify-items:center;width:1.5rem;height:1.5rem;border-radius:2px;color:rgba(255,255,255,.55);font-size:.82rem;line-height:1;text-decoration:none}
.rh-arr .rh-a:first-child{align-items:end;padding-bottom:1px}
.rh-arr .rh-a:last-child{align-items:start;padding-top:1px}
.rh-a:hover{color:rgba(255,255,255,.85)}
.rh-a.on{color:var(--on-brand)}
.rh-a:focus-visible,.rh-t:focus-visible{outline:2px solid var(--on-brand);outline-offset:1px}
/* the В«Р”Р°С‚Р° СЂС–С€РµРЅРЅСЏВ» title is a link that cycles the order */
.rh-t{color:inherit;text-decoration:none;cursor:pointer}
.rh-t:hover{text-decoration:underline;text-underline-offset:.2em}
/* Divider before each auto-loaded portion: an orange line with a label, so the last record seen stays findable. */
.pgsep{display:flex;align-items:center;gap:.75rem;margin:1.1rem 0 1rem;color:var(--pick-ink);font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.pgsep::before,.pgsep::after{content:"";flex:1;height:2px;background:currentColor;border-radius:1px}
.pgsep span{flex:none}

/* в”Ђв”Ђ Decision viewers (agreed 2026-10-24) в”Ђв”Ђ */
.viewer:empty:not(.htmx-request){display:none}
/* loading: htmx marks #viewer (hx-indicator) while a decision is requested вЂ” the zone shows at once with a spinner over it */
.viewer.htmx-request{position:relative;min-height:12rem}
.viewer.htmx-request::before{content:"";position:absolute;inset:0;z-index:5;background:var(--bg);opacity:.75}
.viewer.htmx-request::after{content:"";position:absolute;z-index:6;top:var(--busy-y,50%);left:50%;width:3rem;height:3rem;margin:-1.5rem 0 0 -1.5rem;border-radius:50%;border:4px solid var(--line);border-top-color:var(--brand);animation:spin .7s linear infinite}
@media (prefers-reduced-motion:reduce){.viewer.htmx-request::after{animation-duration:2s}}
/* Quick viewer: toolbar on top, the text scrolls on its own; full window height on desktop, full screen on phones. */
.viewer{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--rb);border-radius:6px;background:var(--bg);box-shadow:0 6px 18px rgb(var(--shadow-rgb) / .1)}
.dv{display:flex;flex-direction:column;min-height:0;height:100%}
.dv-bar{display:flex;align-items:center;gap:.4rem;flex:none;padding:.6rem .75rem;border-bottom:1px solid var(--line);background:var(--bg-soft)}
.dv-bar .dv-x{margin-left:auto}   /* the title and the full-view icon on the left, Г— on the right */
.dv-full{width:2.25rem;padding:0;justify-content:center;flex:none}
.dv-tab.dv-full{color:var(--field);text-decoration:none}
.dv-tab.dv-full:hover{color:var(--brand);background:var(--chip)}
.dv-t{flex:0 1 auto;min-width:0;margin:0;font-size:1rem;color:var(--brand);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dv-t:focus{outline:none}
.dv-actions{display:flex;align-items:center;gap:.5rem;margin-left:auto}
.dv-f{display:none!important}
.dv-exp{position:relative;display:inline-flex;align-items:center}
.dv-exp>summary{list-style:none;display:grid;place-items:center;width:2.25rem;height:2.25rem;padding:0;border:1px solid var(--rb);border-radius:4px;background:var(--bg);color:var(--brand);cursor:pointer}
.dv-exp>summary:hover{border-color:var(--brand);background:var(--chip)}
.dv-exp>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.dv-exp>summary::-webkit-details-marker{display:none}
.dv-exp[open]>summary{border-color:var(--fill);background:var(--fill);color:var(--on-brand)}
.dv-em{position:absolute;right:0;top:calc(100% + .35rem);z-index:30;display:grid;min-width:15rem;margin:0;padding:.35rem;border:1px solid var(--line);border-radius:6px;background:var(--bg);box-shadow:0 6px 18px rgb(var(--shadow-rgb) / .15)}
.dv-em>*{display:flex;align-items:center;gap:.6rem;padding:.5rem .75rem;border:0;border-radius:4px;background:none;color:var(--brand);font:inherit;font-size:.9rem;text-align:start;cursor:pointer}
.dv-em svg{flex:none;width:1.6rem;height:1.6rem}
.dv-em .p svg{color:var(--pdf-ink)}
.dv-em text{fill:var(--bg)}
.dv-em>button:hover,.dv-em>button:focus-visible{background:var(--chip)}
.dv-em>[aria-disabled="true"]{color:var(--muted);cursor:default}
@media (max-width:36rem){
  .dv-tab{min-width:2.5rem;padding:0 .4rem}
  .dv{position:relative}
  .dv-tabs .dv-hits{position:absolute;z-index:5;top:calc(2.75rem + 1px + 10px);right:10px;margin:0;padding:.2rem;border:1px solid var(--line);border-radius:4px;background:var(--bg);box-shadow:0 2px 6px rgb(var(--shadow-rgb) / .15)}
  .dv-tabs:has(.dv-hits)+.dv-body .dtext{padding-top:2.25rem}
}
.dv-full{display:inline-flex;align-items:center;justify-content:center;flex:none}
.dv-tab.dv-full{color:var(--field);text-decoration:none}
.dv-tab.dv-full:hover{color:var(--brand);background:var(--chip)}
.rv-split .rv-x{justify-content:center;min-width:2.25rem;border-color:var(--fill);background:var(--fill);color:var(--on-brand)}
.rv-split .rv-x:hover{border-color:var(--fill-hover);background:var(--fill-hover);color:var(--on-brand)}
/* viewer downloads: narrow icon-only buttons, the file icon in the colour of its type */
.dv-b.dv-file{width:2.25rem;min-height:2.25rem;padding:0;justify-content:center;border-color:transparent;background:transparent}
.dv-b.dv-file:hover{border-color:transparent;background:var(--chip)}
.dv-b.dv-file svg{width:2rem;height:2rem}
.dv-file.d{color:var(--brand)}
.dv-file.p{color:var(--pdf-ink)}
.dv-file text{fill:var(--bg)}
.dv-b{display:inline-flex;align-items:center;gap:.3rem;min-height:2.25rem;padding:.3rem .6rem;border:1px solid var(--rb);border-radius:4px;background:var(--bg);color:var(--brand);font:inherit;font-size:.8rem;font-weight:600;text-decoration:none;cursor:pointer}
.dv-b:hover{border-color:var(--brand);background:var(--chip)}
.dv-b[aria-disabled="true"]{opacity:.5;cursor:default}
.dv-x{display:grid;place-items:center;width:2.25rem;height:2.25rem;padding:0;border:0;border-radius:4px;background:none;color:var(--ink-2);font-size:1.5rem;line-height:1;cursor:pointer}
.dv-x:hover{background:var(--chip);color:var(--danger)}
.dv-tabs .dv-x{display:grid;place-items:center;width:2.25rem;height:2.25rem;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--brand);font-size:1.4rem;font-weight:700;line-height:1;cursor:pointer;flex:none;box-shadow:0 1px 2px rgb(var(--shadow-rgb) / .08)}
.dv-tabs .dv-x:hover{background:var(--danger);color:var(--on-brand);border-color:var(--danger)}
.dv-tabs .dv-x:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
/* the row under the toolbar: the icon tabs (like .rv-tabs), then (right) the found-word arrows and the downloads */
.dv-tabs{display:flex;align-items:center;gap:.4rem;flex:none;padding:0 .75rem 0 0;border-bottom:1px solid var(--line);background:var(--bg-soft)}
.dv-tl{display:flex;align-self:stretch;margin-right:auto}
.dv-tabs .dv-hits{margin-left:.75rem}
.dv-tab{position:relative;display:grid;place-items:center;min-width:3.25rem;min-height:2.75rem;padding:0 .6rem;border:0;border-right:1px solid var(--line);background:var(--bg-soft);color:var(--field);cursor:pointer}
.dv-tab:hover{color:var(--brand)}
.dv-tab[aria-selected="true"]{background:var(--bg);color:var(--brand);box-shadow:0 1px 0 var(--bg);cursor:default}
.dv-tab:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.dv-hits{display:flex;align-items:center;gap:.25rem;margin-left:auto}
.dv-hits[hidden]{display:none}
.dv-hb{display:grid;place-items:center;width:1.75rem;height:1.75rem;border:1px solid var(--rb);border-radius:4px;background:var(--soft-btn);color:var(--ink);cursor:pointer}
.dv-hb:hover{background:var(--soft-btn-hover)}
.dv-hb:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.dv-hc{min-width:3.5em;text-align:center;font-size:.8rem;font-variant-numeric:tabular-nums;color:var(--muted)}
mark.cur{background:var(--pick);color:var(--on-brand);outline:2px solid var(--pick)}
/* related decisions list */
.dv-rel-h{margin:0 0 .75rem;font-size:.85rem;font-weight:600;color:var(--ink-2)}
.dv-rel{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}
.dv-ri{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"t d e" "c c e" "n n e";gap:.1rem .75rem;align-items:start;padding:.6rem .7rem;border:1px solid var(--rb);border-left:4px solid var(--brand);border-radius:6px;font-size:.85rem}
.dv-ri-t{grid-area:t;font-weight:600;color:var(--ink);text-decoration:none}
.dv-ri-t:hover{color:var(--brand);text-decoration:underline}
.dv-ri time{grid-area:d;color:var(--ink-2)}
.dv-ri-c{grid-area:c;color:var(--ink-2)}
.dv-ri-n{grid-area:n;color:var(--muted);font-size:.78rem}
.dv-ri .peek{grid-area:e;margin:0}
.dv-empty{color:var(--muted);font-size:.9rem}
/* voting in peek viewer */
.dv-votings{display:grid;gap:1.25rem}
.dv-voting-card{display:grid;gap:.6rem;padding:.75rem .9rem;border:1px solid var(--rb);border-radius:6px;background:var(--bg)}
.rv-voting{display:grid;gap:.6rem}
.rv-panel .dv-voting-h{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.rv-panel .dv-voting-h .vote-badges{margin-left:auto}
.rv-panel .dv-roll-i{background:var(--bg);border:1px solid var(--rb)}
.dv-voting-h{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem}
.dv-voting-t{font-weight:700;font-size:.92rem;color:var(--ink)}
.dv-voting-d{margin-left:auto;color:var(--muted);font-size:.82rem}
.dv-voting-sub{margin:0;color:var(--ink-2);font-size:.85rem;line-height:1.4}
.dv-roll{display:grid;gap:.35rem;margin:.25rem 0 0;padding:0;list-style:none}
.dv-roll-i{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.35rem .5rem;border-radius:4px;background:var(--bg-soft);font-size:.85rem}
.dv-roll-name{color:var(--ink);text-decoration:none;font-weight:500}
.dv-roll-name:hover{color:var(--brand);text-decoration:underline}
.dv-roll-i .vote-badge{font-size:.78rem;padding:.1rem .45rem;border-radius:3px}
.dv-body{flex:1;min-height:0;overflow:auto;padding:1rem 1.25rem 2rem}
.dv-plain{white-space:pre-wrap}
.dv-body:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
/* TEMPORARY source note (decision taken from reyestr.court.gov.ua) */
.dv-src{margin:0 0 1rem;padding:.4rem .6rem;border-left:3px solid var(--pick);background:var(--src-bg);font-size:.8rem;color:var(--ink-2)}
.rs-note{margin:0 0 .6rem}
/* decision details and text (both viewers) */
.dmeta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.2rem 1rem;margin:0 0 1.25rem;padding:0 0 1rem;border-bottom:1px solid var(--line);font-size:.85rem}
.dmeta:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.dmeta div{display:contents}
.dmeta dt{color:var(--muted)}
.dmeta dd{margin:0;color:var(--ink)}
.dtext{font-size:.95rem;line-height:1.65;color:var(--ink);hyphens:auto;overflow-x:auto}
.dtext a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.dtext a:hover{color:var(--brand-dark,var(--brand))}
.dtext p{margin:0 0 .8em}
/* the text of a document is justified in both viewers; headings and table cells keep the left edge */
.dtext,.dtext p{text-align:justify;text-justify:inter-word;hyphens:none;-webkit-hyphens:none}   /* justified, no word breaks */
.dtext :is(h1,h2,h3,h4){text-align:left}
/* only real tables (a header row, or three rows and more) get the grid look; the layout tables of signatures and headers stay plain */
.dtext table{width:auto;max-width:100%;margin:.25rem 0 .5rem;border-collapse:collapse;text-align:left}
.dtext table :is(td,th){padding:0 .35rem 0 0;border:none;background:transparent;vertical-align:top;text-align:left;min-width:0}
.dtext table :is(td,th) p{margin:0;text-align:left}
.dtext :is(table:has(thead),table:has(th),table:has(tr:nth-child(3))){display:block;width:100%;margin:1rem 0 1.5rem;overflow-x:auto;-webkit-overflow-scrolling:touch}
.dtext :is(table:has(thead),table:has(th),table:has(tr:nth-child(3))) :is(td,th){padding:.5rem .75rem;border:1px solid var(--field);min-width:7.5rem}
.dtext :is(table:has(thead),table:has(th),table:has(tr:nth-child(3))) tr:first-child>:is(td,th){background:var(--band);font-weight:700}
.dtext :is(table:has(thead),table:has(th),table:has(tr:nth-child(3))) tr:nth-child(even)>td{background:var(--bg-soft)}
.dtext :is(table:has(thead),table:has(th),table:has(tr:nth-child(3))) a{font-size:.9em;overflow-wrap:anywhere}
/* Wide screens (в‰Ґ 84rem): the viewer is the right column, full window height (sticky); the main column keeps the
   table's width (52rem), the viewer gets the rest. */
/* Default (в‰Ґ 40rem): a drawer from the right over the results, full window height. */
.dv-gut{display:none}
@media (min-width:40rem){
  .viewer:is(:not(:empty),.htmx-request){position:fixed;z-index:60;top:0;right:0;bottom:0;width:min(var(--vw-drawer,42rem),92vw);border-radius:0;border-width:0 0 0 1px;box-shadow:-12px 0 32px rgb(var(--shadow-rgb) / .22)}
  /* its left edge: drag or в†ђ/в†’ to change the width (ui.js: --vw-drawer; in the right column html.vw-col, see below);
     the same look as the divider of two documents (.rv-gut) */
  .dv-gut{display:block;position:absolute;top:0;bottom:0;left:0;width:12px;z-index:7;cursor:col-resize;touch-action:none}
  .dv-gut::after{content:"";position:absolute;top:var(--gut-y,50%);left:3px;width:6px;height:2.5rem;margin-top:-1.25rem;border-radius:3px;background:var(--rb)}
  .dv-gut:hover::after,.dv-gut:focus-visible::after,.dv-gut.drag::after{background:var(--fill)}
  .dv-gut:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
  html.resizing,html.resizing *{user-select:none;cursor:col-resize!important}
}
/* Where the table (52rem) and the viewer (24rem) fit side by side вЂ” в‰€ 87rem Г— the text-size step (see the filters
   panel above) вЂ” the viewer becomes the right column, full window height (sticky); flush: its top meets the band
   (-.75rem), its right edge is the window edge (through the .main gutter), only a left border. */
@media (min-width:78rem){
  html[data-zoom="90"]:has(#viewer:is(:not(:empty),.htmx-request)),
  html[data-zoom="90"]:has(#viewer:is(:not(:empty),.htmx-request)) :is(body,.shell,.app){height:100vh;height:100dvh;overflow:hidden}
  html[data-zoom="90"]:has(#viewer:is(:not(:empty),.htmx-request)) .foot{display:none}
  html[data-zoom="90"]:has(#viewer:is(:not(:empty),.htmx-request)) .main{flex:1 1 auto;min-height:0;height:100%;overflow:visible;padding-bottom:0}
  html[data-zoom="90"]:has(#viewer:is(:not(:empty),.htmx-request)) #panel{flex:1 1 auto;min-height:0;height:100%;display:flex;flex-direction:column}
  html[data-zoom="90"] .layout:has(#viewer:is(:not(:empty),.htmx-request)){flex:1 1 auto;min-height:0;height:100%;grid-template-columns:minmax(52rem,1fr) minmax(24rem,30rem);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="90"] .layout:has(#viewer:is(:not(:empty),.htmx-request)):has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="90"] .layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{height:100%;max-height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0;padding-right:.5rem;padding-bottom:1.5rem}
  html[data-zoom="90"] .viewer:is(:not(:empty),.htmx-request){grid-area:side;position:relative;inset:auto;z-index:15;width:auto;height:calc(100% + 1rem);max-height:calc(100% + 1rem);min-height:0;margin:-1rem calc(-1 * var(--gx)) 0 0;border-radius:0;border-width:0 0 0 1px;box-shadow:-8px 0 24px rgb(var(--shadow-rgb) / .08);display:flex;flex-direction:column;overflow:hidden}
}
@media (min-width:87rem){
  html:not([data-zoom]):has(#viewer:is(:not(:empty),.htmx-request)),
  html:not([data-zoom]):has(#viewer:is(:not(:empty),.htmx-request)) :is(body,.shell,.app){height:100vh;height:100dvh;overflow:hidden}
  html:not([data-zoom]):has(#viewer:is(:not(:empty),.htmx-request)) .foot{display:none}
  html:not([data-zoom]):has(#viewer:is(:not(:empty),.htmx-request)) .main{flex:1 1 auto;min-height:0;height:100%;overflow:visible;padding-bottom:0}
  html:not([data-zoom]):has(#viewer:is(:not(:empty),.htmx-request)) #panel{flex:1 1 auto;min-height:0;height:100%;display:flex;flex-direction:column}
  html:not([data-zoom]) .layout:has(#viewer:is(:not(:empty),.htmx-request)){flex:1 1 auto;min-height:0;height:100%;grid-template-columns:minmax(52rem,1fr) minmax(24rem,30rem);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html:not([data-zoom]) .layout:has(#viewer:is(:not(:empty),.htmx-request)):has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html:not([data-zoom]) .layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{height:100%;max-height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0;padding-right:.5rem;padding-bottom:1.5rem}
  html:not([data-zoom]) .viewer:is(:not(:empty),.htmx-request){grid-area:side;position:relative;inset:auto;z-index:15;width:auto;height:calc(100% + 1rem);max-height:calc(100% + 1rem);min-height:0;margin:-1rem calc(-1 * var(--gx)) 0 0;border-radius:0;border-width:0 0 0 1px;box-shadow:-8px 0 24px rgb(var(--shadow-rgb) / .08);display:flex;flex-direction:column;overflow:hidden}
}
@media (min-width:100rem){
  html[data-zoom="115"]:has(#viewer:is(:not(:empty),.htmx-request)),
  html[data-zoom="115"]:has(#viewer:is(:not(:empty),.htmx-request)) :is(body,.shell,.app){height:100vh;height:100dvh;overflow:hidden}
  html[data-zoom="115"]:has(#viewer:is(:not(:empty),.htmx-request)) .foot{display:none}
  html[data-zoom="115"]:has(#viewer:is(:not(:empty),.htmx-request)) .main{flex:1 1 auto;min-height:0;height:100%;overflow:visible;padding-bottom:0}
  html[data-zoom="115"]:has(#viewer:is(:not(:empty),.htmx-request)) #panel{flex:1 1 auto;min-height:0;height:100%;display:flex;flex-direction:column}
  html[data-zoom="115"] .layout:has(#viewer:is(:not(:empty),.htmx-request)){flex:1 1 auto;min-height:0;height:100%;grid-template-columns:minmax(52rem,1fr) minmax(24rem,30rem);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="115"] .layout:has(#viewer:is(:not(:empty),.htmx-request)):has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="115"] .layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{height:100%;max-height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0;padding-right:.5rem;padding-bottom:1.5rem}
  html[data-zoom="115"] .viewer:is(:not(:empty),.htmx-request){grid-area:side;position:relative;inset:auto;z-index:15;width:auto;height:calc(100% + 1rem);max-height:calc(100% + 1rem);min-height:0;margin:-1rem calc(-1 * var(--gx)) 0 0;border-radius:0;border-width:0 0 0 1px;box-shadow:-8px 0 24px rgb(var(--shadow-rgb) / .08);display:flex;flex-direction:column;overflow:hidden}
}
@media (min-width:113rem){
  html[data-zoom="130"]:has(#viewer:is(:not(:empty),.htmx-request)),
  html[data-zoom="130"]:has(#viewer:is(:not(:empty),.htmx-request)) :is(body,.shell,.app){height:100vh;height:100dvh;overflow:hidden}
  html[data-zoom="130"]:has(#viewer:is(:not(:empty),.htmx-request)) .foot{display:none}
  html[data-zoom="130"]:has(#viewer:is(:not(:empty),.htmx-request)) .main{flex:1 1 auto;min-height:0;height:100%;overflow:visible;padding-bottom:0}
  html[data-zoom="130"]:has(#viewer:is(:not(:empty),.htmx-request)) #panel{flex:1 1 auto;min-height:0;height:100%;display:flex;flex-direction:column}
  html[data-zoom="130"] .layout:has(#viewer:is(:not(:empty),.htmx-request)){flex:1 1 auto;min-height:0;height:100%;grid-template-columns:minmax(52rem,1fr) minmax(24rem,30rem);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="130"] .layout:has(#viewer:is(:not(:empty),.htmx-request)):has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="130"] .layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{height:100%;max-height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0;padding-right:.5rem;padding-bottom:1.5rem}
  html[data-zoom="130"] .viewer:is(:not(:empty),.htmx-request){grid-area:side;position:relative;inset:auto;z-index:15;width:auto;height:calc(100% + 1rem);max-height:calc(100% + 1rem);min-height:0;margin:-1rem calc(-1 * var(--gx)) 0 0;border-radius:0;border-width:0 0 0 1px;box-shadow:-8px 0 24px rgb(var(--shadow-rgb) / .08);display:flex;flex-direction:column;overflow:hidden}
}
@media (min-width:130rem){
  html[data-zoom="150"]:has(#viewer:is(:not(:empty),.htmx-request)),
  html[data-zoom="150"]:has(#viewer:is(:not(:empty),.htmx-request)) :is(body,.shell,.app){height:100vh;height:100dvh;overflow:hidden}
  html[data-zoom="150"]:has(#viewer:is(:not(:empty),.htmx-request)) .foot{display:none}
  html[data-zoom="150"]:has(#viewer:is(:not(:empty),.htmx-request)) .main{flex:1 1 auto;min-height:0;height:100%;overflow:visible;padding-bottom:0}
  html[data-zoom="150"]:has(#viewer:is(:not(:empty),.htmx-request)) #panel{flex:1 1 auto;min-height:0;height:100%;display:flex;flex-direction:column}
  html[data-zoom="150"] .layout:has(#viewer:is(:not(:empty),.htmx-request)){flex:1 1 auto;min-height:0;height:100%;grid-template-columns:minmax(52rem,1fr) minmax(24rem,30rem);grid-template-rows:auto auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "within within" "results side"}
  html[data-zoom="150"] .layout:has(#viewer:is(:not(:empty),.htmx-request)):has(#within[hidden]){grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"search search" "qx qx" "qf qf" "results side"}
  html[data-zoom="150"] .layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{height:100%;max-height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0;padding-right:.5rem;padding-bottom:1.5rem}
  html[data-zoom="150"] .viewer:is(:not(:empty),.htmx-request){grid-area:side;position:relative;inset:auto;z-index:15;width:auto;height:calc(100% + 1rem);max-height:calc(100% + 1rem);min-height:0;margin:-1rem calc(-1 * var(--gx)) 0 0;border-radius:0;border-width:0 0 0 1px;box-shadow:-8px 0 24px rgb(var(--shadow-rgb) / .08);display:flex;flex-direction:column;overflow:hidden}
}
.layout:has(#viewer:is(:not(:empty),.htmx-request))::before{margin-bottom:0!important}
.layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{margin-top:0!important}
/* the open viewer: the list's scrollbar in the middle of the empty strip between the rows and the viewer */
@media (min-width:60rem){.layout:has(#viewer:is(:not(:empty),.htmx-request)){column-gap:0}.layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{padding-right:1.25rem!important}}
/* The right column resized by its left edge (ui.js sets html.vw-col, --vw-box, --vw-res): the search form keeps its
   column; only the last row is shared вЂ” the results and the viewer both span it, the results take --vw-res from the
   left, the viewer --vw-box from the right. Narrower than their table (в‰€ 52rem), the results turn into blocks, as on
   phones (container query: only in this state, so nothing else gets containment). */
html.vw-col .layout:has(#viewer:is(:not(:empty),.htmx-request))>.results{grid-column:1/-1;grid-row:5;width:var(--vw-res);container:res/inline-size}
html.vw-col .viewer:is(:not(:empty),.htmx-request){grid-column:1/-1;grid-row:5;justify-self:end;width:var(--vw-box)}
html.vw-col .layout:has(#viewer:is(:not(:empty),.htmx-request)):has(#within[hidden])>.results{grid-row:4}
html.vw-col .layout:has(#viewer:is(:not(:empty),.htmx-request)):has(#within[hidden]) .viewer:is(:not(:empty),.htmx-request){grid-row:4}
/* Phones: full screen. */
@media (max-width:39.99rem){
  .viewer:is(:not(:empty),.htmx-request){position:fixed;inset:0;z-index:60;border:0;border-radius:0}
}
/* Full viewer (/Review/{id}): sidebar В«РљР°СЂС‚РєР° / РџРѕРІ'СЏР·Р°РЅС– / РЈС‡Р°СЃРЅРёРєРёВ» + the text (в‰€ 72ch); a related decision can open
   beside it (split screen, #rv-split). Phones: the sidebar above the text, the decision beside goes first. */
.main:has(>.rv:not([hidden])),.main:has(>.rv-view:not([hidden])){padding:0}
#panel[hidden],.rv-view[hidden],.main>[hidden]{display:none!important}   /* the rail tabs hide the panes they do not show */
/* a rail tab whose pane is being fetched: an empty container with a spinner in the middle */
.main>[aria-busy="true"]:empty{display:grid;place-items:center;min-height:min(60vh,24rem)}
.main>[aria-busy="true"]:empty::before{content:"";width:2.5rem;height:2.5rem;border-radius:50%;border:4px solid var(--line);border-top-color:var(--brand);animation:spin .7s linear infinite}
@media (prefers-reduced-motion:reduce){.main>[aria-busy="true"]:empty::before{animation-duration:2s}}
/* The document tab while its pane is fetched: a skeleton of the full view instead of the spinner вЂ” drawn by the empty
   container itself (no markup): the sidebar (tabs, title, label / value pairs) and the text (toolbar, title, lines).
   It pulses with opacity only; still under reduced motion. One column on narrow screens. */
.main>.rv-view[aria-busy="true"]:empty{--sk:var(--line);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);place-items:stretch;min-height:calc(100dvh - var(--top-h));animation:skel 1.4s ease-in-out infinite}
.main>.rv-view[aria-busy="true"]:empty::before,.main>.rv-view[aria-busy="true"]:empty::after{content:"";width:auto;height:auto;border:0;border-radius:0;animation:none;background-repeat:no-repeat}
.main>.rv-view[aria-busy="true"]:empty::before{min-height:15rem;border-bottom:1px solid var(--line);background-color:var(--bg-soft);
  background-image:linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk));
  background-position:0 3.5rem,1.5rem 1.15rem,1.5rem 5rem,1.5rem 7.4rem,1.5rem 8.6rem,1.5rem 10.6rem,1.5rem 11.8rem,1.5rem 13.8rem,1.5rem 15rem,1.5rem 17rem;
  background-size:100% 1px,9rem 1.2rem,60% 1.2rem,30% .7rem,70% .95rem,25% .7rem,55% .95rem,35% .7rem,65% .95rem,30% .7rem}
.main>.rv-view[aria-busy="true"]:empty::after{background-color:var(--bg);
  background-image:linear-gradient(var(--bg-soft),var(--bg-soft)),linear-gradient(var(--line),var(--line)),linear-gradient(var(--sk),var(--sk)),linear-gradient(var(--sk),var(--sk)),repeating-linear-gradient(to bottom,var(--sk) 0 .85rem,transparent .85rem 1.9rem);
  background-position:0 0,0 3.5rem,clamp(1rem,4vw,3rem) 5.5rem,clamp(1rem,4vw,3rem) 7.6rem,clamp(1rem,4vw,3rem) 10.5rem;
  background-size:100% 3.5rem,100% 1px,min(26rem,60%) 1.4rem,min(40rem,80%) 1.1rem,min(96ch,calc(100% - 2 * clamp(1rem,4vw,3rem))) calc(100% - 13rem)}
@media (min-width:60rem){
  .main>.rv-view[aria-busy="true"]:empty{grid-template-columns:minmax(16rem,22rem) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .main>.rv-view[aria-busy="true"]:empty::before{min-height:0;border-bottom:0;border-right:1px solid var(--line)}
}
@keyframes skel{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.main>.rv-view[aria-busy="true"]:empty{animation:none}}
.rv{border-top:1px solid var(--line)}
.rv-side{border-bottom:1px solid var(--line);background:var(--bg-soft)}
.rv-tabs{display:flex;border-bottom:1px solid var(--line);background:var(--bg)}
.rv-tab{position:relative;flex:1;display:grid;place-items:center;min-height:3.25rem;padding:0 .4rem;border-right:1px solid var(--line);background:var(--bg-soft);color:var(--field);text-decoration:none}   /* inactive: muted band, paler icon (в‰Ґ3:1) */
.rv-back{flex:0 0 3.25rem;border-right:0;background:var(--fill);color:var(--on-brand)}
.rv-back:hover{background:var(--fill-hover);color:var(--on-brand)}
.rv-tab:hover{color:var(--brand)}
.rv-tab[aria-current]{background:var(--bg);color:var(--brand);box-shadow:0 1px 0 var(--bg)}   /* active: page colour, merges with the pane below */
.rv-tab:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
/* Phones (one column): the text of the document is a tab of its own (.rv-tab-text, first); a document opens on it
   with the other tabs' panel hidden; a tab of the sidebar (.rv.rv-side-on, ui.js) shows only its panel. Without JS
   the panel and the text stay one above the other. */
.rv-tab-text{display:none}
@media (max-width:59.99rem){
  html.js .rv-tab-text{display:grid}
  html.js .rv:not(.rv-side-on) .rv-panel,html.js .rv.rv-side-on .rv-docs{display:none}
  html.js .rv:not(.rv-side-on) .rv-tab-text,html.js .rv.rv-side-on .rv-tab[aria-current]{background:var(--bg);color:var(--brand);box-shadow:0 1px 0 var(--bg)}
  html.js .rv:not(.rv-side-on) .rv-tab[aria-current]:not(.rv-tab-text){background:var(--bg-soft);color:var(--field);box-shadow:none}
}
.rv-panel{padding:1rem 1.25rem 1.5rem}
.rv-panel:focus{outline:none}
.rv-ct{margin:0 0 .75rem;font-size:1.05rem;color:var(--brand)}
.rv-sh{margin:1.25rem 0 .5rem;padding-top:1rem;border-top:1px solid var(--line);font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.rv-dl{display:grid;gap:.55rem;margin:0;font-size:.875rem}
.rv-dl dt{color:var(--muted);font-size:.78rem}
.rv-dl dd{margin:0;color:var(--ink)}
/* desktop: the dates two per line (label above, date under it); everything else spans the whole card */
@media (min-width:60rem){
  .rv-dl{grid-template-columns:1fr 1fr;column-gap:1rem}
  .rv-dl>div{grid-column:1/-1}
  .rv-dl>.rv-half{grid-column:auto}
}
.rv-sub{display:block;color:var(--ink-2);font-size:.8rem}
.rv-links{display:grid;gap:.4rem;margin:0;padding:0;list-style:none;font-size:.875rem}
/* the В«eyeВ» of a related or similar record sits on the right of its line */
.rv-links>li{position:relative;min-height:2.25rem;padding-right:3rem}
.rv-links .peek{position:absolute;top:0;right:0;margin:0}
.rv-ref{position:relative;padding-right:3rem}
.rv-ref>.peek{position:absolute;top:0;right:0}
.rv-parties{display:grid;gap:.75rem;margin:0;font-size:.875rem}
.rv-parties dt{color:var(--muted);font-size:.78rem}
.rv-parties dd{margin:0;color:var(--ink)}
.rv-parties dd+dd,.rv-parties li+li{margin-top:.35rem}
.rv-docs{display:grid;grid-template-columns:minmax(0,1fr)}
.rv-split:empty:not(.htmx-request){display:none}
/* loading the decision beside (hx-indicator="#rv-split"): the zone shows at once, a spinner over it вЂ” as in the quick viewer */
.rv-split.htmx-request{position:relative;min-height:12rem}
.rv-split.htmx-request::before{content:"";position:absolute;inset:0;z-index:5;background:var(--bg);opacity:.75}
.rv-split.htmx-request::after{content:"";position:absolute;z-index:6;top:var(--busy-y,50%);left:50%;width:3rem;height:3rem;margin:-1.5rem 0 0 -1.5rem;border-radius:50%;border:4px solid var(--line);border-top-color:var(--brand);animation:spin .7s linear infinite}
@media (prefers-reduced-motion:reduce){.rv-split.htmx-request::after{animation-duration:2s}}
.rv-split{order:-1;border-bottom:6px solid var(--line)}
.rv-doc{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;background:var(--bg)}
.rv-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;flex:none;padding:.5rem 1rem;border-bottom:1px solid var(--line);background:var(--bg-soft)}
/* the action row of a document and the tab row of the sidebar stay at the top while the page scrolls; anchors and
   focused elements are not hidden under them (scroll-padding, WCAG 2.4.11) */
.rv-bar,.rv-tabs{position:sticky;top:0;z-index:5}
html:has(.rv){scroll-padding-top:4.5rem}
.rv-t{flex:1;min-width:0;margin:0;font-size:1rem;color:var(--brand);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-t:focus{outline:none}
@media (max-width:40rem){.rv-bar .rv-t{flex-basis:100%}}   /* phones: the title on its own line, the actions wrap under it */
/* case category in the card: the path as a tree вЂ” each level indented under its parent, joined by an elbow В«в””В» in the
   theme's brand colour that runs from just under the parent's text to this level's first line (no loose ends) */
.rv-cat{margin:0;padding:0;list-style:none}
/* card links (court, judge, case, category в†’ search in a new tab): no underline, it appears on hover / focus */
a.rv-go{text-decoration:none}
a.rv-go:is(:hover,:focus-visible){text-decoration:underline}
.rv-cat .rv-cat{margin-left:.45rem;padding-left:.9rem}
.rv-cat .rv-cat>li{position:relative;margin-top:.2rem}
.rv-cat .rv-cat>li::before{content:"";position:absolute;left:-.9rem;top:-.2rem;width:.65rem;height:calc(.2rem + .75em);border-left:1.5px solid var(--brand);border-bottom:1.5px solid var(--brand);border-bottom-left-radius:3px}
/* closing the decision beside: the same button as Print (.dv-b), a bold Г— (SVG вЂ” centred exactly) */
.rv-x{justify-content:center;min-width:2.25rem;border-color:var(--fill);background:var(--fill);color:var(--on-brand)}   /* filled like the active eye */
.rv-x:hover{border-color:var(--fill-hover);background:var(--fill-hover);color:var(--on-brand)}
.rv-x:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.rv-bar .dv-hits{margin:0 .25rem}
.rv-body{flex:1;min-height:0;padding:1.5rem clamp(1rem,4vw,3rem) 3rem}
.rv-body:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.rv-body .dmeta{max-width:96ch}
.rv-text{font-size:var(--rv-fs,1rem);max-width:96ch}   /* one document: left-aligned, wide; Aв€’/A+ change --rv-fs */
.rv-fs{display:flex;gap:.25rem}
/* controls that need JS (bookmarks, print, вЂ¦): shown only when ui.js has marked <html class="js"> */
html:not(.js) .js-only{display:none!important}
/* decision text size: the control carries the step (data-fs, from the a11y cookie); the text follows it */
:root:has(#rv-fs[data-fs="-2"]){--rv-fs:.8rem}:root:has(#rv-fs[data-fs="-1"]){--rv-fs:.9rem}:root:has(#rv-fs[data-fs="1"]){--rv-fs:1.1rem}
:root:has(#rv-fs[data-fs="2"]){--rv-fs:1.2rem}:root:has(#rv-fs[data-fs="3"]){--rv-fs:1.3rem}:root:has(#rv-fs[data-fs="4"]){--rv-fs:1.4rem}
:root:has(#rv-fs[data-fs="5"]){--rv-fs:1.5rem}:root:has(#rv-fs[data-fs="6"]){--rv-fs:1.6rem}
.rv-print{justify-content:center;min-width:2.25rem}
/* a shared fragment (?cite=вЂ¦#cite): its own tint, a line under it; the bar over a selection offers link / bookmark */
mark.cite{background:var(--cite);color:var(--ink);padding:.12em 0;box-shadow:inset 0 -2px 0 var(--cite-line);border-radius:0}
mark.cite mark{background:var(--hl)}
#cite{scroll-margin-top:30vh}
.cite-note a{white-space:nowrap}
.sel-bar{position:absolute;inset:auto;margin:0;overflow:visible;color:inherit;z-index:70;display:flex;align-items:center;gap:.3rem;padding:.3rem;border:1px solid var(--rb);border-radius:6px;background:var(--bg);box-shadow:0 6px 18px rgb(var(--shadow-rgb) / .2)}
.sel-bar[hidden]{display:none}
.sel-bar:not(:popover-open){display:none}   /* a popover (author display:flex would show it closed) */
.sel-b{justify-content:center;min-width:2.25rem;padding:.3rem;border-color:var(--fill);background:var(--fill);color:var(--on-brand)}
.sel-b:hover{border-color:var(--fill-hover);background:var(--fill-hover);color:var(--on-brand)}
.sel-msg{padding:0 .4rem;font-size:.8rem;color:var(--ink-2)}
.sel-msg:empty{display:none}
/* bottom bar of a paged list: flat numbers, the current one on a tinted plate (pages left, page size right) */
.bm-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;margin:1.25rem 0 2rem;padding-top:.75rem;border-top:1px solid var(--line)}
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem}
.pager.ps{margin-left:auto}
.ps-l{margin-right:.4rem;font-size:.85rem;color:var(--muted)}
.pg{display:inline-grid;place-items:center;min-width:2.25rem;min-height:2.25rem;padding:0 .55rem;border-radius:3px;color:var(--ink-2);font-size:.95rem;text-decoration:none}
.pg:is(a):hover{background:var(--chip);color:var(--brand)}
.pg[aria-current]{background:var(--soft-btn);color:var(--ink);font-weight:700}
.pg[aria-disabled]{opacity:.4}
.pg:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.pg-gap{padding:0 .2rem;color:var(--muted)}
.bm-quote{grid-column:1 / -1;margin:.35rem 0 0;padding:.35rem .6rem;border-left:3px solid var(--cite-line);background:var(--cite);color:var(--ink);font-size:.85rem;line-height:1.45}
.rv-fs .dv-b{min-width:2.25rem;justify-content:center}
.rv-fs .dv-b[aria-disabled="true"]{opacity:.45;cursor:default}
.rv-bm{justify-content:center;min-width:2.25rem}
.rv-bm[aria-pressed="true"]{border-color:var(--fill);background:var(--fill);color:var(--on-brand)}
.rv-bm[aria-pressed="true"] path{fill:currentColor}
/* reading aloud (tts.js, loaded at the first click): the speaker in the action bar; while it reads (data-state в‰  idle)
   tts.js moves the buttons (pause / play, В«stopВ») to the start of the controls' own row under the bar (.tts-more), the
   actions to the right never move; the paragraph being read (.tts-cur), the word being heard (::highlight) */
.tts{display:flex;align-items:center;gap:.4rem}
:is(.tts,.tts-more) .dv-b{position:relative;justify-content:center;width:2.25rem;padding-inline:0}   /* = .tts-hold */
.tts:not([data-state="idle"]) .tts-play{border-color:var(--fill);background:var(--fill);color:var(--on-brand)}
.tts[data-state="idle"] .tts-x,.tts .tts-i2,.tts .tts-i3,.tts:not([data-state="idle"]) .tts-i1{display:none}
.tts:is([data-state="play"],[data-state="load"]) .tts-i2,.tts[data-state="pause"] .tts-i3{display:block}
.tts[data-state="load"] .tts-play>svg{visibility:hidden}
.tts[data-state="load"] .tts-play::after{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:1.2rem;height:1.2rem;margin:-.6rem 0 0 -.6rem;border-radius:50%;border:3px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite}
@media (prefers-reduced-motion:reduce){.tts[data-state="load"] .tts-play::after{animation-duration:2s}}
.tts-hold{display:none;width:2.25rem;height:2.25rem}
.rv-bar:has(.tts:not([data-state="idle"])) .tts-hold{display:block}
.tts-more{display:none;flex-basis:100%;flex-wrap:wrap;align-items:center;gap:.25rem .6rem}
.rv-bar:has(.tts:not([data-state="idle"])) .tts-more{display:flex}
.tts-r{display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;color:var(--ink-2)}
.tts-r input{width:5.5rem;margin:0;accent-color:var(--fill)}
.tts-r output{min-width:2.8em;color:var(--ink);font-variant-numeric:tabular-nums}
:is(.tts-voice,.tts-model){width:auto;min-height:2.25rem;padding:0 .4rem;font-size:.8rem}
.tts-msg{max-width:20rem;font-size:.75rem;line-height:1.25;color:var(--ink-2)}
.tts-msg:empty{display:none}
/* a reading limit reached: the modal message (native <dialog>, opened by tts.js) */
.tts-dlg{box-sizing:border-box;width:min(28rem,calc(100vw - 2rem));padding:1.25rem 1.5rem;border:1px solid var(--rb);border-radius:8px;background:var(--bg);color:var(--ink);box-shadow:0 12px 32px rgb(var(--shadow-rgb) / .3)}
.tts-dlg::backdrop{background:rgb(0 0 0 / .45)}
.tts-dlg h2{margin:0 0 .6rem;font-size:1.05rem;color:var(--brand)}
.tts-dlg-p{margin:0 0 1.1rem;line-height:1.5}
.tts-dlg form{display:flex;justify-content:flex-end}
.tts-dlg-ok{min-width:7rem;justify-content:center;border-color:var(--fill);background:var(--fill);color:var(--on-brand)}
.tts-dlg-ok:hover{border-color:var(--fill-hover);background:var(--fill-hover);color:var(--on-brand)}
/* manual-only onboarding tour (Render.TourTrigger/TourSteps): trigger lives in the tbar menu row. Driven by one
   radio group ("tour", values 0вЂ“5; 0 = closed) вЂ” exclusive by construction, so exactly one step (or none) is ever
   :checked; every nav control is itself a radio for the step it leads to (same label-wraps-input pattern as the
   filter chips). Popover's "new auto popover hides the others" turned out unreliable here (steps piled up instead
   of replacing each other) вЂ” a radio group has no such ambiguity. Each step spotlights its real target by raising
   that one element's z-index and giving it a 6000px-spread box-shadow (dims the rest of the viewport relative to
   the target's own box вЂ” no overlay div, no coordinates, no JS, always right even if the page scrolled or the
   target's size changed). The card itself stays in a fixed viewport corner rather than docking next to the target:
   CSS anchor positioning was tried first (docking + a pointer arrow) but broke for targets near the left edge вЂ”
   with position-area: bottom center the centred card ran off-screen and became unreadable (reported 2026-11-07,
   screenshot showed step 4 cut off at the left edge). Rule 4 ranks reliability above aesthetics, so a fixed corner
   that is always fully on-screen replaced it; the spotlight on the real element is enough to show where to look. */
.tour-open{display:inline-flex;align-items:center;gap:.35rem;margin:0;padding:.35rem .65rem;border:0;border-bottom:2px solid transparent;border-radius:4px;background:var(--fill);font:inherit;font-size:.88rem;color:var(--on-brand);text-decoration:none;cursor:pointer}
.tour-open:hover{background:var(--fill-hover);color:var(--on-brand)}
/* .searchrow (step 1) wraps the field *and* the В«РџРѕС€СѓРєВ» button; a breathing halo (--bg ring before the dark spread)
   keeps the cutout from hugging the target's exact edges on every step (reported 2026-11-07: step 1 spotlighted
   only #f-q, left the button dark; no air around any target). */
body:has(input[name="tour"][value="1"]:checked) .searchrow,
body:has(input[name="tour"][value="3"]:checked) .results article.res:first-of-type .peek,
body:has(input[name="tour"][value="4"]:checked) .results article.res:first-of-type .c-open{position:relative;z-index:2000;border-radius:6px;box-shadow:0 0 0 .5rem var(--bg),0 0 0 6000px rgb(0 0 0 / .6)}
/* Step 2 spotlights .qfields (dates/numbers) and .qfilters (menus) as ONE zone. First try: both had their own
   box-shadow with all four corners rounded, meeting at a visible notch вЂ” read as two windows. Squaring the shared
   edge fixed the notch, but both also had their own 6000px dark layer: two equal-opacity dark shadows overlapping
   stack darker than one, AND since both shared z-index:2000, the later one in source order (.qfilters) painted its
   whole layer вЂ” shadow included вЂ” above .qfields, dimming part of it (reported 2026-11-07 again). Only one element
   may own the infinite dark spread; the other must sit strictly above it instead of also owning one. .qfilters
   (lower, z-index 2000) owns the single dark shadow; .qfields (z-index 2001, strictly higher) owns no shadow of
   its own and just needs an opaque fill + halo so it reads as bright regardless of what is painted beneath it вЂ”
   it never needs beating qfilters's shadow because it is already above it. */
body:has(input[name="tour"][value="2"]:checked) .qfields{position:relative;z-index:2001;border-radius:6px 6px 0 0;background:var(--bg);box-shadow:0 0 0 .5rem var(--bg)}
body:has(input[name="tour"][value="2"]:checked) .qfilters{position:relative;z-index:2000;border-radius:0 0 6px 6px;background:var(--bg);box-shadow:0 0 0 .5rem var(--bg),0 0 0 6000px rgb(0 0 0 / .6)}
/* .pick/.rbm are normally hidden in the left accent bar and only become visible together with the bar's own
   hover-only widening (.res:is(:hover,:has(:focus-visible),:has(.pick:checked)) and, on wide pointer screens, the
   bar opening outward into the page margin вЂ” both frozen, merged rules we don't touch). Forcing just opacity
   (tried first, reported 2026-11-07) left the icons visible but cramped, with no widened zone around them; this
   duplicates the same outward-opening geometry under our own selector instead of editing the frozen one. The
   row's own halo was widened a few times (.5rem в†’ 2.1rem в†’ 3rem) chasing the ~1.9rem outward bar on wide pointer
   screens; the user then asked for it back down (reads as too much empty space around a small target) вЂ” 1.25rem,
   a middle ground that still clears the bar without the earlier bare-.5rem clipping.
   The whole <aside class="afilters"> (В«РћР±СЂР°РЅС– С„С–Р»СЊС‚СЂРёВ» + .af-exp, the export/print/bookmark panel) is spotlighted
   as ONE window, not .af-exp alone (reported 2026-11-07: the user wants the filters header and chips lit up too,
   not just the export buttons). Only .afilters (the parent) gets the shadow/z-index; .af-exp is its child, so it
   already paints above its own parent's background with no z-index of its own needed вЂ” giving it a second 6000px
   shadow would only double-darken everything outside both (the same bug step 2 had, Р 17 above). .afilters is
   itself display:none below 78rem / at non-default text zoom (frozen rule, grid-area "side") вЂ” forcing just
   .af-exp's display (tried first) did nothing while its display:none ancestor still hid it, so .afilters needs
   forcing too, with !important since the width/zoom condition it normally depends on must not matter here; and
   since that same frozen block is also where it gets its grid-area:side position, forcing display alone (tried
   next) left it auto-placed nowhere useful вЂ” pinned into the grid explicitly below. */
/* Two windows, one dark spread: .afilters (later in the DOM) owns it; the row sits strictly above (z-index 2001)
   with only its own halo вЂ” with both at 2000 the panel's shadow, painted later, dimmed the row (reported
   2026-11-07). The panel goes into the results row of the grid, beside the table (row 5 of .layout's areas),
   not 1/-1 which pinned it to the top next to the search bar. */
body:has(input[name="tour"][value="5"]:checked) .results article.res:first-of-type{position:relative;z-index:2001;border-radius:6px;box-shadow:0 0 0 1.25rem var(--bg),-1.9rem 0 0 1.25rem var(--bg)}   /* 2nd ring shifted left by the outward accent bar's width (1.9rem): the same 1.25rem of air beyond the bar as on the right */
body:has(input[name="tour"][value="5"]:checked) .results article.res:first-of-type :is(.pick,.rbm){opacity:1}
body:has(input[name="tour"][value="5"]:checked) .afilters{display:block!important;position:relative;z-index:2000;border-radius:6px;box-shadow:0 0 0 .5rem var(--bg),0 0 0 6000px rgb(0 0 0 / .6)}
@media (min-width:60rem){
  body:has(input[name="tour"][value="5"]:checked) .afilters{grid-column:2;grid-row:5}
}
body:has(input[name="tour"][value="5"]:checked) .af-exp{display:block}
@media (hover:hover) and (min-width:72rem){
  body:has(input[name="tour"][value="5"]:checked) .results article.res:first-of-type::before{left:calc(-1px - 1.9rem);width:calc(1.9rem + 5px)}
  body:has(input[name="tour"][value="5"]:checked) .results article.res:first-of-type .pick{left:calc(-.95rem + 1.5px - .575rem)}
  body:has(input[name="tour"][value="5"]:checked) .results article.res:first-of-type .rbm{left:calc(-.95rem + 1.5px - .75rem)}
}
@media not ((hover:hover) and (min-width:72rem)){
  body:has(input[name="tour"][value="5"]:checked) .results article.res:first-of-type{padding-left:calc(.85rem + 2.2rem)}
  body:has(input[name="tour"][value="5"]:checked) .results article.res:first-of-type::before{width:2.25rem}
}
.tour{display:none;box-sizing:border-box;position:fixed;inset:auto 1rem 1rem auto;z-index:2001;width:min(24rem,calc(100vw - 2rem));padding:1.4rem;border:1px solid var(--rb);border-radius:8px;background:var(--bg);color:var(--ink);box-shadow:0 12px 32px rgb(var(--shadow-rgb) / .3)}
body:has(input[name="tour"][value="1"]:checked) .tour-1,
body:has(input[name="tour"][value="2"]:checked) .tour-2,
body:has(input[name="tour"][value="3"]:checked) .tour-3,
body:has(input[name="tour"][value="4"]:checked) .tour-4,
body:has(input[name="tour"][value="5"]:checked) .tour-5{display:block}
.tour-x{position:absolute;top:.6rem;right:.6rem;width:2rem;height:2rem;display:grid;place-items:center;border:0;border-radius:4px;background:none;color:var(--ink-2);font-size:1.3rem;line-height:1;cursor:pointer}
.tour-x:hover{background:var(--chip)}
.tour-step{margin:0 1.8rem .4rem 0;font-size:.78rem;font-weight:600;letter-spacing:.03em;color:var(--brand)}
.tour h2{margin:0 0 .6rem;font-size:1.1rem}
.tour-b{margin:0 0 1.25rem;line-height:1.5}
.tour-nav{display:flex;justify-content:flex-end;gap:.6rem}
:root:has(.tts:not([data-state="idle"])) #text p{cursor:pointer}   /* a click on a word reads from it */
.rv-text p.tts-cur{background:var(--ok-bg);box-shadow:0 0 0 .35rem var(--ok-bg);border-radius:2px;scroll-margin-top:5rem}
::highlight(tts-word){background-color:var(--fill);color:var(--on-brand)}   /* the word being heard (CSS Highlight API) */
@media print{.tts,.tts-more{display:none!important}.rv-text p.tts-cur{background:none;box-shadow:none}}
/* divider between two documents: drag or в†ђ/в†’ (ui.js sets --rv-a / --rv-b on .rv-docs) */
.rv-gut{display:none}
.bm-page{max-width:60rem;padding-bottom:3rem}
.bm-h{margin:0 0 .5rem;font-size:1.4rem;color:var(--brand)}
.bm-note{margin:0 0 1.25rem;color:var(--muted);font-size:.9rem}
.bm-status:empty{display:none}
.bm-status:not(:empty){position:fixed;z-index:100;right:1rem;bottom:1rem;max-width:min(24rem,calc(100vw - 2rem));padding:.7rem 1rem;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);box-shadow:0 6px 18px rgb(var(--shadow-rgb) / .2)}
.res>.bm-del{display:grid;place-items:center;width:2.25rem;height:2.25rem;padding:0;border:0;border-radius:4px;background:none;color:var(--ink-2);font-size:1.5rem;line-height:1;cursor:pointer}
.res>.bm-del:hover{background:var(--chip);color:var(--danger)}
.res>.bm-del:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.res a.snip{text-decoration:none;display:block}
.res a.snip:hover{text-decoration:underline;color:var(--brand)}
.bm-list .dv-ri{grid-template-columns:minmax(0,1fr) auto auto}
.bm-del{grid-area:e;align-self:start;margin:-.3rem -.3rem 0 0}   /* the Г— of the viewers (.dv-x) */
.bm-del:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (min-width:60rem){
  /* plain blocks down the page: the sidebar and the texts scroll with the page (no inner scroll) */
  .rv{display:grid;grid-template-columns:minmax(16rem,22rem) minmax(0,1fr);min-height:calc(100dvh - var(--top-h))}
  .rv-side{display:flex;flex-direction:column;min-height:0;border-bottom:0;border-right:1px solid var(--line)}
  .rv-tabs{flex:none}
  .rv-panel{flex:1}
  .rv-docs{align-items:stretch}
  .rv-docs:has(#rv-split:is(:not(:empty),.htmx-request)){grid-template-columns:minmax(0,var(--rv-a,1fr)) minmax(0,var(--rv-b,1fr))}
  .rv-split{position:relative;order:0;display:flex;flex-direction:column;min-height:0;border-bottom:0;border-left:6px solid var(--line)}
  .rv-gut{display:block;position:absolute;top:0;bottom:0;left:-9px;width:12px;z-index:2;cursor:col-resize;touch-action:none}
  .rv-gut::after{content:"";position:absolute;top:50%;left:3px;width:6px;height:2.5rem;margin-top:-1.25rem;border-radius:3px;background:var(--rb)}
  .rv-gut:hover::after,.rv-gut:focus-visible::after,.rv-gut.drag::after{background:var(--fill)}
  .rv-gut:focus-visible{outline:3px solid var(--focus);outline-offset:0}
  .rv-docs.resizing{user-select:none;cursor:col-resize}
  .rv-split>.rv-doc{flex:1}
  /* two documents side by side: the viewer fills the window under the header, each column scrolls on its own */
  .rv:has(#rv-split:is(:not(:empty),.htmx-request)){height:calc(100dvh - var(--top-h));min-height:0}
  .rv:has(#rv-split:is(:not(:empty),.htmx-request)) .rv-panel{min-height:0;overflow:auto}
  .rv:has(#rv-split:is(:not(:empty),.htmx-request)) .rv-docs{min-height:0;grid-template-rows:minmax(0,1fr)}
  .rv:has(#rv-split:is(:not(:empty),.htmx-request)) .rv-body{min-height:0;overflow:auto}
}
/* Titles are left-aligned; the date column (title and values) is centred. */
.rhead>:nth-child(2){text-align:center}
@media (min-width:48.01rem){.res>:nth-child(3){text-align:center}}
.res .lb{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* decision form = link to the full view: ink colour, underline on hover */
.c-open,.c-drill{color:inherit;text-decoration:none;text-underline-offset:.18em}
.c-open:hover,.c-drill:hover{color:var(--brand);text-decoration:underline}
.c-drill:focus-visible,.c-open:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
/* В«РџРѕС€СѓРє Сѓ Р·РЅР°Р№РґРµРЅРѕРјСѓВ» (a page reached by a drill step): a switch-looking link before the table, on = --fill */
.within{display:flex;align-items:center;min-height:1.75rem;margin:0 0 .6rem;padding:0}
#within{margin-bottom:1rem}
.within[hidden]{display:none!important}
.layout:not(:has(#results .res)) #within{display:none}
/* a note about the results (the period chosen by the server, the depth limit of the API): above or under the table */
.rnote{margin:0 0 .6rem;padding:.5rem .75rem;border-left:4px solid var(--fill);background:var(--bg-soft);color:var(--ink-2);font-size:.875rem;line-height:1.45}
.res~.rnote{margin:.6rem 0 0}
.within-sw{display:inline-flex;align-items:center;gap:.55rem;min-height:1.5rem;color:var(--ink);font-size:.9rem;font-weight:600;text-decoration:none;cursor:pointer}
.within-sw:hover{color:var(--brand)}
.within-sw:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:3px}
.within-k{position:relative;flex:none;width:2.25rem;height:1.25rem;border:1px solid var(--field);border-radius:999px;background:var(--bg-soft);transition:background-color .12s ease}
.within-k::after{content:"";position:absolute;top:2px;left:2px;width:calc(1.25rem - 6px);height:calc(1.25rem - 6px);border-radius:50%;background:var(--muted);transition:transform .12s ease}
.within-sw[aria-checked="true"] .within-k{border-color:var(--fill);background:var(--fill)}
.within-sw[aria-checked="true"] .within-k::after{background:var(--on-brand);transform:translateX(1rem)}
.within-sw:has(.within-input:checked) .within-k{border-color:var(--fill);background:var(--fill)}
.within-sw:has(.within-input:checked) .within-k::after{background:var(--on-brand);transform:translateX(1rem)}
.within-sw:has(.within-input:focus-visible) .within-k{outline:3px solid var(--focus);outline-offset:2px}
.c-reg{display:block;margin-top:.1rem;color:var(--muted);font-size:.78rem}
/* Found text: a bordered box under the row */
.res .snip{grid-column:1/-1;margin:.5rem 0 .1rem;padding:.45rem .7rem;border:1px solid var(--snip-line);border-radius:4px;background:var(--snip-bg);color:var(--ink-2);font-size:.85rem;line-height:1.55}
/* Five-cell rows (VRP acts, <section class="results" data-cols="5">): form + в„– + case | date | subject | votes | eye.
   The date is the bold value; the votes column is centred like the date. */
.results[data-cols="5"]{--cols:8.5rem 6rem minmax(0,1fr) 8.5rem 2.25rem}
.results[data-cols="5"] .res>:is(:nth-child(2),:nth-child(5)){font-weight:inherit}
.results[data-cols="5"] .res>:nth-child(3){font-weight:600}
.results[data-cols="5"] .rhead>:nth-child(4){text-align:center}
@media (min-width:48.01rem){
  .results[data-cols="5"] .res>:nth-child(2){text-align:start}
  .results[data-cols="5"] .res>:nth-child(5){align-self:start;text-align:center;height:2.25rem}
  .results[data-cols="5"] .res>:nth-child(5) .vote-badges{justify-content:center}
}
/* VRP record cells: case number, subject, votes (the link opens the viewer's voting tab: class .peek for ui.js, but
   not the В«eyeВ» look) and the semantic snippet's focal sentence */
.res .c-case{color:var(--muted);font-size:.78rem}
.res a.c-case{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:.15em}
.res a.c-case:is(:hover,:focus-visible){color:var(--brand);text-decoration-color:currentColor}
.c-content,.c-details{display:block;min-width:0;hyphens:none}
.c-title{display:block;color:var(--ink-2);hyphens:none}
.c-details:has(> :not(.c-title)) .c-title{margin-top:.2rem}
a.c-title{text-decoration:none}
a.c-title:is(:hover,:focus-visible){color:var(--brand);text-decoration:underline}
.c-votes{display:flex;justify-content:center;align-items:center;height:2.25rem;margin:0;align-self:start}
.vote-badges{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:.3rem}
.vote-badge{display:inline-flex;align-items:center;justify-content:center;gap:.2rem;min-width:1.75rem;padding:.15rem .35rem;border:1px solid currentColor;border-radius:4px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.vote-badge svg{flex:none}
.vote-yes{background:var(--ok-bg);color:var(--ok-ink)}
.vote-no{background:color-mix(in srgb,var(--pdf-ink) 10%,var(--bg));color:var(--pdf-ink)}
.vote-link{display:inline-flex;align-items:center;height:2.25rem;text-decoration:none;border-radius:4px}
.vote-link:hover .vote-badge{box-shadow:0 0 0 1px currentColor}
.res .vote-link.peek,.res .vote-link.peek:is(:hover,[aria-current]){display:inline-flex;width:auto;height:2.25rem;margin:0;border:0;background:none;color:inherit}
.res .snip mark.sem-focus{display:inline;background:rgba(99,102,241,.12);color:inherit;font-weight:600;padding:.05em .2em;border-radius:3px;box-shadow:inset 0 -2px 0 #6366f1}
html[data-theme="dark"] .res .snip mark.sem-focus{background:rgba(147,197,253,.15);box-shadow:inset 0 -2px 0 #8dbdf0}
@media (prefers-color-scheme:dark){html:not([data-theme]) .res .snip mark.sem-focus{background:rgba(147,197,253,.15);box-shadow:inset 0 -2px 0 #8dbdf0}}
.res .snip mark.sem-focus mark{background:var(--hl);color:var(--ink);font-weight:700}
@media (max-width:48rem){
  .rhead{display:none}
  /* phones: every decision is its own bordered block */
  .res{grid-template-columns:minmax(0,1fr);row-gap:.2rem;margin-bottom:.75rem;padding:.75rem .85rem}
  .res>span{display:grid;grid-template-columns:minmax(7.5rem,40%) minmax(0,1fr);column-gap:.6rem}
  .res .lb{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;color:var(--muted);font-size:.78rem}
  .res .c-reg{grid-column:2}
  .res>.peek{position:absolute;top:.6rem;right:.6rem;margin:0}
  .res .c-reg .lb{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  /* VRP: the first cell clears the В«eyeВ» in the corner; no votes, no В«Р“РѕР»РѕСЃСѓРІР°РЅРЅСЏВ» label */
  .results[data-cols="5"] .res>:nth-child(2){padding-right:2.6rem}
  .results[data-cols="5"] .res>span{grid-template-columns:8rem minmax(0,1fr)}   /* one label width: the values line up whatever the cell's padding */
  .res .c-votes{display:grid;justify-content:start;margin-bottom:.9rem}
  .res .c-votes:not(:has(.vote-link)){display:none}
  .res .vote-link{margin-top:0}
}
@media (max-width:36rem){
  .results .res>span{grid-template-columns:minmax(0,1fr);row-gap:.1rem}
  .results[data-cols="5"] .res>span{grid-template-columns:minmax(0,1fr)}
  .results .res .c-reg{grid-column:1}
}
/* the same blocks when the resized viewer leaves the results narrower than their table (html.vw-col, see the viewer) */
@container res (max-width:52rem){
  .rhead{display:none}
  .res{grid-template-columns:minmax(0,1fr);row-gap:.2rem;margin-bottom:.75rem;padding:.75rem .85rem}
  .res>span{display:grid;grid-template-columns:minmax(7.5rem,40%) minmax(0,1fr);column-gap:.6rem}
  .res .lb{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;color:var(--muted);font-size:.78rem}
  .res .c-reg{grid-column:2}
  .res>.peek{position:absolute;top:.6rem;right:.6rem;margin:0}
  .res .c-reg .lb{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .res>:nth-child(3){text-align:start}
  .results[data-cols="5"] .res>:nth-child(2){padding-right:2.6rem;text-align:start}
  .results[data-cols="5"] .res>span{grid-template-columns:8rem minmax(0,1fr)}
  .results[data-cols="5"] .res>:nth-child(5){align-self:start;height:auto;text-align:start}
  .results[data-cols="5"] .res>:nth-child(5) .vote-badges{justify-content:flex-start}
  .res .c-votes{display:grid;justify-content:start}
  .res .c-votes:not(:has(.vote-link)){display:none}
  .res .vote-link{margin-top:0}
}

/* Print of a decision (the В«Р”СЂСѓРєВ» button): only the chosen document вЂ” its title and text, black on white */
@media print{
  html[data-print] .rail,html[data-print] .top,html[data-print] .foot,html[data-print] .rv-side,html[data-print] .rv-bar>:not(.rv-t),html[data-print] .rv-gut{display:none!important}
  html[data-print="main"] .rv-split,html[data-print="split"] .rv-docs>.rv-doc{display:none!important}
  html[data-print="split"] .rv-split{border:0!important}
  html[data-print] body,html[data-print] .rv-doc,html[data-print] .rv-bar,html[data-print] .rv-body{background:#fff!important;color:#000!important}
  html[data-print] .shell,html[data-print] .rv,html[data-print] .rv-docs{display:block!important;min-height:0!important}
  html[data-print] .rv-bar{border:0;padding:0 0 1rem}
  html[data-print] .rv-t{white-space:normal;color:#000}
  html[data-print] .rv-body{padding:0}
  html[data-print] .rv-text{max-width:none;color:#000}
  html[data-print] .dtext{overflow:visible}
  html[data-print] .dtext :is(table:has(thead),table:has(th),table:has(tr:nth-child(3))){overflow:visible;display:table;width:100%;min-width:0}
  html[data-print] .dtext :is(table:has(thead),table:has(th),table:has(tr:nth-child(3))) :is(td,th){border-color:#666;min-width:0}
  html[data-print] mark{background:none;color:inherit}
}

