:root{--navy:#041a35;--navy2:#0a315e;--blue:#135da4;--gold:#c58c25;--gold2:#f1cf82;--ink:#10243f;--muted:#64758b;--muted-strong:#475b73;--line:#dce4ed;--line-strong:#c8d4e1;--wash:#f3f6f9;--white:#fff;--paper:#fffdf9;--green:#18865f;--red:#c24f4f;--orange:#bd741f;--purple:#7669ad;--teal:#1b9d8c;--shadow:0 20px 54px rgba(12,38,69,.10);--shadow-strong:0 30px 80px rgba(6,31,60,.17);--radius:18px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-7:28px;--space-8:32px;--space-9:40px;--space-10:48px;--shell-pad-x:clamp(16px,2.6vw,38px);--shell-pad-y:clamp(20px,2.8vw,32px);--section-pad-y:clamp(76px,7vw,100px);--card-pad:clamp(17px,1.3vw,22px);--card-pad-lg:clamp(20px,1.7vw,28px);--control-h:44px;--control-h-lg:48px;--control-pad-x:14px;--control-pad-y:12px;--topbar-h:clamp(72px,6vw,80px);--serif:"Newsreader",Georgia,serif;--sans:"Manrope","Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#f5f7fa;font-family:"DM Sans","Aptos",sans-serif}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}img,svg{display:block;max-width:100%}:focus-visible{outline:3px solid rgba(201,149,53,.5);outline-offset:2px}.app-loading{min-height:100vh;display:grid;place-items:center;background:var(--navy);color:#fff}.global-loading{width:min(680px,calc(100vw - 40px));padding:34px;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(255,255,255,.07);box-shadow:0 24px 70px rgba(0,0,0,.2)}.global-loading-brand{color:#f1ca74;font-size:11px;font-weight:900;letter-spacing:.2em}.global-loading-title{margin-top:10px;color:#fff;font-family:"Newsreader",Georgia,serif;font-size:30px}.global-loading-skeletons{margin-top:24px;display:grid;gap:10px}.global-loading-skeletons span{height:58px;border-radius:12px;background:linear-gradient(100deg,rgba(255,255,255,.1) 35%,rgba(255,255,255,.24) 50%,rgba(255,255,255,.1) 65%);background-size:300% 100%;animation:loading-shimmer 1.35s linear infinite}.global-loading-skeletons span:nth-child(2){width:82%}.global-loading-skeletons span:nth-child(3){width:94%}.global-loading-skeletons span:nth-child(4){width:68%}.global-loading-caption{margin-top:16px;color:#b9c9d9;font-size:13px}@keyframes loading-shimmer{to{background-position:-300% 0}}.muted{color:var(--muted)}.mono{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.hidden{display:none!important}
.btn{min-height:42px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:11px;color:#28425e;background:#fff;font-size:13px;font-weight:700;transition:.2s ease}.btn:hover{border-color:#aebdce;transform:translateY(-1px)}.btn.primary{border-color:var(--navy);color:#fff;background:var(--navy);box-shadow:0 10px 25px rgba(7,26,53,.16)}.btn.gold{border:0;color:#17233a;background:linear-gradient(135deg,#f3d792,#c99535)}.btn.ghost{border-color:transparent;background:transparent}.icon-btn{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:11px;color:#36516e;background:#fff}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;color:#4d627a;background:#edf2f7;font-size:13px;font-weight:700}.badge.green{color:#176f52;background:#e7f6ef}.badge.red{color:#a64040;background:#faeaea}.badge.gold{color:#8a5b12;background:#fff3d8}.badge.blue{color:#1c5b92;background:#e8f2fb}.badge.purple{color:#635397;background:#efecfb}.dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.portal{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;padding:18px 14px;display:flex;flex-direction:column;color:#e8f0fb;background:radial-gradient(circle at 30% 0,rgba(201,149,53,.16),transparent 30%),linear-gradient(165deg,#06182f,#08213f 70%,#051529);overflow:auto}.brand{padding:8px;display:flex;align-items:center;gap:11px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:#12213a;background:linear-gradient(145deg,#ffe6a8,#c58d2e);font:700 22px/1 Georgia,serif;box-shadow:0 10px 25px rgba(201,149,53,.22)}.brand strong,.brand small{display:block}.brand strong{font-family:"Libre Caslon Display",Georgia,serif;font-size:17px}.brand small{margin-top:2px;color:#8ca2bf;font-size:13px;letter-spacing:.15em;text-transform:uppercase}.nav-section{margin:24px 8px 8px;color:#68819f;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.side-nav{display:grid;gap:4px}.side-nav a{min-height:40px;padding:0 11px;display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:10px;color:#aebfd5;font-size:13px;font-weight:600;transition:.2s ease}.side-nav a:hover{color:#fff;background:rgba(255,255,255,.055)}.side-nav a.active{border-color:rgba(240,203,122,.13);color:#fff;background:linear-gradient(90deg,rgba(201,149,53,.17),rgba(255,255,255,.035));box-shadow:inset 3px 0 var(--gold)}.side-nav i{width:22px;color:#f0cb7a;font-style:normal;text-align:center}.nav-count{margin-left:auto;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#1b5fa4;font-size:13px}.sidebar-foot{margin-top:auto;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.035)}.sidebar-foot b,.sidebar-foot small{display:block}.sidebar-foot b{font-size:13px}.sidebar-foot small{margin-top:4px;color:#7890af;font-size:13px}.shell{min-width:0}.topbar{position:sticky;z-index:30;top:0;height:72px;padding:0 24px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);backdrop-filter:blur(20px)}.mobile-menu{display:none}.global-search{position:relative;flex:1;max-width:660px}.global-search label{height:42px;padding:0 12px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:11px;background:#f7f9fb}.global-search input{width:100%;border:0;outline:0;color:var(--ink);background:transparent;font-size:13px}.global-search kbd{padding:3px 6px;border:1px solid #d7dee7;border-radius:6px;color:#8493a6;background:#fff;font-size:13px}.search-suggestions{position:absolute;top:49px;left:0;right:0;padding:7px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 22px 60px rgba(20,42,68,.16)}.suggestion{width:100%;padding:9px;display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;border:0;border-radius:9px;text-align:left;background:transparent}.suggestion:hover{background:#f1f5f8}.suggestion-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#fff;background:var(--navy)}.suggestion b,.suggestion small{display:block}.suggestion b{font-size:13px}.suggestion small{margin-top:2px;color:var(--muted);font-size:13px}.suggestion em{color:var(--gold);font-size:13px;font-style:normal;font-weight:700}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.user-chip{display:flex;align-items:center;gap:9px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(145deg,#1d64a4,#0a2c55);font-size:13px;font-weight:700}.user-chip b,.user-chip small{display:block}.user-chip b{font-size:13px}.user-chip small{margin-top:2px;color:var(--muted);font-size:13px}.content{width:min(1500px,100%);margin:0 auto;padding:28px}.page-head{margin-bottom:20px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.page-head h1{margin:4px 0 0;font-family:"Libre Caslon Display",Georgia,serif;font-size:32px;line-height:1.05;font-weight:400}.page-head p{max-width:72ch;margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.65}.eyebrow{color:#9b6d1c;font-size:13px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.head-actions{display:flex;gap:8px;flex-wrap:wrap}.card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.card-head{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e8edf2}.card-head h2,.card-head h3{margin:0;font-family:"Libre Caslon Display",Georgia,serif;font-size:17px;font-weight:400}.card-body{padding:18px}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{padding:16px;position:relative;overflow:hidden}.metric::after{content:"";position:absolute;width:90px;height:90px;right:-25px;bottom:-45px;border-radius:50%;background:rgba(19,93,164,.06)}.metric small,.metric b,.metric span{display:block}.metric small{color:var(--muted);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}.metric b{margin-top:8px;font-family:"Libre Caslon Display",Georgia,serif;font-size:28px;font-weight:400}.metric span{margin-top:4px;color:var(--green);font-size:13px;font-weight:700}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th{padding:10px 12px;color:#7a8a9e;background:#f8fafc;text-align:left;font-size:13px;letter-spacing:.07em;text-transform:uppercase}.data-table td{padding:12px;border-top:1px solid #edf1f5;font-size:13px;vertical-align:middle}.data-table tr:hover td{background:#fbfcfd}.cell-title b,.cell-title small{display:block}.cell-title b{font-size:13px}.cell-title small{margin-top:3px;color:var(--muted);font-size:13px}.progress{height:6px;overflow:hidden;border-radius:999px;background:#e9eef3}.progress span{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,var(--blue),#4c92ce)}.filters{margin-bottom:15px;padding:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filters input,.filters select{min-height:38px;padding:0 11px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff;font-size:13px}.filters input{min-width:240px;flex:1}.tabs{display:flex;gap:5px;overflow:auto}.tabs button,.tabs a{min-height:38px;padding:0 12px;display:inline-flex;align-items:center;border:0;border-radius:9px;color:#687b92;background:transparent;font-size:13px;font-weight:700;white-space:nowrap}.tabs button.active,.tabs a.active{color:#fff;background:var(--navy)}
/* Landing */
.landing{min-height:100vh;background:#fff}.landing-nav{position:sticky;z-index:50;top:0;height:76px;padding:0 max(24px,calc((100% - 1280px)/2));display:flex;align-items:center;gap:24px;border-bottom:1px solid rgba(13,41,70,.08);background:rgba(255,255,255,.88);backdrop-filter:blur(20px)}.landing-links{margin-left:auto;display:flex;align-items:center;gap:22px}.landing-links a{color:#435a73;font-size:13px;font-weight:600}.landing-hero{min-height:740px;padding:90px max(24px,calc((100% - 1280px)/2)) 70px;display:grid;grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr);gap:55px;align-items:center;background:radial-gradient(circle at 84% 15%,rgba(31,114,184,.13),transparent 27rem),radial-gradient(circle at 12% 5%,rgba(201,149,53,.12),transparent 24rem),linear-gradient(180deg,#fff,#f7f9fb)}.hero-kicker{display:inline-flex;padding:7px 10px;border:1px solid #ead8b5;border-radius:999px;color:#8f641c;background:#fff9eb;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.hero-copy h1{max-width:12ch;margin:20px 0 18px;color:#0b2340;font-family:"Libre Caslon Display",Georgia,serif;font-size:clamp(48px,5.3vw,76px);line-height:.94;font-weight:400;letter-spacing:-.035em}.hero-copy p{max-width:58ch;margin:0;color:#607188;font-size:14px;line-height:1.75}.hero-actions{margin-top:28px;display:flex;gap:10px;flex-wrap:wrap}.hero-trust{margin-top:28px;display:flex;gap:18px;flex-wrap:wrap;color:#6b7c91;font-size:13px;font-weight:600}.hero-trust span::before{content:"✓";margin-right:6px;color:var(--green)}.hero-stage{position:relative;min-height:540px;border:1px solid #dbe3ec;border-radius:28px;background:#fff;box-shadow:0 40px 100px rgba(20,48,80,.15);overflow:hidden}.stage-bar{height:56px;padding:0 16px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #e8edf2;background:#fbfcfd}.stage-bar i{width:8px;height:8px;border-radius:50%;background:#d6dee7}.stage-bar i:first-child{background:#dd7b70}.stage-bar i:nth-child(2){background:#e7b95e}.stage-bar i:nth-child(3){background:#6fc58a}.flow-graphic{position:absolute;inset:56px 0 0}.flow-line{position:absolute;height:1px;background:#cbd5e1;transform-origin:left center}.flow-line::after{content:"";position:absolute;right:-2px;top:-3px;border-left:6px solid #9aaabd;border-top:3px solid transparent;border-bottom:3px solid transparent}.flow-node{position:absolute;width:104px;min-height:82px;padding:12px;display:grid;place-items:center;text-align:center;border:1px solid #dce4ec;border-radius:15px;background:#fff;box-shadow:0 12px 30px rgba(20,48,80,.11);transition:.25s ease}.flow-node:hover{z-index:5;transform:translateY(-4px);border-color:#c99535}.flow-node strong{display:block;color:#183b60;font-size:13px}.flow-node small{display:block;margin-top:5px;color:#74859a;font-size:13px}.flow-node .node-icon{width:31px;height:31px;margin-bottom:7px;display:grid;place-items:center;border-radius:10px;color:#fff;background:var(--navy);font-size:13px}.flow-node.gold .node-icon{color:#1b2a40;background:linear-gradient(145deg,#f4d990,#c99535)}.flow-node.teal .node-icon{background:var(--teal)}.flow-node.purple .node-icon{background:var(--purple)}.landing-section{padding:90px max(24px,calc((100% - 1280px)/2))}.landing-section.soft{background:#f5f7fa}.section-title{max-width:760px;margin:0 auto 38px;text-align:center}.section-title h2{margin:8px 0 12px;color:#0f2948;font-family:"Libre Caslon Display",Georgia,serif;font-size:42px;font-weight:400}.section-title p{margin:0;color:#65768b;font-size:13px;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-card{padding:22px;min-height:210px;position:relative;overflow:hidden}.feature-card .feature-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#fff;background:var(--navy)}.feature-card h3{margin:18px 0 8px;font-family:"Libre Caslon Display",Georgia,serif;font-size:20px;font-weight:400}.feature-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.feature-card a{position:absolute;left:22px;bottom:20px;color:#1c5b91;font-size:13px;font-weight:700}.workflow-journey{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.journey-step{padding:18px;position:relative}.journey-step::after{content:"→";position:absolute;right:-13px;top:50%;color:#9caabd}.journey-step:last-child::after{display:none}.journey-step b{display:block;color:#b27b25;font-family:"Libre Caslon Display",Georgia,serif;font-size:25px}.journey-step strong{display:block;margin-top:8px;font-size:13px}.journey-step small{display:block;margin-top:6px;color:var(--muted);font-size:13px;line-height:1.5}.landing-cta{padding:68px max(24px,calc((100% - 1280px)/2));color:#fff;background:radial-gradient(circle at 80% 10%,rgba(201,149,53,.22),transparent 24rem),var(--navy)}.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.cta-inner h2{max-width:700px;margin:0;font-family:"Libre Caslon Display",Georgia,serif;font-size:38px;font-weight:400}.cta-inner p{margin:8px 0 0;color:#9eb0c8;font-size:13px}.landing-footer{padding:26px max(24px,calc((100% - 1280px)/2));display:flex;align-items:center;justify-content:space-between;color:#7a899c;font-size:13px;background:#fff}
/* Dashboard and records */
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px}.activity-bars{height:150px;padding:18px 12px 6px;display:grid;grid-template-columns:repeat(12,1fr);align-items:end;gap:8px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fafc)}.activity-bars i{display:block;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#4c92ce,#175c9c)}.activity-bars i:nth-child(4n){background:linear-gradient(180deg,#efcc7b,#b88128)}.list{display:grid}.list-row{padding:12px 0;display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;border-top:1px solid #edf1f5}.list-row:first-child{border-top:0}.list-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#24547e;background:#e9f2fa;font-size:13px}.list-row b,.list-row small{display:block}.list-row b{font-size:13px}.list-row small{margin-top:3px;color:var(--muted);font-size:13px}.record-hero{padding:20px;display:grid;grid-template-columns:1fr auto;gap:20px;background:linear-gradient(135deg,#fff,#f6f9fc)}.record-title{display:flex;align-items:flex-start;gap:14px}.record-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;color:#fff;background:var(--navy);font-size:19px}.record-title h1{margin:2px 0 6px;font-family:"Libre Caslon Display",Georgia,serif;font-size:26px;font-weight:400}.record-title p{margin:0;color:var(--muted);font-size:13px}.record-meta{margin-top:13px;display:flex;gap:7px;flex-wrap:wrap}.record-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.record-tabs{margin:15px 0}.record-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:16px}.timeline{display:grid}.timeline-item{padding:0 0 18px 26px;position:relative}.timeline-item::before{content:"";position:absolute;left:7px;top:8px;bottom:-4px;width:1px;background:#dce4ec}.timeline-item:last-child::before{display:none}.timeline-item::after{content:"";position:absolute;left:3px;top:5px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px #b9c9d8}.timeline-item b,.timeline-item small,.timeline-item p{display:block}.timeline-item b{font-size:13px}.timeline-item small{margin-top:3px;color:#9a6d20;font-size:13px;font-weight:700}.timeline-item p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.folder-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.folder{padding:12px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fbfcfd}.folder-icon{width:36px;height:31px;display:grid;place-items:center;border-radius:8px;color:#9a6d20;background:#fff2d3}.folder b,.folder small{display:block}.folder b{font-size:13px}.folder small{margin-top:3px;color:var(--muted);font-size:13px}.analysis-card{padding:14px;border-left:3px solid var(--blue);background:#f7fafc}.analysis-card.warn{border-color:var(--orange)}.analysis-card.good{border-color:var(--green)}.analysis-card b{font-size:13px}.analysis-card p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.donut{width:110px;height:110px;margin:0 auto;position:relative;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--green) 0 68%,var(--gold) 68% 86%,#e7ecf1 86%)}.donut::after{content:"";position:absolute;inset:13px;border-radius:50%;background:#fff}.donut b{position:relative;z-index:1;font-family:"Libre Caslon Display",Georgia,serif;font-size:24px;font-weight:400}
/* Graph */
.graph-card{overflow:hidden}.graph-toolbar{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);background:#fbfcfd}.graph-toolbar .tabs{flex:1}.graph-controls{display:flex;gap:5px}.graph-controls button{height:34px;padding:0 9px;border:1px solid var(--line);border-radius:8px;color:#3c5773;background:#fff;font-size:13px;font-weight:700}.graph-stage{position:relative;height:560px;overflow:hidden;background:radial-gradient(circle at center,#fff,#f5f8fb);touch-action:none;cursor:grab}.graph-stage.panning{cursor:grabbing}.graph-stage svg{width:100%;height:100%}.g-edge{fill:none;stroke:#aeb9c8;stroke-width:1.4}.g-edge.active{stroke:#315f85;stroke-width:2.2}.g-node{cursor:pointer}.g-node circle{stroke:#fff;stroke-width:3;filter:drop-shadow(0 5px 6px rgba(24,49,74,.16))}.g-node.person circle{fill:var(--teal)}.g-node.company circle{fill:var(--purple)}.g-node.case circle{fill:var(--gold)}.g-node.document circle{fill:#3f7da7}.g-node.selected circle{stroke:var(--navy);stroke-width:5}.g-node text{fill:#24384f;text-anchor:middle;font-size:13px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:5px}.g-node .glyph{fill:#fff;stroke:none;font-size:13px;stroke-width:0}.graph-popup{position:absolute;z-index:10;top:15px;left:50%;width:min(650px,calc(100% - 30px));padding:16px;border:1px solid #d8e0e9;border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 20px 55px rgba(21,45,71,.2);transform:translateX(-50%)}.graph-popup-head{padding-right:30px;display:flex;align-items:center;gap:11px}.graph-popup-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--purple)}.graph-popup b,.graph-popup small{display:block}.graph-popup b{font-family:"Libre Caslon Display",Georgia,serif;font-size:17px;font-weight:400}.graph-popup small{margin-bottom:3px;color:var(--muted);font-size:13px}.graph-popup-meta{margin:12px 0;display:flex;gap:7px;flex-wrap:wrap}.graph-popup-close{position:absolute;right:9px;top:8px;border:0;background:transparent;font-size:20px}.graph-popup-actions{display:flex;justify-content:flex-end;gap:7px}
/* OCR */
.ocr-shell{height:calc(100vh - 128px);min-height:680px;display:grid;grid-template-columns:190px minmax(300px,.95fr) minmax(340px,1.05fr);overflow:hidden}.ocr-pages{padding:12px;overflow:auto;border-right:1px solid var(--line);background:#f4f7fa}.ocr-pages h3{margin:3px 3px 12px;font-size:13px}.ocr-thumb{width:100%;margin-bottom:10px;padding:8px;display:block;border:2px solid transparent;border-radius:11px;text-align:left;background:#fff}.ocr-thumb.active{border-color:var(--blue);box-shadow:0 8px 20px rgba(19,93,164,.11)}.thumb-paper{height:110px;padding:11px;border:1px solid #dfe4e9;background:linear-gradient(#fff,#fafafa)}.thumb-line{height:4px;margin-bottom:6px;border-radius:3px;background:#d7dde3}.ocr-thumb b,.ocr-thumb small{display:block}.ocr-thumb b{margin-top:7px;font-size:13px}.ocr-thumb small{margin-top:2px;color:var(--muted);font-size:13px}.ocr-scan{padding:18px;overflow:auto;display:grid;place-items:start center;background:#dfe5eb}.paper{width:min(100%,620px);min-height:780px;padding:64px 54px;color:#25384e;background:#fff;box-shadow:0 18px 45px rgba(31,50,71,.18);font-family:Georgia,serif}.paper-head{text-align:center}.paper h2{margin:0 0 8px;font-size:19px}.paper p{font-size:13px;line-height:1.75}.scan-highlight{padding:2px 3px;border-radius:3px;background:#ffe6a2;box-shadow:0 0 0 1px #d39a2e}.ocr-editor{display:grid;grid-template-rows:auto 1fr auto;min-width:0}.editor-toolbar{padding:10px;display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line);background:#fbfcfd;overflow:auto}.editor-toolbar button{min-width:max-content;height:33px;padding:0 9px;border:1px solid var(--line);border-radius:8px;color:#3b5672;background:#fff;font-size:13px;font-weight:700}.editor-toolbar .confidence{margin-left:auto}.ocr-textarea{width:100%;height:100%;padding:24px;border:0;outline:0;resize:none;color:#20344c;background:#fff;font:13px/1.8 Georgia,serif}.issue-panel{padding:12px;border-top:1px solid var(--line);background:#fbfcfd}.issue{padding:10px;display:grid;grid-template-columns:1fr auto;gap:10px;border:1px solid #f0d7a6;border-radius:10px;background:#fffaf0}.issue b,.issue small{display:block}.issue b{font-size:13px}.issue small{margin-top:3px;color:#87601c;font-size:13px}.editor-status{padding:9px 12px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);color:var(--muted);background:#fff;font-size:13px}
/* Lists and specialist pages */
.lawyer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.lawyer-card{padding:17px;display:grid;grid-template-columns:56px 1fr auto;gap:13px}.lawyer-avatar{width:56px;height:56px;display:grid;place-items:center;border-radius:17px;color:#fff;background:linear-gradient(145deg,#1c639f,#0a2b53);font-family:"Libre Caslon Display",Georgia,serif;font-size:18px}.lawyer-card h3{margin:2px 0 4px;font-family:"Libre Caslon Display",Georgia,serif;font-size:18px;font-weight:400}.lawyer-card p{margin:0;color:var(--muted);font-size:13px}.tags{margin-top:9px;display:flex;gap:5px;flex-wrap:wrap}.rating{color:#95661e;font-size:13px;font-weight:700}.judgment-list,.law-list{display:grid;gap:10px}.judgment-row,.law-row{padding:16px;display:grid;grid-template-columns:115px 1fr auto;gap:16px;align-items:start}.judgment-row h3,.law-row h3{margin:0;font-family:"Libre Caslon Display",Georgia,serif;font-size:17px;font-weight:400}.judgment-row p,.law-row p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.similarity{width:56px;height:56px;display:grid;place-items:center;border-radius:50%;color:#176f52;background:#e7f6ef;font-family:"Libre Caslon Display",Georgia,serif;font-size:17px}.quote{padding:18px;border-left:3px solid var(--gold);color:#354c66;background:#fffaf0;font-family:Georgia,serif;font-size:13px;line-height:1.75}.sejm-stages{display:flex;gap:0;overflow:auto}.sejm-stage{min-width:150px;padding:18px 13px 10px;position:relative;border-top:2px solid #dce3eb}.sejm-stage.done{border-color:var(--green)}.sejm-stage::before{content:"";position:absolute;top:-7px;left:13px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#c7d1dc;box-shadow:0 0 0 1px #c7d1dc}.sejm-stage.done::before{background:var(--green);box-shadow:0 0 0 1px var(--green)}.sejm-stage b,.sejm-stage small{display:block}.sejm-stage b{font-size:13px}.sejm-stage small{margin-top:4px;color:var(--muted);font-size:13px}.ai-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px}.ai-prompt{padding:14px;display:grid;grid-template-columns:1fr auto;gap:9px}.ai-prompt textarea{min-height:90px;padding:12px;border:1px solid var(--line);border-radius:11px;resize:vertical}.argument{padding:14px;border-left:3px solid var(--green);background:#f8fbfa}.argument.against{border-color:var(--orange);background:#fffaf4}.argument-head{display:flex;align-items:center;justify-content:space-between}.argument h3{margin:0;font-size:13px}.argument p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
/* Forum, chat, registry, settings */
.forum-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.thread{padding:15px;display:grid;grid-template-columns:1fr auto;gap:12px;border-top:1px solid #edf1f5}.thread:first-child{border-top:0}.thread h3{margin:0;font-family:"Libre Caslon Display",Georgia,serif;font-size:16px;font-weight:400}.thread p{margin:6px 0;color:var(--muted);font-size:13px;line-height:1.5}.thread-stats{text-align:right;color:var(--muted);font-size:13px}.post{padding:13px 0;display:grid;grid-template-columns:36px 1fr;gap:10px;border-top:1px solid #edf1f5}.post p{margin:5px 0 0;color:#425971;font-size:13px;line-height:1.55}.chat-shell{height:calc(100vh - 128px);min-height:650px;display:grid;grid-template-columns:300px 1fr;overflow:hidden}.conversation-list{overflow:auto;border-right:1px solid var(--line)}.conversation{width:100%;padding:12px;display:grid;grid-template-columns:40px 1fr auto;gap:9px;align-items:center;border:0;border-bottom:1px solid #edf1f5;text-align:left;background:#fff}.conversation.active{background:#edf5fc}.conversation b,.conversation small{display:block}.conversation b{font-size:13px}.conversation small{margin-top:3px;color:var(--muted);font-size:13px}.chat-panel{display:grid;grid-template-rows:auto 1fr auto;min-width:0}.chat-head{padding:13px 16px;border-bottom:1px solid var(--line)}.messages{padding:18px;overflow:auto;background:#f7f9fb}.message{max-width:68%;margin-bottom:10px}.message.mine{margin-left:auto}.message-bubble{padding:11px 13px;border:1px solid var(--line);border-radius:13px 13px 13px 3px;background:#fff;font-size:13px;line-height:1.5}.message.mine .message-bubble{border-color:var(--navy);border-radius:13px 13px 3px 13px;color:#fff;background:var(--navy)}.message small{display:block;margin-top:4px;color:var(--muted);font-size:13px}.message.mine small{text-align:right}.chat-compose{padding:10px;display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid var(--line)}.chat-compose input{padding:0 12px;border:1px solid var(--line);border-radius:10px}.asset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.asset-card{overflow:hidden}.asset-visual{height:150px;display:grid;place-items:center;color:#698199;background:linear-gradient(145deg,#edf2f6,#f9fbfc);font-size:40px}.asset-body{padding:15px}.asset-body h3{margin:0;font-family:"Libre Caslon Display",Georgia,serif;font-size:17px;font-weight:400}.asset-body p{margin:6px 0;color:var(--muted);font-size:13px}.settings-layout{display:grid;grid-template-columns:220px 1fr;gap:16px}.settings-menu{padding:8px}.settings-menu button{width:100%;min-height:39px;padding:0 10px;border:0;border-radius:9px;text-align:left;color:#58708a;background:transparent;font-size:13px}.settings-menu button.active{color:#fff;background:var(--navy)}.setting-row{padding:13px 0;display:grid;grid-template-columns:1fr auto;gap:15px;border-top:1px solid #edf1f5}.setting-row:first-child{border-top:0}.setting-row b,.setting-row small{display:block}.setting-row b{font-size:13px}.setting-row small{margin-top:4px;color:var(--muted);font-size:13px}.switch{width:42px;height:24px;padding:3px;border:0;border-radius:999px;background:#cbd5df}.switch span{width:18px;height:18px;display:block;border-radius:50%;background:#fff;transition:.2s}.switch.on{background:var(--green)}.switch.on span{transform:translateX(18px)}.toast{position:fixed;z-index:100;right:18px;bottom:18px;max-width:330px;padding:12px 14px;border:1px solid #d7e7df;border-radius:12px;color:#285442;background:#f5fffa;box-shadow:0 16px 40px rgba(20,42,68,.16);font-size:13px;transform:translateY(20px);opacity:0;pointer-events:none;transition:.25s}.toast.show{transform:none;opacity:1}.modal{position:fixed;z-index:90;inset:0;padding:24px;display:grid;place-items:center;background:rgba(6,20,38,.55);backdrop-filter:blur(8px)}.modal-panel{width:min(850px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 35px 100px rgba(0,0,0,.28)}.modal-head{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-family:"Libre Caslon Display",Georgia,serif;font-size:19px;font-weight:400}.modal-body{padding:18px}
/* Professional visual scale and media */
body{font-size:16px;line-height:1.55;letter-spacing:.002em}.btn{min-height:44px;padding:0 17px;font-size:13px}.badge{padding:6px 10px;font-size:13px}.brand strong{font-size:19px}.brand small{font-size:13px}.nav-section{font-size:13px}.side-nav a{min-height:44px;font-size:13px}.nav-count{font-size:13px}.sidebar-foot b{font-size:13px}.sidebar-foot small{font-size:13px;line-height:1.45}.topbar{height:78px}.global-search label{height:46px}.global-search input{font-size:14px}.global-search kbd{font-size:13px}.suggestion b{font-size:13px}.suggestion small,.suggestion em{font-size:13px}.user-chip b{font-size:13px}.user-chip small{font-size:13px}.content{width:min(1560px,100%);padding:34px}.page-head{margin-bottom:26px}.page-head h1{font-size:clamp(34px,3.2vw,46px)}.page-head p{font-size:15px;line-height:1.65}.eyebrow{font-size:13px}.card{box-shadow:0 16px 46px rgba(20,42,68,.075)}.card-head{padding:19px 21px}.card-head h2,.card-head h3{font-size:21px}.card-body{padding:21px}.metric{padding:20px}.metric small{font-size:13px}.metric b{font-size:34px}.metric span{font-size:13px}.data-table th{padding:13px 14px;font-size:13px}.data-table td{padding:15px 14px;font-size:13px}.cell-title b{font-size:13px}.cell-title small{font-size:13px}.filters{padding:13px}.filters input,.filters select{min-height:42px;font-size:13px}.tabs button,.tabs a{min-height:42px;font-size:13px}.list-row{padding:14px 0}.list-row b{font-size:13px}.list-row small{font-size:13px}.list-icon{width:40px;height:40px;font-size:14px}.record-title h1{font-size:32px}.record-title p{font-size:13px}.timeline-item b{font-size:13px}.timeline-item small{font-size:13px}.timeline-item p,.analysis-card p{font-size:13px;line-height:1.6}.landing-links a{font-size:13px}.hero-kicker{font-size:13px}.hero-copy p{font-size:17px}.hero-trust{font-size:13px}.stage-bar span{margin-left:8px;color:#6c7e93;font-size:13px;font-weight:700}.hero-stage-photo{position:absolute;inset:56px 0 0;width:100%;height:calc(100% - 56px);object-fit:cover}.flow-graphic{background:linear-gradient(115deg,rgba(248,251,253,.78),rgba(255,255,255,.2) 50%,rgba(7,26,53,.18))}.flow-line{background:rgba(26,57,89,.5)}.flow-node{border-color:rgba(210,220,230,.95);background:rgba(255,255,255,.94);box-shadow:0 14px 34px rgba(13,38,65,.18);backdrop-filter:blur(10px)}.flow-node strong{font-size:13px}.flow-node small{font-size:13px}.section-title p{font-size:15px}.feature-card p{font-size:13px}.feature-card a{font-size:13px}.journey-step strong{font-size:14px}.journey-step small{font-size:13px}.cta-inner p{font-size:14px}.landing-footer{font-size:13px}.lawyer-card p,.judgment-row p,.law-row p,.thread p,.post p,.asset-body p{font-size:13px}.lawyer-card h3,.judgment-row h3,.law-row h3{font-size:21px}.rating{font-size:13px}.similarity{width:64px;height:64px;padding:5px;text-align:center;font-size:15px}.quote{padding:23px;font-size:15px}.sejm-stage{min-width:190px}.sejm-stage b{font-size:13px}.sejm-stage small{font-size:13px}.sejm-stage p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.argument h3{font-size:13px}.argument p{font-size:13px}.thread h3{font-size:20px}.thread-stats{font-size:13px}.conversation b{font-size:13px}.conversation small{font-size:13px}.message-bubble{font-size:13px}.message small{font-size:13px}.setting-row b{font-size:13px}.setting-row small{font-size:13px}.toast{font-size:13px}.graph-controls button{height:38px;font-size:13px}.g-node text{font-size:13px}.graph-popup b{font-size:20px}.graph-popup small{font-size:13px}.paper p{font-size:14px}.ocr-pages h3{font-size:13px}.ocr-thumb b{font-size:13px}.ocr-thumb small{font-size:13px}.editor-toolbar button{font-size:13px}.issue b{font-size:13px}.issue small,.editor-status{font-size:13px}.source-state{min-height:36px;padding:0 11px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;color:#536a83;background:#fff;font-size:13px;font-weight:700;white-space:nowrap}.source-state i{width:8px;height:8px;border-radius:50%;background:#7b8fa4}.source-state.live{color:#176f52;background:#f0fbf6}.source-state.live i{background:#22a474;box-shadow:0 0 0 4px rgba(34,164,116,.12)}.source-state.warning{color:#895b14;background:#fff8e8}.source-state.warning i{background:#d99a31}.source-state.error{color:#9b3f3f;background:#fff1f1}.source-state.error i{background:#c24f4f}.pagination-bar{padding:18px 2px;display:flex;align-items:center;justify-content:flex-end;gap:9px;color:var(--muted);font-size:13px}.pagination-bar span{margin-right:auto}.empty-state{padding:38px;display:grid;place-items:center;gap:9px;text-align:center;color:var(--muted)}.empty-state b{color:var(--ink);font-size:17px}.empty-state p{margin:0;font-size:13px}.empty-state.compact{padding:22px}.prose{font-size:14px!important;line-height:1.75!important}.editorial-title{margin:0 0 12px;font-family:"Libre Caslon Display",Georgia,serif;font-size:24px;font-weight:400}.judgment-text{max-height:620px;overflow:auto;white-space:pre-wrap}.entity-lookup{margin-bottom:16px;padding:16px;display:grid;grid-template-columns:180px minmax(260px,1fr) auto;gap:12px;align-items:end;background:linear-gradient(135deg,#fff,#f5f8fb)}.entity-lookup label{display:grid;gap:6px}.entity-lookup label span{color:#65778d;font-size:13px;font-weight:700}.entity-lookup input,.entity-lookup select{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:14px}.entity-lookup>small{grid-column:1/-1;color:var(--muted);font-size:13px}.case-media{height:280px;margin:16px 0;position:relative;overflow:hidden}.case-media img{width:100%;height:100%;object-fit:cover}.case-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,24,47,.93),rgba(5,24,47,.58) 46%,transparent 80%)}.case-media figcaption{position:absolute;z-index:2;left:28px;top:50%;max-width:460px;display:grid;gap:7px;color:#fff;transform:translateY(-50%)}.case-media figcaption .eyebrow{color:var(--gold2)}.case-media figcaption b{font-family:"Libre Caslon Display",Georgia,serif;font-size:30px;line-height:1.05;font-weight:400}.case-media figcaption small{color:#c7d4e2;font-size:13px}.feature-card,.journey-step,.judgment-row,.law-row{transition:transform .25s ease,box-shadow .25s ease}.feature-card:hover,.journey-step:hover,.judgment-row:hover,.law-row:hover{transform:translateY(-4px);box-shadow:0 24px 60px rgba(20,42,68,.13)}.hero-copy{animation:visual-rise .7s ease both}.hero-stage{animation:visual-rise .75s .1s ease both}@keyframes visual-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media(max-width:1180px){.portal{grid-template-columns:220px minmax(0,1fr)}.sidebar .brand small{display:none}.dashboard-grid,.record-layout,.ai-layout{grid-template-columns:1fr}.landing-hero{grid-template-columns:1fr;gap:45px}.hero-copy{text-align:center}.hero-copy h1,.hero-copy p{margin-left:auto;margin-right:auto}.hero-actions,.hero-trust{justify-content:center}.feature-grid{grid-template-columns:repeat(2,1fr)}.workflow-journey{grid-template-columns:repeat(3,1fr)}.journey-step:nth-child(3)::after{display:none}.ocr-shell{grid-template-columns:150px 1fr}.ocr-editor{grid-column:1/-1;min-height:600px}.lawyer-grid,.asset-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.portal{display:block}.sidebar{position:fixed;z-index:80;left:0;top:0;width:260px;transform:translateX(-105%);transition:.25s}.portal.menu-open .sidebar{transform:none}.topbar{padding:0 12px}.mobile-menu{display:grid}.user-chip span:last-child{display:none}.content{padding:18px 12px}.grid.four,.grid.three,.grid.two{grid-template-columns:1fr 1fr}.forum-layout,.settings-layout{grid-template-columns:1fr}.chat-shell{grid-template-columns:220px 1fr}.landing-links a:not(.btn){display:none}.landing-nav{padding:0 14px}.landing-hero,.landing-section{padding-left:18px;padding-right:18px}.landing-hero{padding-top:60px}.feature-grid{grid-template-columns:1fr}.workflow-journey{grid-template-columns:1fr 1fr}.journey-step:nth-child(2n)::after{display:none}.cta-inner{align-items:flex-start;flex-direction:column}.ocr-shell{height:auto;grid-template-columns:110px 1fr}.paper{min-height:640px;padding:35px 28px}.lawyer-grid,.asset-grid{grid-template-columns:1fr}.record-hero{grid-template-columns:1fr}.judgment-row,.law-row{grid-template-columns:90px 1fr}.judgment-row>a,.law-row>a{grid-column:1/-1}.graph-stage{height:500px}}
@media(max-width:560px){.global-search kbd,.top-actions .icon-btn{display:none}.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:27px}.grid.four,.grid.three,.grid.two{grid-template-columns:1fr}.landing-hero{min-height:0}.hero-copy h1{font-size:44px}.hero-stage{min-height:500px}.flow-node{width:88px}.section-title h2{font-size:34px}.workflow-journey{grid-template-columns:1fr}.journey-step::after{display:none}.landing-footer{align-items:flex-start;flex-direction:column;gap:8px}.folder-grid{grid-template-columns:1fr}.chat-shell{height:auto;min-height:0;grid-template-columns:1fr}.conversation-list{max-height:260px;border-right:0;border-bottom:1px solid var(--line)}.chat-panel{min-height:560px}.message{max-width:85%}.ocr-shell{grid-template-columns:1fr}.ocr-pages{display:flex;gap:8px;border-right:0;overflow:auto}.ocr-pages h3{display:none}.ocr-thumb{min-width:100px}.ocr-scan{min-height:520px}.paper{min-height:500px}.ocr-editor{grid-column:auto}.judgment-row,.law-row{grid-template-columns:1fr}.similarity{width:48px;height:48px}.network-popup-actions,.graph-popup-actions{flex-direction:column}.modal{padding:8px}.modal-panel{max-height:calc(100vh - 16px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
@media(max-width:820px){.source-state{padding:0 9px}.entity-lookup{grid-template-columns:1fr 1fr}.entity-lookup .btn{grid-column:1/-1}.case-media{height:245px}.case-media figcaption{left:22px;max-width:390px}.case-media figcaption b{font-size:26px}}
@media(max-width:560px){.source-state{width:38px;padding:0;justify-content:center;font-size:0}.source-state i{width:9px;height:9px}.entity-lookup{grid-template-columns:1fr}.entity-lookup .btn{grid-column:auto}.case-media{height:220px}.case-media::after{background:linear-gradient(90deg,rgba(5,24,47,.94),rgba(5,24,47,.62))}.case-media figcaption{left:18px;right:18px}.case-media figcaption b{font-size:23px}.case-media figcaption small{font-size:13px}.content{padding:20px 13px}.card-head h2,.card-head h3{font-size:19px}.data-table td{font-size:13px}}
/* Large editorial pass */
body{font-size:18px;background:radial-gradient(circle at 78% -10%,rgba(201,149,53,.09),transparent 30rem),linear-gradient(180deg,#f8fafc,#f1f5f8)}.portal{grid-template-columns:276px minmax(0,1fr)}.sidebar{padding:24px 18px}.brand{gap:14px}.brand-mark{width:48px;height:48px;font-size:25px}.brand strong{font-size:21px}.nav-section{margin-top:30px;font-size:13px}.side-nav{gap:6px}.side-nav a{min-height:50px;padding:0 14px;font-size:15px;border-radius:12px}.sidebar-foot{padding:16px}.sidebar-foot b{font-size:14px}.sidebar-foot small{font-size:13px}.topbar{height:86px;padding:0 30px;background:rgba(255,255,255,.94)}.global-search{max-width:760px}.global-search label{height:52px;padding:0 16px;border-radius:14px}.global-search input{font-size:16px}.content{width:min(1420px,100%);padding:42px}.page-head{margin-bottom:30px;align-items:center}.page-head h1{font-size:clamp(42px,3.6vw,54px);letter-spacing:-.025em}.page-head p{max-width:78ch;font-size:17px}.eyebrow{font-size:13px;letter-spacing:.15em}.btn{min-height:48px;padding:0 20px;border-radius:12px;font-size:15px}.badge{font-size:13px}.card{border-color:#d8e1ea;border-radius:20px;box-shadow:0 18px 52px rgba(16,38,63,.08)}.card-head{padding:23px 26px}.card-head h2,.card-head h3{font-size:25px}.card-body{padding:26px}.record-hero{padding:34px;border:0;color:#fff;background:radial-gradient(circle at 88% 8%,rgba(201,149,53,.28),transparent 20rem),linear-gradient(135deg,#061a34,#0b315a);box-shadow:0 28px 70px rgba(7,26,53,.24)}.record-title{gap:20px}.record-icon{width:68px;height:68px;color:#19243a;background:linear-gradient(145deg,#ffe8ad,#c99535);font-size:27px;box-shadow:0 12px 30px rgba(201,149,53,.24)}.record-title h1{margin:8px 0 10px;color:#fff;font-size:40px;line-height:1.08}.record-title p{color:#c7d5e5;font-size:15px}.record-hero .eyebrow{color:var(--gold2)}.record-hero .badge{border:1px solid rgba(255,255,255,.13)}.record-hero .record-actions .btn{border-color:rgba(255,255,255,.24);color:#fff;background:rgba(255,255,255,.08)}.record-hero .record-actions .btn.primary{border:0;color:#14223a;background:linear-gradient(135deg,#f3d792,#c99535)}.record-facts{margin:18px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.record-facts article{min-height:104px;padding:20px 22px;display:flex;flex-direction:column;justify-content:center;border:1px solid #dbe3eb;border-radius:16px;background:rgba(255,255,255,.9);box-shadow:0 10px 30px rgba(17,39,63,.06)}.record-facts small{color:#7a899b;font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.record-facts b{margin-top:8px;color:#173754;font-family:"Libre Caslon Display",Georgia,serif;font-size:19px;font-weight:400}.judgment-detail-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(420px,.72fr);gap:20px}.judgment-detail-grid>.graph-card{position:sticky;top:106px;height:max-content}.judgment-detail-grid .graph-stage{height:650px}.quote{padding:30px 32px;border-left-width:5px;font-size:17px;line-height:1.9}.judgment-text{max-height:760px;font-size:16px}.prose{font-size:16px!important}.analysis-card{padding:18px}.analysis-card b{font-size:15px}.analysis-card p{font-size:15px}.data-table th{padding:15px 17px;font-size:13px}.data-table td{padding:18px 17px;font-size:15px}.cell-title b{font-size:15px}.cell-title small{font-size:13px}.list-row{padding:17px 0}.list-row b{font-size:15px}.list-row small{font-size:13px}.filters input,.filters select{min-height:48px;font-size:15px}.metric small{font-size:13px}.metric b{font-size:38px}.metric span{font-size:13px}.graph-popup b{font-size:23px}.graph-popup small{font-size:13px}.graph-popup .btn{min-height:44px;font-size:13px}.g-node text{font-size:13px}.toast{font-size:14px}
@media(max-width:1180px){.portal{grid-template-columns:232px minmax(0,1fr)}.content{padding:34px}.judgment-detail-grid{grid-template-columns:1fr}.judgment-detail-grid>.graph-card{position:static}.record-facts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){body{font-size:17px}.content{padding:26px 16px}.page-head{align-items:flex-start}.page-head h1{font-size:40px}.record-title h1{font-size:34px}.record-facts{grid-template-columns:1fr 1fr}.judgment-detail-grid .graph-stage{height:520px}}
@media(max-width:560px){body{font-size:16px}.topbar{height:74px;padding:0 12px}.page-head h1{font-size:34px}.page-head p{font-size:15px}.record-hero{padding:24px}.record-icon{width:56px;height:56px}.record-title h1{font-size:29px}.record-facts{grid-template-columns:1fr}.record-facts article{min-height:88px}.card-head{padding:19px}.card-body{padding:19px}.card-head h2,.card-head h3{font-size:22px}.quote{padding:22px 20px;font-size:16px}.judgment-detail-grid .graph-stage{height:450px}.btn{font-size:14px}}
/* Product landing and icon system */
body,button,input,select,textarea{font-family:"Manrope","Aptos",sans-serif}.brand strong,.page-head h1,.card-head h2,.card-head h3,.hero-copy h1,.section-title h2,.feature-card h3,.cta-inner h2,.record-title h1,.metric b,.graph-popup b,.lawyer-avatar,.lawyer-card h3,.judgment-row h3,.law-row h3,.thread h3,.modal-head h2,.record-facts b,.editorial-title{font-family:"Newsreader",Georgia,serif}.ui-icon{width:20px;height:20px;display:block;flex:0 0 auto}.brand-icon{width:27px;height:27px}.brand-mark{font-family:inherit}.side-nav i{display:grid;place-items:center}.side-nav .ui-icon{width:19px;height:19px}.icon-btn .ui-icon{width:19px;height:19px}.global-search label>.ui-icon{width:19px;color:#58708a}.list-icon .ui-icon,.suggestion-icon .ui-icon{width:19px}.graph-popup-icon .ui-icon{width:22px;height:22px}.record-icon .ui-icon{width:30px;height:30px}.landing-hero{min-height:620px;padding-top:64px;padding-bottom:58px;grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);gap:48px}.hero-copy h1{font-size:clamp(50px,4.7vw,68px);line-height:.97}.hero-product{height:430px;border:1px solid #d9e2eb;border-radius:24px;background:#fff;box-shadow:0 32px 80px rgba(15,42,70,.16);overflow:hidden;transform:perspective(1200px) rotateY(-1.5deg) rotateX(.8deg)}.product-bar{height:48px;padding:0 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e7ecf1;background:#fbfcfd}.product-bar>span{display:flex;gap:5px}.product-bar>span i{width:7px;height:7px;border-radius:50%;background:#d0d8e1}.product-bar>span i:first-child{background:#d97970}.product-bar>span i:nth-child(2){background:#e5b85a}.product-bar>span i:nth-child(3){background:#62ba80}.product-bar b{color:#435a73;font-size:13px}.product-bar em{margin-left:auto;padding:4px 8px;border-radius:999px;color:#176f52;background:#e7f6ef;font-size:13px;font-style:normal;font-weight:800}.product-body{height:calc(100% - 48px);display:grid;grid-template-columns:56px 1fr}.product-body>aside{padding:14px 0;display:flex;align-items:center;flex-direction:column;gap:18px;color:#9fb2c8;background:#071d38}.product-body>aside .ui-icon{width:18px;height:18px}.product-body>aside .ui-icon:nth-child(2){padding:8px;width:36px;height:36px;border-radius:10px;color:#10233c;background:linear-gradient(145deg,#f3d792,#c99535)}.product-body>main{padding:22px;min-width:0;background:radial-gradient(circle at 90% 0,rgba(201,149,53,.08),transparent 15rem),#f7f9fb}.product-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.product-heading small,.product-heading b{display:block}.product-heading small{color:#8a6a31;font-size:13px;font-weight:800;text-transform:uppercase}.product-heading b{margin-top:4px;color:#173552;font-family:"Newsreader",Georgia,serif;font-size:20px}.product-heading>strong{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;color:#176f52;background:conic-gradient(#2b9d72 86%,#e3e9ee 0);box-shadow:inset 0 0 0 7px #f7f9fb;font-size:13px}.product-metrics{margin:18px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.product-metrics article{padding:10px 12px;border:1px solid #e0e7ee;border-radius:11px;background:#fff}.product-metrics small,.product-metrics b{display:block}.product-metrics small{color:#7b8b9d;font-size:13px;text-transform:uppercase}.product-metrics b{margin-top:3px;color:#173552;font-size:16px}.product-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:10px}.product-grid>section{min-height:170px;padding:12px;border:1px solid #e0e7ee;border-radius:12px;background:#fff}.product-grid header{display:flex;justify-content:space-between;color:#314d68;font-size:13px;font-weight:800}.product-grid header span{color:#24795d}.product-chart{height:120px;padding-top:20px;display:flex;align-items:flex-end;gap:7px;border-bottom:1px solid #e7ecf1}.product-chart i{flex:1;border-radius:4px 4px 1px 1px;background:linear-gradient(180deg,#4b8cc2,#15578f)}.product-chart i:nth-child(3n){background:linear-gradient(180deg,#e6c677,#b27c25)}.product-grid p{margin:10px 0 0;display:grid;grid-template-columns:8px 1fr;gap:8px;align-items:start;color:#29455f;font-size:13px;font-weight:700}.product-grid p>i{width:7px;height:7px;margin-top:3px;border-radius:50%;background:#2a8c69}.product-grid p span small{display:block;margin-top:2px;color:#8291a2;font-size:13px;font-weight:500}.landing-api-strip{min-height:70px;padding:12px max(24px,calc((100% - 1280px)/2));display:flex;align-items:center;justify-content:center;gap:12px;border-top:1px solid #e5ebf0;border-bottom:1px solid #e5ebf0;background:#fff}.landing-api-strip>a,.landing-api-strip>span{min-height:38px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border-radius:10px;color:#4d647b;font-size:13px;font-weight:700}.landing-api-strip>a{border:1px solid #e2e8ee;background:#f8fafb}.landing-api-strip>a:hover{color:#0d3156;border-color:#c99535}.landing-api-strip .ui-icon{width:16px;height:16px}.landing-api-strip>span{color:#176f52}.landing-api-strip>span i{width:8px;height:8px;border-radius:50%;background:#26a878;box-shadow:0 0 0 4px rgba(38,168,120,.12)}.landing-section{padding-top:78px;padding-bottom:78px}.module-section{background:linear-gradient(180deg,#f6f8fa,#fff)}.module-showcase-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.module-showcase-card{padding:18px;border:1px solid #dce4eb;border-radius:20px;background:#fff;box-shadow:0 16px 45px rgba(19,43,68,.07);transition:.25s ease;overflow:hidden}.module-showcase-card:hover{border-color:#c7a052;box-shadow:0 24px 60px rgba(19,43,68,.13);transform:translateY(-5px)}.module-showcase-card>header{margin-bottom:15px;display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center}.module-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#fff;background:#082747}.module-icon .ui-icon{width:20px;height:20px}.module-showcase-card header b,.module-showcase-card header small{display:block}.module-showcase-card header b{color:#173552;font-family:"Newsreader",Georgia,serif;font-size:18px}.module-showcase-card header small{margin-top:2px;color:#738397;font-size:13px;line-height:1.4}.module-showcase-card header em{color:#9a6d20;font-size:13px;font-style:normal;font-weight:800}.module-shot{height:208px;border:1px solid #e1e7ed;border-radius:14px;background:#f5f8fa;overflow:hidden}.shot-bar{height:42px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;color:#294760;background:#fff}.shot-bar b{font-size:13px}.shot-bar span{padding:4px 7px;border-radius:999px;color:#176f52;background:#e8f6ef;font-size:13px;font-weight:800}.shot-tabs{height:26px;padding:0 12px;display:flex;align-items:center;gap:7px;border-top:1px solid #edf1f5;border-bottom:1px solid #e2e8ee;background:#fff}.shot-tabs i{width:46px;height:4px;border-radius:4px;background:#d8e1e9}.shot-tabs i:first-child{background:#1c5f97}.shot-columns{height:140px;padding:12px;display:grid;grid-template-columns:1fr 82px;gap:10px}.shot-timeline p{margin:0 0 9px;display:flex;align-items:center;gap:7px;color:#486078;font-size:13px}.shot-timeline p i{width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#2a79b3;box-shadow:0 0 0 1px #b8c7d5}.shot-score{padding:10px;display:flex;align-items:center;flex-direction:column;border-radius:10px;background:#fff}.shot-score small{color:#7a8a9d;font-size:13px}.shot-score b{margin-top:8px;color:#176f52;font-family:"Newsreader",Georgia,serif;font-size:22px}.shot-score em{width:48px;height:5px;margin-top:9px;border-radius:5px;background:linear-gradient(90deg,#2a9a72 86%,#e5eaee 0)}.shot-ocr{padding:12px;display:grid;grid-template-columns:34px .95fr 1.05fr;gap:9px}.shot-pages{display:grid;align-content:start;gap:7px}.shot-pages i{height:42px;border:1px solid #dce3e9;border-radius:4px;background:#fff}.shot-pages i:first-child{border:2px solid #246aa2}.shot-paper{padding:14px 10px;display:grid;align-content:start;gap:8px;background:#fff;box-shadow:0 8px 22px rgba(22,43,64,.09)}.shot-paper b{font-family:Georgia,serif;font-size:13px;text-align:center}.shot-paper span{height:4px;border-radius:4px;background:#dce2e7}.shot-paper span:nth-child(3){width:75%}.shot-paper mark{width:55%;height:7px;border-radius:3px;background:#ffe29a}.shot-editor{padding:11px;border-left:1px solid #e0e6ec;background:#fff}.shot-editor small{color:#23785a;font-size:13px;font-weight:800}.shot-editor p{height:5px;margin:11px 0;border-radius:5px;background:#d9e2e9}.shot-editor p:nth-child(3){width:78%}.shot-editor p.warn{width:62%;background:#f0c665}.shot-editor button{margin-top:14px;padding:6px 8px;border:0;border-radius:6px;color:#fff;background:#0a3158;font-size:13px}.shot-ai{padding:14px;background:radial-gradient(circle at 90% 10%,rgba(201,149,53,.14),transparent 9rem),#f5f8fa}.ai-query{padding:10px;border:1px solid #d9e3eb;border-radius:9px;color:#60758a;background:#fff;font-size:13px}.ai-result{margin-top:12px;padding:11px;display:flex;align-items:center;gap:9px;border-left:3px solid #7567a8;background:#fff}.ai-result>span{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#0a3158}.ai-result .ui-icon{width:16px}.ai-result b,.ai-result small{display:block}.ai-result b{color:#27455f;font-size:13px}.ai-result small{margin-top:2px;color:#7b8b9c;font-size:13px}.ai-bars{margin-top:15px;display:grid;gap:8px}.ai-bars i{height:7px;border-radius:8px;background:linear-gradient(90deg,#277ba9 var(--v),#e0e6eb 0)}.shot-list{padding:13px}.shot-search{height:31px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #dce4eb;border-radius:8px;color:#7e8d9d;background:#fff;font-size:13px}.shot-search .ui-icon{width:13px}.shot-list p{margin:9px 0 0;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;border-radius:8px;color:#324d66;background:#fff;font-size:13px}.shot-list p b{color:#217457}.shot-sejm{padding:15px}.shot-law{padding:11px;display:flex;align-items:center;gap:9px;border-radius:10px;background:#fff}.shot-law>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#082747}.shot-law .ui-icon{width:16px}.shot-law b,.shot-law small{display:block}.shot-law b{font-size:13px}.shot-law small{font-size:13px;color:#7e8c9d}.shot-stages{height:55px;display:flex;align-items:center}.shot-stages i{position:relative;flex:1;height:2px;background:#ccd6df}.shot-stages i::before{content:"";position:absolute;left:0;top:-5px;width:10px;height:10px;border:2px solid #f5f8fa;border-radius:50%;background:#b9c5d0}.shot-stages i.done,.shot-stages i.done::before{background:#2a916b}.shot-source{display:flex;gap:6px}.shot-source span{padding:5px 7px;border-radius:6px;color:#526a80;background:#fff;font-size:13px}.shot-network{position:relative;background:radial-gradient(circle at center,#fff,#f0f4f7)}.shot-network svg{width:100%;height:100%}.shot-network .links path{fill:none;stroke:#a7b4c3;stroke-width:1.5}.shot-network .nodes circle{fill:#2ca28b;stroke:#fff;stroke-width:3}.shot-network .nodes circle.main{fill:#7567a8}.network-label{position:absolute;left:50%;top:55%;padding:4px 7px;border-radius:6px;color:#fff;background:#0a3158;font-size:13px;transform:translate(-50%,-50%)}.api-data-section{color:#fff;background:radial-gradient(circle at 80% 10%,rgba(201,149,53,.17),transparent 24rem),#071d38}.api-data-section .section-title h2{color:#fff}.api-data-section .section-title p{color:#aebed0}.api-data-section .eyebrow{color:#f0cb7a}.api-record-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.api-record{padding:17px;display:grid;grid-template-columns:46px 1fr auto;gap:13px;align-items:center;border:1px solid rgba(255,255,255,.11);border-radius:15px;background:rgba(255,255,255,.055);transition:.2s}.api-record:hover{border-color:rgba(240,203,122,.5);background:rgba(255,255,255,.09)}.api-record-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;color:#18263a;background:linear-gradient(145deg,#f7d98d,#c99535)}.api-record-icon .ui-icon{width:21px}.api-record small,.api-record b{display:block}.api-record small{color:#8fa5bd;font-size:13px;text-transform:uppercase}.api-record b{margin-top:3px;font-family:"Newsreader",Georgia,serif;font-size:17px}.api-record p{margin:4px 0 0;color:#b7c4d3;font-size:13px;line-height:1.45}.api-record em{padding:5px 8px;border-radius:999px;color:#d8e4f0;background:rgba(255,255,255,.08);font-size:13px;font-style:normal}.offer-section{background:#fff}.offer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}.offer-card{padding:25px;position:relative;border:1px solid #dce4eb;border-radius:20px;background:#fff;box-shadow:0 14px 42px rgba(18,43,68,.07)}.offer-card.featured{color:#fff;border:0;background:radial-gradient(circle at 90% 0,rgba(201,149,53,.23),transparent 15rem),#082747;box-shadow:0 24px 65px rgba(7,29,56,.22);transform:translateY(-8px)}.offer-label{position:absolute;right:16px;top:16px;padding:5px 8px;border-radius:999px;color:#19283e;background:linear-gradient(145deg,#f5d98f,#c99535);font-size:13px;font-weight:800}.offer-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#0a3158}.offer-card.featured .offer-icon{color:#17263a;background:linear-gradient(145deg,#f4d88d,#c99535)}.offer-icon .ui-icon{width:22px}.offer-card>small{display:block;margin-top:20px;color:#9a6d20;font-size:13px;font-weight:800;text-transform:uppercase}.offer-card.featured>small{color:#f0cb7a}.offer-card h3{margin:5px 0 10px;font-family:"Newsreader",Georgia,serif;font-size:29px;font-weight:500}.offer-card p{min-height:54px;margin:0;color:#65768a;font-size:13px;line-height:1.6}.offer-card.featured p{color:#b9c7d7}.offer-card ul{min-height:112px;margin:19px 0;padding:0;display:grid;gap:9px;list-style:none}.offer-card li{position:relative;padding-left:20px;color:#405971;font-size:13px}.offer-card.featured li{color:#d2dce7}.offer-card li::before{content:"✓";position:absolute;left:0;color:#268464;font-weight:900}.offer-card.featured .btn:not(.gold){color:#fff}.case-media{height:190px}.case-media figcaption b{font-size:25px}
@media(max-width:1180px){.module-showcase-grid{grid-template-columns:repeat(2,1fr)}.landing-hero{grid-template-columns:1fr}.hero-product{width:min(760px,100%);margin:0 auto;transform:none}.landing-api-strip{flex-wrap:wrap}.offer-grid{grid-template-columns:1fr 1fr}.offer-card:last-child{grid-column:1/-1}.offer-card.featured{transform:none}}
@media(max-width:820px){.module-showcase-grid,.api-record-grid,.offer-grid{grid-template-columns:1fr}.offer-card:last-child{grid-column:auto}.landing-api-strip{justify-content:flex-start}.landing-api-strip>span{width:100%}.hero-product{height:410px}.product-grid{grid-template-columns:1fr}.product-grid>section:first-child{display:none}.module-shot{height:195px}}
@media(max-width:560px){.landing-hero{padding-top:48px}.hero-product{height:360px}.product-body{grid-template-columns:44px 1fr}.product-body>main{padding:15px}.product-body>aside .ui-icon{width:16px}.product-heading b{font-size:16px}.product-metrics{gap:6px}.product-metrics article{padding:8px}.product-grid>section{min-height:145px}.module-showcase-card{padding:14px}.module-showcase-card>header{grid-template-columns:38px 1fr}.module-showcase-card header em{display:none}.module-icon{width:38px;height:38px}.api-record{grid-template-columns:42px 1fr}.api-record>em{display:none}.offer-card{padding:22px}.case-media{height:160px}}

/* Production judgment index and record */
.judgment-index-hero{margin:-34px -34px 0;padding:56px max(34px,calc((100vw - 1640px)/2));color:#fff;background:radial-gradient(circle at 88% 15%,rgba(31,111,202,.72),transparent 30rem),linear-gradient(120deg,#061936,#0a3264 62%,#0d5ba8);overflow:hidden}.judgment-index-hero .eyebrow{color:#f1ca74}.judgment-index-hero h1{max-width:780px;margin:9px 0 12px;color:#fff;font-family:"Newsreader",Georgia,serif;font-size:clamp(44px,5vw,64px);font-weight:520;line-height:.98}.judgment-index-hero>p{max-width:850px;margin:0;color:#d7e4f2;font-size:16px;line-height:1.7}.judgment-hero-points{max-width:980px;margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.judgment-hero-points article{min-height:92px;padding:16px;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:rgba(255,255,255,.075);backdrop-filter:blur(8px)}.judgment-hero-points b,.judgment-hero-points span{display:block}.judgment-hero-points b{color:#fff;font-size:14px}.judgment-hero-points span{margin-top:5px;color:#c8d7e7;font-size:13px;line-height:1.45}.judgment-browser{margin-top:-22px;position:relative;display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;align-items:start}.judgment-filter-panel{padding:22px;display:grid;gap:15px;position:sticky;top:94px;border-radius:18px}.judgment-panel-title{display:flex;align-items:center;justify-content:space-between}.judgment-panel-title h2,.judgment-results-panel>header h2{margin:0;font-family:"Newsreader",Georgia,serif;font-size:28px}.judgment-panel-title .ui-icon{color:#9a6d20}.judgment-filter-panel label{display:grid;gap:7px}.judgment-filter-panel label>span{color:#536980;font-size:13px;font-weight:800}.judgment-filter-panel input,.judgment-filter-panel select{width:100%;min-height:46px;padding:0 12px;border:1px solid #d7e1ea;border-radius:11px;color:#173552;background:#fff;font-size:13px;outline:none}.judgment-filter-panel input:focus,.judgment-filter-panel select:focus{border-color:#2778b6;box-shadow:0 0 0 4px rgba(39,120,182,.1)}.judgment-filter-panel>p{margin:2px 0 0;color:#78899a;font-size:13px;line-height:1.55}.judgment-results-panel{border-radius:18px;overflow:hidden}.judgment-results-panel>header{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e4eaf0}.judgment-results-panel>header p{margin:4px 0 0;color:#708197;font-size:13px}.judgment-year-line{padding:11px 20px;display:flex;gap:8px;border-bottom:1px solid #e7ecf1;background:#f8fafc;overflow:auto}.judgment-year-line a{min-width:57px;padding:7px 10px;border:1px solid #dce4eb;border-radius:9px;color:#60758b;background:#fff;font-size:13px;font-weight:800;text-align:center}.judgment-year-line a.active{color:#fff;border-color:#0b4e88;background:#0b4e88}.judgment-results{padding:0 22px}.judgment-result-card{padding:22px 0;display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:22px;border-bottom:1px solid #e5ebf0;transition:.2s}.judgment-result-card:hover{padding-left:10px;padding-right:10px;background:#f8fbfe}.judgment-result-top{display:flex;align-items:center;gap:8px;color:#74879b;font-size:13px}.judgment-result-card h3{margin:10px 0 6px;color:#102f50;font-family:"Newsreader",Georgia,serif;font-size:24px;font-weight:600}.judgment-result-meta{color:#5e7389;font-size:13px;font-weight:700;line-height:1.55}.judgment-result-card p{max-width:960px;margin:11px 0 0;color:#64778b;font-size:13px;line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.judgment-result-side{padding-left:18px;display:flex;justify-content:center;flex-direction:column;border-left:1px solid #e7ecf1}.judgment-result-side>span{display:flex;align-items:center;gap:7px;color:#0d5e9d;font-size:13px;font-weight:900}.judgment-result-side .ui-icon{width:16px}.judgment-result-side small{margin-top:12px;color:#91a0af;font-size:13px;line-height:1.5;text-transform:uppercase}.judgment-breadcrumb{margin-bottom:18px;display:flex;align-items:center;gap:9px;color:#7b8c9d;font-size:13px}.judgment-breadcrumb a{color:#175f99;font-weight:800}.judgment-record-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;align-items:start}.judgment-record-layout>main{min-width:0}.judgment-record-hero{min-height:350px;padding:30px;display:flex;align-items:flex-start;justify-content:flex-end;flex-direction:column;position:relative;border-radius:22px;color:#fff;background:radial-gradient(circle at 90% 20%,rgba(28,111,205,.78),transparent 25rem),linear-gradient(125deg,rgba(5,22,52,.98),rgba(8,55,104,.95)),url("images/legal-hero.png") center/cover;box-shadow:0 26px 70px rgba(9,37,68,.2);overflow:hidden}.judgment-record-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,18,43,.15),transparent);pointer-events:none}.judgment-record-hero>*{position:relative;z-index:1}.judgment-record-actions{position:absolute;right:28px;top:26px;display:flex;gap:8px}.judgment-record-actions .btn{color:#fff;border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.09);backdrop-filter:blur(10px)}.judgment-record-actions .ui-icon{width:16px}.judgment-record-hero>h1{max-width:860px;margin:14px 0 10px;font-family:"Newsreader",Georgia,serif;font-size:clamp(38px,4vw,54px);font-weight:520;line-height:1}.judgment-record-hero>p{max-width:900px;margin:0;color:#d5e1ee;font-size:14px;line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.judgment-record-meta{width:100%;margin-top:24px;padding-top:20px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;border-top:1px solid rgba(255,255,255,.18)}.judgment-record-meta>span{min-height:48px;padding:9px 10px;display:flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.14);border-radius:11px;color:#e9f0f7;background:rgba(255,255,255,.075);font-size:13px;font-weight:800;line-height:1.25}.judgment-record-meta .ui-icon{width:15px}.judgment-record-meta>span>i{width:8px;height:8px;border-radius:50%;background:#40c982;box-shadow:0 0 0 4px rgba(64,201,130,.14)}.judgment-tabs-card{margin-top:16px;border-radius:18px;overflow:hidden}.judgment-record-tabs{padding:0 16px;display:flex;gap:24px;border-bottom:1px solid #e2e8ee;overflow-x:auto}.judgment-record-tabs button{min-height:54px;padding:0;position:relative;border:0;color:#526a81;background:none;font-size:13px;font-weight:900;white-space:nowrap;cursor:pointer}.judgment-record-tabs button.active{color:#0e65aa}.judgment-record-tabs button.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:linear-gradient(90deg,#1979c7,#c99535)}.judgment-tab-content{padding:24px}.judgment-tab-content>[data-judgment-pane]{display:none}.judgment-tab-content>[data-judgment-pane].active{display:block;animation:judgment-pane-in .24s ease both}@keyframes judgment-pane-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.judgment-tab-content h2{margin:0 0 16px;display:flex;align-items:center;gap:9px;color:#102f50;font-family:"Newsreader",Georgia,serif;font-size:25px}.judgment-tab-content h2 .ui-icon{width:22px;color:#1266a5}.judgment-verdict,.judgment-tab-content blockquote{margin:0;padding:22px;border:1px solid #dfe7ee;border-left:4px solid #1674bb;border-radius:14px;color:#324c66;background:#f8fafc;font-size:15px;line-height:1.8;white-space:pre-wrap}.judgment-prose{color:#415b74;font-size:15px;line-height:1.8;white-space:pre-wrap}.judgment-full-text{max-height:740px;padding-right:12px;overflow:auto}.judgment-analysis-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.judgment-analysis-head h2{margin-top:5px}.judgment-tab-content .graph-stage{height:520px;margin-top:20px;border:1px solid #e0e7ed;border-radius:15px}.judgment-regulations{display:grid;gap:9px}.judgment-regulation{min-height:62px;padding:10px 12px;display:flex;align-items:center;gap:12px;border:1px solid #e0e7ed;border-radius:12px;color:#25435f;background:#fff}.judgment-regulation>.ui-icon{width:20px;color:#1265a3}.judgment-regulation b,.judgment-regulation small{display:block}.judgment-regulation b{font-size:13px}.judgment-regulation small{margin-top:3px;color:#8190a0;font-size:13px}.judgment-metric-grid{margin-bottom:18px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.judgment-metric-grid article{padding:15px;border:1px solid #e0e7ed;border-radius:12px;background:#f8fafc}.judgment-metric-grid small,.judgment-metric-grid b{display:block}.judgment-metric-grid small{color:#7d8d9e;font-size:13px;text-transform:uppercase}.judgment-metric-grid b{margin-top:5px;color:#1d3a56;font-size:13px}.judgment-record-side{display:grid;gap:14px}.judgment-info-card,.judgment-related-card{padding:20px;border-radius:18px}.judgment-info-card::before,.judgment-related-card::before{content:"";height:4px;position:absolute;left:18px;right:18px;top:0;border-radius:0 0 5px 5px;background:linear-gradient(90deg,#1377c3,#39b998,#c99535)}.judgment-info-card,.judgment-related-card{position:relative}.judgment-info-card h2,.judgment-related-card h2{margin:0 0 15px;color:#102f50;font-family:"Newsreader",Georgia,serif;font-size:23px}.judgment-info-card dl{margin:0;display:grid;gap:8px}.judgment-info-card dl>div{min-height:56px;padding:10px 11px;display:grid;grid-template-columns:1fr 1.25fr;gap:10px;align-items:center;border:1px solid #e3e9ef;border-radius:11px;background:#fbfcfd}.judgment-info-card dt{color:#7b8a9b;font-size:13px}.judgment-info-card dd{margin:0;color:#163653;font-size:13px;font-weight:850;text-align:right;overflow-wrap:anywhere}.judgment-related-card>div{max-height:340px;display:grid;gap:8px;overflow:auto}.judgment-ai-tip{padding:19px;border:1px solid #f1ddb0;border-radius:17px;color:#7d5a19;background:linear-gradient(145deg,#fff9e9,#fffdf8)}.judgment-ai-tip b{display:flex;align-items:center;gap:8px;font-size:13px}.judgment-ai-tip .ui-icon{width:18px}.judgment-ai-tip p{margin:9px 0 0;font-size:13px;line-height:1.65}.judgment-record-side{position:sticky;top:94px}
@media(max-width:1180px){.judgment-index-hero{margin:-34px -34px 0}.judgment-browser{grid-template-columns:250px minmax(0,1fr)}.judgment-record-layout{grid-template-columns:1fr}.judgment-record-side{position:static;grid-template-columns:1fr 1fr}.judgment-ai-tip{grid-column:1/-1}.judgment-record-actions{position:static;margin-bottom:28px;align-self:flex-end}.judgment-record-hero{min-height:390px}}
@media(max-width:820px){.judgment-index-hero{margin:-26px -16px 0;padding:44px 20px 58px}.judgment-hero-points{grid-template-columns:1fr}.judgment-browser{grid-template-columns:1fr}.judgment-filter-panel{position:static;grid-template-columns:1fr 1fr}.judgment-filter-panel .judgment-panel-title,.judgment-filter-panel>p{grid-column:1/-1}.judgment-result-card{grid-template-columns:1fr}.judgment-result-side{padding:12px 0 0;justify-content:space-between;flex-direction:row;border-left:0;border-top:1px solid #e7ecf1}.judgment-result-side small{margin:0;text-align:right}.judgment-record-meta{grid-template-columns:repeat(2,1fr)}.judgment-record-meta>span:last-child{grid-column:1/-1}.judgment-record-actions{align-self:stretch;flex-wrap:wrap}.judgment-record-actions .btn{flex:1}.judgment-record-side{grid-template-columns:1fr}.judgment-ai-tip{grid-column:auto}}
@media(max-width:560px){.judgment-index-hero h1{font-size:42px}.judgment-index-hero>p{font-size:14px}.judgment-browser{margin-top:-14px}.judgment-filter-panel{grid-template-columns:1fr}.judgment-filter-panel .judgment-panel-title,.judgment-filter-panel>p{grid-column:auto}.judgment-results{padding:0 16px}.judgment-results-panel>header{align-items:flex-start;flex-direction:column}.judgment-result-card h3{font-size:22px}.judgment-record-hero{min-height:430px;padding:22px}.judgment-record-actions{display:grid;grid-template-columns:1fr;width:100%}.judgment-record-hero>h1{font-size:36px}.judgment-record-meta{grid-template-columns:1fr 1fr}.judgment-record-tabs{gap:19px}.judgment-tab-content{padding:18px}.judgment-verdict,.judgment-tab-content blockquote{padding:17px;font-size:14px}.judgment-metric-grid{grid-template-columns:1fr}}
.judgment-record-hero{background:radial-gradient(circle at 86% 18%,rgba(25,112,211,.76),transparent 25rem),radial-gradient(circle at 72% 76%,rgba(201,149,53,.16),transparent 18rem),linear-gradient(125deg,#04142e,#07376c)}
.judgment-record-actions .btn.active{color:#15253a;border-color:#e8c66d;background:linear-gradient(145deg,#f4d98d,#c99535)}.share-link-input{width:100%;min-height:46px;padding:0 12px;border:1px solid #d8e2eb;border-radius:10px;color:#193853;background:#f8fafc;font-size:13px}
@media print{body{background:#fff!important}.sidebar,.topbar,.judgment-breadcrumb,.judgment-record-actions,.judgment-record-tabs,.judgment-record-side,.toast,.modal{display:none!important}.portal,.shell{display:block!important}.content{width:100%!important;padding:0!important}.judgment-record-layout{display:block!important}.judgment-record-hero{min-height:auto!important;padding:24px!important;color:#102f50!important;border:1px solid #dce4eb!important;background:#fff!important;box-shadow:none!important;break-inside:avoid}.judgment-record-hero>h1{color:#102f50!important;font-size:30px!important}.judgment-record-hero>p{color:#526a81!important;display:block!important}.judgment-record-meta{grid-template-columns:repeat(3,1fr)!important;border-color:#dce4eb!important}.judgment-record-meta>span{color:#25435f!important;border-color:#dce4eb!important;background:#f8fafc!important}.judgment-tabs-card{margin-top:12px!important;border:0!important;box-shadow:none!important}.judgment-tab-content{padding:0!important}.judgment-tab-content>[data-judgment-pane],.judgment-tab-content>[data-judgment-pane].print-pane{display:block!important;margin-top:24px!important;break-inside:auto}.judgment-tab-content [data-graph]{display:none!important}.judgment-full-text{max-height:none!important;overflow:visible!important}.judgment-verdict,.judgment-tab-content blockquote{border-color:#cfd9e3!important;background:#fff!important}}

/* Live AI queue */
.ai-live-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.72fr);gap:18px;align-items:start}.ai-live-form{padding:28px;display:grid;gap:19px;border-radius:20px;background:linear-gradient(145deg,#fff,#f8fbfd)}.ai-live-intro{display:flex;align-items:center;gap:16px;padding-bottom:19px;border-bottom:1px solid #e1e8ee}.ai-live-mark{width:58px;height:58px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;color:#14263b;background:linear-gradient(145deg,#f4d98d,#c99535);box-shadow:0 12px 26px rgba(175,124,34,.18)}.ai-live-mark .ui-icon{width:28px}.ai-live-intro h2{margin:4px 0;color:#102f50;font-family:"Newsreader",Georgia,serif;font-size:28px}.ai-live-intro p{margin:0;color:#64788d;font-size:13px;line-height:1.55}.ai-live-form label{display:grid;gap:8px;color:#3c5871;font-size:13px;font-weight:850}.ai-live-form input,.ai-live-form select,.ai-live-form textarea{width:100%;border:1px solid #d5e0e9;border-radius:12px;color:#173651;background:#fff;font:500 13px/1.55 "Manrope",sans-serif;outline:none}.ai-live-form input,.ai-live-form select{min-height:48px;padding:0 13px}.ai-live-form textarea{min-height:300px;padding:16px;resize:vertical}.ai-live-form input:focus,.ai-live-form select:focus,.ai-live-form textarea:focus{border-color:#1674bb;box-shadow:0 0 0 4px rgba(22,116,187,.1)}.ai-field-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:13px}.ai-form-foot{display:flex;align-items:center;justify-content:space-between;gap:18px}.ai-form-foot small{color:#7d8d9d;font-size:13px;line-height:1.5}.ai-form-foot .btn{min-width:190px}.ai-live-side{align-content:start}.ai-job-card,.ai-steps{border-radius:18px}.ai-progress{height:9px;border-radius:999px;background:#e8edf2;overflow:hidden}.ai-progress i{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#0b5793,#2aa17e,#d3a347);transition:width .45s ease}.ai-job-meta{margin:18px 0 0;display:grid;gap:8px}.ai-job-meta>div{padding:11px;display:grid;grid-template-columns:.8fr 1.2fr;gap:8px;border:1px solid #e1e8ee;border-radius:10px;background:#fafcfd}.ai-job-meta dt{color:#7d8d9e;font-size:13px}.ai-job-meta dd{margin:0;color:#183954;font-size:13px;font-weight:850;text-align:right;overflow-wrap:anywhere}.ai-steps ol{margin:0;padding:0;display:grid;gap:12px;list-style:none}.ai-steps li{display:flex;align-items:center;gap:11px;color:#607589;font-size:13px;line-height:1.5}.ai-steps li>b{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;color:#fff;background:#0a3158}.ai-live-result{margin-top:18px;border-radius:20px;overflow:hidden}.ai-live-result>.card-head{padding:20px 24px}.ai-live-result>.card-head h2{margin:4px 0 0;font-family:"Newsreader",Georgia,serif;font-size:28px}.ai-result-empty,.ai-result-loading,.ai-result-error{min-height:260px;padding:36px;display:grid;place-items:center;align-content:center;gap:9px;text-align:center}.ai-result-empty>span,.ai-result-error>span{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;color:#1b669e;background:#edf5fb}.ai-result-empty .ui-icon,.ai-result-error .ui-icon{width:27px}.ai-result-empty b,.ai-result-loading b,.ai-result-error b{color:#173651;font-size:15px}.ai-result-empty p,.ai-result-loading p,.ai-result-error p{max-width:620px;margin:0;color:#708296;font-size:13px;line-height:1.6}.ai-result-error{background:#fff8f7}.ai-result-error>span{color:#b5483f;background:#fdecea}.ai-result-content{min-height:260px;padding:28px;color:#2c4861;background:#fff;white-space:pre-wrap;font:500 14px/1.8 "Manrope",sans-serif}.ai-spinner{width:43px;height:43px;border:4px solid #dce8f1;border-top-color:#176fae;border-radius:50%;animation:ai-spin .8s linear infinite}@keyframes ai-spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.ai-live-layout{grid-template-columns:1fr}.ai-live-side{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.ai-live-form{padding:20px}.ai-live-intro{align-items:flex-start}.ai-field-grid,.ai-live-side{grid-template-columns:1fr}.ai-form-foot{align-items:stretch;flex-direction:column}.ai-form-foot .btn{width:100%}.ai-live-form textarea{min-height:240px}.ai-result-content{padding:20px;font-size:13px}}

/* Prawnikom Pro 2026: final visual system */
html{font-size:16px;background:#eef2f5}
body{font-family:var(--sans);font-size:15px;line-height:1.6;letter-spacing:0;background:
  radial-gradient(circle at 92% 2%,rgba(197,140,37,.10),transparent 25rem),
  radial-gradient(circle at 25% 22%,rgba(19,93,164,.055),transparent 34rem),
  linear-gradient(180deg,#f8fafc 0,#f1f4f7 52%,#eef2f5 100%)}
::selection{color:#fff;background:#135d9d}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:#eef2f5}
::-webkit-scrollbar-thumb{border:3px solid #eef2f5;border-radius:20px;background:#a9b7c6}
h1,h2,h3,h4{font-family:var(--serif);text-wrap:balance}
p{text-wrap:pretty}
.portal{grid-template-columns:268px minmax(0,1fr)}
.sidebar{padding:22px 17px;isolation:isolate;background:
  radial-gradient(circle at 22% 2%,rgba(241,207,130,.18),transparent 17rem),
  linear-gradient(165deg,#03162d 0,#052746 64%,#031a32 100%);
  box-shadow:18px 0 54px rgba(4,24,47,.11);scrollbar-width:thin;scrollbar-color:#294765 transparent}
.sidebar::after{content:"";position:absolute;z-index:-1;inset:auto -80px -95px 32px;height:360px;opacity:.22;transform:rotate(-8deg);background:
  linear-gradient(90deg,transparent 49%,rgba(241,207,130,.18) 50%,transparent 51%) 0 0/34px 34px,
  linear-gradient(rgba(241,207,130,.11) 1px,transparent 1px) 0 0/100% 34px;
  mask-image:linear-gradient(180deg,transparent,#000)}
.brand{padding:7px 8px 15px;gap:13px;border-bottom:1px solid rgba(255,255,255,.08)}
.brand-mark{width:50px;height:50px;border:1px solid rgba(255,255,255,.28);border-radius:15px;background:linear-gradient(145deg,#f8dda0,#bf8120);box-shadow:0 14px 36px rgba(197,140,37,.26)}
.brand strong{font-size:21px;font-weight:600;letter-spacing:-.01em}
.brand small{margin-top:3px;color:#91a9c4;font-size:13px;letter-spacing:.18em}
.nav-section{margin:26px 11px 9px;color:#6f8aa7;font-size:13px;letter-spacing:.18em}
.side-nav{gap:5px}
.side-nav a{min-height:47px;padding:0 13px;border-radius:12px;color:#b8c8da;font-size:13px;font-weight:700}
.side-nav a:hover{color:#fff;background:rgba(255,255,255,.065);transform:translateX(2px)}
.side-nav a.active{border-color:rgba(241,207,130,.14);background:linear-gradient(90deg,rgba(197,140,37,.23),rgba(255,255,255,.045));box-shadow:inset 3px 0 #e3ad45,0 8px 24px rgba(0,0,0,.08)}
.side-nav .ui-icon{width:20px;height:20px;color:#ecc772}
.nav-count{min-width:22px;height:22px;font-size:13px;background:#1464aa;box-shadow:0 5px 14px rgba(20,100,170,.3)}
.sidebar-foot{padding:15px;border-color:rgba(255,255,255,.1);border-radius:15px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025))}
.sidebar-foot b{font-size:13px}.sidebar-foot small{color:#8fa7c1;font-size:13px;line-height:1.5}
.topbar{height:80px;padding:0 28px;gap:15px;border-bottom-color:rgba(189,204,218,.72);background:rgba(255,255,255,.88);box-shadow:0 8px 30px rgba(13,38,66,.045);backdrop-filter:blur(22px) saturate(145%)}
.global-search{max-width:760px}
.global-search label{height:48px;padding:0 15px;border-color:#d5dee8;border-radius:14px;background:rgba(247,249,251,.94);box-shadow:inset 0 1px 0 #fff;transition:.2s ease}
.global-search label:focus-within{border-color:#2b74ad;background:#fff;box-shadow:0 0 0 4px rgba(43,116,173,.10),0 10px 28px rgba(22,58,91,.08)}
.global-search input{font-size:14px}
.global-search kbd{font-size:13px}
.search-suggestions{top:56px;padding:9px;border-color:#d7e1ea;border-radius:17px;box-shadow:0 30px 80px rgba(7,31,59,.19)}
.suggestion{min-height:58px;padding:10px;border-radius:12px}
.suggestion:hover,.suggestion:focus-visible{background:#f1f6fa}
.suggestion-icon{width:38px;height:38px;border-radius:11px}
.suggestion b{font-size:13px}.suggestion small,.suggestion em{font-size:13px}
.icon-btn{width:43px;height:43px;border-color:#d7e0e8;border-radius:12px;transition:.2s ease}
.icon-btn:hover{color:#0c4d83;border-color:#b9c8d7;background:#f4f8fb;transform:translateY(-1px)}
.avatar{width:40px;height:40px;font-size:13px;box-shadow:0 7px 18px rgba(10,44,85,.18)}
.user-chip b{font-size:13px}.user-chip small{font-size:13px}
.content{width:min(1580px,100%);padding:36px 38px 54px}
.content>*.card,.content>.grid,.content>.page-head,.content>.filters,.content>.record-hero,.content>.record-facts,.content>.judgment-record-layout,.content>.judgment-browser{animation:pro-enter .48s cubic-bezier(.2,.7,.2,1) both}
.content>*:nth-child(2){animation-delay:.035s}.content>*:nth-child(3){animation-delay:.07s}
@keyframes pro-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.page-head{margin-bottom:26px;align-items:center}
.page-head h1{margin-top:5px;color:#0c2949;font-size:clamp(36px,3.1vw,48px);font-weight:600;line-height:1.02;letter-spacing:-.025em}
.page-head p{max-width:75ch;margin-top:10px;color:#61738a;font-size:14px;line-height:1.7}
.eyebrow{color:#976516;font-size:13px;font-weight:800;letter-spacing:.17em}
.btn{min-height:45px;padding:0 18px;border-color:#d4dee7;border-radius:11px;font-size:13px;font-weight:800;box-shadow:0 2px 0 rgba(13,40,68,.025);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.btn:hover{border-color:#adbdcc;box-shadow:0 9px 22px rgba(13,40,68,.09);transform:translateY(-2px)}
.btn.primary{border-color:#041f3d;background:linear-gradient(145deg,#0a3561,#041c38);box-shadow:0 11px 26px rgba(4,29,56,.19)}
.btn.primary:hover{background:linear-gradient(145deg,#0d447b,#06294f)}
.btn.gold{background:linear-gradient(145deg,#f5dda1,#c18823);box-shadow:0 10px 24px rgba(179,124,31,.18)}
.badge{min-height:26px;padding:5px 10px;border:1px solid rgba(110,132,153,.09);font-size:13px;letter-spacing:.01em}
.card{border-color:rgba(204,216,228,.92);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 14px 42px rgba(11,37,66,.07),0 1px 1px rgba(11,37,66,.03)}
.card-head{min-height:65px;padding:18px 21px;border-bottom-color:#e5ebf0;background:linear-gradient(180deg,#fff,#fdfefe)}
.card-head h2,.card-head h3{color:#102f50;font-size:22px;font-weight:600;line-height:1.15}
.card-body{padding:22px}
.grid{gap:17px}
.grid>.card,.dashboard-grid>.card,.record-layout>.card{transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.grid>.card:hover,.dashboard-grid>.card:hover{border-color:#c6d3df;box-shadow:0 20px 54px rgba(11,37,66,.105)}
.metric{min-height:126px;padding:21px 22px;border-top:3px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#176ba8,#d5a23d) border-box}
.metric::after{width:115px;height:115px;right:-34px;bottom:-52px;background:radial-gradient(circle,rgba(19,93,164,.11),transparent 68%)}
.metric small{font-size:13px;letter-spacing:.11em}.metric b{margin-top:11px;color:#0e3358;font-size:36px;font-weight:600;line-height:1}.metric span{margin-top:9px;font-size:13px}
.activity-bars{height:185px;padding:24px 16px 8px;gap:10px;background:repeating-linear-gradient(0deg,#f7f9fb 0,#f7f9fb 29px,#e9eef3 30px)}
.activity-bars i{min-height:5px;box-shadow:inset 0 1px rgba(255,255,255,.22)}
.list-row{min-height:68px;padding:13px 0;grid-template-columns:44px minmax(0,1fr) auto;gap:12px}
.list-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#edf5fb,#dcebf6)}
.list-row b{color:#1a3a58;font-size:13px}.list-row small{font-size:13px;line-height:1.45}
.filters{margin-bottom:18px;padding:12px;border-color:#d4dee7;background:rgba(255,255,255,.94)}
.filters input,.filters select,.entity-lookup input,.entity-lookup select{min-height:45px;border-color:#d4dee7;border-radius:11px;font-size:13px;outline:0}
.filters input:focus,.filters select:focus,.entity-lookup input:focus,.entity-lookup select:focus{border-color:#2d78b2;box-shadow:0 0 0 4px rgba(45,120,178,.1)}
.tabs{gap:7px}.tabs button,.tabs a{min-height:42px;padding:0 14px;border:1px solid transparent;border-radius:10px;font-size:13px}
.tabs button:hover,.tabs a:hover{color:#184c78;background:#edf4f9}
.tabs button.active,.tabs a.active{border-color:#072744;background:linear-gradient(145deg,#0b3b68,#062441);box-shadow:0 7px 18px rgba(7,39,68,.15)}
.table-wrap{border-radius:0 0 18px 18px;scrollbar-width:thin}
.data-table{min-width:720px}
.data-table th{padding:13px 15px;color:#65788c;border-bottom:1px solid #dfe7ee;background:#f5f8fa;font-size:13px;font-weight:800;letter-spacing:.09em}
.data-table td{padding:15px;border-top-color:#e8edf2;color:#304b65;font-size:13px;line-height:1.5}
.data-table tbody tr{transition:background .16s ease,box-shadow .16s ease}
.data-table tbody tr:hover td{background:#f6fafe}
.cell-title b{color:#173a5a;font-size:13px}.cell-title small{font-size:13px}
.pagination-bar{padding:18px 4px;font-size:13px}
.empty-state{min-height:235px;margin:12px;padding:36px;border:1px dashed #c9d5e0;border-radius:15px;background:radial-gradient(circle at center,rgba(19,93,164,.04),transparent 18rem)}
.empty-state b{font-family:var(--serif);color:#163958;font-size:21px}.empty-state p{max-width:58ch;font-size:13px;line-height:1.65}
body[data-page="provision"] [data-legal-provision-root].empty-state,
body[data-page="provision"] [data-legal-provision-root].legal-provision-root,
body[data-page="act"] [data-legal-act-root].empty-state,
body[data-page="act"] [data-legal-act-root].legal-act-root{
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  display:block;
  place-items:initial;
  gap:0;
}

/* Canonical SAOS court and career analytics. */
.judicial-court-filter{margin-top:16px}.judicial-court-filter input{min-width:0;flex:1}.judicial-court-grid{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.judicial-court-card{overflow:hidden}.judicial-court-card>header{padding:20px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:start;border-bottom:1px solid #dce6ec}.judicial-court-card>header>span:first-child{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:#0a689f;background:#e9f5fb}.judicial-court-card>header svg{width:25px}.judicial-court-card>header small{color:#a16d19;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.judicial-court-card h2{margin:3px 0;color:#163d59;font:700 21px var(--serif)}.judicial-court-card header p{margin:4px 0 0;color:#718799;font-size:13px}.judicial-court-metrics{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #dce6ec;background:#f7fafc}.judicial-court-metrics article{padding:14px 18px;border-right:1px solid #dce6ec}.judicial-court-metrics article:last-child{border-right:0}.judicial-court-metrics b,.judicial-court-metrics small{display:block}.judicial-court-metrics b{color:#0a6499;font-size:22px}.judicial-court-metrics small{margin-top:2px;color:#74899a;font-size:12px}.judicial-court-card>section{padding:18px}.judicial-court-card>section h3{margin:0 0 10px;color:#244a65;font-size:14px}.judicial-court-card>section a{padding:9px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5ebef;color:#244b68}.judicial-court-card>section h3+a{border-top:0}.judicial-court-card>section b,.judicial-court-card>section small{display:block}.judicial-court-card>section b{font-size:13px}.judicial-court-card>section small{margin-top:2px;color:#758a9a;font-size:12px}.judicial-court-card>section em{color:#0b6c9f;font-size:12px;font-style:normal;font-weight:850}.judicial-court-card>footer{padding:16px 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;border-top:1px solid #dce6ec;background:#fbfcfd}.judicial-court-card>footer>div{min-width:0}.judicial-court-card>footer small{color:#9a6a1d;font-size:12px;font-weight:850}.judicial-court-card>footer p{max-width:560px;margin:4px 0 0;color:#61798b;font-size:12px;line-height:1.5}.judge-career{margin-top:16px;overflow:hidden}.judge-career>.judge-period-list{padding:16px}.judge-career .judge-period-list>article{background:#f9fbfc}.judge-career-judgments{border-top:1px solid #dce6ec}.judge-career>.judge-documents{padding:0 18px 18px}.judge-career>.judge-documents>a{display:grid;grid-template-columns:32px minmax(0,1fr) auto}.judge-career>.judge-documents a p{margin:5px 0 0;color:#637b8d;font-size:12px;line-height:1.45}.judge-career>.judge-documents a em{align-self:center;color:#0b669b;font-size:12px;font-style:normal;font-weight:850}
@media(max-width:980px){.judicial-court-grid{grid-template-columns:1fr}}
@media(max-width:620px){.judicial-court-card>header{grid-template-columns:42px minmax(0,1fr)}.judicial-court-card>header>.badge{grid-column:2}.judicial-court-metrics{grid-template-columns:1fr}.judicial-court-metrics article{border-right:0;border-bottom:1px solid #dce6ec}.judicial-court-card>footer{align-items:stretch;flex-direction:column}.judicial-court-card>footer .btn{justify-content:center}}

.court-directory-intro{margin-bottom:16px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #d7e4eb;border-radius:22px;background:linear-gradient(120deg,#fff 0%,#f4f9fb 64%,#e8f4f8 100%);box-shadow:0 14px 32px rgba(22,61,89,.07)}
.court-directory-intro h2{margin:4px 0 6px;color:#123b58;font:700 30px var(--serif)}
.court-directory-intro p{max-width:820px;margin:0;color:#6d8294;line-height:1.55}
.court-directory-intro>div:last-child{min-width:126px;padding:16px 20px;text-align:center;border-radius:18px;background:#0b456c;color:#fff}
.court-directory-intro>div:last-child b,.court-directory-intro>div:last-child span{display:block}.court-directory-intro>div:last-child b{font-size:30px}.court-directory-intro>div:last-child span{margin-top:2px;font-size:12px;opacity:.8}
.judicial-court-filter label{min-width:260px;display:grid;gap:6px;flex:1}.judicial-court-filter label span{color:#8e641f;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.judicial-court-filter select{min-width:220px}
.court-contact-strip{display:grid;grid-template-columns:.9fr 1.3fr 1.2fr;border-bottom:1px solid #dce6ec;background:#f8fbfc}.court-contact-strip>div{min-width:0;padding:13px 16px;border-right:1px solid #e1eaee}.court-contact-strip>div:last-child{border-right:0}.court-contact-strip small,.court-contact-strip b,.court-contact-strip a{display:block}.court-contact-strip small{margin-bottom:3px;color:#8295a3;font-size:10px;font-weight:850;text-transform:uppercase}.court-contact-strip b,.court-contact-strip a{overflow:hidden;color:#244a65;font-size:12px;text-overflow:ellipsis}.court-contact-strip a:hover{text-decoration:underline}
.court-jurisdiction{max-height:72px;margin:12px 0 0!important;padding-top:12px;border-top:1px solid #e5ebef;overflow:hidden}.judicial-court-card>footer nav{display:flex;gap:8px;flex-shrink:0}
.court-pagination{margin:18px 0 4px;display:flex;align-items:center;justify-content:center;gap:14px}.court-pagination button{padding:10px 15px;border:1px solid #ccdce5;border-radius:11px;background:#fff;color:#244a65;font-weight:800;cursor:pointer}.court-pagination button:disabled{opacity:.45;cursor:default}.court-pagination span{color:#6c8293;font-size:13px;font-weight:750}
@media(max-width:760px){.court-directory-intro{align-items:stretch;flex-direction:column}.court-contact-strip{grid-template-columns:1fr}.court-contact-strip>div{border-right:0;border-bottom:1px solid #e1eaee}.judicial-court-card>footer nav{flex-direction:column}.judicial-court-filter label{min-width:100%}}

/* Court directory: compact list with an adaptive filter drawer. */
.court-directory-layout{min-width:0;display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}.court-filter-sidebar{min-width:0;padding:20px;position:sticky;top:176px;display:grid;gap:18px;overflow:hidden}.court-filter-sidebar>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center}.court-filter-sidebar>header>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e8f4fa;color:#076a9f}.court-filter-sidebar h2{margin:2px 0 0;color:#173e59;font:700 19px var(--serif)}.court-filter-sidebar header small,.court-filter-sidebar>label>span,.court-filter-sidebar legend{color:#996719;font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.court-filter-sidebar>label{min-width:0;display:grid;gap:7px}.court-filter-sidebar input[type=text],.court-filter-sidebar input:not([type]){width:100%;min-width:0}.court-filter-sidebar fieldset{min-width:0;margin:0;padding:14px;border:1px solid #dbe6ec;border-radius:14px;display:grid;gap:10px}.court-filter-sidebar fieldset label{display:flex;gap:8px;align-items:center;color:#36556c;font-size:13px;font-weight:700}.court-filter-sidebar fieldset input{accent-color:#086c9f}.court-filter-sidebar .court-filter-clear{text-align:center;color:#647c8e;font-size:12px;font-weight:800}.court-filter-sidebar>footer{padding-top:16px;display:grid;border-top:1px solid #dce6ec}.court-filter-sidebar>footer b{color:#08699d;font-size:28px}.court-filter-sidebar>footer span{color:#36556c;font-size:12px;font-weight:800}.court-filter-sidebar>footer small{margin-top:8px;color:#7a8f9e;line-height:1.45}.court-filter-closer,.court-filter-opener{border:0;cursor:pointer}.court-filter-closer{display:none;width:36px;height:36px;place-items:center;border-radius:10px;background:#eef4f7;color:#244a65}.court-filter-closer svg{width:18px}.court-filter-opener{display:none;align-items:center;gap:8px;margin:0 0 12px;padding:11px 15px;border-radius:12px;background:#0a4d75;color:#fff;font-weight:850}.court-filter-opener svg{width:18px}.court-filter-backdrop{display:none}.court-results-list{min-width:0}.court-results-list>header{padding:4px 4px 13px;display:flex;align-items:end;justify-content:space-between;gap:16px}.court-results-list>header h2{margin:3px 0 0;color:#153d59;font:700 25px var(--serif)}.court-results-list>header>span{color:#708696;font-size:13px;font-weight:800}.court-results-list .judicial-court-grid{grid-template-columns:1fr}.court-results-list .judicial-court-card{min-width:0;display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(320px,1.35fr);box-shadow:0 6px 18px rgba(20,59,84,.05)}.court-results-list .judicial-court-card>header{min-width:0;border-right:1px solid #dce6ec}.court-results-list .judicial-court-card>header h2,.court-results-list .judicial-court-card>header p,.court-contact-strip b,.court-contact-strip a,.court-results-list .judicial-court-card section b,.court-results-list .judicial-court-card section small{overflow-wrap:anywhere}.court-results-list .court-contact-strip{grid-column:2;grid-row:1}.court-results-list .judicial-court-metrics{grid-column:1;grid-row:2}.court-results-list .judicial-court-card>section{grid-column:2;grid-row:2 / span 2;min-width:0}.court-results-list .judicial-court-card>footer{grid-column:1;grid-row:3;min-width:0;align-items:stretch;flex-direction:column}.court-results-list .judicial-court-card>footer nav{flex-wrap:wrap}.court-results-list .court-jurisdiction{max-height:58px}.court-results-list .judicial-court-card>section a{min-width:0}.court-results-list .judicial-court-card>section a span{min-width:0}
@media(max-width:1180px){.court-results-list .judicial-court-card{grid-template-columns:1fr}.court-results-list .judicial-court-card>*{grid-column:1!important;grid-row:auto!important}.court-results-list .judicial-court-card>header{border-right:0}.court-directory-layout{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:860px){body.court-filters-open{overflow:hidden}.court-directory-layout{display:block}.court-filter-opener{display:inline-flex}.court-filter-sidebar{width:min(88vw,340px);height:100dvh;position:fixed;z-index:1002;inset:0 auto 0 0;border:0;border-radius:0;overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease}.court-filter-closer{display:grid}.court-filter-backdrop{position:fixed;z-index:1001;inset:0;background:rgba(6,30,47,.48);opacity:0;pointer-events:none;transition:opacity .22s ease}.court-filters-open .court-filter-sidebar{transform:translateX(0)}.court-filters-open .court-filter-backdrop{display:block;opacity:1;pointer-events:auto}.court-results-list>header{align-items:start;flex-direction:column}.court-directory-intro{padding:20px}.court-directory-intro h2{font-size:25px}}
@media(max-width:560px){.court-results-list .judicial-court-card>header{grid-template-columns:40px minmax(0,1fr)}.court-results-list .judicial-court-card>header>.badge{grid-column:2}.court-results-list .court-contact-strip{grid-template-columns:1fr}.court-pagination{justify-content:space-between;gap:6px}.court-pagination .btn{padding:9px 10px;font-size:12px}.court-pagination>span{font-size:11px}.court-directory-intro>div:last-child{min-width:0}.court-results-list,.court-directory-layout,.judicial-court-grid,.judicial-court-card{max-width:100%;overflow-x:clip}}

.judgment-composition-row dd{margin-top:8px}.judgment-judge-list{display:grid;gap:7px}.judgment-judge-list .judge-record-link{padding:10px!important;display:grid!important;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;border:1px solid #d9e5eb;border-radius:11px;background:#f8fbfc}.judgment-judge-list .judge-record-link::after{display:none}.judgment-judge-list .judge-record-link>span:first-child{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e6f3f9;color:#076b9f}.judgment-judge-list .judge-record-link>span:nth-child(2){min-width:0}.judgment-judge-list .judge-record-link b,.judgment-judge-list .judge-record-link small{display:block;overflow-wrap:anywhere}.judgment-judge-list .judge-record-link b{color:#173e59;font-size:12px}.judgment-judge-list .judge-record-link small{margin-top:2px;color:#718696;font-size:10px;line-height:1.35}.judgment-judge-list .judge-record-link em{align-self:center;color:#0870a7;font-size:10px;font-style:normal;font-weight:900;white-space:nowrap}

.court-filter-sidebar>label input:not([type]),.court-filter-sidebar>label input[type="text"],.court-filter-sidebar>label input[type="search"]{width:100%;height:48px;min-width:0;padding:0 14px;border:1px solid #c9dae4;border-radius:12px;outline:0;color:#173e59;background:#fff;box-shadow:0 2px 5px rgba(20,61,87,.03);font:650 14px/1.2 var(--sans);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.court-filter-sidebar>label input::placeholder{color:#8b9daa;font-weight:500}.court-filter-sidebar>label input:hover{border-color:#9ebdcc}.court-filter-sidebar>label input:focus{border-color:#0872aa;background:#fff;box-shadow:0 0 0 4px rgba(8,114,170,.12)}.court-filter-sidebar fieldset{padding:17px 15px 15px}.court-filter-sidebar fieldset legend{padding:0 7px}.court-filter-sidebar fieldset label{min-height:28px;cursor:pointer}.court-filter-sidebar fieldset input[type="radio"]{width:17px;height:17px;margin:0;flex:0 0 17px;cursor:pointer}.court-filter-sidebar>[data-court-filter]{min-height:48px;border-radius:12px;box-shadow:0 10px 22px rgba(3,48,83,.14)}.court-filter-sidebar .court-filter-clear{padding:7px;border-radius:8px}.court-filter-sidebar .court-filter-clear:hover{color:#075f91;background:#eef7fb}

@media(min-width:1181px){.court-results-list .judicial-court-card{grid-template-columns:minmax(260px,1.25fr) minmax(300px,1.45fr) 190px}.court-results-list .judicial-court-card>header{grid-column:1;grid-row:1;padding:16px}.court-results-list .court-contact-strip{grid-column:2;grid-row:1}.court-results-list .judicial-court-metrics{grid-column:3;grid-row:1}.court-results-list .judicial-court-metrics article{padding:10px 12px;border-right:0;border-bottom:1px solid #dce6ec}.court-results-list .judicial-court-metrics article:last-child{border-bottom:0}.court-results-list .judicial-court-metrics b{font-size:17px}.court-results-list .judicial-court-card>footer{grid-column:1 / -1;grid-row:2;padding:10px 14px;align-items:center;flex-direction:row}.court-results-list .judicial-court-card>footer>div{display:flex;align-items:center;gap:8px}.court-results-list .judicial-court-card>footer p{margin:0}.court-results-list .judicial-court-card>section{display:none;grid-column:1 / -1;grid-row:3;padding:14px 18px}.court-results-list .judicial-court-card.expanded>section{display:block}.court-results-list .judicial-court-card h2{font-size:18px}.court-results-list .judicial-court-card header p{font-size:12px}.court-results-list .court-contact-strip>div{padding:11px 12px}.court-row-expand svg{width:16px}}
.record-hero{padding:30px;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:
  radial-gradient(circle at 90% 5%,rgba(225,173,67,.30),transparent 19rem),
  linear-gradient(130deg,#031831,#083761 72%,#0a4477);
  box-shadow:0 28px 70px rgba(5,31,59,.21);overflow:hidden}
.record-title{gap:17px}.record-icon{width:64px;height:64px;border-radius:18px}.record-title h1{margin-top:6px;color:#fff;font-size:clamp(32px,3vw,40px);font-weight:600}.record-title p{color:#c8d7e5;font-size:13px}
.record-meta{margin-top:16px}.record-hero .badge{color:#e4edf6;border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.09);backdrop-filter:blur(10px)}
.record-hero .badge.green{color:#b9f0d5;background:rgba(25,134,95,.22)}
.record-facts{gap:13px}.record-facts article{position:relative;overflow:hidden}.record-facts article::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(#176ba8,#d3a03a)}
.record-facts small{font-size:13px}.record-facts b{font-family:var(--serif);font-size:18px;font-weight:600}
.record-layout,.dashboard-grid{gap:18px}
.timeline-item{padding:2px 0 23px 31px}.timeline-item::before{left:9px}.timeline-item::after{left:4px;width:10px;height:10px;box-shadow:0 0 0 4px #edf5fa}
.timeline-item b{color:#173a58;font-size:13px}.timeline-item small{font-size:13px}.timeline-item p{font-size:13px}
.folder{min-height:65px;padding:13px;border-radius:13px;background:linear-gradient(145deg,#fff,#f8fafc);transition:.18s ease}
.folder:hover{border-color:#d0a24b;transform:translateY(-2px)}.folder b{font-size:13px}.folder small{font-size:13px}
.analysis-card{padding:17px;border-left-width:4px;border-radius:0 12px 12px 0}.analysis-card b{font-size:13px}.analysis-card p{font-size:13px}
.graph-card{overflow:hidden}
.graph-toolbar{min-height:64px;padding:12px 18px;background:linear-gradient(180deg,#fff,#f7f9fb)}
.graph-stage{border-color:#d8e2ea!important;background-color:#fff!important;background-image:
  linear-gradient(rgba(22,80,125,.045) 1px,transparent 1px),
  linear-gradient(90deg,rgba(22,80,125,.045) 1px,transparent 1px),
  radial-gradient(circle at 50% 45%,rgba(19,93,164,.06),transparent 32rem)!important;
  background-size:26px 26px,26px 26px,100% 100%!important}
.graph-controls{padding:7px;border:1px solid #d6e0e8;border-radius:13px;background:rgba(255,255,255,.92);box-shadow:0 12px 32px rgba(12,38,66,.11)}
.graph-controls button{height:38px;min-width:38px;border-radius:9px;font-size:13px}
.graph-popup{border-color:#d2dde7!important;border-radius:17px!important;box-shadow:0 24px 64px rgba(5,31,59,.2)!important}
.graph-popup b{font-family:var(--serif);font-size:21px}.graph-popup small{font-size:13px}
.ocr-shell{border-color:#d6e0e9;border-radius:19px;box-shadow:var(--shadow-strong)}
.ocr-pages{background:#eef3f7}.ocr-scan{background:linear-gradient(145deg,#dfe6ec,#edf1f4)}
.paper{border-radius:3px;box-shadow:0 24px 58px rgba(11,34,57,.16)}
.ocr-editor{background:#fff}.ocr-textarea{border-color:#d6e0e8;border-radius:12px;font-size:14px;line-height:1.75}
.issue{border-radius:12px}.editor-toolbar{min-height:50px;background:#f7f9fb}
.chat-shell{border-radius:19px;box-shadow:var(--shadow)}.conversation{min-height:70px}.message-bubble{border-radius:15px;font-size:13px;line-height:1.55}
.settings-menu a{min-height:46px;border-radius:11px;font-size:13px}.setting-row{min-height:72px}
.case-media{height:210px;border-radius:18px;box-shadow:0 18px 44px rgba(9,34,61,.13)}
.case-media figcaption b{font-family:var(--serif);font-size:27px;font-weight:600}
.landing{font-size:15px;background:#fff}
.landing-nav{height:82px;padding-left:max(28px,calc((100% - 1320px)/2));padding-right:max(28px,calc((100% - 1320px)/2));background:rgba(255,255,255,.9);box-shadow:0 9px 30px rgba(11,37,64,.045)}
.landing-links{gap:27px}.landing-links a{font-size:13px}.landing-links>a:not(.btn){position:relative}
.landing-links>a:not(.btn)::after{content:"";position:absolute;left:0;right:100%;bottom:-8px;height:2px;background:var(--gold);transition:.2s}
.landing-links>a:not(.btn):hover::after{right:0}
.landing-hero{min-height:690px;padding:74px max(28px,calc((100% - 1320px)/2)) 72px;grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);gap:62px;background:
  radial-gradient(circle at 84% 16%,rgba(25,111,181,.12),transparent 31rem),
  radial-gradient(circle at 12% 7%,rgba(197,140,37,.12),transparent 27rem),
  linear-gradient(180deg,#fff 0,#f7f9fb 100%)}
.hero-kicker{padding:8px 12px;font-size:13px;letter-spacing:.13em}
.hero-copy h1{max-width:11ch;margin:23px 0 21px;color:#072543;font-size:clamp(54px,5.2vw,76px);font-weight:600;line-height:.94;letter-spacing:-.045em}
.hero-copy p{max-width:59ch;color:#586d84;font-size:16px;line-height:1.78}
.hero-actions{margin-top:31px;gap:12px}.hero-actions .btn{min-height:50px;padding:0 21px}
.hero-trust{margin-top:27px;gap:22px;color:#587087;font-size:13px}
.hero-product{height:455px;position:relative;border-color:#d3dee8;border-radius:25px;box-shadow:0 38px 96px rgba(10,38,68,.18);transform:perspective(1200px) rotateY(-1.2deg) rotateX(.5deg)}
.hero-product::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 1px rgba(255,255,255,.8);pointer-events:none}
.product-bar{height:50px}.product-body{height:calc(100% - 50px)}
.landing-api-strip{min-height:78px;background:#fff}.landing-api-strip>a,.landing-api-strip>span{font-size:13px}
.landing-section{padding-top:100px;padding-bottom:100px}
.section-title{margin-bottom:45px}.section-title h2{margin:10px 0 14px;color:#0b2c4e;font-size:clamp(38px,4vw,52px);font-weight:600;line-height:1.03;letter-spacing:-.025em}.section-title p{font-size:14px}
.module-showcase-grid{gap:20px}
.module-showcase-card{padding:19px;border-radius:19px;box-shadow:0 15px 45px rgba(15,42,68,.075)}
.module-showcase-card>header{margin-bottom:16px}.module-showcase-card header b{font-size:19px;font-weight:600}.module-showcase-card header small{font-size:13px}.module-showcase-card header em{font-size:13px}
.module-shot{height:220px;border-radius:13px}
.api-record{min-height:86px;padding:18px}.api-record small{font-size:13px}.api-record b{font-size:18px}.api-record p{font-size:13px}.api-record em{font-size:13px}
.offer-grid{gap:20px}.offer-card{padding:28px;border-radius:21px}.offer-card h3{font-size:31px;font-weight:600}.offer-card p{font-size:13px}.offer-card li{font-size:13px}.offer-card>small{font-size:13px}
.landing-cta{padding-top:80px;padding-bottom:80px}.cta-inner h2{font-size:clamp(35px,4vw,48px);font-weight:600}.cta-inner p{font-size:13px}
.landing-footer{min-height:78px;font-size:13px}
.judgment-index-hero{margin:-36px -38px 0;padding:65px max(38px,calc((100vw - 1660px)/2)) 70px;background:
  radial-gradient(circle at 88% 12%,rgba(27,112,200,.72),transparent 31rem),
  radial-gradient(circle at 70% 100%,rgba(197,140,37,.18),transparent 21rem),
  linear-gradient(120deg,#03162f,#073866 64%,#0b5aa3)}
.judgment-index-hero h1{font-size:clamp(48px,5vw,68px);font-weight:600}.judgment-index-hero>p{font-size:15px}
.judgment-hero-points{gap:12px}.judgment-hero-points article{min-height:102px;padding:18px;border-radius:16px}.judgment-hero-points b{font-size:14px}.judgment-hero-points span{font-size:13px}
.judgment-browser{margin-top:-28px;gap:20px}.judgment-filter-panel,.judgment-results-panel{border-radius:19px}.judgment-filter-panel label>span{font-size:13px}.judgment-filter-panel input,.judgment-filter-panel select{font-size:13px}
.judgment-result-card h3{font-size:25px}.judgment-result-meta{font-size:13px}.judgment-result-card p{font-size:13px}
.judgment-record-hero{min-height:390px;padding:33px;border-radius:23px;box-shadow:0 30px 76px rgba(5,31,59,.22)}
.judgment-record-hero>h1{font-size:clamp(41px,4vw,57px);font-weight:600}.judgment-record-hero>p{font-size:14px}
.judgment-record-meta>span{min-height:53px;font-size:13px}.judgment-record-tabs button{min-height:58px;font-size:13px}
.judgment-tab-content{padding:27px}.judgment-tab-content h2{font-size:27px;font-weight:600}.judgment-prose,.judgment-verdict,.judgment-tab-content blockquote{font-size:14px}
.judgment-info-card h2,.judgment-related-card h2{font-weight:600}.judgment-info-card dt{font-size:13px}.judgment-info-card dd{font-size:13px}
.ai-live-form{padding:30px;border:1px solid #d8e2eb;border-radius:21px;box-shadow:var(--shadow)}
.ai-live-intro h2,.ai-live-result>.card-head h2{font-size:30px;font-weight:600}.ai-live-intro p{font-size:13px}
.ai-live-form label{font-size:13px}.ai-live-form input,.ai-live-form select,.ai-live-form textarea{font-size:14px}.ai-live-form textarea{min-height:320px}
.ai-live-side{position:sticky;top:98px}.ai-job-card,.ai-steps{overflow:hidden}.ai-steps li{font-size:13px}
.ai-live-result{box-shadow:var(--shadow)}.ai-result-content{font-size:14px;line-height:1.82}
.toast{padding:14px 17px;border-radius:12px;font-size:13px;box-shadow:0 18px 48px rgba(5,31,59,.2)}
.modal{background:rgba(3,19,39,.66);backdrop-filter:blur(8px)}.modal-panel{border:1px solid rgba(255,255,255,.45);border-radius:21px;box-shadow:0 36px 110px rgba(1,15,31,.32)}
@media(max-width:1180px){
  .portal{grid-template-columns:226px minmax(0,1fr)}
  .content{padding:31px 27px 44px}
  .landing-hero{grid-template-columns:1fr;gap:48px}
  .hero-copy{text-align:center}.hero-copy h1,.hero-copy p{margin-left:auto;margin-right:auto}.hero-actions,.hero-trust{justify-content:center}
  .hero-product{width:min(800px,100%);margin:auto;transform:none}
  .ai-live-side{position:static}
}
@media(max-width:820px){
  body{font-size:15px}
  .sidebar{width:278px;padding:20px 16px}
  .topbar{height:72px;padding:0 13px}
  .global-search label{height:44px}
  .content{padding:25px 15px 40px}
  .page-head{align-items:flex-start}.page-head h1{font-size:37px}.page-head p{font-size:13px}
  .grid.four,.grid.three,.grid.two{grid-template-columns:1fr 1fr}
  .record-hero{padding:25px}.record-title h1{font-size:32px}
  .landing-nav{height:72px;padding:0 15px}.landing-hero{padding:54px 18px 60px}
  .hero-copy h1{font-size:52px}.hero-product{height:405px}
  .landing-section{padding:76px 18px}.section-title h2{font-size:39px}
  .judgment-index-hero{margin:-25px -15px 0;padding:48px 20px 60px}
  .judgment-record-hero{min-height:410px;padding:25px}
}
@media(max-width:560px){
  body{font-size:14px}
  .top-actions .user-chip{display:none}
  .content{padding:21px 12px 34px}
  .page-head{margin-bottom:21px}.page-head h1{font-size:32px}.page-head p{font-size:13px}
  .grid.four,.grid.three,.grid.two{grid-template-columns:1fr}
  .card{border-radius:16px}.card-head{min-height:59px;padding:17px}.card-body{padding:17px}.card-head h2,.card-head h3{font-size:20px}
  .metric{min-height:110px}.metric b{font-size:33px}
  .record-hero{padding:21px}.record-title{gap:13px}.record-icon{width:54px;height:54px}.record-title h1{font-size:27px}.record-title p{font-size:13px}
  .record-actions{width:100%}.record-actions .btn{flex:1}
  .case-media{height:170px}.case-media figcaption b{font-size:23px}
  .landing-hero{padding-top:45px}.hero-copy h1{font-size:43px}.hero-copy p{font-size:14px}.hero-trust{gap:12px;font-size:13px}
  .hero-product{height:350px;border-radius:18px}.product-body>main{padding:14px}
  .landing-section{padding-top:64px;padding-bottom:64px}.section-title h2{font-size:34px}
  .module-showcase-card{padding:14px}.module-shot{height:190px}
  .offer-card{padding:23px}.offer-card h3{font-size:28px}
  .judgment-index-hero h1{font-size:40px}.judgment-index-hero>p{font-size:13px}
  .judgment-record-hero{min-height:440px;padding:21px}.judgment-record-hero>h1{font-size:35px}
  .judgment-tab-content{padding:18px}.judgment-prose,.judgment-verdict,.judgment-tab-content blockquote{font-size:13px}
  .ai-live-form{padding:19px}.ai-live-intro h2{font-size:25px}
}
@media(prefers-reduced-motion:reduce){.content>*.card,.content>.grid,.content>.page-head,.content>.filters,.content>.record-hero,.content>.record-facts,.content>.judgment-record-layout,.content>.judgment-browser{animation:none!important}}
@media(prefers-contrast:more){.card,.btn,input,select,textarea,.data-table td,.data-table th{border-color:#74889c!important}.muted{color:#3f5368}.side-nav a{color:#e3edf7}}

/* Compact icon scale and advanced filtering */
.btn>.ui-icon,.record-actions .ui-icon,.judgment-record-actions .ui-icon,.card-head .ui-icon{width:16px;height:16px}
.list-icon{width:36px;height:36px;border-radius:10px;font-size:13px}
.list-icon .ui-icon{width:17px;height:17px}
.record-icon{width:54px;height:54px;border-radius:15px}
.record-icon .ui-icon{width:24px;height:24px}
.lawyer-avatar{width:50px;height:50px;border-radius:14px;font-size:16px}
.record-hero .lawyer-avatar{width:56px;height:56px}
.asset-visual{height:112px;font-size:28px}
.asset-visual .ui-icon{width:30px;height:30px}
.module-icon,.offer-icon,.api-record-icon{width:39px;height:39px;border-radius:11px}
.module-icon .ui-icon,.offer-icon .ui-icon,.api-record-icon .ui-icon{width:18px;height:18px}
.feature-card .feature-icon{width:38px;height:38px;border-radius:10px}
.feature-card .feature-icon .ui-icon{width:18px;height:18px}
.empty-state-icon{width:34px!important;height:34px!important;padding:8px;border-radius:10px;color:#1767a2;background:#e9f3fa}
.graph-popup-icon{width:38px!important;height:38px!important;border-radius:11px!important}
.graph-popup-icon .ui-icon{width:19px;height:19px}
.ai-live-mark{width:50px;height:50px;border-radius:14px}.ai-live-mark .ui-icon{width:23px}
.filter-tabs{margin:0 0 10px;padding:6px;display:flex;align-items:center;gap:5px;border:1px solid #d8e2eb;border-radius:14px;background:rgba(255,255,255,.82);box-shadow:0 8px 25px rgba(12,38,66,.045);overflow-x:auto;scrollbar-width:none}
.filter-tabs::-webkit-scrollbar{display:none}
.filter-tabs button{min-height:38px;padding:0 14px;display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;border:0;border-radius:9px;color:#5a6f85;background:transparent;font-size:13px;font-weight:800;white-space:nowrap}
.filter-tabs button:hover{color:#124e7e;background:#eef5fa}
.filter-tabs button.active{color:#fff;background:linear-gradient(145deg,#0b3b68,#062441);box-shadow:0 7px 18px rgba(7,39,68,.15)}
.filter-tabs button span{min-width:20px;height:20px;padding:0 6px;display:grid;place-items:center;border-radius:999px;color:#5b7085;background:#e8eef3;font-size:13px}
.filter-tabs button.active span{color:#15314d;background:#e9c973}
.filter-panel{margin-bottom:18px!important;padding:0!important;display:block!important;overflow:hidden}
.filter-panel-head{min-height:53px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e3e9ef;background:linear-gradient(180deg,#fff,#f9fbfc)}
.filter-panel-title{display:flex;align-items:center;gap:9px}
.filter-panel-title .ui-icon{width:17px;height:17px;color:#9a6817}
.filter-panel-title b{color:#173754;font-family:var(--serif);font-size:17px;font-weight:600}
.filter-panel-title small{color:#79899a;font-size:13px}
.filter-result-count{min-height:26px;padding:0 9px;display:inline-flex;align-items:center;border-radius:999px;color:#1a5d91;background:#e9f3fb;font-size:13px;font-weight:800}
.filter-core{padding:13px 15px;display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(150px,.6fr)) auto auto;gap:9px;align-items:center}
.filter-core>input,.filter-core>select,.advanced-filter-grid input,.advanced-filter-grid select{width:100%;min-width:0;min-height:43px;padding:0 11px;border:1px solid #d4dee7;border-radius:10px;color:#1c3c59;background:#fff;font-size:13px;outline:none}
.filter-core>input:focus,.filter-core>select:focus,.advanced-filter-grid input:focus,.advanced-filter-grid select:focus{border-color:#2777b1;box-shadow:0 0 0 4px rgba(39,119,177,.09)}
.filter-toggle{min-height:43px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d4dee7;border-radius:10px;color:#36536d;background:#f8fafb;font-size:13px;font-weight:800}
.filter-toggle::after{content:"+";font-size:16px;font-weight:500}.filter-toggle[aria-expanded="true"]::after{content:"−"}
.advanced-filters{padding:14px 15px 16px;border-top:1px solid #e6ebf0;background:#f6f8fa}
.advanced-filters.hidden{display:none!important}
.advanced-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:11px}
.advanced-filter-grid label{display:grid;gap:6px;color:#526a80;font-size:13px;font-weight:800}
.advanced-filter-grid label>span{padding-left:2px}
.filter-actions{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.filter-actions small{color:#748598;font-size:13px}
.filter-reset{min-height:37px;padding:0 12px;border:1px solid #d4dee7;border-radius:9px;color:#36536d;background:#fff;font-size:13px;font-weight:800}
.filter-empty{display:none;margin:12px 0;padding:26px;border:1px dashed #c9d5df;border-radius:14px;text-align:center;color:#66798d;background:#f8fafb;font-size:13px}
.filter-empty.show{display:block}
.filter-empty b,.filter-empty span{display:block}.filter-empty b{color:#173a56;font-family:var(--serif);font-size:18px}.filter-empty span{margin-top:5px}
.judgment-panel-title .judgment-live-count{margin-left:auto}.judgment-panel-title .ui-icon{flex:0 0 auto}.law-filter-more{padding-top:0}
.record-tabs{padding:6px;position:sticky;z-index:15;top:90px;background:rgba(255,255,255,.92);backdrop-filter:blur(15px)}
.record-tabs .tabs{gap:4px}
.record-tabs .tabs button{min-height:40px}
.record-tabs .tabs button.active{box-shadow:none}
.view-tabs-card{margin:16px 0;padding:6px;position:sticky;z-index:15;top:90px}
.view-tabs-card .tabs{gap:4px}
.view-tab-pane[hidden]{display:none!important}
.judgment-record-tabs{scrollbar-width:thin}.judgment-record-tabs button{padding:0 2px}
.judgment-filter-toggle{width:100%}
.judgment-advanced{display:grid;gap:13px;padding:15px;margin:0 -6px;border:1px solid #dfe7ee;border-radius:13px;background:#f5f8fa}
.judgment-advanced.hidden{display:none!important}
.judgment-advanced label{display:grid;gap:6px}
.judgment-advanced input,.judgment-advanced select{width:100%;min-height:43px;padding:0 11px;border:1px solid #d4dee7;border-radius:10px;color:#1c3c59;background:#fff;font-size:13px;outline:none}
.judgment-advanced input:focus,.judgment-advanced select:focus{border-color:#2777b1;box-shadow:0 0 0 4px rgba(39,119,177,.09)}
.g-node.filtered-out{opacity:.12;pointer-events:none}.g-edge.filtered-out{opacity:.06}
@media(max-width:1180px){
  .filter-core{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(140px,.55fr)) auto}
  .filter-core>.filter-result-count{grid-column:1/-1;justify-self:start}
  .advanced-filter-grid{grid-template-columns:repeat(2,minmax(170px,1fr))}
}
@media(max-width:820px){
  .filter-core{grid-template-columns:1fr 1fr}
  .filter-core>input:first-of-type{grid-column:1/-1}
  .record-tabs,.view-tabs-card{top:78px}
  .asset-visual{height:96px}
}
@media(max-width:560px){
  .record-icon{width:48px;height:48px}.record-icon .ui-icon{width:21px;height:21px}
  .list-icon{width:34px;height:34px}
  .filter-tabs{margin-bottom:8px;border-radius:12px}.filter-tabs button{min-height:36px;padding:0 11px;font-size:13px}
  .filter-core,.advanced-filter-grid{grid-template-columns:1fr}
  .filter-core>input:first-of-type,.filter-core>.filter-result-count{grid-column:auto}
  .filter-toggle{width:100%}.filter-panel-head{padding:0 13px}.filter-panel-title small{display:none}
  .filter-actions{align-items:stretch;flex-direction:column}.filter-reset{width:100%}
  .record-tabs,.view-tabs-card{position:static}
}

/* Modular productivity scripts */
.tools-toast{position:fixed;z-index:140;right:22px;bottom:22px;max-width:min(390px,calc(100vw - 28px));padding:13px 16px;border:1px solid #cfe1d9;border-radius:12px;color:#1d5943;background:#f4fcf8;box-shadow:0 20px 55px rgba(5,31,59,.2);font-size:13px;font-weight:700;opacity:0;transform:translateY(16px);pointer-events:none;transition:.22s ease}
.tools-toast.show{opacity:1;transform:none}
.table-tools{min-height:58px;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e3e9ef;background:linear-gradient(180deg,#fff,#f8fafb)}
.table-selection{display:flex;align-items:baseline;gap:9px}
.table-selection b{color:#173754;font-size:13px}.table-selection small{color:#7a8a9b;font-size:13px}
.table-tool-actions{display:flex;align-items:center;gap:7px}
.table-tool-actions>button,.column-picker>summary{min-height:36px;padding:0 11px;display:inline-flex;align-items:center;border:1px solid #d4dee7;border-radius:9px;color:#36536d;background:#fff;font-size:13px;font-weight:800;list-style:none;cursor:pointer}
.table-tool-actions>button:hover,.column-picker>summary:hover{color:#114d7d;border-color:#aebfce;background:#f2f7fa}
.column-picker{position:relative}.column-picker>summary::-webkit-details-marker{display:none}
.column-picker-menu{width:225px;padding:8px;display:grid;gap:3px;position:absolute;z-index:35;right:0;top:42px;border:1px solid #d6e0e8;border-radius:12px;background:#fff;box-shadow:0 20px 55px rgba(5,31,59,.18)}
.column-picker-menu label{min-height:34px;padding:0 8px;display:flex;align-items:center;gap:9px;border-radius:8px;color:#3f5870;font-size:13px;font-weight:700}
.column-picker-menu label:hover{background:#f1f6f9}
.select-column{width:42px!important;padding-left:14px!important;padding-right:7px!important;text-align:center!important}
.select-column input,.column-picker-menu input{width:16px;height:16px;accent-color:#0f5d99}
.table-sort-button{width:100%;padding:0;display:flex;align-items:center;justify-content:space-between;gap:7px;border:0;color:inherit;background:none;font:inherit;text-align:left;text-transform:inherit;letter-spacing:inherit}
.table-sort-button i{color:#9aabba;font-size:13px;font-style:normal}
.data-table th[aria-sort="ascending"] .table-sort-button i,.data-table th[aria-sort="descending"] .table-sort-button i{color:#0f629f}
.saved-view-controls{margin-left:auto;display:flex;align-items:center;gap:6px}
.saved-view-controls select{min-height:34px;max-width:165px;padding:0 28px 0 9px;border:1px solid #d4dee7;border-radius:9px;color:#36536d;background:#fff;font-size:13px}
.saved-view-controls button{min-height:34px;padding:0 10px;border:1px solid #d4dee7;border-radius:9px;color:#36536d;background:#fff;font-size:13px;font-weight:800}
.saved-view-controls button:hover{color:#114d7d;border-color:#aebfce;background:#f2f7fa}
.command-trigger{font-size:16px;font-weight:800}
.command-palette{position:fixed;z-index:160;inset:0;padding:10vh 18px 18px;display:grid;align-items:start;justify-items:center;background:rgba(2,17,35,.58);backdrop-filter:blur(8px);opacity:0;pointer-events:none;transition:opacity .18s ease}
.command-palette.show{opacity:1;pointer-events:auto}
.command-dialog{width:min(680px,100%);max-height:min(690px,80vh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid rgba(255,255,255,.48);border-radius:20px;background:#fff;box-shadow:0 38px 120px rgba(1,15,31,.38);overflow:hidden;transform:translateY(-10px) scale(.985);transition:transform .2s ease}
.command-palette.show .command-dialog{transform:none}
.command-search{height:66px;padding:0 17px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e1e8ee;background:linear-gradient(180deg,#fff,#f9fbfc)}
.command-search>span{color:#8c651f;font-size:24px}.command-search input{min-width:0;flex:1;border:0;outline:0;color:#153653;background:transparent;font-size:15px;font-weight:600}.command-search kbd,.command-help kbd{padding:3px 6px;border:1px solid #d6dee6;border-radius:6px;color:#66798c;background:#fff;font:700 13px/1.4 var(--sans);box-shadow:0 1px 0 #cdd7df}
.command-list{padding:9px;overflow:auto}
.command-group{padding:11px 10px 6px;color:#927027;font-size:13px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.command-item{width:100%;min-height:58px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid transparent;border-radius:11px;text-align:left;background:transparent}
.command-item:hover,.command-item.active{border-color:#d9e4ec;background:#eef5fa}
.command-item b,.command-item small{display:block}.command-item b{color:#173754;font-size:13px}.command-item small{margin-top:3px;color:#748598;font-size:13px}.command-item kbd{min-width:42px;padding:4px 7px;border:1px solid #d7e0e8;border-radius:7px;color:#52687e;background:#fff;font:800 13px/1.2 var(--sans);text-align:center}.command-item i{color:#9aabba;font-style:normal}
.command-empty{min-height:150px;display:grid;place-items:center;align-content:center;gap:4px;color:#718397}.command-empty b{color:#173754}
.command-help{min-height:47px;padding:8px 14px;display:flex;align-items:center;justify-content:flex-end;gap:18px;border-top:1px solid #e2e8ee;color:#758699;background:#f8fafb;font-size:13px}.command-help span{display:flex;align-items:center;gap:5px}
.command-open{overflow:hidden}
.network-state{margin-left:auto;min-height:30px;padding:0 8px;display:inline-flex;align-items:center;gap:6px;border:1px solid #d8e8df;border-radius:999px;color:#267053;background:#f2faf6;font-size:13px;font-weight:800}
.network-state i{width:7px;height:7px;border-radius:50%;background:#20a16f;box-shadow:0 0 0 3px rgba(32,161,111,.12)}
.network-state.offline{color:#9a472f;border-color:#efd8d0;background:#fff6f2}.network-state.offline i{background:#c95b3a}
.back-to-top{width:42px;height:42px;position:fixed;z-index:45;right:22px;bottom:22px;border:1px solid #d3dee7;border-radius:12px;color:#fff;background:linear-gradient(145deg,#0a3c6a,#052441);box-shadow:0 14px 35px rgba(5,31,59,.22);font-size:17px;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s ease}
.back-to-top.show{opacity:1;transform:none;pointer-events:auto}
.legal-calculators{margin-top:18px}
.legal-tools-head{margin-bottom:14px;padding:0 3px;display:flex;align-items:end;justify-content:space-between;gap:18px}
.legal-tools-head h2{margin:4px 0 0;color:#102f50;font-family:var(--serif);font-size:28px}.legal-tools-head p{margin:4px 0 0;color:#708196;font-size:13px}
.legal-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.legal-tool{padding:22px}
.legal-tool-title{margin-bottom:17px;display:flex;align-items:center;gap:12px}.legal-tool-title>span{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;color:#1c2c42;background:linear-gradient(145deg,#f2d589,#c48b27);font-size:13px;font-weight:900}
.legal-tool-title h3{margin:0;color:#153654;font-family:var(--serif);font-size:21px}.legal-tool-title p{margin:3px 0 0;color:#718398;font-size:13px}
.legal-fields{margin-bottom:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.legal-fields label,.deadline-tool-body label{display:grid;gap:6px;color:#526a80;font-size:13px;font-weight:800}.legal-fields label>span,.deadline-tool-body label>span{padding-left:2px}
.legal-fields input,.legal-fields select,.deadline-tool-body input,.deadline-tool-body select{width:100%;min-width:0;min-height:43px;padding:0 11px;border:1px solid #d4dee7;border-radius:10px;color:#1c3c59;background:#fff;font-size:13px;outline:none}
.legal-fields input:focus,.legal-fields select:focus,.deadline-tool-body input:focus,.deadline-tool-body select:focus{border-color:#2777b1;box-shadow:0 0 0 4px rgba(39,119,177,.09)}
.legal-result{min-height:88px;margin-top:15px;padding:13px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border:1px solid #dce5ec;border-radius:12px;color:#24445f;background:#f7fafc}
.legal-result>span{padding:4px 8px;border-right:1px solid #dce5ec}.legal-result>span:nth-child(3){border-right:0}.legal-result small,.legal-result b{display:block}.legal-result small{color:#7a8999;font-size:13px}.legal-result b{margin-top:4px;color:#153957;font-size:13px}.legal-result>em{grid-column:1/-1;color:#758698;font-size:13px;font-style:normal}.legal-result.error{color:#9b433b;border-color:#edcdc8;background:#fff5f3}
.legal-disclaimer{margin:12px 2px 0;padding:10px 13px;border-left:3px solid #d0a042;color:#795c24;background:#fff9eb;font-size:13px;line-height:1.55}
.deadline-tool{margin-top:16px}.deadline-tool-body{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto minmax(145px,.65fr);gap:10px;align-items:end}
.deadline-tool-body>output{min-height:43px;padding:6px 12px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid #d8e3eb;border-radius:10px;color:#1c5f91;background:#f1f7fb}.deadline-tool-body>output small,.deadline-tool-body>output b{display:block}.deadline-tool-body>output small{font-size:13px}.deadline-tool-body>output b{font-size:13px}
.ocr-find-bar{padding:10px;display:grid;grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) repeat(4,auto);gap:7px;border-bottom:1px solid #dce4eb;background:#f4f7f9}
.ocr-find-bar input{min-width:0;min-height:37px;padding:0 10px;border:1px solid #d1dce5;border-radius:8px;color:#1d3e5a;background:#fff;font-size:13px;outline:none}.ocr-find-bar input:focus{border-color:#2777b1;box-shadow:0 0 0 3px rgba(39,119,177,.09)}
.ocr-find-bar button{min-height:37px;padding:0 10px;border:1px solid #d1dce5;border-radius:8px;color:#36536d;background:#fff;font-size:13px;font-weight:800}.ocr-find-bar button:hover{color:#114d7d;border-color:#aebfce}
@media(max-width:1180px){
  .saved-view-controls{width:100%;margin:0;padding:8px 0 0;border-top:1px solid #e4eaf0}.filter-panel-head{height:auto;min-height:53px;align-items:flex-start;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
  .deadline-tool-body{grid-template-columns:repeat(2,1fr)}.deadline-tool-body>output{grid-column:1/-1}
}
@media(max-width:820px){
  .network-state{display:none}.legal-tools-grid{grid-template-columns:1fr}
  .ocr-find-bar{grid-template-columns:1fr 1fr}.ocr-find-bar button{padding:0 8px}
  .command-palette{padding-top:7vh}.command-dialog{max-height:86vh}.command-help span:last-child{display:none}
}
@media(max-width:560px){
  .table-tools{align-items:flex-start;flex-direction:column}.table-tool-actions{width:100%;flex-wrap:wrap}.table-tool-actions>button,.column-picker{flex:1}.column-picker>summary{justify-content:center}
  .column-picker-menu{left:0;right:auto}.table-selection{width:100%;justify-content:space-between}
  .saved-view-controls{display:grid;grid-template-columns:1fr auto auto}.saved-view-controls select{max-width:none}
  .command-palette{padding:8px}.command-dialog{max-height:calc(100vh - 16px);border-radius:16px}.command-search{height:59px}.command-help{justify-content:center}.command-help span:last-child{display:none}
  .back-to-top{right:13px;bottom:13px}.tools-toast{right:14px;bottom:14px}
  .legal-tools-head{align-items:flex-start;flex-direction:column}.legal-tool{padding:17px}.legal-fields,.deadline-tool-body{grid-template-columns:1fr}.legal-result{grid-template-columns:1fr}.legal-result>span{border-right:0;border-bottom:1px solid #dce5ec}.legal-result>span:nth-child(3){border-bottom:0}
  .ocr-find-bar{grid-template-columns:1fr}.ocr-find-bar button{width:100%}
}

/* Fixed-height Sejm workspace */
body[data-page="sejm"]{overflow:hidden;background:#edf2f6}
body[data-page="sejm"] .portal{height:100vh;min-height:0;overflow:hidden}
body[data-page="sejm"] .sidebar{overflow:hidden}
body[data-page="sejm"] .shell{height:100vh;min-height:0;display:grid;grid-template-rows:80px minmax(0,1fr);overflow:hidden}
body[data-page="sejm"] .topbar{position:relative;height:80px}
body[data-page="sejm"] .content{width:100%;height:100%;min-height:0;padding:20px 24px 24px;display:flex;flex-direction:column;overflow:hidden}
body[data-page="sejm"] .page-head{min-height:66px;margin:0 0 16px;flex:0 0 auto}
body[data-page="sejm"] .page-head h1{font-size:34px}
body[data-page="sejm"] .page-head p{margin-top:5px;font-size:13px}
@media(min-width:821px){
  body[data-page="sejm"] .portal{grid-template-columns:82px minmax(0,1fr)}
  body[data-page="sejm"] .sidebar{padding:10px 9px}
  body[data-page="sejm"] .brand{padding:4px;justify-content:center}
  body[data-page="sejm"] .brand>span:last-child{display:none}
  body[data-page="sejm"] .brand-mark{width:42px;height:42px;font-size:21px}
  body[data-page="sejm"] .nav-section{height:1px;margin:7px 5px 5px;overflow:hidden;border-top:1px solid rgba(255,255,255,.08);font-size:0}
  body[data-page="sejm"] .side-nav{gap:2px}
  body[data-page="sejm"] .side-nav a{min-height:36px;padding:0;position:relative;justify-content:center;font-size:0;border-radius:9px}
  body[data-page="sejm"] .side-nav i{width:100%;display:grid;place-items:center}
  body[data-page="sejm"] .side-nav .ui-icon{width:17px;height:17px}
  body[data-page="sejm"] .side-nav .nav-count{width:7px;min-width:7px;height:7px;padding:0;position:absolute;right:7px;top:7px;overflow:hidden;color:transparent}
  body[data-page="sejm"] .sidebar-foot{display:none}
}
.sejm-workspace{min-height:0;flex:1;display:grid;grid-template-columns:218px minmax(0,1fr);overflow:hidden;border:1px solid #d4dfe8;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(8,34,61,.12)}
.sejm-rail{min-height:0;padding:14px 12px 12px;display:grid;grid-template-rows:64px minmax(0,1fr) 48px;color:#d9e6f2;background:
  radial-gradient(circle at 28% 4%,rgba(208,158,59,.18),transparent 13rem),
  linear-gradient(165deg,#071d38,#082d52 72%,#061a31);overflow:hidden}
.sejm-rail>header{padding:0 8px;display:flex;align-items:center;gap:11px;border-bottom:1px solid rgba(255,255,255,.08)}
.sejm-rail-mark{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;color:#102540;background:linear-gradient(145deg,#f7dda0,#c68d2a);box-shadow:0 9px 22px rgba(203,148,45,.2)}
.sejm-rail-mark .ui-icon{width:20px;height:20px}
.sejm-rail>header b,.sejm-rail>header small{display:block}.sejm-rail>header b{color:#fff;font-family:var(--serif);font-size:17px;font-weight:600}.sejm-rail>header small{margin-top:1px;color:#829bb7;font-size:13px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.sejm-rail>nav{min-height:0;padding:9px 0;display:grid;grid-template-rows:repeat(10,minmax(32px,1fr));gap:3px;overflow:hidden}
.sejm-rail>nav button{width:100%;min-height:0;padding:0 9px;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid transparent;border-radius:9px;color:#aebfd1;background:transparent;font-size:13px;font-weight:750;text-align:left;transition:color .18s ease,background .18s ease,border-color .18s ease}
.sejm-rail>nav button:hover{color:#fff;background:rgba(255,255,255,.06)}
.sejm-rail>nav button.active{color:#fff;border-color:rgba(238,198,112,.16);background:linear-gradient(90deg,rgba(202,147,43,.22),rgba(255,255,255,.05));box-shadow:inset 3px 0 #e1ae4b}
.sejm-rail>nav button:focus-visible{outline:2px solid #f0ca76;outline-offset:-2px}
.sejm-rail>nav i{width:25px;height:25px;display:grid;place-items:center;color:#e4bd66;font-style:normal}.sejm-rail>nav i .ui-icon{width:16px;height:16px}
.sejm-rail>nav em{min-width:20px;padding:2px 5px;border-radius:999px;color:#94acc5;background:rgba(255,255,255,.07);font-size:13px;font-style:normal;font-weight:800;text-align:center}
.sejm-rail>nav button.active em{color:#1b3249;background:#eccb80}
.sejm-rail>footer{padding:8px 5px 0;display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid rgba(255,255,255,.08);font-size:13px}
.sejm-rail>footer span{display:flex;align-items:center;gap:6px;color:#8ca4bc;font-weight:700}.sejm-rail>footer span i{width:6px;height:6px;border-radius:50%;background:#38b784;box-shadow:0 0 0 3px rgba(56,183,132,.12)}
.sejm-rail>footer button{padding:5px 7px;border:1px solid rgba(255,255,255,.12);border-radius:7px;color:#d9e4ef;background:rgba(255,255,255,.05);font-size:13px;font-weight:800}.sejm-rail>footer button:hover{color:#fff;background:rgba(255,255,255,.1)}
.sejm-canvas{min-width:0;min-height:0;display:grid;grid-template-rows:62px minmax(0,1fr);overflow:hidden;background:#fff}
.sejm-workspace-bar{padding:10px 14px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #e1e8ee;background:linear-gradient(180deg,#fff,#fafcfd)}
.sejm-workspace-bar>label{height:40px;min-width:230px;display:flex;align-items:center;gap:9px;flex:1;padding:0 11px;border:1px solid #d5dfe7;border-radius:10px;color:#688096;background:#f7f9fb}
.sejm-workspace-bar>label:focus-within{border-color:#2777b1;box-shadow:0 0 0 4px rgba(39,119,177,.08);background:#fff}
.sejm-workspace-bar>label .ui-icon{width:16px;height:16px}.sejm-workspace-bar input{min-width:0;flex:1;border:0;outline:0;color:#183a58;background:transparent;font-size:13px}.sejm-workspace-bar kbd{padding:3px 6px;border:1px solid #d5dee6;border-radius:6px;color:#748699;background:#fff;font:700 13px/1.3 var(--sans)}
.sejm-term-switch{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #dce4eb;border-radius:10px;background:#f2f6f8}
.sejm-term-switch a{min-height:30px;padding:0 9px;display:flex;align-items:center;border-radius:7px;color:#61778c;font-size:13px;font-weight:800;white-space:nowrap}
.sejm-term-switch a:hover{color:#174f7c;background:#fff}.sejm-term-switch a.active{color:#fff;background:#0b3a65;box-shadow:0 5px 13px rgba(7,40,70,.16)}
.sejm-panel-stack{min-height:0;padding:16px;overflow:hidden;background:
  radial-gradient(circle at 92% 3%,rgba(29,103,163,.06),transparent 22rem),
  linear-gradient(180deg,#f7f9fb,#f2f5f8)}
.sejm-workspace-panel{height:100%;min-height:0;display:none;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.sejm-workspace-panel.active{display:grid;animation:sejm-panel-in .24s ease both}
.sejm-workspace-panel>header,.sejm-board-card>header{min-height:52px;padding:0 3px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.sejm-workspace-panel>header h2,.sejm-board-card>header h2{margin:2px 0 0;color:#123451;font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.1}
.sejm-workspace-panel>header a{color:#17679f;font-size:13px;font-weight:850}.sejm-workspace-panel>header a:hover{text-decoration:underline}
.sejm-record-list{min-height:0;padding-right:5px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b9c8d5 transparent}
.sejm-record-list::-webkit-scrollbar{width:7px}.sejm-record-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#b9c8d5;background-clip:padding-box}
.sejm-record{min-height:62px;margin-bottom:7px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dce4eb;border-radius:12px;color:#173754;background:rgba(255,255,255,.94);box-shadow:0 7px 20px rgba(18,45,72,.045);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
a.sejm-record:hover{border-color:#afc4d5;box-shadow:0 12px 27px rgba(16,47,76,.09);transform:translateY(-1px)}
.sejm-record.record-focus{border-color:#c99638;box-shadow:0 0 0 3px rgba(201,150,56,.18),0 14px 32px rgba(15,48,77,.12)}
.sejm-record>span{min-width:0;flex:1}.sejm-record b,.sejm-record small,.sejm-record p{display:block}.sejm-record b{color:#173754;font-size:13px;line-height:1.35}.sejm-record small{margin-top:3px;color:#708399;font-size:13px;font-weight:650}.sejm-record p{margin:5px 0 0;display:-webkit-box;overflow:hidden;color:#5d7187;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sejm-record>i{color:#a67722;font-size:14px;font-style:normal}
.sejm-person-row{justify-content:flex-start}.sejm-person-row img{width:42px;height:42px;flex:0 0 auto;border:1px solid #d9e3ea;border-radius:11px;object-fit:cover;background:#e9eef2}.sejm-person-row img.image-error{display:none}.sejm-person-row>em{margin-left:auto;color:#667b90;font-size:13px;font-style:normal;font-weight:800;white-space:nowrap}
.sejm-people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:7px;padding-right:5px}.sejm-people-grid .sejm-record{margin:0}
.sejm-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sejm-stats-grid article{min-height:105px;padding:15px;position:relative;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto 1fr;column-gap:11px;border:1px solid #dce4eb;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(14,42,68,.055);overflow:hidden}
.sejm-stats-grid article::after{content:"";width:75px;height:75px;position:absolute;right:-25px;bottom:-35px;border-radius:50%;background:rgba(22,100,157,.06)}
.sejm-stats-grid article>span{width:36px;height:36px;grid-row:1/3;display:grid;place-items:center;border-radius:10px;color:#162d46;background:linear-gradient(145deg,#f6dc9d,#c88f2e)}.sejm-stats-grid article>span .ui-icon{width:18px;height:18px}.sejm-stats-grid small{align-self:end;color:#718397;font-size:13px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.sejm-stats-grid b{align-self:start;color:#123451;font-family:var(--serif);font-size:25px;font-weight:600;line-height:1.1}
.sejm-dashboard-lower{min-height:0;margin-top:12px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:12px}
.sejm-board-card{min-height:0;padding:14px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #dce4eb;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(14,42,68,.05)}
.sejm-mini-chart{min-height:0;padding:3px 2px;display:grid;align-content:center;gap:16px;overflow:hidden}.sejm-mini-chart>div{display:grid;grid-template-columns:82px minmax(0,1fr) 52px;align-items:center;gap:9px}.sejm-mini-chart span{color:#5d7288;font-size:13px;font-weight:750}.sejm-mini-chart i{height:8px;position:relative;overflow:hidden;border-radius:999px;background:#e7edf2}.sejm-mini-chart i::after{content:"";width:var(--value);height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#0f5d96,#d4a448)}.sejm-mini-chart b{color:#173754;font-size:13px;text-align:right}
.sejm-workspace-panel[data-sejm-panel="dashboard"]{grid-template-rows:auto minmax(0,1fr)}
.sejm-workspace-panel[data-sejm-panel="processes"]{grid-template-rows:auto auto minmax(0,1fr)}
.sejm-selected-process{max-height:210px;margin-bottom:10px;padding:14px 16px;display:grid;grid-template-columns:minmax(240px,.8fr) minmax(360px,1.2fr);gap:18px;border:1px solid #d6e2ea;border-radius:14px;color:#dfeaf5;background:radial-gradient(circle at 88% 5%,rgba(210,161,60,.2),transparent 17rem),linear-gradient(135deg,#071e3a,#0a416f);overflow:hidden}
.sejm-selected-process h3{margin:8px 0 4px;color:#fff;font-family:var(--serif);font-size:17px;font-weight:600}.sejm-selected-process p{margin:0;display:-webkit-box;overflow:hidden;color:#aabdd0;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.sejm-stage-line{min-width:0;display:flex;align-items:center;overflow:hidden}.sejm-stage-line>span{min-width:78px;position:relative;display:grid;justify-items:center;gap:4px;flex:1;text-align:center}.sejm-stage-line>span::after{content:"";height:1px;position:absolute;z-index:0;left:50%;right:-50%;top:5px;background:#42617f}.sejm-stage-line>span:last-child::after{display:none}.sejm-stage-line i{width:11px;height:11px;z-index:1;border:2px solid #6b8298;border-radius:50%;background:#0a3157}.sejm-stage-line .done i{border-color:#e7bd62;background:#e7bd62}.sejm-stage-line b{color:#e5edf5;font-size:13px;line-height:1.25}.sejm-stage-line small{color:#8fa6bc;font-size:13px}
.sejm-search-empty{min-height:150px;display:grid;place-items:center;align-content:center;gap:4px;color:#6f8194;text-align:center}.sejm-search-empty b{color:#183a58;font-size:13px}.sejm-search-empty small{font-size:13px}
.sejm-search-empty[hidden]{display:none!important}
@keyframes sejm-panel-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:1180px){
  .sejm-workspace{grid-template-columns:194px minmax(0,1fr)}
  .sejm-workspace-bar{gap:9px}.sejm-term-switch a{padding:0 7px;font-size:13px}
  .sejm-people-grid{grid-template-columns:1fr}.sejm-selected-process{grid-template-columns:1fr}.sejm-stage-line{display:none}
}
@media(max-width:820px){
  body[data-page="sejm"] .shell{grid-template-rows:72px minmax(0,1fr)}body[data-page="sejm"] .topbar{height:72px}
  body[data-page="sejm"] .sidebar{overflow:auto}
  body[data-page="sejm"] .content{padding:12px}body[data-page="sejm"] .page-head{min-height:60px;margin-bottom:10px}body[data-page="sejm"] .page-head h1{font-size:29px}body[data-page="sejm"] .page-head p{max-width:56ch;font-size:13px}
  .sejm-workspace{grid-template-columns:70px minmax(0,1fr);border-radius:15px}
  .sejm-rail{padding:8px 7px;grid-template-rows:54px minmax(0,1fr) 38px}.sejm-rail>header{padding:0;justify-content:center}.sejm-rail>header>span:last-child,.sejm-rail>nav button span,.sejm-rail>nav button em,.sejm-rail>footer span{display:none}.sejm-rail>nav button{padding:0;display:grid;grid-template-columns:1fr;place-items:center}.sejm-rail>nav i{width:28px;height:28px}.sejm-rail>footer{justify-content:center}.sejm-rail>footer button{width:36px;overflow:hidden;color:transparent}.sejm-rail>footer button::first-letter{color:#fff}
  .sejm-canvas{grid-template-rows:102px minmax(0,1fr)}.sejm-workspace-bar{padding:8px;align-items:stretch;flex-direction:column}.sejm-workspace-bar>label{height:38px;min-height:38px}.sejm-workspace-bar kbd{display:none}.sejm-term-switch{min-height:34px;display:grid;grid-template-columns:repeat(4,1fr)}.sejm-term-switch a{min-height:26px;padding:0 4px;justify-content:center;font-size:13px}
  .sejm-panel-stack{padding:10px}.sejm-stats-grid{grid-template-columns:repeat(2,1fr)}.sejm-stats-grid article{min-height:76px;padding:10px}.sejm-dashboard-lower{grid-template-columns:1fr}.sejm-dashboard-lower .sejm-board-card:last-child{display:none}.sejm-record{padding:9px 10px}.sejm-record>em{display:none}
}
@media(max-width:560px){
  body[data-page="sejm"] .page-head p{display:none}body[data-page="sejm"] .page-head{min-height:45px}body[data-page="sejm"] .page-head h1{font-size:25px}.head-actions .badge{padding:5px 7px;font-size:13px}
  .sejm-workspace{grid-template-columns:60px minmax(0,1fr)}.sejm-rail-mark{width:34px;height:34px}.sejm-rail>nav i .ui-icon{width:15px;height:15px}.sejm-panel-stack{padding:8px}.sejm-workspace-panel>header h2{font-size:18px}.sejm-workspace-panel>header a{font-size:0}.sejm-workspace-panel>header a::after{content:"Otwórz bazę";font-size:13px}.sejm-record b{font-size:13px}.sejm-record p{display:none}.sejm-person-row img{width:36px;height:36px}
}
@media(max-height:760px) and (min-width:821px){
  body[data-page="sejm"] .content{padding-top:12px;padding-bottom:14px}body[data-page="sejm"] .page-head{min-height:50px;margin-bottom:10px}body[data-page="sejm"] .page-head h1{font-size:29px}body[data-page="sejm"] .page-head p{display:none}
  .sejm-rail{grid-template-rows:50px minmax(0,1fr) 38px}.sejm-rail-mark{width:33px;height:33px}.sejm-rail>nav{padding:5px 0}.sejm-panel-stack{padding:11px}.sejm-canvas{grid-template-rows:54px minmax(0,1fr)}.sejm-workspace-bar{padding:7px 11px}.sejm-stats-grid article{min-height:78px;padding:10px}.sejm-dashboard-lower{margin-top:9px}.sejm-board-card{padding:10px}.sejm-selected-process{max-height:145px}
}

/* Shared fixed-height workspace used by every application subpage */
body.workspace-page{overflow:hidden;background:#edf2f6}
body.workspace-page .portal{height:100vh;min-height:0;overflow:hidden}
body.workspace-page .shell{height:100vh;min-height:0;display:grid;grid-template-rows:80px minmax(0,1fr);overflow:hidden}
body.workspace-page .topbar{position:relative;height:80px}
body.workspace-page .content{width:100%;height:100%;min-height:0;padding:20px 24px 24px;display:flex;flex-direction:column;overflow:hidden}
body.workspace-page .content>.page-head{min-height:66px;margin:0 0 16px;flex:0 0 auto}
body.workspace-page .content>.page-head h1{font-size:34px}
body.workspace-page .content>.page-head p{margin-top:5px;font-size:13px}
@media(min-width:821px){
  body.workspace-page .portal{grid-template-columns:82px minmax(0,1fr)}
  body.workspace-page .sidebar{padding:10px 9px;overflow:hidden}
  body.workspace-page .brand{padding:4px;justify-content:center}
  body.workspace-page .brand>span:last-child{display:none}
  body.workspace-page .brand-mark{width:40px;height:40px;font-size:20px}
  body.workspace-page .nav-section{height:1px;margin:4px 5px 3px;overflow:hidden;border-top:1px solid rgba(255,255,255,.08);font-size:0}
  body.workspace-page .side-nav{gap:1px}
  body.workspace-page .side-nav a{height:32px;min-height:32px;padding:0;position:relative;justify-content:center;overflow:hidden;color:transparent;font-size:0;white-space:nowrap;border-radius:8px}
  body.workspace-page .side-nav a:hover,body.workspace-page .side-nav a.active{color:transparent}
  body.workspace-page .side-nav-label{display:none}
  body.workspace-page .side-nav i{width:100%;display:grid;place-items:center}
  body.workspace-page .side-nav .ui-icon{width:17px;height:17px}
  body.workspace-page .side-nav .nav-count{width:7px;min-width:7px;height:7px;padding:0;position:absolute;right:7px;top:7px;overflow:hidden;color:transparent}
  body.workspace-page .sidebar-foot{display:none}
}
.module-workspace{min-height:0;flex:1;display:grid;grid-template-columns:206px minmax(0,1fr);overflow:hidden;border:1px solid #d4dfe8;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(8,34,61,.12)}
.module-rail{min-height:0;padding:14px 12px 12px;display:grid;grid-template-rows:64px minmax(0,1fr) 50px;color:#d9e6f2;background:
  radial-gradient(circle at 28% 4%,rgba(208,158,59,.18),transparent 13rem),
  linear-gradient(165deg,#071d38,#082d52 72%,#061a31);overflow:hidden}
.module-rail>header{padding:0 7px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.08)}
.module-rail-mark{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;color:#102540;background:linear-gradient(145deg,#f7dda0,#c68d2a);box-shadow:0 9px 22px rgba(203,148,45,.2)}
.module-rail-mark .ui-icon{width:20px;height:20px}
.module-rail>header b,.module-rail>header small{display:block}.module-rail>header b{color:#fff;font-family:var(--serif);font-size:15px;font-weight:600;line-height:1.15}.module-rail>header small{margin-top:3px;color:#829bb7;font-size:13px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.module-rail>nav{min-height:0;padding:10px 0;display:grid;grid-auto-rows:minmax(38px,1fr);align-content:start;gap:4px;overflow:hidden}
.module-rail>nav a{min-height:0;padding:0 9px;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid transparent;border-radius:9px;color:#aebfd1;font-size:13px;font-weight:750;transition:color .18s ease,background .18s ease,border-color .18s ease}
.module-rail>nav a:hover{color:#fff;background:rgba(255,255,255,.06)}
.module-rail>nav a.active{color:#fff;border-color:rgba(238,198,112,.16);background:linear-gradient(90deg,rgba(202,147,43,.22),rgba(255,255,255,.05));box-shadow:inset 3px 0 #e1ae4b}
.module-rail>nav a:focus-visible{outline:2px solid #f0ca76;outline-offset:-2px}
.module-rail>nav i{width:25px;height:25px;display:grid;place-items:center;color:#e4bd66;font-style:normal}.module-rail>nav i .ui-icon{width:16px;height:16px}
.module-rail>nav em{color:#718aa3;font-size:13px;font-style:normal;font-weight:800;text-transform:uppercase}.module-rail>nav a.active em{color:#edc979}
.module-rail>footer{padding:8px 5px 0;display:grid;align-content:center;gap:2px;border-top:1px solid rgba(255,255,255,.08)}
.module-rail>footer span{display:flex;align-items:center;gap:6px;color:#a7bbce;font-size:13px;font-weight:800}.module-rail>footer span i{width:6px;height:6px;border-radius:50%;background:#38b784;box-shadow:0 0 0 3px rgba(56,183,132,.12)}.module-rail>footer small{color:#6f89a3;font-size:13px}
.module-canvas{min-width:0;min-height:0;position:relative;display:grid;grid-template-rows:56px minmax(0,1fr);overflow:hidden;background:#fff}
.module-workspace-bar{padding:8px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e1e8ee;background:linear-gradient(180deg,#fff,#fafcfd)}
.module-workspace-bar>div{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:9px}.module-workspace-bar>div>span{width:32px;height:32px;grid-row:1/3;display:grid;place-items:center;border-radius:9px;color:#174f7e;background:#eaf3f9}.module-workspace-bar>div>span .ui-icon{width:16px}.module-workspace-bar b{color:#173754;font-size:13px}.module-workspace-bar small{color:#788a9d;font-size:13px}
.module-workspace-bar>button{min-height:36px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #d5dfe7;border-radius:9px;color:#48637b;background:#fff;font-size:13px;font-weight:800}.module-workspace-bar>button:hover{color:#124e7e;border-color:#afc3d3;background:#f4f8fa}.module-workspace-bar>button .ui-icon{width:14px}.module-workspace-bar kbd{padding:2px 5px;border:1px solid #d7dfe6;border-radius:5px;color:#8190a0;background:#f7f9fa;font:700 13px/1.3 var(--sans)}
.module-canvas-scroll{min-width:0;min-height:0;padding:16px 16px 72px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#7792a8 #e7edf2;background:
  radial-gradient(circle at 94% 0,rgba(29,103,163,.05),transparent 24rem),
  linear-gradient(180deg,#f7f9fb,#f2f5f8)}
.module-canvas-scroll::-webkit-scrollbar{width:14px}.module-canvas-scroll::-webkit-scrollbar-track{border-left:1px solid #dce5ec;background:#edf2f5}.module-canvas-scroll::-webkit-scrollbar-thumb{min-height:64px;border:3px solid #edf2f5;border-radius:999px;background:#7893a9;background-clip:padding-box}.module-canvas-scroll::-webkit-scrollbar-thumb:hover{background:#174f7d;background-clip:padding-box}
.module-canvas-scroll>.card:first-child,.module-canvas-scroll>.grid:first-child,.module-canvas-scroll>.filters:first-child,.module-canvas-scroll>section:first-child,.module-canvas-scroll>form:first-child{margin-top:0}
.module-canvas-scroll .record-tabs,.module-canvas-scroll .view-tabs-card{top:0}
.module-canvas-scroll .judgment-record-side,.module-canvas-scroll .judgment-filter-panel,.module-canvas-scroll .ai-live-side{top:12px}
.module-canvas-scroll .judgment-index-hero{margin:-16px -16px 0;padding-left:24px;padding-right:24px}
.module-canvas-scroll .judgment-index-hero{padding-top:38px;padding-bottom:54px}.module-canvas-scroll .judgment-index-hero h1{font-size:clamp(44px,4.5vw,60px)}.module-canvas-scroll .judgment-hero-points{margin-top:20px}.module-canvas-scroll .judgment-hero-points article{min-height:78px;padding:14px}
.module-scroll-dock{width:42px;padding:5px;position:absolute;z-index:24;right:24px;bottom:18px;display:grid;justify-items:center;gap:4px;border:1px solid #cfdbe4;border-radius:13px;background:rgba(255,255,255,.94);box-shadow:0 15px 38px rgba(7,34,61,.2);backdrop-filter:blur(10px)}
.module-scroll-dock[hidden]{display:none!important}.module-scroll-dock button{width:31px;height:31px;display:grid;place-items:center;border:0;border-radius:8px;color:#fff;background:linear-gradient(145deg,#0b4779,#062b4e);font-size:15px;font-weight:900}.module-scroll-dock button:hover{background:#0e5c96}.module-scroll-dock button:disabled{color:#91a2b1;background:#e8edf1;cursor:default}.module-scroll-dock>span{width:5px;height:42px;position:relative;overflow:hidden;border-radius:999px;background:#dce5eb}.module-scroll-dock>span i{width:100%;min-height:10px;display:block;position:absolute;left:0;top:0;border-radius:inherit;background:linear-gradient(180deg,#d4a244,#176ba6);transition:height .15s ease}
body[data-page="ocr"].workspace-page .module-canvas-scroll,body[data-page="chat"].workspace-page .module-canvas-scroll{padding:0;overflow:hidden}
body[data-page="ocr"].workspace-page .ocr-shell,body[data-page="chat"].workspace-page .chat-shell{height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
body[data-page="chat"].workspace-page .chat-panel{min-height:0}
body[data-page="settings"].workspace-page .settings-layout{min-height:100%}
body[data-page="search"].workspace-page .module-canvas-scroll>[style*="margin-top:16px"]{margin-top:12px!important}
@media(max-width:1180px){
  .module-workspace{grid-template-columns:184px minmax(0,1fr)}
  .module-rail{padding-left:9px;padding-right:9px}.module-rail>nav a{padding-left:7px;padding-right:7px}
  body[data-page="ocr"].workspace-page .module-canvas-scroll{padding:12px;overflow:auto}body[data-page="ocr"].workspace-page .ocr-shell{height:auto;min-height:980px;border:1px solid #d6e0e9;border-radius:16px}
}
@media(max-width:820px){
  body.workspace-page .shell{grid-template-rows:72px minmax(0,1fr)}body.workspace-page .topbar{height:72px}
  body.workspace-page .sidebar{overflow:auto}
  body.workspace-page .content{padding:12px}body.workspace-page .content>.page-head{min-height:60px;margin-bottom:10px}body.workspace-page .content>.page-head h1{font-size:29px}body.workspace-page .content>.page-head p{max-width:56ch;font-size:13px}
  .module-workspace{grid-template-columns:66px minmax(0,1fr);border-radius:15px}
  .module-rail{padding:8px 6px;grid-template-rows:54px minmax(0,1fr) 40px}.module-rail>header{padding:0;justify-content:center}.module-rail>header>span:last-child,.module-rail>nav a span,.module-rail>nav a em,.module-rail>footer small{display:none}.module-rail>nav a{padding:0;display:grid;grid-template-columns:1fr;place-items:center}.module-rail>nav i{width:29px;height:29px}.module-rail>footer{justify-items:center}.module-rail>footer span{font-size:0}.module-rail>footer span i{width:7px;height:7px}
  .module-canvas{grid-template-rows:52px minmax(0,1fr)}.module-workspace-bar{padding:7px 9px}.module-workspace-bar>button{width:35px;padding:0;justify-content:center;font-size:0}.module-workspace-bar>button .ui-icon{width:15px}.module-workspace-bar kbd{display:none}
  .module-canvas-scroll{padding:10px 10px 64px}.module-canvas-scroll .judgment-index-hero{margin:-10px -10px 0;padding-left:17px;padding-right:17px}
  .module-scroll-dock{right:18px;bottom:14px}
  body[data-page="chat"].workspace-page .module-canvas-scroll{padding:0}
}
@media(max-width:560px){
  body.workspace-page .content>.page-head p{display:none}body.workspace-page .content>.page-head{min-height:45px}body.workspace-page .content>.page-head h1{font-size:25px}body.workspace-page .head-actions{gap:5px}body.workspace-page .head-actions .btn{min-height:35px;padding:0 9px;font-size:13px}
  .module-workspace{grid-template-columns:58px minmax(0,1fr)}.module-rail-mark{width:34px;height:34px}.module-rail>nav i .ui-icon{width:15px;height:15px}.module-canvas-scroll{padding:8px 8px 58px}.module-workspace-bar small{display:none}.module-workspace-bar>div{grid-template-rows:1fr}.module-workspace-bar>div>span{grid-row:auto}.module-workspace-bar b{font-size:13px}.module-scroll-dock{width:38px;right:12px;bottom:10px}.module-scroll-dock>span{display:none}.module-scroll-dock button{width:29px;height:29px}
  body[data-page="chat"].workspace-page .module-canvas-scroll{padding:8px;overflow:auto}body[data-page="chat"].workspace-page .chat-shell{height:auto;min-height:650px;border:1px solid #d6e0e9;border-radius:14px}
}
@media(max-height:760px) and (min-width:821px){
  body.workspace-page .content{padding-top:12px;padding-bottom:14px}body.workspace-page .content>.page-head{min-height:50px;margin-bottom:10px}body.workspace-page .content>.page-head h1{font-size:29px}body.workspace-page .content>.page-head p{display:none}
  .module-rail{grid-template-rows:50px minmax(0,1fr) 38px}.module-rail-mark{width:33px;height:33px}.module-rail>nav{padding:6px 0}.module-rail>nav a{min-height:32px}.module-canvas{grid-template-rows:50px minmax(0,1fr)}.module-canvas-scroll{padding:11px 11px 68px}.module-canvas-scroll .judgment-index-hero{margin:-11px -11px 0}
}
@media print{body.workspace-page{overflow:visible}.module-rail,.module-workspace-bar{display:none!important}.module-workspace,.module-canvas{display:block!important;border:0!important;box-shadow:none!important}.module-canvas-scroll{padding:0!important;overflow:visible!important;background:#fff!important}}

/* Case Twin: source-first litigation workspace */
.ct-shell{margin:16px 0;border-color:#cbd9e4;background:#fff;box-shadow:0 24px 70px rgba(7,34,64,.12);overflow:hidden}
.ct-shell svg,.intelligence-context svg,.landing-case-twin svg{width:20px;height:20px;display:block}
.ct-shell-head{min-height:92px;padding:20px 22px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:15px;align-items:center;border-bottom:1px solid #dfe7ed;background:radial-gradient(circle at 84% 0,rgba(208,157,57,.1),transparent 20rem),linear-gradient(145deg,#fff,#f6f9fb)}
.ct-title-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;color:#082c52;background:linear-gradient(145deg,#f5d990,#bd8125);box-shadow:0 12px 28px rgba(182,126,31,.2)}
.ct-title-mark svg{width:27px;height:27px}.ct-panel-kicker{color:#9b6b1c;font-size:13px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.ct-shell-head h2{margin:3px 0 2px;color:#0a2c4e;font-size:26px;line-height:1}.ct-shell-head p{margin:0;color:#6c7f92;font-size:13px}
.ct-source-state{padding:9px 12px;display:flex;align-items:center;gap:9px;border:1px solid #cfe4d9;border-radius:12px;color:#176b50;background:#f2fbf6}.ct-source-state>i,.ct-live-badge i,.ct-analysis-status i{width:8px;height:8px;border-radius:50%;background:#24a878;box-shadow:0 0 0 4px rgba(36,168,120,.12)}
.ct-source-state b,.ct-source-state small{display:block}.ct-source-state b{font-size:13px}.ct-source-state small{margin-top:2px;color:#648477;font-size:13px}
.ct-tabs{padding:8px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;border-bottom:1px solid #dfe7ed;background:#f5f8fa;overflow-x:auto}
.ct-tabs button{min-width:150px;min-height:60px;padding:9px 11px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;border:1px solid transparent;border-radius:11px;color:#62778c;background:transparent;text-align:left;cursor:pointer;transition:.18s ease}
.ct-tabs button>svg{width:19px;height:19px;margin:auto}.ct-tabs button b,.ct-tabs button small{display:block}.ct-tabs button b{font-size:13px}.ct-tabs button small{margin-top:3px;color:#8998a7;font-size:13px}
.ct-tabs button:hover{color:#154c78;background:#fff}.ct-tabs button.active{color:#fff;border-color:#062849;background:linear-gradient(145deg,#0b416f,#052541);box-shadow:0 8px 20px rgba(6,39,70,.18)}.ct-tabs button.active small{color:#b9ccdd}.ct-tabs button.active>svg{color:#e9c66d}
.ct-panels>[data-ct-panel]{display:none}.ct-panels>[data-ct-panel].active{display:block;animation:ct-enter .24s ease both}@keyframes ct-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.ct-overview-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.45fr)}
.ct-graph-card{min-width:0;border-right:1px solid #dfe7ed}.ct-graph-card>header,.ct-case-pulse>header,.ct-version-list>header,.ct-gap-list>header,.ct-hearing-agenda>header{min-height:70px;padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e4eaef}
.ct-graph-card h3,.ct-case-pulse h3,.ct-version-list h3,.ct-gap-list h3,.ct-hearing-agenda h3,.ct-hearing-evidence h3,.ct-time-control h3,.ct-redteam-head h3,.ct-argument-column h3{margin:3px 0 0;color:#123451;font-family:var(--serif);font-size:21px;line-height:1.1}
.ct-coverage{display:flex;align-items:center;gap:8px}.ct-coverage>span{width:47px;height:47px;display:grid;place-items:center;position:relative;border-radius:50%;background:conic-gradient(#1b9470 var(--coverage),#e4eaef 0)}.ct-coverage>span::after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.ct-coverage b{position:relative;z-index:1;color:#164a3c;font-size:13px}.ct-coverage small{color:#728395;font-size:13px;line-height:1.3}
.ct-graph-toolbar{min-height:48px;padding:6px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dfe7ed;background:#f8fafb}.ct-graph-filters,.ct-zoom{display:flex;align-items:center;gap:4px;overflow:auto}.ct-graph-filters button,.ct-zoom button{min-height:32px;padding:0 10px;border:1px solid #d9e2e9;border-radius:8px;color:#526b82;background:#fff;font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer}.ct-graph-filters button.active{color:#fff;border-color:#0d528b;background:#0d528b}.ct-zoom button:hover{color:#0d528b;border-color:#a9bdcd}
.ct-graph-stage{height:480px;position:relative;overflow:hidden;touch-action:none;cursor:grab;background-color:#fff;background-image:linear-gradient(rgba(21,82,129,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(21,82,129,.045) 1px,transparent 1px),radial-gradient(circle at 50% 44%,rgba(19,99,158,.065),transparent 24rem);background-size:24px 24px,24px 24px,100% 100%}.ct-graph-stage.is-panning{cursor:grabbing}.ct-graph-world{width:1px;height:1px;position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}.ct-graph-world>svg{width:1px;height:1px;position:absolute;left:0;top:0;overflow:visible}.ct-graph-world line{stroke:#aebcca;stroke-width:1.25;vector-effect:non-scaling-stroke;transition:.18s}.ct-graph-world line.filtered{opacity:.08}
.ct-graph-node{width:144px;min-height:62px;padding:7px 9px;display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;position:absolute;border:1px solid #d5e0e8;border-radius:12px;color:#244963;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(9,39,68,.12);text-align:left;cursor:grab;transition:opacity .18s,box-shadow .18s,border-color .18s}.ct-graph-node:hover{z-index:3;border-color:#be8a2e;box-shadow:0 16px 38px rgba(9,39,68,.18)}.ct-graph-node>span{width:36px;height:36px;grid-row:1/3;display:grid;place-items:center;border-radius:10px;color:#12669f;background:#eaf3f9}.ct-graph-node>span svg{width:18px;height:18px}.ct-graph-node b{align-self:end;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ct-graph-node small{align-self:start;color:#7a8c9e;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ct-graph-node.root{width:162px;min-height:70px;color:#fff;border-color:#06294c;background:linear-gradient(145deg,#0c4778,#052440);box-shadow:0 14px 34px rgba(5,39,72,.25)}.ct-graph-node.root>span{color:#092d50;background:linear-gradient(145deg,#f2d587,#c48b2b)}.ct-graph-node.root small{color:#b9cbda}.ct-graph-node.person>span{color:#14836a;background:#e8f7f2}.ct-graph-node.law>span{color:#8d651b;background:#fff4d8}.ct-graph-node.judgment>span{color:#6657a0;background:#f0eef9}.ct-graph-node.filtered{opacity:.08;pointer-events:none}
.ct-node-popup{width:min(320px,calc(100% - 28px));padding:16px;display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:11px;position:absolute;z-index:8;right:14px;top:14px;border:1px solid #ccd9e3;border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 22px 58px rgba(7,34,62,.22);backdrop-filter:blur(14px)}.ct-node-popup.hidden{display:none}.ct-node-popup>button{position:absolute;right:9px;top:7px;border:0;color:#708398;background:transparent;font-size:20px;cursor:pointer}.ct-node-popup>span{width:42px;height:42px;grid-row:1/4;display:grid;place-items:center;border-radius:11px;color:#0c5c95;background:#eaf3f9}.ct-node-popup small{color:#9a6a1c;font-size:13px;font-weight:900;letter-spacing:.12em}.ct-node-popup b{padding-right:18px;color:#173956;font-family:var(--serif);font-size:17px}.ct-node-popup p{margin:2px 0 0;color:#708196;font-size:13px}.ct-node-popup a{grid-column:1/-1;margin-top:12px}.ct-graph-hint{padding:6px 9px;position:absolute;left:12px;bottom:11px;border:1px solid #dbe4eb;border-radius:8px;color:#78899a;background:rgba(255,255,255,.9);font-size:13px;font-weight:750;pointer-events:none}
.ct-case-pulse{min-width:0;background:#fbfcfd}.ct-pulse-metrics{padding:13px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.ct-pulse-metrics article{min-width:0;padding:11px;border:1px solid #dde5eb;border-radius:11px;background:#fff}.ct-pulse-metrics small,.ct-pulse-metrics b,.ct-pulse-metrics span{display:block}.ct-pulse-metrics small{color:#7e8d9c;font-size:13px;text-transform:uppercase}.ct-pulse-metrics b{margin:3px 0;color:#103b61;font-family:var(--serif);font-size:22px}.ct-pulse-metrics span{color:#78899a;font-size:13px;line-height:1.35}.ct-attention-list{padding:4px 13px 16px;display:grid;gap:7px}.ct-attention-list>a,.ct-ready{min-height:56px;padding:9px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #e1e7ec;border-radius:11px;color:#294860;background:#fff}.ct-attention-list>a:hover{border-color:#c89a46;box-shadow:0 8px 20px rgba(10,38,65,.08)}.ct-attention-list i,.ct-ready i{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#8b6116;background:#fff2d4;font-size:13px;font-style:normal;font-weight:900}.ct-attention-list b,.ct-attention-list small{display:block}.ct-attention-list b{font-size:13px}.ct-attention-list small{margin-top:3px;color:#7b8d9e;font-size:13px}.ct-ready{grid-template-columns:28px 1fr;color:#17694f;border-color:#cee4d9;background:#f3fbf7}.ct-ready i{color:#17694f;background:#dff4e9}.ct-ready b{font-size:13px}
.ct-empty{min-height:210px;padding:30px;display:grid;place-items:center;align-content:center;gap:8px;color:#718397;text-align:center;background:radial-gradient(circle,rgba(17,95,151,.05),transparent 15rem)}.ct-empty>span{width:38px;height:38px;display:grid;place-items:center;border:1px dashed #a9bac8;border-radius:50%;color:#9b6c1c;font-size:20px}.ct-empty b{color:#173a58;font-family:var(--serif);font-size:18px}.ct-empty p{max-width:54ch;margin:0;font-size:13px;line-height:1.55}.ct-empty .btn{margin-top:4px}
.ct-evidence-tools{padding:13px 15px;display:grid;grid-template-columns:minmax(260px,1fr) 180px auto;gap:10px;align-items:center;border-bottom:1px solid #e0e7ed;background:#f8fafb}.ct-evidence-tools label{height:40px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid #d5e0e8;border-radius:10px;background:#fff}.ct-evidence-tools label svg{width:16px;color:#5e778e}.ct-evidence-tools input{width:100%;border:0;outline:0;background:transparent;font-size:13px}.ct-evidence-tools select{height:40px;padding:0 10px;border:1px solid #d5e0e8;border-radius:10px;color:#435f78;background:#fff;font-size:13px}.ct-evidence-tools>span{color:#718398;font-size:13px;font-weight:800}.ct-table-wrap{max-width:100%;overflow:auto}.ct-table{width:100%;min-width:900px;border-collapse:collapse}.ct-table th{padding:11px 13px;color:#6b7f92;border-bottom:1px solid #dbe4eb;background:#f3f6f8;font-size:13px;letter-spacing:.07em;text-align:left;text-transform:uppercase}.ct-table td{padding:13px;border-bottom:1px solid #e5ebef;color:#3b566f;font-size:13px}.ct-source-title{display:flex;align-items:center;gap:9px;color:#244760}.ct-source-title>span:first-child{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#0d639f;background:#eaf3f9}.ct-source-title svg{width:17px}.ct-source-title b,.ct-source-title small{display:block}.ct-source-title b{font-size:13px}.ct-source-title small{margin-top:3px;color:#8090a0;font-size:13px}.ct-confidence,.ct-integrity{padding:5px 8px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;color:#687b8e;background:#edf2f5;font-size:13px;font-weight:850;white-space:nowrap}.ct-confidence.good,.ct-integrity.verified{color:#176b51;background:#e8f7ef}.ct-confidence.warn{color:#8c6217;background:#fff4d9}.ct-integrity i{width:6px;height:6px;border-radius:50%;background:#8a9cac}.ct-integrity.verified i{background:#1a9b6f}.ct-evidence-foot{min-height:50px;padding:10px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#6a7d91;background:#fbfcfd;font-size:13px}.ct-evidence-foot span{display:flex;align-items:center;gap:7px}.ct-evidence-foot svg{width:15px;color:#0d639f}.ct-evidence-foot a{color:#0d639f;font-weight:850}
.ct-time-grid{display:grid;grid-template-columns:340px minmax(0,1fr)}.ct-time-control{padding:25px;border-right:1px solid #dfe7ed;color:#d9e5ef;background:radial-gradient(circle at 10% 0,rgba(203,151,50,.25),transparent 16rem),linear-gradient(155deg,#06213f,#0a416f)}.ct-time-control h3{color:#fff;font-size:25px}.ct-time-control>p{margin:9px 0 20px;color:#aec3d5;font-size:13px;line-height:1.65}.ct-time-control label{display:grid;gap:6px}.ct-time-control label span{color:#d6e2ed;font-size:13px;font-weight:800}.ct-time-control input{height:42px;padding:0 11px;border:1px solid rgba(255,255,255,.22);border-radius:10px;color:#fff;color-scheme:dark;background:rgba(255,255,255,.09);font-size:13px}.ct-time-result{margin:13px 0;padding:14px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.07)}.ct-time-result small,.ct-time-result b,.ct-time-result span{display:block}.ct-time-result small{color:#9fb5c8;font-size:13px;text-transform:uppercase}.ct-time-result b{margin:4px 0;color:#fff;font-family:var(--serif);font-size:20px}.ct-time-result span{color:#c5d4e1;font-size:13px}.ct-limitation{padding:15px;border:1px solid rgba(229,190,102,.35);border-radius:12px;background:rgba(200,146,43,.12)}.ct-limitation small,.ct-limitation b{display:block}.ct-limitation small{color:#efcc79;font-size:13px;font-weight:900;text-transform:uppercase}.ct-limitation b{margin:5px 0;color:#fff;font-size:13px}.ct-limitation p{margin:0 0 12px;color:#b9cad8;font-size:13px;line-height:1.55}.ct-limitation .btn{width:100%;color:#092b4b;border-color:#e5bc61;background:linear-gradient(145deg,#f2d488,#c68b28)}
.ct-version-list{min-width:0;background:#fff}.ct-live-badge,.ct-analysis-status{padding:6px 9px;display:flex;align-items:center;gap:7px;border:1px solid #cee3d8;border-radius:999px;color:#176b50;background:#f2fbf6;font-size:13px;font-weight:850;white-space:nowrap}.ct-version-list>div{max-height:470px;padding:12px 18px 20px;overflow:auto}.ct-version-list article{min-height:66px;padding:10px 0;display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:13px;align-items:center;border-bottom:1px solid #e6ebef}.ct-version-list article[hidden]{display:none}.ct-version-list article>span{color:#9a6b1d;font-size:13px;font-weight:850}.ct-version-list article b{font-size:13px}.ct-version-list article p{margin:3px 0 0;color:#77899b;font-size:13px;line-height:1.5}.ct-version-list article a{color:#0d639f;font-size:13px;font-weight:850}
.ct-redteam-head{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dfe7ed;background:linear-gradient(135deg,#fff,#f7f9fb)}.ct-redteam-head h3{font-size:26px}.ct-redteam-head p{max-width:720px;margin:7px 0 0;color:#708296;font-size:13px;line-height:1.6}.ct-redteam-head>div:last-child{display:flex;align-items:flex-end;flex-direction:column;gap:9px}.ct-argument-grid{display:grid;grid-template-columns:1fr 1fr}.ct-argument-column{min-width:0}.ct-argument-column:first-child{border-right:1px solid #dfe7ed}.ct-argument-column>header{min-height:74px;padding:14px 18px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #e3e9ee}.ct-argument-column>header>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;font-size:18px;font-weight:400}.ct-argument-column.support>header>span{color:#176a50;background:#e4f5ec}.ct-argument-column.oppose>header>span{color:#9e4747;background:#fbeaea}.ct-argument-column header small{color:#8292a1;font-size:13px;text-transform:uppercase}.ct-argument-column>div{padding:8px 17px 17px}.ct-argument-column article{padding:12px 0;display:grid;grid-template-columns:29px minmax(0,1fr);gap:9px;border-bottom:1px solid #e7ecf0}.ct-argument-column article>em{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;color:#6f8295;background:#f0f4f6;font-size:13px;font-style:normal;font-weight:900}.ct-argument-column article b{font-size:13px}.ct-argument-column article p{margin:5px 0;color:#75879a;font-size:13px;line-height:1.5}.ct-argument-column article a,.ct-no-source{display:flex;align-items:center;gap:5px;color:#0e639e;font-size:13px;font-weight:800}.ct-argument-column article a svg{width:13px}.ct-no-source{color:#9a6d21}.ct-gap-list{border-top:1px solid #dfe7ed;background:#fbfcfd}.ct-gap-list>header>span{color:#8f641d;font-size:13px;font-weight:850}.ct-gap-list>article{min-height:66px;margin:0 18px;padding:10px 0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #e4e9ed}.ct-gap-list>article>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#9b4b4b;background:#fbeaea;font-weight:900}.ct-gap-list article b{font-size:13px}.ct-gap-list article p{margin:3px 0 0;color:#76889a;font-size:13px}.ct-gap-list article button{min-height:32px;padding:0 9px;border:1px solid #d6e0e7;border-radius:8px;color:#405f78;background:#fff;font-size:13px;font-weight:800;cursor:pointer}
.ct-hearing-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px}.ct-hearing-agenda{min-width:0;border-right:1px solid #dfe7ed}.ct-agenda-list{max-height:330px;padding:9px 18px;overflow:auto}.ct-agenda-list article{padding:12px 0;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;border-bottom:1px solid #e5eaee}.ct-agenda-list article>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#0d639f;background:#eaf3f9;font-size:13px;font-weight:900}.ct-agenda-list small,.ct-agenda-list b,.ct-agenda-list p{display:block}.ct-agenda-list small{color:#9a6b1c;font-size:13px;font-weight:850}.ct-agenda-list b{margin-top:3px;font-size:13px}.ct-agenda-list p{margin:4px 0 0;color:#738599;font-size:13px}.ct-hearing-notes{padding:0 18px 18px;display:grid;gap:6px}.ct-hearing-notes>span{color:#586e84;font-size:13px;font-weight:850}.ct-hearing-notes textarea{min-height:130px;padding:12px;border:1px solid #d5e0e8;border-radius:11px;color:#274760;background:#fbfcfd;font-size:13px;line-height:1.6;resize:vertical;outline:0}.ct-hearing-notes textarea:focus{border-color:#1b73ad;box-shadow:0 0 0 4px rgba(27,115,173,.09)}.ct-hearing-evidence{padding:20px;background:#f8fafb}.ct-hearing-evidence>header{margin-bottom:10px}.ct-hearing-evidence>div{max-height:395px;display:grid;gap:6px;overflow:auto}.ct-hearing-evidence label{min-height:57px;padding:8px;display:grid;grid-template-columns:auto 32px minmax(0,1fr) auto;gap:7px;align-items:center;border:1px solid #dde5eb;border-radius:10px;background:#fff}.ct-hearing-evidence label>span:nth-of-type(1){width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:#0d639f;background:#eaf3f9}.ct-hearing-evidence label svg{width:15px}.ct-hearing-evidence label b,.ct-hearing-evidence label small{display:block}.ct-hearing-evidence label b{font-size:13px}.ct-hearing-evidence label small{margin-top:2px;color:#8191a1;font-size:13px}.ct-hearing-evidence label>a{color:#0d639f;font-size:14px}.ct-hearing-source-rule{margin-top:12px;padding:11px;display:flex;gap:9px;border:1px solid #ead8ad;border-radius:11px;color:#835d1b;background:#fff8e8}.ct-hearing-source-rule>svg{width:18px;flex:0 0 auto}.ct-hearing-source-rule p{margin:0}.ct-hearing-source-rule b,.ct-hearing-source-rule span{display:block}.ct-hearing-source-rule b{font-size:13px}.ct-hearing-source-rule span{margin-top:3px;font-size:13px;line-height:1.5}
.intelligence-context{margin:15px 0;border:1px solid #cbd9e4;border-radius:16px;background:#fff;box-shadow:0 14px 38px rgba(9,37,65,.08);overflow:hidden}.intelligence-context>header{min-height:58px;padding:11px 14px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #e2e9ee;background:linear-gradient(145deg,#fff,#f7f9fb)}.intelligence-context>header>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#0d4774;background:linear-gradient(145deg,#f3d88f,#c38a2a)}.intelligence-context>header>span svg{width:19px}.intelligence-context header small{color:#98691c;font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.intelligence-context h2{margin:1px 0 0;color:#133652;font-size:18px}.intelligence-context header a{color:#0d639f;font-size:13px;font-weight:850}.intelligence-context>div{display:grid;grid-template-columns:repeat(4,1fr)}.intelligence-context>div>a{min-height:76px;padding:12px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;border-right:1px solid #e3e9ed;color:#294a65}.intelligence-context>div>a:last-child{border-right:0}.intelligence-context>div>a:hover{background:#f5f9fc}.intelligence-context>div>a>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#0d639f;background:#eaf3f9}.intelligence-context>div>a>span svg{width:17px}.intelligence-context>div b,.intelligence-context>div small{display:block}.intelligence-context>div b{font-size:13px}.intelligence-context>div small{margin-top:3px;color:#7c8e9f;font-size:13px;line-height:1.4}.intelligence-context>div em{display:none;color:#0d639f;font-size:13px;font-style:normal;font-weight:800}
.ai-mode-context{margin:0 0 18px;padding:13px 14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #d6e1e9;border-radius:13px;background:radial-gradient(circle at 90% 0,rgba(199,145,43,.1),transparent 13rem),#f7fafc}.ai-mode-context>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#0b4e7f;background:linear-gradient(145deg,#f2d58a,#c48a2a)}.ai-mode-context svg{width:21px;height:21px}.ai-mode-context small,.ai-mode-context b,.ai-mode-context p{display:block}.ai-mode-context small{color:#94671d;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.ai-mode-context b{margin-top:2px;color:#143853;font-size:13px}.ai-mode-context p{margin:3px 0 0;color:#74869a;font-size:13px;line-height:1.5}.ai-mode-context em{padding:6px 9px;border-radius:999px;color:#176a50;background:#e7f6ee;font-size:13px;font-style:normal;font-weight:850;white-space:nowrap}
.landing-case-twin{scroll-margin-top:86px;background:radial-gradient(circle at 85% 5%,rgba(31,116,180,.09),transparent 25rem),linear-gradient(180deg,#f7f9fb,#fff)}.landing-twin-stage{display:grid;grid-template-columns:210px minmax(0,1fr);border:1px solid #cfdbe4;border-radius:23px;background:#fff;box-shadow:0 32px 86px rgba(8,36,65,.15);overflow:hidden}.landing-twin-stage>aside{padding:28px 17px;display:grid;align-content:center;gap:7px;background:radial-gradient(circle at 0 0,rgba(208,158,58,.22),transparent 18rem),linear-gradient(160deg,#061b35,#083a64)}.landing-twin-stage>aside span{padding:12px 13px;display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:10px;color:#94abc1;font-size:13px;font-weight:800}.landing-twin-stage>aside span>b{color:#d5a444;font-size:13px;letter-spacing:.08em}.landing-twin-stage>aside span.active{color:#fff;border-color:rgba(239,205,127,.3);background:rgba(255,255,255,.08);box-shadow:inset 3px 0 #e6bd61}.landing-twin-stage>main{min-width:0}.landing-twin-stage main>header{min-height:72px;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #dfe7ed}.landing-twin-stage main>header small,.landing-twin-stage main>header b{display:block}.landing-twin-stage main>header small{color:#9a6a1c;font-size:13px;font-weight:900;letter-spacing:.11em}.landing-twin-stage main>header b{margin-top:3px;color:#123551;font-family:var(--serif);font-size:21px}.landing-twin-stage main>header em{padding:7px 10px;display:flex;align-items:center;gap:7px;border-radius:999px;color:#176a50;background:#ebf8f1;font-size:13px;font-style:normal;font-weight:850}.landing-twin-stage main>header em i{width:7px;height:7px;border-radius:50%;background:#22a376}.landing-twin-visual{height:360px;position:relative;overflow:hidden;background-color:#fff;background-image:linear-gradient(rgba(20,84,132,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(20,84,132,.04) 1px,transparent 1px);background-size:28px 28px}.landing-twin-visual>svg{width:100%;height:100%;position:absolute}.landing-twin-visual>svg path{fill:none;stroke:#b4c1cd;stroke-width:1.2;stroke-dasharray:5 4}.landing-twin-visual>svg path.accent{stroke:#c28a2b}.landing-twin-visual>span{width:145px;min-height:64px;padding:9px 10px;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:0 8px;align-items:center;position:absolute;border:1px solid #d6e0e8;border-radius:12px;color:#294a64;background:#fff;box-shadow:0 12px 30px rgba(10,39,66,.13)}.landing-twin-visual>span>svg{width:20px;height:20px;grid-row:1/3;margin:auto;color:#0f679f}.landing-twin-visual>span b{align-self:end;font-size:13px}.landing-twin-visual>span small{align-self:start;color:#7d8e9e;font-size:13px}.landing-twin-visual>span.center{left:50%;top:50%;color:#fff;border-color:#062946;background:linear-gradient(145deg,#0d4b7e,#05233f);transform:translate(-50%,-50%)}.landing-twin-visual>span.center>svg{color:#e7c166}.landing-twin-visual .n1{left:9%;top:12%}.landing-twin-visual .n2{left:9%;bottom:12%}.landing-twin-visual .n3{right:8%;top:11%}.landing-twin-visual .n4{right:6%;bottom:13%}.landing-twin-stage main>footer{min-height:52px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #dfe7ed;color:#63778c;background:#f8fafb;font-size:13px}.landing-twin-stage main>footer span{display:flex;align-items:center;gap:7px}.landing-twin-stage main>footer svg{width:16px;color:#0e639e}.landing-twin-stage main>footer a{color:#0e639e;font-weight:900}.landing-outcomes{margin-top:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.landing-outcomes article{padding:20px;border:1px solid #dbe3e9;border-radius:16px;background:#fff}.landing-outcomes article>b{color:#b27b20;font-size:13px;letter-spacing:.12em}.landing-outcomes h3{margin:8px 0 5px;color:#123652;font-size:19px}.landing-outcomes p{margin:0;color:#718397;font-size:13px;line-height:1.6}
@media(max-width:1180px){
  .ct-overview-grid{grid-template-columns:1fr}.ct-graph-card{border-right:0;border-bottom:1px solid #dfe7ed}.ct-pulse-metrics{grid-template-columns:repeat(3,1fr)}
  .ct-time-grid{grid-template-columns:300px minmax(0,1fr)}.ct-hearing-grid{grid-template-columns:minmax(0,1fr) 290px}.intelligence-context>div{grid-template-columns:1fr 1fr}.intelligence-context>div>a:nth-child(2){border-right:0}.intelligence-context>div>a:nth-child(-n+2){border-bottom:1px solid #e3e9ed}
}
@media(max-width:820px){
  .ct-shell-head{grid-template-columns:46px minmax(0,1fr)}.ct-title-mark{width:46px;height:46px}.ct-source-state{grid-column:1/-1}.ct-tabs{grid-template-columns:repeat(5,160px)}.ct-graph-stage{height:430px}
  .ct-evidence-tools{grid-template-columns:1fr 160px}.ct-evidence-tools>span{grid-column:1/-1}.ct-time-grid,.ct-hearing-grid{grid-template-columns:1fr}.ct-time-control,.ct-hearing-agenda{border-right:0;border-bottom:1px solid #dfe7ed}.ct-version-list>div{max-height:none}.ct-argument-grid{grid-template-columns:1fr}.ct-argument-column:first-child{border-right:0;border-bottom:1px solid #dfe7ed}.ct-redteam-head{align-items:flex-start;flex-direction:column}.ct-redteam-head>div:last-child{width:100%;align-items:stretch}.ct-gap-list>article{grid-template-columns:32px minmax(0,1fr)}.ct-gap-list article button{grid-column:2}.ct-hearing-evidence>div{max-height:none}
  .landing-twin-stage{grid-template-columns:1fr}.landing-twin-stage>aside{padding:10px;display:flex;overflow:auto}.landing-twin-stage>aside span{min-width:max-content}.landing-twin-visual{height:330px}.landing-outcomes{grid-template-columns:1fr}
}
@media(max-width:560px){
  .landing-nav{padding-left:10px;padding-right:10px;overflow:hidden}.landing-nav .brand{min-width:0}.landing-links{margin-left:auto;gap:6px}.landing-links .btn:not(.gold){display:none}.landing-links .btn.gold{min-height:42px;padding:0 10px;font-size:13px;white-space:nowrap}
  .ct-shell{margin:10px 0;border-radius:14px}.ct-shell-head{padding:15px}.ct-shell-head h2{font-size:22px}.ct-shell-head p{font-size:13px}.ct-tabs{grid-template-columns:repeat(5,145px);padding:6px}.ct-tabs button{min-width:145px}.ct-graph-card>header,.ct-case-pulse>header,.ct-version-list>header,.ct-gap-list>header,.ct-hearing-agenda>header{padding:14px}.ct-coverage small{display:none}.ct-graph-toolbar{align-items:flex-start;flex-direction:column}.ct-graph-stage{height:390px}.ct-graph-node{width:124px;min-height:56px;grid-template-columns:31px minmax(0,1fr)}.ct-graph-node>span{width:31px;height:31px}.ct-graph-node.root{width:138px}.ct-pulse-metrics{grid-template-columns:1fr 1fr}.ct-evidence-tools{grid-template-columns:1fr;padding:10px}.ct-evidence-tools select{width:100%}.ct-evidence-foot{align-items:flex-start;flex-direction:column}.ct-time-control{padding:20px}.ct-redteam-head{padding:18px}.ct-redteam-head h3{font-size:23px}.ct-argument-column>div{padding-left:13px;padding-right:13px}.ct-gap-list>article{margin:0 13px}.ct-hearing-agenda>header{align-items:flex-start;flex-direction:column}.ct-hearing-agenda>header .btn{width:100%}.ct-hearing-evidence{padding:15px}
  .intelligence-context>header{grid-template-columns:36px minmax(0,1fr)}.intelligence-context header a{grid-column:1/-1}.intelligence-context>div{grid-template-columns:1fr}.intelligence-context>div>a{border-right:0;border-bottom:1px solid #e3e9ed}.intelligence-context>div>a:last-child{border-bottom:0}
  .ai-mode-context{grid-template-columns:38px minmax(0,1fr)}.ai-mode-context>span{width:38px;height:38px}.ai-mode-context>em{grid-column:1/-1;justify-self:start}
  .landing-twin-stage main>header{align-items:flex-start;flex-direction:column}.landing-twin-visual{height:430px}.landing-twin-visual>span{width:120px}.landing-twin-visual>span.center{top:50%}.landing-twin-visual .n1{left:4%;top:7%}.landing-twin-visual .n2{left:4%;bottom:7%}.landing-twin-visual .n3{right:4%;top:25%}.landing-twin-visual .n4{right:4%;bottom:22%}.landing-twin-stage main>footer{align-items:flex-start;flex-direction:column}.landing-outcomes article{padding:17px}
}
@media print{.ct-tabs,.ct-graph-toolbar,.ct-graph-hint,.ct-node-popup,.ct-redteam-head .btn,.ct-hearing-agenda .btn{display:none!important}.ct-panels>[data-ct-panel]{display:block!important;margin-top:18px;break-inside:avoid}.ct-graph-stage{height:420px}.ct-shell{box-shadow:none}.intelligence-context{break-inside:avoid;box-shadow:none}}

/* Guided, readable workspace */
.guidance-trigger{min-height:40px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid #d3dee7;border-radius:12px;color:#31516d;background:#fff;font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer;transition:.18s ease}
.guidance-trigger:hover,.guidance-trigger[aria-expanded="true"]{color:#0b4f82;border-color:#afc4d4;background:#f2f7fa;box-shadow:0 8px 22px rgba(10,42,71,.09)}
.guidance-trigger i{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;color:#765111;background:linear-gradient(145deg,#f5dd9c,#d2a143);font-size:13px;font-style:normal;font-weight:950}
.guidance-scrim{position:fixed;z-index:146;inset:0;display:block;border:0;background:rgba(4,22,43,.38);opacity:0;visibility:hidden;backdrop-filter:blur(3px);cursor:default;transition:opacity .22s ease,visibility .22s ease}.guidance-scrim.show{opacity:1;visibility:visible}
.guidance-drawer{width:min(410px,calc(100vw - 24px));position:fixed;z-index:147;right:12px;top:12px;bottom:12px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;border:1px solid rgba(255,255,255,.55);border-radius:22px;color:#294760;background:#fff;box-shadow:0 34px 100px rgba(2,20,40,.3);overflow:hidden;opacity:0;visibility:hidden;transform:translateX(calc(100% + 28px));transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s ease,visibility .2s ease}
.guidance-drawer.show{opacity:1;visibility:visible;transform:none}.guidance-drawer>header{min-height:82px;padding:16px 18px;display:grid;grid-template-columns:46px minmax(0,1fr) 36px;gap:12px;align-items:center;color:#fff;background:radial-gradient(circle at 12% 0,rgba(222,174,71,.3),transparent 14rem),linear-gradient(145deg,#061e3b,#0a4776)}
.guidance-drawer>header>span{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;color:#0b2a49;background:linear-gradient(145deg,#f5dd9c,#c88d2b);box-shadow:0 10px 26px rgba(190,131,35,.25);font-family:var(--serif);font-size:25px}.guidance-drawer header small{color:#e7c875;font-size:13px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.guidance-drawer h2{margin:2px 0 0;color:#fff;font-size:25px}.guidance-drawer>header button{width:36px;height:36px;border:1px solid rgba(255,255,255,.18);border-radius:10px;color:#fff;background:rgba(255,255,255,.08);font-size:21px;cursor:pointer}.guidance-drawer>header button:hover{background:rgba(255,255,255,.16)}
.guidance-intro{padding:17px 18px;border-bottom:1px solid #e0e7ed;background:linear-gradient(145deg,#fff,#f7f9fb)}.guidance-intro b{color:#173956;font-family:var(--serif);font-size:19px}.guidance-intro p{margin:4px 0 0;color:#6e8195;font-size:13px;line-height:1.55}
.guidance-list{padding:8px 18px 18px;overflow-y:auto;overscroll-behavior:contain}.guidance-list article{padding:16px 0;display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;border-bottom:1px solid #e4eaef}.guidance-list article:last-child{border-bottom:0}.guidance-list em{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#0d5d96;background:#e9f3fa;font-size:13px;font-style:normal;font-weight:900}.guidance-list b{color:#173a57;font-size:13px}.guidance-list p{margin:5px 0 9px;color:#6d8093;font-size:13px;line-height:1.55}.guidance-list a{color:#0d639f;font-size:13px;font-weight:900}.guidance-list a:hover{text-decoration:underline}
.guidance-drawer>footer{min-height:58px;padding:10px 17px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dfe7ed;color:#718397;background:#f6f8fa;font-size:13px}.guidance-drawer>footer span{display:flex;align-items:center;gap:4px}.guidance-drawer kbd{padding:3px 5px;border:1px solid #ccd7df;border-radius:5px;color:#4e667d;background:#fff;font:800 13px/1.2 var(--sans)}
.smart-tooltip{max-width:290px;padding:9px 11px;position:fixed;z-index:190;border:1px solid rgba(255,255,255,.14);border-radius:9px;color:#fff;background:#061f3b;box-shadow:0 12px 34px rgba(3,23,43,.25);font-size:13px;line-height:1.45;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease,visibility .12s ease}.smart-tooltip.show{opacity:1;visibility:visible;transform:none}.smart-tooltip::after{content:"";width:8px;height:8px;position:absolute;left:50%;bottom:-4px;background:#061f3b;transform:translateX(-50%) rotate(45deg)}.smart-tooltip.below::after{top:-4px;bottom:auto}
label>span.with-field-help{display:flex!important;align-items:center;gap:6px}.field-help{width:18px;height:18px;display:inline-grid;place-items:center;border:1px solid #c9d6e0;border-radius:50%;color:#0d639f;background:#fff;font-size:13px;font-weight:900;cursor:help}.field-help:hover,.field-help:focus-visible{color:#fff;border-color:#0d639f;background:#0d639f;outline:none}
@media(min-width:1181px){.module-workspace{grid-template-columns:224px minmax(0,1fr)}}
.module-rail{padding:16px 13px 13px;grid-template-rows:70px minmax(0,1fr) 56px}.module-rail>header{padding:0 8px;gap:11px}.module-rail-mark{width:42px;height:42px}.module-rail>header b{font-size:18px}.module-rail>header small{font-size:13px}.module-rail>nav{padding:12px 0;gap:5px;grid-auto-rows:minmax(46px,1fr)}.module-rail>nav a{padding:0 10px;grid-template-columns:27px minmax(0,1fr) auto;gap:9px;font-size:13px}.module-rail>nav i{width:27px;height:27px}.module-rail>nav i .ui-icon{width:18px;height:18px}.module-rail>nav em{font-size:13px}.module-rail>footer span{font-size:13px}.module-rail>footer small{font-size:13px}
.module-canvas{grid-template-rows:64px minmax(0,1fr)}.module-workspace-bar{padding:10px 15px}.module-workspace-bar>div{grid-template-columns:38px minmax(0,1fr);column-gap:11px}.module-workspace-bar>div>span{width:38px;height:38px}.module-workspace-bar>div>span .ui-icon{width:18px}.module-workspace-bar b{font-size:13px}.module-workspace-bar small{font-size:13px}.module-workspace-bar>button{min-height:40px;padding:0 12px;font-size:13px}.module-workspace-bar kbd{font-size:13px}
.ct-panel-kicker{font-size:13px}.ct-shell-head{min-height:104px;padding:22px 24px}.ct-shell-head h2{font-size:29px}.ct-shell-head p{margin-top:4px;font-size:13px}.ct-source-state b{font-size:13px}.ct-source-state small{font-size:13px}.ct-tabs button{min-height:68px;padding:10px 12px}.ct-tabs button b{font-size:13px}.ct-tabs button small{font-size:13px}.ct-graph-card h3,.ct-case-pulse h3,.ct-version-list h3,.ct-gap-list h3,.ct-hearing-agenda h3,.ct-hearing-evidence h3,.ct-time-control h3,.ct-redteam-head h3,.ct-argument-column h3{font-size:23px}.ct-coverage b{font-size:13px}.ct-coverage small{font-size:13px}.ct-graph-filters button,.ct-zoom button{min-height:36px;font-size:13px}.ct-graph-node b{font-size:13px}.ct-graph-node small{font-size:13px}.ct-graph-hint{font-size:13px}.ct-pulse-metrics small{font-size:13px}.ct-pulse-metrics span{font-size:13px}.ct-attention-list b,.ct-ready b{font-size:13px}.ct-attention-list small{font-size:13px}.ct-empty p{font-size:13px}.ct-evidence-tools input{font-size:13px}.ct-evidence-tools select{font-size:13px}.ct-evidence-tools>span{font-size:13px}.ct-table th{font-size:13px}.ct-table td{font-size:13px}.ct-source-title b{font-size:13px}.ct-source-title small{font-size:13px}.ct-confidence,.ct-integrity{font-size:13px}.ct-evidence-foot{font-size:13px}.ct-time-control>p{font-size:13px}.ct-time-control label span{font-size:13px}.ct-time-control input{font-size:13px}.ct-time-result small{font-size:13px}.ct-time-result span{font-size:13px}.ct-limitation small{font-size:13px}.ct-limitation b{font-size:13px}.ct-limitation p{font-size:13px}.ct-live-badge,.ct-analysis-status{font-size:13px}.ct-version-list article>span{font-size:13px}.ct-version-list article b{font-size:13px}.ct-version-list article p,.ct-version-list article a{font-size:13px}.ct-redteam-head p{font-size:13px}.ct-argument-column header small{font-size:13px}.ct-argument-column article>em{font-size:13px}.ct-argument-column article b{font-size:13px}.ct-argument-column article p{font-size:13px}.ct-argument-column article a,.ct-no-source{font-size:13px}.ct-gap-list>header>span{font-size:13px}.ct-gap-list article b{font-size:13px}.ct-gap-list article p,.ct-gap-list article button{font-size:13px}.ct-agenda-list article>span{font-size:13px}.ct-agenda-list small{font-size:13px}.ct-agenda-list b{font-size:13px}.ct-agenda-list p{font-size:13px}.ct-hearing-notes>span{font-size:13px}.ct-hearing-notes textarea{font-size:13px}.ct-hearing-evidence label b{font-size:13px}.ct-hearing-evidence label small{font-size:13px}.ct-hearing-source-rule b{font-size:13px}.ct-hearing-source-rule span{font-size:13px}.intelligence-context header small{font-size:13px}.intelligence-context h2{font-size:21px}.intelligence-context header a{font-size:13px}.intelligence-context>div b{font-size:13px}.intelligence-context>div small{font-size:13px}.ai-mode-context small{font-size:13px}.ai-mode-context b{font-size:13px}.ai-mode-context p,.ai-mode-context em{font-size:13px}
@media(max-width:1180px) and (min-width:821px){.module-rail>nav a{font-size:13px}.module-rail>nav em{display:none}.module-workspace{grid-template-columns:196px minmax(0,1fr)}}
@media(max-width:820px){.guidance-trigger{width:40px;padding:0;justify-content:center}.guidance-trigger>span{display:none}.guidance-trigger i{background:transparent}.module-rail{padding:8px 6px;grid-template-rows:54px minmax(0,1fr) 40px}.module-rail>nav{padding:8px 0;gap:3px;grid-auto-rows:minmax(38px,1fr)}.module-canvas{grid-template-rows:56px minmax(0,1fr)}.module-workspace-bar b{font-size:13px}.module-workspace-bar small{font-size:13px}.module-workspace-bar>button{width:38px;min-width:38px;min-height:36px;padding:0;display:grid;place-items:center;font-size:0}.module-workspace-bar>button span,.module-workspace-bar>button kbd{display:none}.module-workspace-bar>button .ui-icon{width:17px;height:17px}.ct-tabs button b{font-size:13px}.ct-tabs button small{font-size:13px}}
@media(max-width:560px){.guidance-drawer{width:calc(100vw - 12px);right:6px;top:6px;bottom:6px;border-radius:18px}.guidance-drawer>header{min-height:72px;padding:13px 14px}.guidance-intro{padding:14px}.guidance-list{padding-left:14px;padding-right:14px}.guidance-list article{padding:14px 0}.guidance-drawer>footer{align-items:flex-start;flex-direction:column}.module-workspace-bar{padding:8px}.module-workspace-bar>div{grid-template-columns:36px minmax(0,1fr);column-gap:8px}.module-workspace-bar>div>span{width:36px;height:36px}.module-workspace-bar>button{width:38px;min-width:38px;padding:0;display:grid;place-items:center;font-size:0}.module-workspace-bar>button span,.module-workspace-bar>button kbd{display:none}.module-workspace-bar>button .ui-icon{width:17px;height:17px}.ct-panel-kicker{font-size:13px}.ct-shell-head p{font-size:13px}.ct-graph-stage{height:430px}}
@media print{.guidance-trigger,.guidance-scrim,.guidance-drawer,.smart-tooltip,.field-help{display:none!important}}

/* The document owns vertical scrolling on every application page. */
body.workspace-page,
body[data-page="sejm"]{overflow-x:hidden;overflow-y:auto;background:#edf2f6}
body.workspace-page .portal,
body[data-page="sejm"] .portal{height:auto;min-height:100vh;overflow:visible}
body.workspace-page .sidebar,
body[data-page="sejm"] .sidebar{position:sticky;top:0;align-self:start;height:100vh;overflow:hidden}
body.workspace-page .shell,
body[data-page="sejm"] .shell{height:auto;min-height:100vh;display:block;overflow:visible}
body.workspace-page .topbar,
body[data-page="sejm"] .topbar{height:80px;position:sticky;z-index:80;top:0}
body.workspace-page .content,
body[data-page="sejm"] .content{width:100%;height:auto;min-height:calc(100vh - 80px);display:flex;overflow:visible}
.module-workspace,
.sejm-workspace{min-height:calc(100vh - 186px);flex:0 0 auto;align-items:stretch;overflow:visible}
.module-canvas,
.sejm-canvas{min-height:0;grid-template-rows:auto auto;align-content:start;overflow:visible}
.module-workspace-bar,
.sejm-workspace-bar{position:relative;z-index:24;top:auto}
.module-rail,
.sejm-rail{height:calc(100vh - 112px);position:sticky;top:96px;align-self:start;overflow:hidden}
.module-rail>nav{grid-auto-rows:46px;align-content:start}
.sejm-rail>nav{grid-template-rows:none;grid-auto-rows:42px;align-content:start}
.module-canvas-scroll,
.sejm-panel-stack{min-height:0;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto}
.module-scroll-dock{display:none!important}
.sejm-workspace-panel,
.sejm-workspace-panel.active{height:auto;min-height:0;grid-template-rows:auto auto;overflow:visible}
.sejm-record-list,
.sejm-board-card,
.sejm-dashboard-lower{min-height:0;overflow:visible}
.sejm-selected-process{max-height:none;overflow:visible}
body[data-page="ocr"].workspace-page .module-canvas-scroll,
body[data-page="chat"].workspace-page .module-canvas-scroll{overflow:visible}
body[data-page="ocr"].workspace-page .ocr-shell,
body[data-page="chat"].workspace-page .chat-shell{height:auto;min-height:720px}

/* Sejm and the other modules use one shared navigation width rhythm. */
@media(min-width:1181px){
  .module-workspace,.sejm-workspace{grid-template-columns:224px minmax(0,1fr)}
}
@media(max-width:1180px) and (min-width:821px){
  .module-workspace,.sejm-workspace{grid-template-columns:196px minmax(0,1fr)}
}
@media(max-width:820px){
  body.workspace-page .topbar,body[data-page="sejm"] .topbar{height:72px}
  body.workspace-page .content,body[data-page="sejm"] .content{min-height:calc(100vh - 72px)}
  body.workspace-page .sidebar,body[data-page="sejm"] .sidebar{position:fixed;top:0;align-self:auto;height:100vh;overflow:auto}
  .module-workspace,.sejm-workspace{grid-template-columns:66px minmax(0,1fr)}
  .module-rail,.sejm-rail{height:calc(100vh - 88px);top:80px}
  .module-rail>nav,.sejm-rail>nav{grid-auto-rows:38px}
}
@media(max-width:560px){
  .module-workspace,.sejm-workspace{grid-template-columns:58px minmax(0,1fr)}
}

.source-state.demo{color:#785416;border-color:#ead7ad;background:#fff9eb}
.source-state.demo i{background:#d39d32;box-shadow:0 0 0 4px rgba(211,157,50,.13)}
.demo-activity{height:180px;padding:18px 10px 8px;display:flex;align-items:flex-end;gap:10px;border:1px solid #dce5eb;border-radius:14px;background:linear-gradient(180deg,#f9fbfc,#fff)}
.demo-activity span{min-width:0;display:grid;align-items:end;justify-items:center;gap:7px;flex:1;color:#6c8194;font-size:13px;font-weight:750}
.demo-activity i{width:min(30px,72%);height:var(--value);min-height:8px;display:block;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#d9ad52,#11659d);box-shadow:0 7px 15px rgba(12,81,126,.13)}
.sejm-avatar-fallback{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #d9e3ea;border-radius:11px;color:#0d5b90;background:linear-gradient(145deg,#eef6fb,#dcebf5);font-size:13px;font-weight:900}
@media(max-width:560px){.sejm-avatar-fallback{width:36px;height:36px}}

/* Statutes index and record */
.law-index-hero{min-height:250px;margin:-16px -16px 18px;padding:36px 34px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:30px;align-items:center;color:#fff;background:
  linear-gradient(90deg,rgba(4,27,55,.97),rgba(7,55,98,.93) 58%,rgba(20,105,177,.9)),
  radial-gradient(circle at 85% 0,rgba(230,183,79,.32),transparent 22rem)}
.law-index-hero h2{max-width:760px;margin:8px 0 10px;color:#fff;font-family:var(--serif);font-size:clamp(34px,4vw,54px);font-weight:600;line-height:1.02}.law-index-hero p{max-width:720px;margin:0;color:#c4d5e4;font-size:14px;line-height:1.65}.law-index-hero .eyebrow{color:#edc76e}
.law-index-hero>aside{padding:10px 18px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.08);box-shadow:inset 0 1px rgba(255,255,255,.08);backdrop-filter:blur(12px)}
.law-index-hero>aside>span{min-height:64px;padding:11px 0;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;align-items:center;border-bottom:1px solid rgba(255,255,255,.12)}.law-index-hero>aside>span:last-child{border-bottom:0}.law-index-hero>aside svg{width:21px;height:21px;grid-row:1/3;margin:auto;color:#ecc66e}.law-index-hero>aside b{align-self:end;color:#fff;font-size:13px}.law-index-hero>aside small{align-self:start;color:#a9c0d5;font-size:13px}
.law-index-shell{display:grid;grid-template-columns:292px minmax(0,1fr);gap:16px;align-items:start}
.law-filter-panel,.law-results-card{border:1px solid #d5e0e8;border-radius:18px;background:#fff;box-shadow:0 17px 46px rgba(8,37,66,.09)}
.law-filter-panel{padding:18px;position:sticky;top:96px}.law-filter-panel>header{padding-bottom:15px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;border-bottom:1px solid #e3e9ee}.law-filter-panel>header>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#0d5e98;background:#e8f3fa}.law-filter-panel>header svg{width:20px}.law-filter-panel header small,.law-filter-panel header h2{display:block}.law-filter-panel header small{color:#9c6c1e;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.law-filter-panel h2{margin:2px 0 0;color:#143754;font-family:var(--serif);font-size:23px}.law-filter-panel label{margin-top:14px;display:grid;gap:6px}.law-filter-panel label>span{color:#4f677e;font-size:13px;font-weight:850}.law-filter-panel input,.law-filter-panel select{width:100%;height:42px;padding:0 11px;border:1px solid #d4dfe7;border-radius:10px;outline:0;color:#173954;background:#fbfcfd;font:600 13px/1 var(--sans)}.law-filter-panel input:focus,.law-filter-panel select:focus{border-color:#1a6ea8;box-shadow:0 0 0 4px rgba(26,110,168,.08);background:#fff}.law-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.law-filter-actions{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.law-filter-actions .btn{min-width:0;padding:0 8px}.law-filter-note{margin-top:15px;padding:11px;border:1px solid #ead7a9;border-radius:11px;background:#fff9eb}.law-filter-note b,.law-filter-note span{display:block}.law-filter-note b{color:#8b6118;font-size:13px}.law-filter-note span{margin-top:4px;color:#7b705e;font-size:13px;line-height:1.5}
.law-results-card{min-width:0;overflow:hidden}.law-results-card>header{min-height:86px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e1e8ed}.law-results-card h2{margin:3px 0;color:#123451;font-family:var(--serif);font-size:27px}.law-results-card header p{margin:0;color:#76889a;font-size:13px}.law-result-tabs{padding:8px 12px;display:flex;gap:5px;border-bottom:1px solid #e1e8ed;background:#f6f8fa;overflow-x:auto}.law-result-tabs button{min-height:35px;padding:0 12px;border:1px solid transparent;border-radius:9px;color:#5b7288;background:transparent;font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer}.law-result-tabs button:hover{color:#0e5e96;background:#fff}.law-result-tabs button.active{color:#fff;border-color:#0d5589;background:#0d5589;box-shadow:0 6px 15px rgba(13,85,137,.15)}
.law-index-list{padding:10px;display:grid;gap:8px}.law-index-row{min-width:0;padding:15px;display:grid;grid-template-columns:42px minmax(0,1fr) 122px;gap:13px;align-items:start;border:1px solid #dfe6ec;border-radius:13px;color:#284a66;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.law-index-row:hover{border-color:#aebfcd;box-shadow:0 12px 30px rgba(10,40,68,.1);transform:translateY(-1px)}.law-index-row[hidden]{display:none}.law-index-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#0f659c;background:#eaf4fa}.law-index-icon svg{width:21px;height:21px}.law-index-copy{min-width:0}.law-index-copy small,.law-index-copy b,.law-index-copy>span,.law-index-copy em{display:block}.law-index-copy small{color:#a17120;font-size:13px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.law-index-copy b{margin-top:5px;color:#133652;font-size:13px;line-height:1.38}.law-index-copy>span{margin-top:6px;color:#74879a;font-size:13px;font-weight:700}.law-index-copy em{margin-top:6px;display:-webkit-box;overflow:hidden;color:#667b90;font-size:13px;font-style:normal;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.law-index-meta{min-width:0;display:grid;justify-items:end;gap:9px;text-align:right}.law-index-meta strong{color:#0c5f96;font-size:13px}.law-index-meta i{color:#59728a;font-size:13px;font-style:normal;font-weight:850}.law-results-card>footer{min-height:52px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e1e8ed;color:#718396;background:#f8fafb;font-size:13px}.law-no-results{margin:10px;padding:32px;border:1px dashed #cbd7e0;border-radius:13px;color:#708398;text-align:center}.law-no-results[hidden]{display:none}.law-no-results b{display:block;color:#173a56;font-size:13px}.law-no-results p{margin:5px 0 0;font-size:13px}
.law-record-hero{min-height:290px;margin:-16px -16px 18px;padding:34px;display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:end;color:#fff;background:
  linear-gradient(105deg,rgba(4,28,56,.98),rgba(7,60,107,.94) 58%,rgba(27,111,185,.9)),
  linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:auto,48px 48px,48px 48px}
.law-record-kicker{display:flex;align-items:center;gap:8px;color:#edc66e;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.law-record-kicker svg{width:19px;height:19px}.law-record-hero h1{max-width:1000px;margin:12px 0;color:#fff;font-family:var(--serif);font-size:clamp(30px,3.5vw,49px);font-weight:600;line-height:1.08}.law-record-hero>div>p{margin:0;color:#bdcfde;font-size:13px}.law-record-hero .tags{margin-top:18px}.law-record-hero>aside{padding:18px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(255,255,255,.09);backdrop-filter:blur(12px)}.law-record-hero>aside small,.law-record-hero>aside b,.law-record-hero>aside span{display:block}.law-record-hero>aside small{color:#e7c46f;font-size:13px;font-weight:900;text-transform:uppercase}.law-record-hero>aside b{margin:6px 0;color:#fff;font-family:var(--serif);font-size:25px}.law-record-hero>aside span{color:#bad0e1;font-size:13px;line-height:1.55}
.law-record-shell{display:grid;grid-template-columns:256px minmax(0,1fr);gap:16px;align-items:start}.law-record-facts{padding:18px;position:sticky;top:96px;border:1px solid #d4dfe7;border-radius:17px;background:#fff;box-shadow:0 17px 44px rgba(8,36,64,.09)}.law-record-facts>header{padding-bottom:14px;border-bottom:1px solid #e2e8ed}.law-record-facts header small{color:#9a6b1d;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.law-record-facts h2{margin:4px 0 0;color:#123551;font-family:var(--serif);font-size:21px}.law-record-facts>div{min-height:49px;padding:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5ebef}.law-record-facts>div span{color:#7a8b9b;font-size:13px}.law-record-facts>div b{max-width:130px;color:#183a56;font-size:13px;text-align:right;overflow-wrap:anywhere}.law-record-facts>.btn{width:100%;margin-top:10px}
.law-record-main{min-width:0;border:1px solid #d4dfe7;border-radius:17px;background:#fff;box-shadow:0 17px 44px rgba(8,36,64,.09);overflow:hidden}.law-record-tabs{padding:8px;display:flex;gap:4px;border-bottom:1px solid #dfe6eb;background:#f5f8fa;overflow-x:auto}.law-record-tabs button{min-height:39px;padding:0 12px;border:1px solid transparent;border-radius:9px;color:#566f86;background:transparent;font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer}.law-record-tabs button:hover{color:#0c5f98;background:#fff}.law-record-tabs button.active{color:#fff;border-color:#0c568b;background:linear-gradient(145deg,#0d659f,#084572);box-shadow:0 7px 17px rgba(8,76,122,.17)}.law-record-panel{display:none}.law-record-panel.active{display:block;animation:law-panel-enter .22s ease both}.law-record-panel>header{min-height:78px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e3e9ee}.law-record-panel>header h2{margin:3px 0 0;color:#123551;font-family:var(--serif);font-size:24px}.law-record-panel>header label{width:min(320px,45%);height:40px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid #d5dfe7;border-radius:10px;color:#728598;background:#f8fafb}.law-record-panel>header label svg{width:16px}.law-record-panel>header input{min-width:0;flex:1;border:0;outline:0;color:#173a56;background:transparent;font-size:13px}
.law-document-preview{margin:16px 18px 14px;padding:26px clamp(20px,4vw,56px);border:1px solid #dbe5ea;border-left:4px solid #cda23a;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 12px 30px rgba(10,38,64,.06)}.law-document-preview>span{color:#947024;font-size:12px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.law-document-preview>h2{max-width:980px;margin:16px 0 18px;color:#173652;font-family:var(--serif);font-size:24px;line-height:1.28}.law-document-preview>p{max-width:980px;margin:0;color:#29485e;font:16px/1.85 var(--serif);white-space:pre-line}.law-document-preview.law-text-match{box-shadow:0 0 0 3px rgba(208,158,58,.18),0 15px 38px rgba(10,38,64,.1)}.law-source-callout{margin-top:24px;padding:14px 15px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #ead6a5;border-radius:14px;background:#fff9e9}.law-source-callout>svg{width:22px;margin:auto;color:#9b6a18}.law-source-callout b,.law-source-callout small{display:block}.law-source-callout b{color:#745018;font-size:13px}.law-source-callout small{margin-top:3px;color:#796f5e;font-size:13px;line-height:1.45}.law-source-callout .btn{white-space:nowrap}.law-metric-grid{padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.law-metric-grid article{min-height:86px;padding:14px;border:1px solid #dce4ea;border-radius:12px;background:#f9fbfc}.law-metric-grid small,.law-metric-grid b{display:block}.law-metric-grid small{color:#7c8d9d;font-size:13px}.law-metric-grid b{margin-top:8px;color:#143854;font-size:13px;overflow-wrap:anywhere}.law-history{padding:20px}.law-relations-graph{margin:18px;overflow:hidden}.law-relations-graph .graph-stage{height:420px}.law-related-list{padding:0 18px 18px;display:grid;gap:8px}.law-related-list>a{min-height:62px;padding:12px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #dce4ea;border-radius:11px;color:#0e649d;background:#fff}.law-related-list>a:hover{border-color:#acc0d0;box-shadow:0 9px 24px rgba(9,42,71,.08)}.law-related-list>a>svg{width:20px;margin:auto}.law-related-list b,.law-related-list small{display:block}.law-related-list b{color:#173a56;font-size:13px}.law-related-list small{margin-top:3px;color:#74879a;font-size:13px}.law-ai-card{margin:18px;padding:20px;display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:15px;align-items:start;border:1px solid #d3e2ec;border-radius:15px;background:radial-gradient(circle at 100% 0,rgba(205,154,56,.13),transparent 20rem),linear-gradient(145deg,#f7fbfd,#fff)}.law-ai-card>span{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;color:#092b4c;background:linear-gradient(145deg,#f1d88f,#c38a2b)}.law-ai-card>span svg{width:25px}.law-ai-card b{color:#133753;font-size:13px}.law-ai-card p{max-width:700px;margin:6px 0 14px;color:#667b8f;font-size:13px;line-height:1.6}.law-ai-card em{padding:7px 9px;border-radius:999px;color:#8a631d;background:#fff1c9;font-size:13px;font-style:normal;font-weight:850;white-space:nowrap}@keyframes law-panel-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.law-record-toc-card{margin:0 0 16px;overflow:hidden;border:1px solid #d4dfe7;border-radius:17px;background:#fff;box-shadow:0 17px 44px rgba(8,36,64,.09)}
.law-record-toc-card>header{padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e3e9ee;background:linear-gradient(135deg,#f7fafc,#fff)}
.law-record-toc-card>header h2{margin:4px 0 6px;color:#123551;font:700 24px/1.15 var(--serif)}
.law-record-toc-card>header p{margin:0;color:#6c8090;font-size:13px;line-height:1.5}
.law-record-toc-wrap{overflow:auto}
.law-record-toc{width:100%;border-collapse:collapse}
.law-record-toc thead th{padding:12px 14px;color:#6c8090;font-size:12px;font-weight:900;letter-spacing:.08em;text-align:left;text-transform:uppercase;border-bottom:1px solid #e4eaee;background:#f7fafc}
.law-record-toc tbody td{padding:14px;border-bottom:1px solid #edf2f5;vertical-align:top;font-size:13px;line-height:1.55}
.law-record-toc tbody tr:nth-child(even){background:#fcfdfe}
.law-record-toc tbody tr:hover{background:#f6fbfd}
.law-record-toc td:first-child{width:118px;white-space:nowrap}
.law-record-toc td:first-child a{display:inline-flex;align-items:center;min-width:74px;justify-content:center;padding:6px 12px;border-radius:999px;color:#0c658f;background:linear-gradient(180deg,#eef8fb,#e2f1f8);font-weight:850}
.law-record-toc td:nth-child(2){min-width:220px}
.law-record-toc td:nth-child(2) b,.law-record-toc td:nth-child(2) small{display:block}
.law-record-toc td:nth-child(2) b{color:#173a56;font-size:14px}
.law-record-toc td:nth-child(2) small{margin-top:3px;color:#74879a;font-size:13px}
.law-record-toc td:nth-child(3){color:#4d6577}
.law-record-toc td:last-child{width:112px;white-space:nowrap;text-align:right}
.law-record-toc td:last-child a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border:1px solid #cfdde5;border-radius:9px;color:#0b679f;background:#fff;font-size:13px;font-weight:850}
.law-article-sections{padding:0 18px 18px;display:grid;gap:14px}
.law-article-section{padding:18px 20px 20px;border:1px solid #dbe4ea;border-left:4px solid #d0a049;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 20px rgba(10,38,64,.04)}
.law-article-section>header{display:flex;align-items:center;justify-content:space-between;gap:14px}
.law-article-section>header .eyebrow{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border:1px solid #d5e2ea;border-radius:999px;color:#0b6799;background:#ecf7fb;font-size:12px;font-weight:900;letter-spacing:.05em}
.law-article-section>header h3{margin:6px 0 0;color:#173a56;font:700 20px/1.2 var(--serif)}
.law-article-section>header .btn{flex:0 0 auto}
.law-article-section>p{max-width:980px;margin:12px 0 0;color:#2f4c63;font-size:15px;line-height:1.85;white-space:pre-line}
@media(max-width:1180px){.law-index-hero{grid-template-columns:1fr}.law-index-hero>aside{display:grid;grid-template-columns:repeat(3,1fr)}.law-index-hero>aside>span{border-right:1px solid rgba(255,255,255,.12);border-bottom:0}.law-index-hero>aside>span:last-child{border-right:0}.law-index-shell{grid-template-columns:245px minmax(0,1fr)}.law-record-shell{grid-template-columns:230px minmax(0,1fr)}.law-record-hero{grid-template-columns:1fr 230px}.law-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.law-record-toc td:nth-child(3){max-width:380px}}
@media(max-width:820px){.law-index-hero,.law-record-hero{margin:-10px -10px 14px;padding:25px 20px}.law-index-hero>aside{grid-template-columns:1fr}.law-index-hero>aside>span{border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}.law-index-shell,.law-record-shell{grid-template-columns:1fr}.law-filter-panel,.law-record-facts{position:relative;top:auto}.law-filter-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.law-filter-panel>header,.law-filter-note,.law-filter-actions{grid-column:1/-1}.law-record-hero{grid-template-columns:1fr}.law-record-hero>aside{display:none}.law-record-facts{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.law-record-facts>header,.law-record-facts>.btn{grid-column:1/-1}.law-index-row{grid-template-columns:38px minmax(0,1fr)}.law-index-meta{grid-column:2;display:flex;align-items:center;justify-content:space-between}.law-index-copy em{display:none}.law-source-callout{grid-template-columns:34px minmax(0,1fr)}.law-source-callout .btn{grid-column:1/-1}.law-ai-card{grid-template-columns:46px minmax(0,1fr)}.law-ai-card>em{grid-column:2;justify-self:start}.law-record-toc-card>header{padding:16px 18px;flex-direction:column}.law-record-toc thead{display:none}.law-record-toc,.law-record-toc tbody,.law-record-toc tr,.law-record-toc td{display:block;width:100%}.law-record-toc tbody tr{padding:10px 12px;border-bottom:1px solid #e8edf0}.law-record-toc tbody td{padding:7px 0;border-bottom:0}.law-record-toc td:first-child{width:auto}.law-record-toc td:last-child{text-align:left}.law-record-toc td:nth-child(3){max-width:none}.law-article-sections{padding:0 12px 12px}.law-article-section{padding:16px 16px 18px}.law-article-section>header{flex-direction:column;align-items:flex-start}.law-article-section>header .btn{width:100%;justify-content:center}}
@media(max-width:560px){.law-index-hero h2{font-size:34px}.law-index-hero p{font-size:13px}.law-filter-panel{display:block}.law-filter-grid{grid-template-columns:1fr}.law-results-card>header{min-height:72px;padding:14px}.law-index-list{padding:7px}.law-index-row{padding:12px;grid-template-columns:34px minmax(0,1fr);gap:10px}.law-index-icon{width:34px;height:34px}.law-index-meta i{display:none}.law-record-hero h1{font-size:29px}.law-record-facts{display:block}.law-record-panel>header{align-items:stretch;flex-direction:column}.law-record-panel>header label{width:100%}.law-document-preview{margin:8px 10px 12px;padding:18px 14px}.law-document-preview>h2{font-size:19px}.law-document-preview>p{font-size:14px;line-height:1.78}.law-metric-grid{padding:10px;grid-template-columns:1fr}.law-ai-card{margin:10px;padding:15px}.law-ai-card>em{grid-column:1/-1}.law-relations-graph{margin:10px}.law-related-list{padding:0 10px 10px}.law-record-toc-card{margin-bottom:12px}.law-record-toc-card>header h2{font-size:21px}.law-record-toc td:first-child a,.law-record-toc td:last-child a{width:100%;justify-content:center}.law-article-section>header{flex-direction:column;align-items:flex-start}.law-article-section>header .btn{width:100%;justify-content:center}.law-article-section>p{font-size:14px;line-height:1.75}}

/* Dense judgment navigation without nested scrollbars. */
.judgment-record-layout{grid-template-columns:minmax(0,1fr) 320px}
.judgment-record-hero{min-height:350px;padding:28px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(14px,1fr) auto auto auto;align-items:start}
.judgment-record-actions{position:static;grid-column:2;grid-row:1;align-self:start;justify-self:end;margin-bottom:0}
.judgment-record-hero>.badge{grid-column:1;grid-row:1;justify-self:start}
.judgment-record-hero>h1{grid-column:1/-1;grid-row:3;font-size:clamp(35px,3.2vw,47px)}
.judgment-record-hero>p{grid-column:1/-1;grid-row:4}
.judgment-record-meta{grid-column:1/-1;grid-row:5}
.judgment-tabs-card{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:start;scroll-margin-top:96px;overflow:visible}
.judgment-record-tabs{min-width:0;padding:16px 12px;position:sticky;top:96px;display:grid;grid-template-columns:1fr;gap:5px;align-content:start;border-right:1px solid #dce5eb;border-bottom:0;background:linear-gradient(180deg,#f8fafb,#f2f6f8);overflow:visible}
.judgment-tabs-heading{padding:4px 8px 12px;border-bottom:1px solid #dbe4ea}.judgment-tabs-heading small,.judgment-tabs-heading b,.judgment-tabs-heading span{display:block}.judgment-tabs-heading small{color:#9a6c21;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.judgment-tabs-heading b{margin-top:4px;color:#173a56;font-family:var(--serif);font-size:20px}.judgment-tabs-heading span{margin-top:3px;color:#8091a1;font-size:13px}
.judgment-record-tabs button{width:100%;min-width:0;min-height:52px;padding:7px 8px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:center;border:1px solid transparent;border-radius:10px;line-height:1.2;text-align:left;white-space:normal}
.judgment-record-tabs button>i{width:28px;height:28px;display:grid;place-items:center;border:1px solid #d7e1e8;border-radius:8px;color:#8a6a2d;background:#fff;font-size:13px;font-style:normal;font-weight:900}.judgment-record-tabs button>span b,.judgment-record-tabs button>span small{display:block}.judgment-record-tabs button>span b{color:inherit;font-size:13px}.judgment-record-tabs button>span small{margin-top:3px;color:#8293a3;font-size:13px;font-weight:650}
.judgment-record-tabs button:hover{color:#0d609a;border-color:#d6e1e9;background:#fff}
.judgment-record-tabs button.active{color:#fff;border-color:#0b578c;background:linear-gradient(145deg,#0e679f,#083f69);box-shadow:0 7px 17px rgba(7,69,112,.16)}
.judgment-record-tabs button.active>i{color:#163955;border-color:#efce82;background:linear-gradient(145deg,#f7df9e,#d4a241)}.judgment-record-tabs button.active>span small{color:#c7dbea}
.judgment-record-tabs button.active::after{display:none}
.judgment-tab-content{min-width:0;padding:28px}
.judgment-full-text{max-height:none;padding-right:0;overflow:visible}
.judgment-related-card>div{max-height:none;overflow:visible}
.judgment-regulation>i{margin-left:auto;color:#0e659f;font-style:normal;font-weight:900}
@media(max-width:1360px){.judgment-record-layout{grid-template-columns:1fr}.judgment-record-side{position:static;grid-template-columns:1fr 1fr}.judgment-ai-tip{grid-column:1/-1}}
@media(max-width:820px){.judgment-record-actions{grid-column:1/-1;grid-row:1;justify-self:stretch;display:flex}.judgment-record-hero>.badge{grid-row:2;align-self:end}.judgment-record-hero>h1{grid-row:3}.judgment-record-hero>p{grid-row:4}.judgment-record-meta{grid-row:5}.judgment-record-side{grid-template-columns:1fr}.judgment-ai-tip{grid-column:auto}}
@media(max-width:680px){.judgment-tabs-card{display:block;overflow:hidden}.judgment-record-tabs{padding:10px;position:static;grid-template-columns:repeat(2,minmax(0,1fr));border-right:0;border-bottom:1px solid #dce5eb}.judgment-tabs-heading{grid-column:1/-1}.judgment-record-tabs button{min-height:48px}.judgment-tab-content{padding:20px}}
@media(max-width:560px){.judgment-record-hero{min-height:390px}.judgment-record-actions{display:grid}}

/* Sejm filters and analytical record */
.sejm-workspace-bar{gap:10px}.sejm-workspace-bar>label{min-width:260px}.sejm-filter-button{flex:0 0 auto;gap:8px}.sejm-filter-button.active{color:#fff;border-color:#0b5f9d;background:#0b5f9d}.sejm-filter-button span{min-width:20px;height:20px;padding:0 6px;display:inline-grid;place-items:center;border-radius:20px;color:#082846;background:#d9a83e;font-size:13px;font-weight:800}
.sejm-filter-drawer{padding:14px 18px;display:grid;grid-template-columns:repeat(5,minmax(130px,1fr)) auto;gap:12px;align-items:end;border-bottom:1px solid #d9e4ed;background:linear-gradient(135deg,#f8fbfd,#eef5f9)}.sejm-filter-drawer[hidden]{display:none}.sejm-filter-drawer label{display:grid;gap:6px}.sejm-filter-drawer label span{color:#60758a;font-size:13px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.sejm-filter-drawer select,.sejm-filter-drawer input{width:100%;min-height:42px;padding:0 11px;border:1px solid #cfdce7;border-radius:10px;color:#163550;background:#fff;font:650 13px/1 var(--sans)}.sejm-filter-drawer input:disabled{opacity:.45}
.sejm-search-empty{min-height:170px;padding:28px;display:grid;place-items:center;gap:6px;border:1px dashed #c9d7e3;border-radius:16px;color:#6b7f92;text-align:center}.sejm-search-empty[hidden],.sejm-record[hidden]{display:none!important}
body[data-page="sejm-record"]{overflow-x:hidden;overflow-y:auto;background:#edf3f7}body[data-page="sejm-record"] .content{padding-bottom:80px}
.sejm-record-hero{margin-bottom:14px;padding:34px 38px;display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:30px;border-radius:22px;color:#fff;background:radial-gradient(circle at 85% 10%,rgba(53,135,197,.42),transparent 34%),linear-gradient(135deg,#041f3a,#0b4778);box-shadow:0 18px 44px rgba(7,42,72,.18)}.sejm-record-hero h1{max-width:920px;margin:8px 0 12px;color:#fff;font:700 clamp(30px,3vw,50px)/1.08 var(--serif)}.sejm-record-hero p{max-width:900px;margin:0 0 18px;color:#d7e7f3;font-size:13px;line-height:1.7}.sejm-record-hero .eyebrow{color:#efc866}.sejm-record-hero aside{padding:22px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:9px;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.08)}.sejm-record-hero aside small{color:#bcd2e5;text-transform:uppercase;letter-spacing:.08em}.sejm-record-hero aside b{font-size:20px}.sejm-record-hero aside span{color:#d4e1ec;font-size:13px}
.sejm-record-nav{position:sticky;top:74px;z-index:8;margin-bottom:16px;padding:9px;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;border:1px solid #d4e0e9;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(20,54,81,.08);backdrop-filter:blur(12px)}.sejm-record-nav button{min-height:44px;border:0;border-radius:11px;color:#526b82;background:transparent;font-weight:800;cursor:pointer}.sejm-record-nav button:hover{color:#0b5f9d;background:#edf5fa}.sejm-record-nav button.active{color:#fff;background:linear-gradient(135deg,#0874b5,#064876)}
.sejm-record-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.sejm-record-grid>main{min-width:0;display:grid;gap:18px}.sejm-record-grid>aside{position:sticky;top:148px;display:grid;gap:18px}.sejm-record-section{scroll-margin-top:150px;overflow:hidden}.sejm-fact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dce6ed}.sejm-fact-grid article{min-height:92px;padding:18px;display:grid;gap:7px;background:#fff}.sejm-fact-grid small{color:#7890a4;text-transform:capitalize}.sejm-fact-grid b{overflow-wrap:anywhere;color:#153853;font-size:13px}
.sejm-analysis-lead{margin:18px;padding:22px;display:flex;gap:16px;align-items:flex-start;border:1px solid #c8deec;border-radius:16px;background:linear-gradient(135deg,#edf8fd,#fffaf0)}.sejm-analysis-lead>.ui-icon{width:32px;height:32px;flex:0 0 32px;color:#0a73b5}.sejm-analysis-lead b{color:#123854;font:700 18px/1.2 var(--serif)}.sejm-analysis-lead p{margin:8px 0 0;color:#49677f;line-height:1.7}
.sejm-metric-chart{padding:0 22px 24px;display:grid;gap:13px}.sejm-metric-chart>div{display:grid;grid-template-columns:140px minmax(100px,1fr) 70px;align-items:center;gap:12px}.sejm-metric-chart span{color:#60788d;font-size:13px;font-weight:750;text-transform:capitalize}.sejm-metric-chart i{height:10px;overflow:hidden;border-radius:20px;background:#e7eef3}.sejm-metric-chart em{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#087bc0,#ddad42)}.sejm-metric-chart b{text-align:right;color:#173b57}
.sejm-record-timeline{padding:0 22px 24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.sejm-record-timeline article{padding:15px;border:1px solid #d7e2ea;border-radius:14px;background:#f9fbfc}.sejm-record-timeline article>i{width:11px;height:11px;margin-bottom:10px;display:block;border:2px solid #95aabd;border-radius:50%;background:#fff}.sejm-record-timeline article.done>i{border-color:#1b9a75;background:#1b9a75;box-shadow:0 0 0 5px rgba(27,154,117,.12)}.sejm-record-timeline small,.sejm-record-timeline b{display:block}.sejm-record-timeline small{color:#7790a3}.sejm-record-timeline b{margin:6px 0;color:#173b57}.sejm-record-timeline p{margin:0;color:#668096;font-size:13px;line-height:1.5}
.sejm-reference-grid{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sejm-reference-grid>a{padding:15px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #d7e3eb;border-radius:14px;color:#123a59}.sejm-reference-grid>a:hover{border-color:#0a79ba;box-shadow:0 8px 20px rgba(10,86,137,.1)}.sejm-reference-grid .ui-icon{width:23px;color:#0875b6}.sejm-reference-grid span{min-width:0;display:grid;gap:4px}.sejm-reference-grid small{overflow:hidden;color:#6d8396;text-overflow:ellipsis;white-space:nowrap}.sejm-record-graph{height:510px;background:#fff}.sejm-json-preview{max-height:440px;margin:0;padding:22px;overflow:auto;color:#cbe8db;background:#071e33;font:13px/1.65 Consolas,monospace;white-space:pre-wrap}
.sejm-verification-card{padding:19px;display:flex;gap:13px;border:1px solid #edd596;border-radius:16px;color:#6d531d;background:linear-gradient(135deg,#fff8e6,#fff)}.sejm-verification-card .ui-icon{width:25px;flex:0 0 25px;color:#b57c0c}.sejm-verification-card p{margin:7px 0 0;font-size:13px;line-height:1.6}
@media(max-width:1250px){.sejm-filter-drawer{grid-template-columns:repeat(3,minmax(150px,1fr))}.sejm-record-grid{grid-template-columns:minmax(0,1fr) 290px}.sejm-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.sejm-workspace-bar{flex-wrap:wrap}.sejm-workspace-bar>label{flex:1 1 420px}.sejm-filter-drawer{grid-template-columns:repeat(2,minmax(0,1fr))}.sejm-record-hero{padding:28px;grid-template-columns:1fr}.sejm-record-grid{grid-template-columns:1fr}.sejm-record-grid>aside{position:static}.sejm-record-nav{top:64px;grid-template-columns:repeat(5,minmax(125px,1fr));overflow-x:auto}}
@media(max-width:620px){.sejm-filter-drawer{grid-template-columns:1fr}.sejm-record-hero{padding:22px;border-radius:16px}.sejm-record-hero h1{font-size:28px}.sejm-fact-grid,.sejm-reference-grid{grid-template-columns:1fr}.sejm-metric-chart>div{grid-template-columns:95px 1fr 55px}}

/* Shared visual hierarchy for every Sejm collection. */
body[data-page="sejm"] .sejm-list-panel{grid-template-rows:auto auto auto minmax(0,1fr)}
body[data-page="sejm"] .sejm-list-context{min-height:38px;margin:0 0 12px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce7ee;border-radius:11px;color:#60788d;background:linear-gradient(100deg,#f8fbfd,#eff6fa);font-size:13px;font-weight:700}
body[data-page="sejm"] .sejm-list-context span:first-child{color:#18486e;font-weight:850}body[data-page="sejm"] .sejm-list-context span:last-child{color:#748a9d;text-align:right}
body[data-page="sejm"] .sejm-record-list{display:grid;align-content:start;gap:10px;padding:1px 6px 8px 1px}
body[data-page="sejm"] .sejm-record{--record-accent:#1673ad;min-height:104px;margin:0;padding:15px 16px 15px 19px;position:relative;isolation:isolate;align-items:center;border-color:#d8e4ec;border-radius:15px;background:linear-gradient(110deg,#fff 0%,#fbfdfe 100%);box-shadow:0 8px 22px rgba(20,54,81,.055)}
body[data-page="sejm"] .sejm-record::before{content:"";width:4px;position:absolute;top:15px;bottom:15px;left:-1px;border-radius:0 6px 6px 0;background:var(--record-accent);opacity:.9}
body[data-page="sejm"] .sejm-record:hover{border-color:#9fbed3;box-shadow:0 15px 30px rgba(20,64,96,.12);transform:translateY(-2px)}
body[data-page="sejm"] .sejm-record-copy{display:grid;gap:3px;min-width:0}body[data-page="sejm"] .sejm-record-copy>em{margin:0 0 2px;color:var(--record-accent);font-size:13px;font-style:normal;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
body[data-page="sejm"] .sejm-record b{font-size:13px;line-height:1.3}body[data-page="sejm"] .sejm-record small{margin:0;color:#58718a;font-size:13px;line-height:1.35;font-weight:750}body[data-page="sejm"] .sejm-record p{margin:3px 0 0;color:#385773;font-size:13px;line-height:1.42;-webkit-line-clamp:2}
body[data-page="sejm"] .sejm-record-links{margin-top:5px;display:flex;flex-wrap:wrap;gap:5px;font-weight:750}body[data-page="sejm"] .sejm-record-links span{padding:3px 6px;border:1px solid #dfe9ef;border-radius:999px;color:#5a7289;background:#f4f8fa;font-size:13px;line-height:1.1}body[data-page="sejm"] .sejm-record-links b{margin-left:3px;color:var(--record-accent);font-size:13px}
body[data-page="sejm"] .sejm-record>i{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border:1px solid #d4e2eb;border-radius:50%;color:var(--record-accent);background:#f2f8fb;font-size:17px;transition:color .18s ease,background .18s ease,transform .18s ease}
body[data-page="sejm"] .sejm-record:hover>i{color:#fff;background:var(--record-accent);transform:translateX(2px)}
body[data-page="sejm"] .sejm-record-processes{--record-accent:#a3731e;background:linear-gradient(110deg,#fffdf8,#fff)}body[data-page="sejm"] .sejm-record-votings{--record-accent:#24795d}body[data-page="sejm"] .sejm-record-interpellations{--record-accent:#7a5597}body[data-page="sejm"] .sejm-record-prints{--record-accent:#197aa7}body[data-page="sejm"] .sejm-record-mps{--record-accent:#365c91}body[data-page="sejm"] .sejm-record-committees{--record-accent:#16786b}
body[data-page="sejm"] .sejm-workspace-bar{border:1px solid #dce7ee;border-radius:15px 15px 0 0;background:rgba(255,255,255,.72);box-shadow:0 8px 22px rgba(14,46,73,.035)}
body[data-page="sejm"] .sejm-section-hub{margin:0 0 12px;padding:14px 15px;display:grid;grid-template-columns:minmax(230px,1.15fr) auto minmax(280px,.85fr);gap:16px;align-items:center;border:1px solid #d6e4ed;border-radius:15px;background:radial-gradient(circle at 95% 0,rgba(26,111,167,.1),transparent 15rem),linear-gradient(115deg,#f9fcfe,#edf5f9)}
body[data-page="sejm"] .sejm-section-hub p{max-width:520px;margin:4px 0 0;color:#49667e;font-size:13px;line-height:1.48}body[data-page="sejm"] .sejm-section-hub dl{margin:0;display:flex;gap:12px}body[data-page="sejm"] .sejm-section-hub dl>div{min-width:55px;display:grid;gap:2px}body[data-page="sejm"] .sejm-section-hub dt{color:#7690a4;font-size:13px;font-weight:850;text-transform:uppercase}body[data-page="sejm"] .sejm-section-hub dd{margin:0;color:#123b5a;font-family:var(--serif);font-size:20px;font-weight:700}body[data-page="sejm"] .sejm-section-hub nav{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}body[data-page="sejm"] .sejm-section-hub button{min-height:30px;padding:0 8px;border:1px solid #d2e0ea;border-radius:8px;color:#245777;background:#fff;font:800 13px/1 var(--sans);cursor:pointer}body[data-page="sejm"] .sejm-section-hub button:hover{border-color:#7ca5c0;color:#fff;background:#0b5e96}body[data-page="sejm"] .sejm-section-hub button b{margin:0 3px;color:#a1711f}

/* Record detail uses the same card language as the workspace. */
body[data-page="sejm-record"] .sejm-record-section.card{border:1px solid #d7e4ec;border-radius:18px;background:#fff;box-shadow:0 11px 28px rgba(18,53,80,.055)}
body[data-page="sejm-record"] .sejm-record-section>.card-head{min-height:74px;padding:18px 21px;border-bottom:1px solid #e2ebf0;background:linear-gradient(100deg,#fbfdfe,#f4f8fa)}
body[data-page="sejm-record"] .sejm-fact-grid{gap:8px;padding:14px;background:#f5f8fa}body[data-page="sejm-record"] .sejm-fact-grid article{min-height:102px;border:1px solid #e0e9ef;border-radius:12px;background:#fff;box-shadow:0 5px 15px rgba(15,48,72,.035)}
body[data-page="sejm-record"] .sejm-fact-grid article:hover{border-color:#bdd2e0;background:#fbfdff}body[data-page="sejm-record"] .sejm-fact-grid small{font-size:13px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}body[data-page="sejm-record"] .sejm-fact-grid b{font-size:13px;line-height:1.45}
body[data-page="sejm-record"] .sejm-record-timeline article{border-top:3px solid #dbe7ee;background:linear-gradient(145deg,#fff,#f8fbfc)}body[data-page="sejm-record"] .sejm-record-timeline article.done{border-top-color:#24936e}body[data-page="sejm-record"] .sejm-reference-grid>a{background:#fff;box-shadow:0 5px 14px rgba(18,53,80,.035)}
body[data-page="sejm-record"] .sejm-connection-board{padding:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;background:#f5f8fa}body[data-page="sejm-record"] .sejm-connection-board>section{overflow:hidden;border:1px solid #dce7ee;border-radius:14px;background:#fff;box-shadow:0 5px 15px rgba(18,53,80,.035)}body[data-page="sejm-record"] .sejm-connection-board header{min-height:68px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e4edf2;background:linear-gradient(110deg,#fbfdfe,#f1f7fa)}body[data-page="sejm-record"] .sejm-connection-board h3{margin:3px 0 0;color:#123c5d;font:700 16px/1.15 var(--serif)}body[data-page="sejm-record"] .sejm-connection-board header>b{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:#0e5d93;background:#e4f1f8;font-size:13px}body[data-page="sejm-record"] .sejm-connection-board>section>div{display:grid}body[data-page="sejm-record"] .sejm-connection-board a{min-height:58px;padding:10px 12px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:9px;align-items:center;border-top:1px solid #edf2f5;color:#1b537b}body[data-page="sejm-record"] .sejm-connection-board a:first-child{border-top:0}body[data-page="sejm-record"] .sejm-connection-board a:hover{color:#0a76b4;background:#f6fbfe}body[data-page="sejm-record"] .sejm-connection-board a>span{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;color:#0c6ea7;background:#e6f1f8}body[data-page="sejm-record"] .sejm-connection-board a svg{width:15px}body[data-page="sejm-record"] .sejm-connection-board a div{min-width:0;display:grid;gap:3px}body[data-page="sejm-record"] .sejm-connection-board a b{overflow:hidden;color:inherit;font-size:13px;text-overflow:ellipsis;white-space:nowrap}body[data-page="sejm-record"] .sejm-connection-board a small{overflow:hidden;color:#6c8498;font-size:13px;text-overflow:ellipsis;white-space:nowrap}

/* Readability pass: Sejm is a research workspace, not a dense data table. */
body[data-page="sejm"] .sejm-workspace-panel>header h2{font-size:25px}body[data-page="sejm"] .sejm-workspace-panel>header .eyebrow{font-size:13px}body[data-page="sejm"] .sejm-rail>nav button span{font-size:13px}body[data-page="sejm"] .sejm-list-context{font-size:13px}
body[data-page="sejm"] .sejm-record{min-height:120px;padding:16px 18px}body[data-page="sejm"] .sejm-record-symbol{width:44px;height:44px;flex:0 0 44px!important;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--record-accent) 26%,#d4e2ea);border-radius:13px;color:var(--record-accent);background:color-mix(in srgb,var(--record-accent) 10%,#f6fafc)}body[data-page="sejm"] .sejm-record-symbol .ui-icon{width:22px;height:22px}body[data-page="sejm"] .sejm-record-copy{flex:1!important;padding-right:4px;gap:4px}body[data-page="sejm"] .sejm-record-copy>em{font-size:13px}body[data-page="sejm"] .sejm-record b{font-size:15px}body[data-page="sejm"] .sejm-record small{font-size:13px}body[data-page="sejm"] .sejm-record p{font-size:13px;line-height:1.5}body[data-page="sejm"] .sejm-record-links span,body[data-page="sejm"] .sejm-record-links b{font-size:13px}
body[data-page="sejm"] .sejm-section-hub p{font-size:13px;line-height:1.55}body[data-page="sejm"] .sejm-section-hub dt{font-size:13px}body[data-page="sejm"] .sejm-section-hub dd{font-size:23px}body[data-page="sejm"] .sejm-section-hub button{min-height:36px;padding:0 10px;display:flex;align-items:center;gap:7px;font-size:13px}body[data-page="sejm"] .sejm-section-hub button .ui-icon{width:15px;height:15px;color:#126ea5}body[data-page="sejm"] .sejm-section-hub button:hover .ui-icon{color:#fff}
body[data-page="sejm-record"] .sejm-record-nav button{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px}body[data-page="sejm-record"] .sejm-record-nav button .ui-icon{width:17px;height:17px}body[data-page="sejm-record"] .sejm-fact-grid small{font-size:13px}body[data-page="sejm-record"] .sejm-fact-grid b{font-size:14px}body[data-page="sejm-record"] .sejm-connection-board a b{font-size:13px}body[data-page="sejm-record"] .sejm-connection-board a small{font-size:13px}

@media(max-width:920px){body[data-page="sejm"] .sejm-section-hub{grid-template-columns:1fr}body[data-page="sejm"] .sejm-section-hub nav{justify-content:flex-start}}
@media(max-width:720px){body[data-page="sejm"] .sejm-list-context{align-items:flex-start;flex-direction:column;gap:4px}body[data-page="sejm"] .sejm-list-context span:last-child{text-align:left}body[data-page="sejm"] .sejm-record{min-height:96px;padding:12px}body[data-page="sejm"] .sejm-record-symbol{width:34px;height:34px;flex-basis:34px!important;border-radius:10px}body[data-page="sejm"] .sejm-record-symbol .ui-icon{width:18px;height:18px}body[data-page="sejm"] .sejm-record p{font-size:13px}body[data-page="sejm"] .sejm-record b{font-size:13px}body[data-page="sejm"] .sejm-record small{font-size:13px}body[data-page="sejm"] .sejm-record>i{width:27px;height:27px;flex-basis:27px;font-size:14px}body[data-page="sejm"] .sejm-section-hub{padding:12px}body[data-page="sejm"] .sejm-section-hub dl{gap:18px}body[data-page="sejm"] .sejm-section-hub nav{display:grid;grid-template-columns:1fr}body[data-page="sejm"] .sejm-section-hub button{min-height:38px;text-align:left;font-size:13px}body[data-page="sejm-record"] .sejm-connection-board{grid-template-columns:1fr;padding:10px}body[data-page="sejm-record"] .sejm-record-nav button{font-size:13px}}

/* Dedicated Sejm URLs keep the workspace treatment without sharing a page identifier. */
body.sejm-section-page{overflow-x:hidden;overflow-y:auto;background:#edf2f6}body.sejm-section-page .portal{height:auto;min-height:100vh;overflow:visible}body.sejm-section-page .sidebar{position:sticky;top:0;align-self:start;height:100vh;overflow:hidden}body.sejm-section-page .shell{height:auto;min-height:100vh;display:block;overflow:visible}body.sejm-section-page .topbar{height:80px;position:sticky;z-index:80;top:0}body.sejm-section-page .content{width:100%;height:auto;min-height:calc(100vh - 80px);display:flex;flex-direction:column;overflow:visible}body.sejm-section-page .page-head{width:100%;min-height:66px;margin:0 0 16px;flex:0 0 auto}body.sejm-section-page .page-head h1{font-size:34px}body.sejm-section-page .page-head p{font-size:13px}
body.sejm-section-page .sejm-list-panel{grid-template-rows:auto auto auto minmax(0,1fr)}body.sejm-section-page .sejm-list-context{min-height:38px;margin:0 0 12px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce7ee;border-radius:11px;color:#60788d;background:linear-gradient(100deg,#f8fbfd,#eff6fa);font-size:13px;font-weight:700}body.sejm-section-page .sejm-list-context span:first-child{color:#18486e;font-weight:850}
body.sejm-section-page .sejm-workspace-bar{border:1px solid #dce7ee;border-radius:15px 15px 0 0;background:rgba(255,255,255,.72);box-shadow:0 8px 22px rgba(14,46,73,.035)}body.sejm-section-page .sejm-workspace-panel>header h2{font-size:25px}body.sejm-section-page .sejm-workspace-panel>header .eyebrow{font-size:13px}body.sejm-section-page .sejm-rail>nav button span{font-size:13px}
body.sejm-section-page .sejm-record{min-height:120px;margin:0;padding:16px 18px;display:flex;gap:14px;border-radius:15px}body.sejm-section-page .sejm-record-symbol{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid #cfe0ea;border-radius:13px;color:#176ea4;background:#edf6fa}body.sejm-section-page .sejm-record-symbol .ui-icon{width:22px;height:22px}body.sejm-section-page .sejm-record-copy{flex:1!important;display:grid;gap:4px;min-width:0}body.sejm-section-page .sejm-record-copy>em{color:#1972a8;font-size:13px;font-style:normal;font-weight:900;letter-spacing:.1em;text-transform:uppercase}body.sejm-section-page .sejm-record b{font-size:15px}body.sejm-section-page .sejm-record small{font-size:13px}body.sejm-section-page .sejm-record p{font-size:13px;line-height:1.5}body.sejm-section-page .sejm-record-links{display:flex;flex-wrap:wrap;gap:5px}body.sejm-section-page .sejm-record-links span{padding:3px 6px;border:1px solid #dfe9ef;border-radius:999px;color:#5a7289;background:#f4f8fa;font-size:13px}body.sejm-section-page .sejm-record-links b{margin-left:3px;color:#176ea4;font-size:13px}
body.sejm-section-page .sejm-section-hub{margin:0 0 12px;padding:14px 15px;display:grid;grid-template-columns:minmax(230px,1.15fr) auto minmax(280px,.85fr);gap:16px;align-items:center;border:1px solid #d6e4ed;border-radius:15px;background:radial-gradient(circle at 95% 0,rgba(26,111,167,.1),transparent 15rem),linear-gradient(115deg,#f9fcfe,#edf5f9)}body.sejm-section-page .sejm-section-hub p{margin:4px 0 0;color:#49667e;font-size:13px;line-height:1.55}body.sejm-section-page .sejm-section-hub dl{margin:0;display:flex;gap:12px}body.sejm-section-page .sejm-section-hub dl>div{min-width:55px;display:grid;gap:2px}body.sejm-section-page .sejm-section-hub dt{color:#7690a4;font-size:13px;font-weight:850;text-transform:uppercase}body.sejm-section-page .sejm-section-hub dd{margin:0;color:#123b5a;font-family:var(--serif);font-size:23px;font-weight:700}body.sejm-section-page .sejm-section-hub nav{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}body.sejm-section-page .sejm-section-hub button{min-height:36px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #d2e0ea;border-radius:8px;color:#245777;background:#fff;font:800 13px/1 var(--sans);cursor:pointer}body.sejm-section-page .sejm-section-hub button .ui-icon{width:15px;height:15px;color:#126ea5}
@media(max-width:920px){body.sejm-section-page .sejm-section-hub{grid-template-columns:1fr}body.sejm-section-page .sejm-section-hub nav{justify-content:flex-start}}@media(max-width:720px){body.sejm-section-page .topbar{height:72px}body.sejm-section-page .content{padding:12px}body.sejm-section-page .page-head{min-height:60px;margin-bottom:10px}body.sejm-section-page .page-head h1{font-size:29px}body.sejm-section-page .sejm-canvas{grid-template-rows:102px minmax(0,1fr)}body.sejm-section-page .sejm-workspace-bar{padding:8px;align-items:stretch;flex-direction:column}body.sejm-section-page .sejm-workspace-bar>label{height:38px;min-height:38px}body.sejm-section-page .sejm-workspace-bar kbd{display:none}body.sejm-section-page .sejm-term-switch{min-height:34px;display:grid;grid-template-columns:repeat(4,1fr)}body.sejm-section-page .sejm-list-context{align-items:flex-start;flex-direction:column;gap:4px}body.sejm-section-page .sejm-record{min-height:96px;padding:12px}body.sejm-section-page .sejm-record-symbol{width:34px;height:34px;flex-basis:34px;border-radius:10px}body.sejm-section-page .sejm-record-symbol .ui-icon{width:18px;height:18px}body.sejm-section-page .sejm-record b{font-size:13px}body.sejm-section-page .sejm-record small{font-size:13px}body.sejm-section-page .sejm-record p{font-size:13px}body.sejm-section-page .sejm-section-hub{padding:12px}body.sejm-section-page .sejm-section-hub nav{display:grid;grid-template-columns:1fr}body.sejm-section-page .sejm-section-hub button{min-height:38px;text-align:left;font-size:13px}}

@media(max-width:720px){body.sejm-section-page .sejm-canvas{grid-template-rows:168px minmax(0,1fr)}body.sejm-section-page .sejm-workspace-bar{flex-wrap:nowrap}}

/* PDF-to-text workspace for legal acts */
.law-pdf-workspace>header{gap:12px}.law-pdf-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.law-pdf-toolbar{padding:12px 18px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #dce5eb;background:#f6f9fb}.law-pdf-toolbar label{min-width:260px;flex:1;display:flex;align-items:center;gap:8px}.law-pdf-toolbar label svg{width:18px;color:#0a6da8}.law-pdf-toolbar input{width:100%;min-height:40px;padding:0 11px;border:1px solid #ccd9e3;border-radius:10px;background:#fff}.law-pdf-toolbar>b{min-width:90px;color:#35536b;font-size:13px;text-align:center}.law-pdf-find{padding:9px 20px;color:#6d8193;background:#edf4f8;font-size:13px}.law-pdf-page{max-width:820px;min-height:780px;margin:24px auto;padding:24px 42px 30px;border:1px solid #d7dfe5;border-radius:4px;background:#fff;box-shadow:0 18px 45px rgba(15,43,67,.12)}.law-pdf-page>header,.law-pdf-page>footer{display:flex;justify-content:space-between;color:#8a7960;font-size:13px;text-transform:uppercase;letter-spacing:.06em}.law-pdf-page>header{padding-bottom:18px;border-bottom:1px solid #e7e1d7}.law-pdf-page>header em{font-style:normal}.law-pdf-page>div{min-height:650px;padding:28px 5px;color:#263e52;font:15px/1.9 var(--serif);white-space:pre-wrap;outline:none}.law-pdf-page>div:focus{background:#fffcf3}.law-pdf-page>div.law-pdf-match{box-shadow:inset 4px 0 #d5a43d}.law-pdf-page>footer{padding-top:18px;border-top:1px solid #e7e1d7}
@media(max-width:700px){.law-pdf-toolbar{align-items:stretch;flex-wrap:wrap}.law-pdf-toolbar label{min-width:100%;flex-basis:100%}.law-pdf-page{min-height:620px;margin:10px;padding:20px}.law-pdf-page>div{min-height:500px;font-size:13px}}

/* Shared demo persistence and entity intelligence */
.demo-create-form{display:grid;gap:14px}.demo-create-form label{display:grid;gap:7px}.demo-create-form label span{color:#536d83;font-size:13px;font-weight:800;text-transform:uppercase}.demo-create-form input,.demo-create-form textarea{width:100%;padding:12px;border:1px solid #ccd9e3;border-radius:11px;background:#fff;font:13px/1.5 var(--sans)}.demo-create-form textarea{min-height:110px;resize:vertical}.demo-create-form .btn{justify-self:end}
.modal-panel.pro-create-modal{width:min(1060px,100%);border:1px solid #c9dbe6;border-radius:22px;box-shadow:0 32px 100px rgba(4,29,52,.3)}.pro-create-modal .modal-body{padding:0}.pro-create-form{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:0;background:#fff}.pro-create-hero{grid-column:1/-1;padding:22px 25px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:13px;align-items:center;border-bottom:1px solid #dce7ed;background:radial-gradient(circle at 89% 0,rgba(214,165,69,.2),transparent 14rem),linear-gradient(135deg,#eff8fb,#fff)}.pro-create-hero>span{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(135deg,#096c9f,#073b62);box-shadow:0 9px 20px rgba(7,76,113,.18)}.pro-create-hero svg{width:23px}.pro-create-hero small{color:#986b1b;font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pro-create-hero h3{margin:2px 0;color:#173b57;font:700 25px var(--serif)}.pro-create-hero p{margin:3px 0 0;color:#6a8394;font-size:13px;line-height:1.45}.pro-create-hero em{padding:7px 10px;display:flex;align-items:center;gap:5px;border:1px solid #c8ddcf;border-radius:999px;color:#177054;background:#edf9f2;font-size:13px;font-style:normal;font-weight:850}.pro-create-hero em svg{width:14px}.pro-create-form-grid{padding:23px 25px;display:grid;grid-template-columns:1fr 1fr;gap:14px;border-right:1px solid #e0e9ee}.pro-create-form label{min-width:0}.pro-create-form label.wide{grid-column:1/-1}.pro-create-form label>span{display:flex;align-items:center;gap:5px;color:#49677d;font-size:13px;font-weight:850;text-transform:none}.pro-create-form label>span>b{color:#b34949}.pro-create-form label>small{color:#7b91a1;font-size:13px;line-height:1.4}.pro-create-form input,.pro-create-form select,.pro-create-form textarea{width:100%;min-height:44px;padding:0 12px;border:1px solid #cbdce6;border-radius:11px;color:#244b66;background:#fff;font:600 13px var(--sans)}.pro-create-form input:focus,.pro-create-form select:focus,.pro-create-form textarea:focus{border-color:#0a72a8;outline:0;box-shadow:0 0 0 3px rgba(10,114,168,.12)}.pro-create-form textarea{min-height:126px;padding:11px;resize:vertical}.pro-create-upload{padding:12px;border:1px dashed #9cbccc;border-radius:12px;background:#f5fafc}.pro-create-upload>span{color:#0a669b!important}.pro-create-upload>span svg{width:17px}.pro-create-upload input{min-height:0;padding:0;border:0;border-radius:0;background:transparent}.pro-create-preview{margin:21px 18px;padding:17px;align-self:start;display:grid;gap:7px;border:1px solid #d7e5ec;border-radius:15px;color:#355a72;background:linear-gradient(160deg,#f5fafc,#fff)}.pro-create-preview small{color:#9a6d1f;font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pro-create-preview>b{color:#163d59;font:700 20px/1.2 var(--serif);overflow-wrap:anywhere}.pro-create-preview p{margin:1px 0 5px;color:#668092;font-size:13px;line-height:1.5}.pro-create-preview>div{display:grid;gap:7px}.pro-create-preview span{display:flex;align-items:center;gap:7px;color:#3f647b;font-size:13px}.pro-create-preview span svg{width:15px;color:#0b709f}.pro-create-actions{grid-column:1/-1;padding:15px 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #dce7ed;background:#f8fbfc}.pro-create-actions>small{display:flex;align-items:center;gap:6px;color:#70899a;font-size:13px}.pro-create-actions>small svg{width:15px;color:#0b709e}.pro-create-actions>div{display:flex;gap:8px}.pro-create-actions .btn{justify-self:auto}
@media(max-width:760px){.pro-create-form{grid-template-columns:1fr}.pro-create-form-grid{padding:18px;border-right:0}.pro-create-preview{margin:0 18px 18px}.pro-create-hero{padding:18px;grid-template-columns:43px minmax(0,1fr)}.pro-create-hero>span{width:43px;height:43px}.pro-create-hero em{grid-column:1/-1;justify-self:start}.pro-create-actions{padding:14px 18px;align-items:stretch;flex-direction:column}.pro-create-actions>div{display:grid;grid-template-columns:1fr 1fr}.pro-create-actions .btn{width:100%;justify-content:center}}
@media(max-width:480px){.pro-create-form-grid{grid-template-columns:1fr}.pro-create-form label.wide{grid-column:auto}.pro-create-hero h3{font-size:21px}.pro-create-actions>div{grid-template-columns:1fr}}
.entity-section-nav{position:sticky;top:78px;z-index:7;margin:16px 0;padding:9px;display:flex;gap:8px;overflow-x:auto;border:1px solid #d5e0e8;border-radius:15px;background:rgba(255,255,255,.95);box-shadow:0 9px 24px rgba(14,47,72,.08)}.entity-section-nav a{padding:10px 14px;border-radius:10px;color:#446179;font-size:13px;font-weight:800;white-space:nowrap}.entity-section-nav a:hover{color:#fff;background:#0b629a}.entity-intelligence{margin-top:16px;scroll-margin-top:145px}.entity-check-grid{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.entity-check-grid article{padding:14px;display:flex;gap:11px;align-items:flex-start;border:1px solid #dbe5ec;border-radius:12px;background:#f9fbfc}.entity-check-grid i{width:26px;height:26px;flex:0 0 26px;display:grid;place-items:center;border-radius:50%;font-style:normal;font-weight:900}.entity-check-grid i.ok{color:#087553;background:#dff5ed}.entity-check-grid i.warn{color:#9c6812;background:#fff0c8}.entity-check-grid b,.entity-check-grid small{display:block}.entity-check-grid b{color:#173b57;font-size:13px}.entity-check-grid small{margin-top:4px;color:#75899a;font-size:13px}.risk-bars{padding:20px;display:grid;gap:15px}.risk-bars>div{display:grid;grid-template-columns:130px 1fr 42px;gap:10px;align-items:center}.risk-bars span{color:#526d82;font-size:13px;font-weight:700}.risk-bars i{height:9px;overflow:hidden;border-radius:20px;background:#e6eef3}.risk-bars em{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#1682bb,#d1a039)}.risk-bars b{color:#173b57;font-size:13px;text-align:right}.entity-history{padding:18px;display:grid;gap:10px}.entity-history article{position:relative;padding:12px 12px 12px 30px;border-left:2px solid #d4e1e9}.entity-history article>i{position:absolute;left:-7px;top:17px;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#0e76b3;box-shadow:0 0 0 1px #9cb7c9}.entity-history small,.entity-history b{display:block}.entity-history small{color:#9a722b}.entity-history b{margin:4px 0;color:#173b57}.entity-history p{margin:0;color:#70869a;font-size:13px}.entity-finance-grid{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.entity-finance-grid article{padding:15px;border:1px solid #dbe5ec;border-radius:12px;background:#f9fbfc}.entity-finance-grid small,.entity-finance-grid b,.entity-finance-grid span{display:block}.entity-finance-grid small{color:#748a9c}.entity-finance-grid b{margin:8px 0;color:#123b5a;font-size:21px}.entity-finance-grid span{color:#7890a2;font-size:13px}.entity-related-grid{padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.entity-related-grid>a{padding:13px;display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;border:1px solid #dbe5ec;border-radius:12px;color:#135f91}.entity-related-grid b,.entity-related-grid small{display:block}.entity-related-grid b{color:#173b57;font-size:13px}.entity-related-grid small{margin-top:4px;color:#788d9f;font-size:13px}
@media(max-width:700px){.entity-check-grid,.entity-finance-grid,.entity-related-grid{grid-template-columns:1fr}.risk-bars>div{grid-template-columns:100px 1fr 38px}}

/* Document intake: local-first OCR, correction and page-aware text. */
body.intake-open{overflow:hidden}.document-intake{position:fixed;z-index:200;inset:0}.document-intake-backdrop{position:absolute;inset:0;background:rgba(3,20,37,.72);backdrop-filter:blur(10px)}.document-intake-dialog{position:absolute;inset:24px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(255,255,255,.3);border-radius:24px;background:#f1f5f8;box-shadow:0 35px 100px rgba(0,18,35,.42)}.document-intake-dialog>header{min-height:92px;padding:18px 24px;display:flex;justify-content:space-between;gap:20px;color:#fff;background:radial-gradient(circle at 82% 10%,rgba(58,145,207,.42),transparent 30%),linear-gradient(135deg,#061f3b,#0a4f82)}.document-intake-dialog>header h2{margin:4px 0;color:#fff;font:700 28px/1.1 var(--serif)}.document-intake-dialog>header p{margin:6px 0 0;color:#c4d9e8;font-size:13px}.document-intake-dialog>header .eyebrow{color:#efc968}.intake-close{width:42px;height:42px;border:1px solid rgba(255,255,255,.28);border-radius:12px;color:#fff;background:rgba(255,255,255,.08);font-size:25px;cursor:pointer}.intake-layout{min-height:0;display:grid;grid-template-columns:320px minmax(0,1fr)}.intake-sidebar{min-height:0;padding:18px;display:flex;flex-direction:column;gap:14px;border-right:1px solid #d6e1e9;background:#fff;overflow:auto}.intake-dropzone{min-height:150px;padding:20px;display:grid;place-items:center;align-content:center;gap:7px;border:2px dashed #b8cad8;border-radius:17px;color:#3f5f78;background:linear-gradient(145deg,#f7fbfd,#eef5f9);text-align:center;cursor:pointer}.intake-dropzone.dragging{border-color:#0874b5;background:#e8f6fd}.intake-dropzone input{position:absolute;width:1px;height:1px;opacity:0}.intake-dropzone>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#0b659e;font-size:24px}.intake-dropzone>b{font-size:13px}.intake-dropzone>small{color:#7890a3}.intake-options{padding:13px;display:grid;gap:11px;border:1px solid #dce6ed;border-radius:14px;background:#f9fbfc}.intake-options label{display:flex;align-items:center;gap:8px;color:#436078;font-size:13px;font-weight:700}.intake-options label:last-child{display:grid}.intake-options select{min-height:36px;padding:0 9px;border:1px solid #cfdde7;border-radius:8px;background:#fff}.intake-queue{display:grid;gap:8px}.intake-queue article{padding:9px;display:grid;grid-template-columns:38px minmax(0,1fr) 28px;gap:9px;align-items:center;border:1px solid #dbe5ec;border-radius:11px}.intake-queue article>span{height:35px;display:grid;place-items:center;border-radius:8px;color:#fff;background:#193f60;font-size:13px;font-weight:900}.intake-queue b,.intake-queue small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intake-queue b{font-size:13px}.intake-queue small{margin-top:4px;color:#758a9d;font-size:13px}.intake-queue button{border:0;color:#7890a4;background:transparent;font-size:18px}.intake-empty{padding:16px;display:grid;gap:5px;color:#7890a4;text-align:center;font-size:13px}.intake-process{width:100%;min-height:46px}.intake-privacy{margin:0;color:#8294a4;font-size:13px;line-height:1.55}.intake-workspace{min-width:0;min-height:0;overflow:auto}.intake-welcome{height:100%;padding:40px;display:grid;place-items:center;align-content:center;gap:16px;text-align:center}.intake-welcome h3{margin:0;color:#123755;font:700 29px/1.1 var(--serif)}.intake-welcome p{max-width:600px;margin:0;color:#657d91;line-height:1.7}.intake-capabilities{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.intake-capabilities span{padding:8px 11px;border:1px solid #d3e1ea;border-radius:999px;color:#266083;background:#fff;font-size:13px;font-weight:750}.intake-orbit{width:180px;height:180px;position:relative;display:grid;place-items:center;border:1px dashed #aac1d2;border-radius:50%;animation:intake-spin 18s linear infinite}.intake-orbit b{width:68px;height:68px;display:grid;place-items:center;border-radius:20px;color:#fff;background:linear-gradient(145deg,#0b74b5,#062f57);box-shadow:0 18px 35px rgba(9,79,128,.25);font-size:15px}.intake-orbit i{position:absolute;padding:7px 9px;border:1px solid #d7e2ea;border-radius:9px;color:#9b6c1b;background:#fff;font-size:13px;font-style:normal;font-weight:900;animation:intake-counter 18s linear infinite}.intake-orbit i:nth-child(1){top:8px}.intake-orbit i:nth-child(2){right:-7px;bottom:29px}.intake-orbit i:nth-child(3){left:-10px;bottom:28px}@keyframes intake-spin{to{transform:rotate(360deg)}}@keyframes intake-counter{to{transform:rotate(-360deg)}}.intake-editor{min-height:100%;padding-bottom:24px}.intake-toolbar{position:sticky;z-index:3;top:0;padding:10px 16px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #d4e0e8;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}.intake-toolbar>label{margin-left:auto;min-width:290px;display:flex;align-items:center;gap:8px}.intake-toolbar>label span{font-size:13px;font-weight:800;white-space:nowrap}.intake-toolbar input{width:100%;min-height:38px;padding:0 10px;border:1px solid #cfdae3;border-radius:9px}.intake-document-tabs{padding:14px 16px 0;display:flex;gap:8px;overflow-x:auto}.intake-document-tabs button{min-width:210px;padding:10px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:3px 9px;border:1px solid #d4e0e8;border-radius:12px;color:#173b57;background:#fff;text-align:left}.intake-document-tabs button>span{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#496982;font-size:13px;font-weight:900}.intake-document-tabs button>b,.intake-document-tabs button>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intake-document-tabs button>b{font-size:13px}.intake-document-tabs button>small{color:#7990a2;font-size:13px}.intake-document-tabs button.active{border-color:#0a70ad;box-shadow:0 8px 20px rgba(8,90,145,.13)}.intake-document-tabs button.active>span{background:#0a659f}.intake-page-layout{padding:16px;display:grid;grid-template-columns:minmax(330px,.85fr) minmax(420px,1.15fr);gap:16px;align-items:start}.intake-preview,.intake-text-panel{overflow:hidden;border:1px solid #d5e0e8;border-radius:16px;background:#fff;box-shadow:0 12px 30px rgba(18,52,78,.08)}.intake-preview>div{min-height:620px;padding:14px;display:grid;place-items:center;background:#dfe7ec}.intake-preview img{max-width:100%;max-height:760px;object-fit:contain;box-shadow:0 13px 35px rgba(8,27,43,.2)}.intake-preview>footer{padding:11px 14px;display:flex;justify-content:space-between;color:#60798e;font-size:13px;font-weight:800}.intake-text-preview{display:grid;place-items:center;gap:8px;color:#8295a5}.intake-text-preview b{font-size:35px;color:#1b5f8f}.intake-text-panel>header{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e7ec}.intake-text-panel h3{margin:4px 0 0;font:700 19px var(--serif)}.intake-text-panel textarea{width:100%;min-height:650px;padding:24px;border:0;outline:0;resize:vertical;color:#213e55;background:#fff;font:15px/1.85 var(--serif)}.intake-text-panel>footer{padding:11px 17px;display:flex;justify-content:space-between;border-top:1px solid #e0e7ec;color:#71889b;font-size:13px}.intake-toast{position:fixed;z-index:300;right:24px;bottom:24px;max-width:440px;padding:13px 16px;border-radius:12px;color:#fff;background:#087653;box-shadow:0 12px 35px rgba(0,0,0,.25);font-size:13px;font-weight:800}.intake-toast.error{background:#b33b42}

/* UTF-8/Base64 verification shared by law and Sejm PDF workspaces. */
.text-codec{margin:18px;padding:18px;border:1px solid #d5e1e9;border-radius:15px;background:linear-gradient(145deg,#f8fbfd,#fffaf0)}.text-codec>header{display:flex;justify-content:space-between;gap:14px}.text-codec h3{margin:4px 0 0;color:#173b57;font:700 18px var(--serif)}.text-codec>div{margin-top:13px;display:flex;gap:7px;flex-wrap:wrap}.text-codec textarea{width:100%;min-height:100px;margin-top:11px;padding:12px;border:1px solid #cfdde7;border-radius:10px;background:#fff;font:13px/1.55 Consolas,monospace}.text-codec footer{margin-top:8px;color:#60788c;font-size:13px;overflow-wrap:anywhere}

@media(max-width:980px){.document-intake-dialog{inset:8px}.intake-layout{grid-template-columns:260px minmax(0,1fr)}.intake-page-layout{grid-template-columns:1fr}.intake-preview>div{min-height:420px}.intake-text-panel textarea{min-height:480px}}
@media(max-width:700px){.document-intake-dialog{inset:0;border-radius:0}.document-intake-dialog>header{min-height:82px;padding:14px}.document-intake-dialog>header h2{font-size:22px}.document-intake-dialog>header p{display:none}.intake-layout{display:block;overflow:auto}.intake-sidebar{border-right:0}.intake-workspace{overflow:visible}.intake-toolbar{flex-wrap:wrap}.intake-toolbar>label{order:2;min-width:100%}.intake-page-layout{padding:10px}.intake-text-panel textarea{font-size:14px}.intake-orbit{width:140px;height:140px}}

/* Interactive product tour on the public landing page. */
.landing-tour{padding-top:75px;background:radial-gradient(circle at 10% 15%,rgba(204,157,59,.1),transparent 24rem),linear-gradient(180deg,#f6f9fb,#fff)}.landing-tour-tabs{max-width:1180px;margin:0 auto 14px;padding:8px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;border:1px solid #d7e2ea;border-radius:17px;background:rgba(255,255,255,.92);box-shadow:0 15px 45px rgba(12,46,73,.08)}.landing-tour-tabs button{min-height:62px;padding:8px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:12px;color:#4f697e;background:transparent;font:800 13px var(--sans);cursor:pointer}.landing-tour-tabs .ui-icon{width:20px;color:#b17c27}.landing-tour-tabs button:hover{color:#0b6198;background:#eef6fa}.landing-tour-tabs button.active{color:#fff;border-color:#0a527e;background:linear-gradient(145deg,#0b6fa8,#063b62);box-shadow:0 10px 22px rgba(8,76,120,.2)}.landing-tour-tabs button.active .ui-icon{color:#f2ce76}.landing-tour-stage{max-width:1180px;margin:0 auto}.landing-tour-pane{min-height:460px;padding:38px;display:grid;grid-template-columns:minmax(300px,.8fr) minmax(450px,1.2fr);gap:45px;align-items:center;border:1px solid #d8e3ea;border-radius:24px;background:#fff;box-shadow:0 28px 75px rgba(10,45,73,.13);animation:tour-in .35s ease both}.landing-tour-pane[hidden]{display:none}.landing-tour-copy h3{margin:10px 0 13px;color:#0c2c49;font:700 clamp(31px,3vw,45px)/1 var(--serif)}.landing-tour-copy p{margin:0;color:#61788c;font-size:13px;line-height:1.75}.landing-tour-copy ul{margin:20px 0;padding:0;display:grid;gap:10px;list-style:none;color:#244c69;font-size:13px;font-weight:750}.landing-tour-copy li::first-letter{color:#b7822a}.landing-tour-copy .btn{margin-top:8px}.landing-tour-preview{min-height:320px;padding:22px;display:grid;place-items:center;overflow:hidden;border:1px solid #cbdce7;border-radius:20px;background:radial-gradient(circle at 80% 0,rgba(33,127,190,.16),transparent 50%),linear-gradient(145deg,#eaf2f7,#f9fbfc)}.landing-tour-preview .module-shot{width:min(520px,100%);min-height:280px;box-shadow:0 20px 50px rgba(10,45,72,.16)}@keyframes tour-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:900px){.landing-tour-tabs{grid-template-columns:repeat(3,1fr)}.landing-tour-pane{grid-template-columns:1fr}.landing-tour-preview{order:-1}}
@media(max-width:560px){.landing-tour-tabs{display:flex;overflow-x:auto}.landing-tour-tabs button{min-width:145px}.landing-tour-pane{min-height:0;padding:20px}.landing-tour-preview{min-height:240px;padding:10px}.landing-tour-copy h3{font-size:30px}}

/* Evidence-first stolen property registry. */
.registry-hero{margin-bottom:15px;padding:30px 34px;display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,.7fr);gap:35px;align-items:center;border-radius:21px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(47,139,199,.44),transparent 37%),linear-gradient(135deg,#051e39,#0a4c7d);box-shadow:0 20px 45px rgba(5,44,75,.16)}.registry-hero h2{max-width:800px;margin:8px 0 11px;color:#fff;font:700 clamp(29px,3vw,44px)/1.04 var(--serif)}.registry-hero p{max-width:760px;margin:0;color:#c6dbea;font-size:13px;line-height:1.7}.registry-hero .eyebrow{color:#efc866}.registry-hero-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.registry-hero-stats article{padding:16px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08)}.registry-hero-stats b,.registry-hero-stats small{display:block}.registry-hero-stats b{font:700 27px var(--serif)}.registry-hero-stats small{margin-top:3px;color:#c8d9e7;font-size:13px;text-transform:uppercase}.registry-filter-panel{margin-bottom:15px;padding:10px;display:flex;align-items:center;gap:8px;border:1px solid #d6e1e9;border-radius:14px;background:#fff;box-shadow:var(--shadow)}.registry-filter-panel>label{min-width:280px;flex:1;display:flex;align-items:center;gap:8px}.registry-filter-panel .ui-icon{width:18px;color:#347397}.registry-filter-panel input,.registry-filter-panel select{min-height:41px;padding:0 11px;border:1px solid #cedbe5;border-radius:9px;color:#173750;background:#f9fbfc;font:700 13px var(--sans)}.registry-filter-panel input{width:100%;border:0;background:transparent}.registry-filter-panel>span{padding:8px 11px;border-radius:999px;color:#5e768a;background:#eef4f7;font-size:13px;font-weight:800;white-space:nowrap}.registry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.registry-card{min-width:0;overflow:hidden;border:1px solid #d6e1e9;border-radius:17px;background:#fff;box-shadow:0 10px 30px rgba(18,49,74,.08);transition:.25s ease}.registry-card:hover{transform:translateY(-3px);border-color:#b5cbd9;box-shadow:0 20px 45px rgba(13,52,81,.13)}.registry-card-image{height:205px;position:relative;display:block;overflow:hidden;background:#e8eef2}.registry-card-image img{width:100%;height:100%;object-fit:cover;transition:.4s ease}.registry-card:hover .registry-card-image img{transform:scale(1.035)}.registry-card-image>span{position:absolute;left:12px;bottom:12px;padding:7px 9px;border:1px solid rgba(255,255,255,.45);border-radius:8px;color:#fff;background:rgba(3,31,52,.75);backdrop-filter:blur(8px);font-size:13px;font-weight:850}.registry-card-body{padding:16px}.registry-card-body>div:first-child{display:flex;align-items:center;justify-content:space-between}.registry-card-body>div:first-child>small{color:#7c8f9f}.registry-card-body h3{margin:13px 0 7px;font:700 19px/1.12 var(--serif)}.registry-card-body h3 a{color:#153b58}.registry-card-body>p{height:48px;margin:0;overflow:hidden;color:#687f92;font-size:13px;line-height:1.65}.registry-card-body dl{margin:14px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.registry-card-body dl>div{min-width:0;padding:9px;border-radius:9px;background:#f5f8fa}.registry-card-body dt,.registry-card-body dd{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.registry-card-body dt{color:#8193a1;font-size:13px;text-transform:uppercase}.registry-card-body dd{margin:4px 0 0;color:#24465f;font-size:13px;font-weight:800}.registry-card-body footer{padding-top:12px;display:flex;gap:12px;align-items:center;border-top:1px solid #e5ebef;color:#6c8294;font-size:13px}.registry-card-body footer span{display:flex;align-items:center;gap:4px}.registry-card-body footer .ui-icon{width:13px}.registry-card-body footer a{margin-left:auto;color:#0b679e;font-weight:850}.registry-no-results{padding:40px;text-align:center}.registry-no-results b{font:700 23px var(--serif)}.registry-no-results p{color:#72889a}
.registry-record-hero{min-height:420px;margin-bottom:16px;display:grid;grid-template-columns:minmax(380px,.8fr) minmax(500px,1.2fr);overflow:hidden;border-radius:21px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(45,137,201,.45),transparent 35%),linear-gradient(140deg,#061d37,#0b4b7a);box-shadow:0 20px 48px rgba(8,44,73,.18)}.registry-record-cover{min-height:420px;position:relative;overflow:hidden}.registry-record-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 60%,rgba(6,31,56,.7))}.registry-record-cover>img{width:100%;height:100%;object-fit:cover}.registry-record-cover>.badge{position:absolute;z-index:2;left:20px;bottom:20px}.registry-record-title{padding:42px;align-self:center}.registry-record-title .eyebrow{color:#f0c769}.registry-record-title h1{margin:10px 0 13px;color:#fff;font:700 clamp(33px,3.4vw,52px)/1.02 var(--serif)}.registry-record-title>p{max-width:720px;margin:0;color:#c9dce9;font-size:13px;line-height:1.7}.registry-record-identifiers{margin:25px 0;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.registry-record-identifiers article{padding:12px;border:1px solid rgba(255,255,255,.16);border-radius:11px;background:rgba(255,255,255,.07)}.registry-record-identifiers small,.registry-record-identifiers b{display:block}.registry-record-identifiers small{color:#a9c0d3;font-size:13px;text-transform:uppercase}.registry-record-identifiers b{margin-top:5px;color:#fff;font-size:13px}.registry-record-title .btn{border-color:rgba(255,255,255,.27);color:#fff;background:rgba(255,255,255,.09)}.registry-record-title .btn.primary{background:#0c78b9}.registry-record-nav{position:sticky;z-index:8;top:82px;margin-bottom:16px;padding:8px;display:grid;grid-template-columns:repeat(5,1fr);gap:7px;border:1px solid #d5e0e8;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(15,49,74,.08);backdrop-filter:blur(12px)}.registry-record-nav button{min-height:42px;border:0;border-radius:9px;color:#587287;background:transparent;font-weight:800;cursor:pointer}.registry-record-nav button.active,.registry-record-nav button:hover{color:#fff;background:#0b6198}.registry-record-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}.registry-record-layout>main{min-width:0;display:grid;gap:16px}.registry-record-layout>aside{position:sticky;top:150px;display:grid;gap:14px}.registry-section{scroll-margin-top:150px;overflow:hidden}.registry-facts{padding:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.registry-facts article{padding:14px;border:1px solid #dbe5ec;border-radius:11px;background:#f8fafb}.registry-facts small,.registry-facts b{display:block}.registry-facts small{color:#8294a2;font-size:13px;text-transform:uppercase}.registry-facts b{margin-top:6px;color:#173b57;font-size:13px;overflow-wrap:anywhere}.registry-section>.tags{padding:0 16px 16px}.registry-gallery{padding:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.registry-gallery button{min-width:0;padding:0;overflow:hidden;border:1px solid #d5e1e9;border-radius:12px;background:#fff;text-align:left;cursor:pointer}.registry-gallery img{width:100%;height:180px;display:block;object-fit:cover}.registry-gallery span{padding:10px;display:block}.registry-gallery b,.registry-gallery small{display:block}.registry-gallery b{color:#193c57;font-size:13px}.registry-gallery small{margin-top:4px;color:#7c8f9f;font-size:13px;overflow-wrap:anywhere}.registry-documents{padding:8px 16px 16px;display:grid}.registry-documents article{padding:12px 0;display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;gap:10px;align-items:center;border-top:1px solid #e3e9ee}.registry-documents article:first-child{border-top:0}.registry-documents article>span:first-child{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;color:#0b6ea8;background:#e7f3fa}.registry-documents .ui-icon{width:18px}.registry-documents b,.registry-documents small{display:block}.registry-documents b{color:#173b57;font-size:13px}.registry-documents small{margin-top:3px;color:#798e9f;font-size:13px}.registry-timeline{padding:18px;display:grid;gap:0}.registry-timeline article{min-height:75px;display:grid;grid-template-columns:18px 110px 1fr;gap:10px;position:relative}.registry-timeline article::before{content:"";position:absolute;left:5px;top:16px;bottom:-2px;width:1px;background:#cad8e2}.registry-timeline article:last-child::before{display:none}.registry-timeline i{z-index:1;width:11px;height:11px;margin-top:3px;border:3px solid #fff;border-radius:50%;background:#0b72ac;box-shadow:0 0 0 1px #9eb6c8}.registry-timeline time{color:#9b7228;font-size:13px;font-weight:800}.registry-timeline b{color:#173b57;font-size:13px}.registry-timeline p{margin:5px 0;color:#6f8597;font-size:13px;line-height:1.55}.registry-codec{padding:18px;display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:16px}.registry-codec label{display:grid;gap:7px;color:#526e82;font-size:13px;font-weight:800}.registry-codec textarea{min-height:180px;padding:13px;border:1px solid #cfdae3;border-radius:11px;background:#f8fafb;font:13px/1.6 Consolas,monospace}.registry-codec .head-actions{margin-top:10px}.registry-codec output{margin-top:10px;display:block;color:#577186;font-size:13px;overflow-wrap:anywhere}.registry-codec aside{padding:18px;border:1px solid #ead8a7;border-radius:13px;background:#fffaf0}.registry-codec aside small,.registry-codec aside b,.registry-codec aside span{display:block}.registry-codec aside small{color:#9a742a;text-transform:uppercase}.registry-codec aside b{margin:8px 0;color:#173b57;font:700 21px var(--serif)}.registry-codec aside span{color:#74684e;font-size:13px;line-height:1.6}.registry-side-card{padding:18px}.registry-side-card h2{margin:0 0 14px;font:700 22px var(--serif)}.registry-side-card dl{margin:0;display:grid}.registry-side-card dl div{padding:11px 0;display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e5ebef}.registry-side-card dt{color:#7b8f9f;font-size:13px}.registry-side-card dd{margin:0;color:#173b57;font-size:13px;font-weight:800;text-align:right}.registry-alert{padding:17px;display:flex;gap:11px;border:1px solid #d7c080;border-radius:14px;color:#70531e;background:linear-gradient(145deg,#fff8e7,#fff)}.registry-alert>span{width:33px;height:33px;flex:0 0 33px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#b8862f}.registry-alert .ui-icon{width:19px}.registry-alert b{font-size:13px}.registry-alert p{margin:6px 0 0;font-size:13px;line-height:1.55}
@media(max-width:1200px){.registry-grid{grid-template-columns:repeat(2,1fr)}.registry-record-layout{grid-template-columns:minmax(0,1fr) 260px}.registry-record-hero{grid-template-columns:minmax(330px,.7fr) 1fr}}
@media(max-width:900px){.registry-hero{grid-template-columns:1fr}.registry-filter-panel{flex-wrap:wrap}.registry-filter-panel>label{flex-basis:100%}.registry-record-hero{grid-template-columns:1fr}.registry-record-cover{min-height:330px}.registry-record-layout{grid-template-columns:1fr}.registry-record-layout>aside{position:static}.registry-record-nav{overflow-x:auto;grid-template-columns:repeat(5,minmax(125px,1fr))}.registry-facts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.registry-grid{grid-template-columns:1fr}.registry-hero{padding:24px}.registry-hero-stats{grid-template-columns:1fr 1fr}.registry-filter-panel select{width:100%}.registry-record-title{padding:24px}.registry-record-identifiers{grid-template-columns:1fr}.registry-gallery{grid-template-columns:1fr}.registry-documents article{grid-template-columns:36px minmax(0,1fr)}.registry-documents article>.badge,.registry-documents article>.btn{grid-column:2;justify-self:start}.registry-facts{grid-template-columns:1fr}.registry-codec{grid-template-columns:1fr}.registry-timeline article{grid-template-columns:18px 1fr}.registry-timeline time{grid-column:2}.registry-timeline article>div{grid-column:2}}

/* Regression fixes: OCR find bar and dashboard activity chart. */
.ocr-editor>.ocr-find-bar{min-width:0;min-height:58px;height:auto!important;padding:9px 10px;display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto auto auto 36px;gap:7px;align-items:center;border-bottom:1px solid #d7e2ea;background:#f1f6f9}.ocr-editor>.ocr-find-bar.hidden{display:none!important}.ocr-find-bar input,.ocr-find-bar button{width:auto!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0 10px!important;border:1px solid #cbd9e4;border-radius:9px;color:#284a64;background:#fff;font:750 13px/1 var(--sans)}.ocr-find-bar input{min-width:0}.ocr-find-bar button{white-space:nowrap;cursor:pointer}.ocr-find-bar button:hover{border-color:#0c6ca5;color:#0b639a}.ocr-find-bar [data-ocr-find-close]{width:36px!important;padding:0!important;font-size:18px}.ocr-editor>.ocr-textarea{min-height:420px}
.demo-activity{height:230px!important;padding:16px!important;display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;gap:18px!important;align-items:stretch!important}.demo-activity-legend{display:grid;align-content:center;gap:14px}.demo-activity-legend span{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;color:#567086!important;font-size:13px!important}.demo-activity-legend i{width:28px!important;height:8px!important;min-height:8px!important;flex:0 0 28px;border-radius:999px!important}.demo-activity-legend .documents,.demo-activity-bars i.documents{background:linear-gradient(180deg,#277fb8,#0b527f)}.demo-activity-legend .analyses,.demo-activity-bars i.analyses{background:linear-gradient(180deg,#e1b656,#b77b16)}.demo-activity-legend .deadlines,.demo-activity-bars i.deadlines{background:linear-gradient(180deg,#43ad8d,#17745d)}.demo-activity-bars{min-width:0;display:grid;grid-template-columns:repeat(7,minmax(42px,1fr));gap:12px;align-items:end;border-left:1px solid #dbe5ec;border-bottom:1px solid #dbe5ec;background:repeating-linear-gradient(to top,transparent 0,transparent 37px,rgba(37,91,130,.07) 38px)}.demo-activity-bars article{height:185px;display:grid;grid-template-rows:160px 25px;align-items:end}.demo-activity-bars article>div{height:150px;padding:0 7px;display:flex;align-items:flex-end;justify-content:center;gap:4px}.demo-activity-bars article i{width:9px!important;min-height:5px!important;border-radius:5px 5px 1px 1px!important;box-shadow:none!important}.demo-activity-bars article small{display:block;color:#60798e;font-size:13px;text-align:center}.landing-twin-stage>aside button{width:100%;padding:12px 13px;display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:10px;color:#94abc1;background:transparent;font:800 13px var(--sans);text-align:left;cursor:pointer}.landing-twin-stage>aside button>b{color:#d5a444;font-size:13px;letter-spacing:.08em}.landing-twin-stage>aside button:hover{color:#fff;background:rgba(255,255,255,.05)}.landing-twin-stage>aside button.active{color:#fff;border-color:rgba(239,205,127,.3);background:rgba(255,255,255,.08);box-shadow:inset 3px 0 #e6bd61}.landing-twin-stage main>footer i{font-style:normal}.landing-twin-visual.is-changing>span{animation:twin-node-in .35s ease both}.landing-twin-visual.is-changing .n1{animation-delay:.03s}.landing-twin-visual.is-changing .n2{animation-delay:.06s}.landing-twin-visual.is-changing .n3{animation-delay:.09s}.landing-twin-visual.is-changing .n4{animation-delay:.12s}@keyframes twin-node-in{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:none}}.landing-twin-visual.is-changing>span.center{animation:twin-center-in .35s ease both}@keyframes twin-center-in{from{opacity:.4;transform:translate(-50%,-45%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:900px){.ocr-editor>.ocr-find-bar{grid-template-columns:1fr 1fr auto auto}.ocr-find-bar [data-ocr-replace-all]{grid-column:3}.demo-activity{grid-template-columns:1fr!important;height:auto!important}.demo-activity-legend{display:flex;justify-content:center}.demo-activity-bars{min-height:190px;border-left:0}.landing-twin-stage>aside button{min-width:150px}}
@media(max-width:560px){.ocr-editor>.ocr-find-bar{grid-template-columns:1fr 1fr}.ocr-find-bar button{width:100%!important}.ocr-find-bar [data-ocr-find-close]{position:absolute;right:12px;margin-top:-56px!important}.demo-activity{padding:10px!important}.demo-activity-bars{gap:5px}.demo-activity-bars article>div{padding:0 2px;gap:2px}.demo-activity-bars article i{width:6px!important}}

/* OCR workspace uses body scroll; page navigation stays visible on the right. */
body[data-page="ocr"].workspace-page .ocr-shell{grid-template-columns:minmax(360px,.92fr) minmax(0,1.08fr) 165px;align-items:start;overflow:visible}
body[data-page="ocr"].workspace-page .ocr-scan{grid-column:1;grid-row:1;min-width:0;overflow:visible}
body[data-page="ocr"].workspace-page .ocr-editor{grid-column:2;grid-row:1;min-width:0;min-height:780px;border-left:1px solid #d6e1e9}
body[data-page="ocr"].workspace-page .ocr-pages{grid-column:3;grid-row:1;max-height:calc(100vh - 116px);position:sticky;top:96px;overflow-y:auto;border-right:0;border-left:1px solid #d6e1e9}
body[data-page="ocr"].workspace-page .editor-toolbar{flex-wrap:wrap;overflow:visible}
body[data-page="ocr"].workspace-page .editor-toolbar .confidence{margin-left:auto}
body[data-page="ocr"].workspace-page .paper{width:min(100%,590px);padding-left:42px;padding-right:42px}
@media(max-width:1380px){body[data-page="ocr"].workspace-page .ocr-shell{grid-template-columns:minmax(330px,.9fr) minmax(0,1.1fr)}body[data-page="ocr"].workspace-page .ocr-pages{grid-column:1/-1;grid-row:1;max-height:none;padding:9px;position:static;display:flex;gap:8px;overflow-x:auto;border-left:0;border-bottom:1px solid #d6e1e9}body[data-page="ocr"].workspace-page .ocr-pages h3{min-width:120px;align-self:center}body[data-page="ocr"].workspace-page .ocr-thumb{min-width:115px;margin:0}body[data-page="ocr"].workspace-page .thumb-paper{height:75px}body[data-page="ocr"].workspace-page .ocr-scan{grid-row:2}body[data-page="ocr"].workspace-page .ocr-editor{grid-row:2}}
@media(max-width:900px){body[data-page="ocr"].workspace-page .ocr-shell{display:grid;grid-template-columns:1fr}body[data-page="ocr"].workspace-page .ocr-pages,body[data-page="ocr"].workspace-page .ocr-scan,body[data-page="ocr"].workspace-page .ocr-editor{grid-column:1;grid-row:auto}body[data-page="ocr"].workspace-page .ocr-editor{min-height:620px;border-left:0}.ocr-find-bar [data-ocr-replace-all]{grid-column:auto}}

/* Messenger-like chat: fixed chrome, independently scrolling messages. */
body[data-page="chat"] .chat-shell,
body[data-page="chat"].workspace-page .chat-shell{height:clamp(460px,calc(100vh - 255px),720px);min-height:460px;max-height:720px;display:grid;grid-template-columns:330px minmax(0,1fr);overflow:hidden;border:1px solid #d3dfe8;border-radius:20px;background:#fff;box-shadow:0 22px 55px rgba(9,42,70,.12)}
body[data-page="chat"] .conversation-list{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border-right:1px solid #dbe4eb;background:#fff}
body[data-page="chat"] .conversation-list>header{padding:17px 15px 12px;border-bottom:1px solid #e2e9ee;background:linear-gradient(180deg,#fff,#f8fafb)}
body[data-page="chat"] .conversation-list>header>div{display:flex;align-items:center;justify-content:space-between}
body[data-page="chat"] .conversation-list>header b{color:#123550;font:700 24px/1 var(--serif)}
body[data-page="chat"] .conversation-list>header button{width:34px;height:34px;border:0;border-radius:50%;color:#fff;background:#0a6199;font-size:20px;cursor:pointer}
body[data-page="chat"] .conversation-list>header label{height:40px;margin-top:13px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid #d6e1e9;border-radius:999px;color:#6b8194;background:#eef3f6}
body[data-page="chat"] .conversation-list>header svg{width:16px}
body[data-page="chat"] .conversation-list>header input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:13px}
body[data-page="chat"] [data-conversation-items]{min-height:0;overflow-y:auto;overscroll-behavior:contain}
body[data-page="chat"] .conversation{min-height:72px;padding:10px 13px;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;border-bottom:0;border-radius:0;background:#fff;cursor:pointer}
body[data-page="chat"] .conversation:hover{background:#f3f7fa}
body[data-page="chat"] .conversation.active{background:#e8f2f8}
body[data-page="chat"] .conversation .avatar,
body[data-page="chat"] .chat-head .avatar{width:44px;height:44px;position:relative;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(145deg,#1775ae,#073e6a);font-size:13px;font-weight:850}
body[data-page="chat"] .avatar i{position:absolute;right:0;bottom:1px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#25a87b}
body[data-page="chat"] .conversation b{overflow:hidden;color:#183a55;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
body[data-page="chat"] .conversation small{overflow:hidden;color:#75899b;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
body[data-page="chat"] .conversation time{color:#8295a4;font-size:13px}
body[data-page="chat"] .chat-panel{min-width:0;min-height:0;display:grid;grid-template-rows:68px minmax(0,1fr) 72px;background:#f4f7f9}
body[data-page="chat"] .chat-head{padding:0 17px;display:grid;grid-template-columns:auto 44px minmax(0,1fr) auto;gap:11px;align-items:center;border-bottom:1px solid #dae4eb;background:#fff}
body[data-page="chat"] [data-chat-back]{display:none}
body[data-page="chat"] .chat-head>div b,
body[data-page="chat"] .chat-head>div small{display:block}
body[data-page="chat"] .chat-head>div b{color:#163954;font-size:13px}
body[data-page="chat"] .chat-head>div small{margin-top:2px;font-size:13px}
body[data-page="chat"] .chat-head nav{display:flex;gap:5px}
body[data-page="chat"] .chat-head nav button{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;color:#0b659e;background:#edf5fa;cursor:pointer}
body[data-page="chat"] .chat-head nav svg{width:17px}
body[data-page="chat"] .messages{min-height:0;padding:20px 22px;overflow-y:auto;overscroll-behavior:contain;background:radial-gradient(circle at 90% 0,rgba(18,114,174,.07),transparent 22rem),linear-gradient(180deg,#f7f9fb,#eef3f6)}
body[data-page="chat"] .message{max-width:min(72%,620px);margin-bottom:8px}
body[data-page="chat"] .message-bubble{padding:10px 13px;border:1px solid #dae4eb;border-radius:17px 17px 17px 5px;background:#fff;box-shadow:0 4px 12px rgba(15,48,73,.04);font-size:13px}
body[data-page="chat"] .message.mine .message-bubble{border-color:#0b6198;border-radius:17px 17px 5px 17px;background:#0b6198}
body[data-page="chat"] .chat-compose{min-width:0;padding:11px 14px;display:grid;grid-template-columns:40px minmax(0,1fr) 42px;gap:9px;align-items:center;border-top:1px solid #d9e3ea;background:#fff}
body[data-page="chat"] .chat-compose>button{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;color:#0b639a;background:#eaf3f8;font-size:20px;cursor:pointer}
body[data-page="chat"] .chat-compose>label{height:42px;min-width:0;padding:0 15px;display:flex;align-items:center;border:1px solid #d6e0e8;border-radius:999px;background:#f1f5f7}
body[data-page="chat"] .chat-compose input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;font-size:13px}
body[data-page="chat"] .chat-compose label>span{display:none}
body[data-page="chat"] .chat-compose .chat-send{color:#fff;background:linear-gradient(145deg,#0e75b3,#084a79)}
body[data-page="chat"] .chat-compose .chat-send svg{width:18px}

/* Shared analytical timeline with two-ended date filtering. */
.timeline-explorer{margin:16px 18px 8px;padding:16px 18px;border:1px solid #d7e2ea;border-radius:15px;background:linear-gradient(145deg,#f8fbfd,#fff);box-shadow:0 9px 24px rgba(12,49,77,.055)}
.timeline-explorer>header,.timeline-explorer>footer{display:flex;align-items:center;justify-content:space-between;gap:14px}
.timeline-explorer>header b{display:block;color:#173a55;font-size:13px}.timeline-explorer output{padding:6px 9px;border-radius:999px;color:#0b6399;background:#e8f3f9;font-size:13px;font-weight:800}.timeline-explorer output::after{content:" · " attr(data-count);color:#688095}
.timeline-chart{height:82px;margin:13px 0 7px;padding:8px 5px 0;display:grid;grid-template-columns:repeat(12,1fr);gap:5px;align-items:end;border-bottom:1px solid #cad8e2;background:repeating-linear-gradient(to top,transparent 0,transparent 23px,rgba(30,87,127,.07) 24px)}
.timeline-chart i{height:var(--bar);min-height:5px;border-radius:5px 5px 1px 1px;background:linear-gradient(180deg,#2b89c2,#0a5689);transition:.2s}.timeline-chart i:nth-child(3n){background:linear-gradient(180deg,#e2b858,#ad771e)}
.timeline-sliders{height:24px;position:relative}.timeline-sliders input{position:absolute;inset:0;width:100%;height:24px;margin:0;background:transparent;pointer-events:none;appearance:none}.timeline-sliders input::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:#cbd9e3}.timeline-sliders input::-webkit-slider-thumb{width:18px;height:18px;margin-top:-7px;border:3px solid #fff;border-radius:50%;background:#0a659d;box-shadow:0 0 0 1px #0a659d;pointer-events:auto;appearance:none}.timeline-sliders input::-moz-range-track{height:4px;border-radius:999px;background:#cbd9e3}.timeline-sliders input::-moz-range-thumb{width:14px;height:14px;border:3px solid #fff;border-radius:50%;background:#0a659d;box-shadow:0 0 0 1px #0a659d;pointer-events:auto}
.timeline-explorer>footer{color:#70879a;font-size:13px}.timeline-explorer>footer button{border:0;color:#97691f;background:transparent;font-size:13px;font-weight:850;cursor:pointer}

@media(max-width:700px){
  body[data-page="chat"] .content>.page-head{display:none}
  body[data-page="chat"] .module-workspace{grid-template-columns:1fr;border-radius:14px}
  body[data-page="chat"] .module-rail,body[data-page="chat"] .module-workspace-bar,body[data-page="chat"] .module-scroll-dock{display:none}
  body[data-page="chat"] .module-canvas{display:block}
  body[data-page="chat"].workspace-page .module-canvas-scroll{padding:0!important;overflow:hidden}
  body[data-page="chat"] .chat-shell,body[data-page="chat"].workspace-page .chat-shell{height:calc(100dvh - 102px);min-height:440px;max-height:none;grid-template-columns:1fr;border-radius:13px}
  body[data-page="chat"] .conversation-list{grid-column:1;grid-row:1;border-right:0}
  body[data-page="chat"] .chat-panel{display:none;grid-column:1;grid-row:1}
  body[data-page="chat"] .chat-shell.conversation-open .conversation-list{display:none}
  body[data-page="chat"] .chat-shell.conversation-open .chat-panel{display:grid}
  body[data-page="chat"] [data-chat-back]{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;color:#0b639a;background:#edf5fa;font-size:18px}
  body[data-page="chat"] .chat-head{padding:0 10px;grid-template-columns:34px 40px minmax(0,1fr) auto}
  body[data-page="chat"] .chat-head .avatar{width:40px;height:40px}
  body[data-page="chat"] .chat-head nav button:last-child{display:none}
  body[data-page="chat"] .messages{padding:15px 12px}
  body[data-page="chat"] .message{max-width:86%}
  .timeline-explorer{margin:12px 10px}.timeline-explorer>header{align-items:flex-start;flex-direction:column}.timeline-chart{height:68px}
}

/* Full voting record. */
.voting-dashboard{margin:18px;padding:20px;border:1px solid #d4e1e9;border-radius:16px;background:radial-gradient(circle at 100% 0,rgba(37,126,184,.1),transparent 22rem),#f9fbfc}
.voting-dashboard>header,.voting-dashboard>footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.voting-dashboard h3{margin:4px 0 0;color:#143854;font:700 25px/1 var(--serif)}.voting-dashboard>header>b{padding:8px 11px;border-radius:999px;color:#506b81;background:#e9f0f4;font-size:13px}
.voting-bars{margin:20px 0;display:grid;gap:12px}.voting-bars article{display:grid;grid-template-columns:190px minmax(120px,1fr) 44px 42px;gap:10px;align-items:center}.voting-bars span{color:#516d83;font-size:13px;font-weight:800}.voting-bars i{height:12px;overflow:hidden;border-radius:999px;background:#e5edf2}.voting-bars em{height:100%;display:block;border-radius:inherit;background:#768da0}.voting-bars .yes em{background:linear-gradient(90deg,#198762,#35ad84)}.voting-bars .no em{background:linear-gradient(90deg,#b94d4d,#dd7670)}.voting-bars .abstain em{background:linear-gradient(90deg,#bd862a,#e1b85f)}.voting-bars b{color:#173b57;text-align:right}.voting-bars small{color:#7d91a2;text-align:right}
.sejm-record-grid>main>#document{order:-1}.sejm-pdf-workspace{scroll-margin-top:150px}.sejm-pdf-workspace .law-pdf-page{min-height:560px}.sejm-pdf-workspace .law-pdf-page [contenteditable]{min-height:390px;color:#263f56;font:15px/1.85 var(--serif);white-space:pre-wrap}
@media(max-width:680px){.voting-dashboard>header,.voting-dashboard>footer{align-items:flex-start;flex-direction:column}.voting-bars article{grid-template-columns:1fr 55px}.voting-bars i{grid-column:1}.voting-bars small{grid-column:2;grid-row:2}}

/* Landing offer demo. */
.landing-twin-offer{padding:18px 20px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr) 150px;gap:18px;align-items:center;border-top:1px solid #dfe7ed;background:linear-gradient(110deg,#f8fbfd 0,#fff 65%)}.landing-twin-offer small{display:block;color:#9b6b1e;font-size:13px;font-weight:900;letter-spacing:.12em}.landing-twin-offer h3{margin:5px 0 6px;color:#123652;font:700 18px/1.18 var(--serif)}.landing-twin-offer p{margin:0;color:#60788c;font-size:13px;line-height:1.55}.landing-twin-offer ul{margin:0;padding:0;display:grid;gap:10px;list-style:none}.landing-twin-offer li{padding-left:14px;position:relative}.landing-twin-offer li:before{content:"";width:6px;height:6px;position:absolute;left:0;top:5px;border-radius:50%;background:#d3a647;box-shadow:0 0 0 4px rgba(211,166,71,.13)}.landing-twin-offer li b,.landing-twin-offer li span{display:block}.landing-twin-offer li b{color:#274a65;font-size:13px}.landing-twin-offer li span{margin-top:2px;color:#788d9e;font-size:13px;line-height:1.45}.landing-twin-offer>aside{padding:14px;border:1px solid #d7e3ea;border-radius:13px;background:#fff;box-shadow:0 10px 24px rgba(12,49,78,.08)}.landing-twin-offer>aside b,.landing-twin-offer>aside span{display:block}.landing-twin-offer>aside b{margin:5px 0 2px;color:#0d5d91;font:800 18px var(--serif)}.landing-twin-offer>aside span{color:#72889a;font-size:13px;line-height:1.4}

/* Judges directory, profile and administration. */
.judge-disclaimer{margin-bottom:16px;padding:17px 20px;display:flex;gap:14px;align-items:center;border:1px solid #cfe0ea;border-radius:15px;color:#294d67;background:linear-gradient(120deg,#eef7fb,#fff)}.judge-disclaimer>svg{width:28px;height:28px;color:#0c6ba5}.judge-disclaimer b{font-size:13px}.judge-disclaimer p{margin:3px 0 0;color:#698195;font-size:13px}.judge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.judge-card{padding:20px}.judge-card>header{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:13px;align-items:center}.judge-avatar{width:54px;height:54px;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(218,177,83,.6);border-radius:17px;color:#082d4d;background:linear-gradient(145deg,#f4d783,#c98e28);font-weight:900}.judge-card h2{margin:3px 0;color:#143957;font:700 20px var(--serif)}.judge-card p{margin:0;color:#708599;font-size:13px}.judge-card-metrics{margin:18px 0;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #dbe5eb;border-radius:12px;overflow:hidden}.judge-card-metrics article{padding:12px;border-right:1px solid #dbe5eb}.judge-card-metrics article:last-child{border:0}.judge-card-metrics b,.judge-card-metrics small{display:block}.judge-card-metrics b{color:#0a5d91;font-size:17px}.judge-card-metrics small{margin-top:2px;color:#778c9e;font-size:13px}.judge-card>footer{margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.judge-card>footer small{max-width:220px;color:#8395a5;font-size:13px}.judge-hero{padding:24px;display:grid;grid-template-columns:70px minmax(0,1fr) 240px;gap:20px;align-items:center;border-radius:20px;color:#fff;background:radial-gradient(circle at 86% 0,rgba(39,127,189,.4),transparent 21rem),linear-gradient(135deg,#061e38,#0b4a7c)}.judge-hero .judge-avatar{width:70px;height:70px;font-size:20px}.judge-hero h1{margin:5px 0;font:700 32px var(--serif)}.judge-hero p{margin:0 0 10px;color:#c0d4e4}.judge-hero>aside{padding:17px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.08)}.judge-hero>aside small,.judge-hero>aside b,.judge-hero>aside span{display:block}.judge-hero>aside b{margin:4px 0;font-size:21px}.judge-hero>aside span{color:#c6d7e5;font-size:13px;line-height:1.5}.judge-summary{margin-top:16px}.judge-analysis-grid{margin-top:16px}.judge-bars{padding:20px;display:grid;gap:12px}.judge-bars>div{display:grid;grid-template-columns:minmax(95px,150px) minmax(80px,1fr) 28px;gap:10px;align-items:center}.judge-bars span{color:#46657d;font-size:13px;font-weight:750}.judge-bars i{height:8px;overflow:hidden;border-radius:999px;background:#e7eef3}.judge-bars em{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#0870ad,#d2a746)}.judge-bars b{color:#173e5b;font-size:13px;text-align:right}.judge-year-chart{height:210px;padding:24px 20px 18px;display:flex;gap:12px;align-items:flex-end;border-bottom:1px solid #dce6ec;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,rgba(30,92,134,.06) 40px)}.judge-year-chart article{height:100%;min-width:34px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.judge-year-chart i{width:min(30px,80%);min-height:5px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#1681bd,#0b4f7e)}.judge-year-chart b{margin-top:5px;color:#244b67;font-size:13px}.judge-year-chart small{color:#8294a3;font-size:13px}.judge-documents{padding:14px;display:grid;gap:9px}.judge-documents>a,.judge-json-link{padding:12px;display:flex;align-items:center;gap:10px;border:1px solid #dce5eb;border-radius:11px;color:#244b67;background:#fff}.judge-documents>a>span svg{width:22px}.judge-documents>a div{min-width:0;flex:1}.judge-documents>a b,.judge-documents>a small{display:block}.judge-documents>a b{font-size:13px}.judge-documents>a small{margin-top:3px;color:#7b8fa0;font-size:13px}.judge-documents>a em{font-size:13px;font-style:normal}.judge-json-link{margin:-4px 14px 10px;color:#0b6b9f;background:#f1f8fb;font-size:13px;font-weight:850}.judge-source-note{margin:0 14px 14px;padding:13px;border-radius:11px;color:#805a1c;background:#fff8e9}.judge-source-note p{margin:4px 0 0;font-size:13px;line-height:1.5}.judge-record-link{display:flex!important;align-items:center;gap:7px;color:#096a9f!important}.judge-record-link svg{width:17px}.judge-linked-judgments{margin-top:16px}
.judge-admin-flow{margin-bottom:16px;padding:12px;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;border:1px solid #d4e0e8;border-radius:15px;background:#fff}.judge-admin-flow span{padding:11px;display:flex;align-items:center;gap:8px;border-radius:10px;color:#6f8497;background:#f3f7f9;font-size:13px;font-weight:850}.judge-admin-flow span.active{color:#fff;background:linear-gradient(135deg,#0d659d,#083b65);box-shadow:0 8px 20px rgba(9,75,118,.18)}.judge-admin-flow span:first-letter{color:#ddb85e}.judge-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:17px;align-items:start}.judge-admin-layout>main{display:grid;gap:16px}.judge-admin-layout>aside{display:grid;gap:14px;position:sticky;top:90px}.judge-admin-card{scroll-margin-top:120px}.judge-admin-card>.card-head p{margin:4px 0 0;color:#72889a;font-size:13px}.judge-admin-card>.card-head select{max-width:340px}.judge-admin-fields{padding:18px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.judge-admin-fields label{display:grid;gap:6px}.judge-admin-fields label.wide{grid-column:1/-1}.judge-admin-fields span{color:#506b80;font-size:13px;font-weight:800}.judge-admin-fields input{height:44px;padding:0 12px;border:1px solid #cad9e3;border-radius:10px;color:#183f5d;background:#fbfdfe}.judge-admin-drop{margin:18px;padding:25px;display:grid;place-items:center;gap:5px;border:1px dashed #9eb8ca;border-radius:15px;color:#22516f;background:linear-gradient(135deg,#f2f8fb,#fff);cursor:pointer}.judge-admin-drop input{position:absolute;opacity:0;pointer-events:none}.judge-admin-drop svg{width:32px;height:32px;color:#0c70aa}.judge-admin-drop b{font-size:13px}.judge-admin-drop small{color:#71889a;font-size:13px}.judge-admin-docs{padding:0 18px 18px;display:grid;gap:9px}.judge-admin-docs>article{padding:11px;display:flex;align-items:center;gap:10px;border:1px solid #dbe5eb;border-radius:11px}.judge-admin-docs>article>span:first-child svg{width:22px}.judge-admin-docs>article>div{min-width:0;flex:1}.judge-admin-docs b,.judge-admin-docs small{display:block}.judge-admin-docs b{font-size:13px}.judge-admin-docs small{margin-top:3px;color:#73899b;font-size:13px}.judge-admin-judgments{max-height:390px;padding:14px;display:grid;gap:8px;overflow:auto}.judge-admin-judgment{padding:11px;display:grid;grid-template-columns:20px minmax(0,1fr);gap:9px;border:1px solid #dce6ec;border-radius:11px;background:#fff;cursor:pointer}.judge-admin-judgment:has(input:checked){border-color:#4e93bd;background:#f1f8fc;box-shadow:inset 3px 0 #0e70aa}.judge-admin-judgment input{margin-top:3px}.judge-admin-judgment b,.judge-admin-judgment small,.judge-admin-judgment em{display:block}.judge-admin-judgment b{color:#214a68;font-size:13px}.judge-admin-judgment small{margin:3px 0;color:#778b9c;font-size:13px}.judge-admin-judgment em{color:#47667d;font-size:13px;font-style:normal}.judge-admin-analysis{padding:18px}.judge-admin-empty{min-height:180px;display:grid;place-items:center;align-content:center;text-align:center}.judge-admin-empty>span svg{width:34px;height:34px;color:#b47d23}.judge-admin-empty b{margin-top:8px;color:#214762}.judge-admin-empty p{max-width:500px;color:#718799;font-size:13px}.judge-admin-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.judge-admin-kpis article{padding:13px;border:1px solid #dbe5eb;border-radius:11px;background:#f8fbfc}.judge-admin-kpis small,.judge-admin-kpis b,.judge-admin-kpis span{display:block}.judge-admin-kpis small{color:#768b9c;font-size:13px}.judge-admin-kpis b{margin:4px 0;color:#0d659d;font-size:21px}.judge-admin-kpis span{color:#667e91;font-size:13px}.judge-admin-charts{margin-top:16px;display:grid;grid-template-columns:1.1fr 1fr;gap:14px}.judge-admin-charts>article{border:1px solid #dce6ec;border-radius:13px;overflow:hidden}.judge-admin-charts h3{margin:0;padding:13px 16px;border-bottom:1px solid #dce6ec;color:#244b67;font-size:13px}.judge-admin-ai-copy{margin-top:15px;padding:15px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;border-radius:13px;color:#234b68;background:linear-gradient(120deg,#edf7fb,#fff6e5)}.judge-admin-ai-copy>span svg{width:28px;color:#af781e}.judge-admin-ai-copy small{color:#9a6b1f;font-size:13px;font-weight:900}.judge-admin-ai-copy p{margin:4px 0 9px;font-size:13px;line-height:1.55}.judge-admin-ai-copy>em{padding:7px 9px;align-self:start;border-radius:999px;color:#80591d;background:#fff2cc;font-size:13px;font-style:normal;font-weight:850}.judge-admin-preview{padding:20px;text-align:center}.judge-admin-preview .judge-avatar{margin:0 auto 10px}.judge-admin-preview>small,.judge-admin-preview>span,.judge-admin-preview>b{display:block}.judge-admin-preview h2{margin:4px 0;color:#153b58;font:700 21px var(--serif)}.judge-admin-preview p{margin:0 0 12px;color:#6d8395}.judge-admin-preview hr{margin:17px 0;border:0;border-top:1px solid #dce6ec}.judge-admin-preview>b{color:#0c659b;font-size:28px}.judge-admin-note{padding:16px;border:1px solid #edd29a;border-radius:14px;color:#77541c;background:#fff9ed}.judge-admin-note p{margin:5px 0 0;font-size:13px;line-height:1.55}.judge-admin-log{padding:15px}.judge-admin-log h3{margin:0 0 10px;color:#234a67}.judge-admin-log p{margin:8px 0;display:flex;gap:7px;color:#6d8395;font-size:13px;line-height:1.4}.judge-admin-log i{width:7px;height:7px;margin-top:2px;flex:0 0 auto;border-radius:50%;background:#22a376}.judge-admin-log i.error{background:#c95757}.judge-admin-success{margin-top:17px;padding:13px;display:grid;gap:5px;border-radius:12px;color:#17674f;background:#eaf8f1}.judge-admin-success span{font-size:13px}

/* Full forum thread. */
.forum-thread-hero{padding:24px;border-radius:19px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(46,136,193,.35),transparent 23rem),linear-gradient(135deg,#061f3a,#0b4979)}.forum-thread-hero h1{margin:7px 0 8px;font:700 30px var(--serif)}.forum-thread-hero p{max-width:800px;color:#c4d7e5;line-height:1.6}.forum-thread-layout{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}.forum-posts{display:grid;gap:12px;scroll-margin-top:110px}.forum-post{padding:18px;display:grid;grid-template-columns:46px minmax(0,1fr);gap:13px;border:1px solid #d7e2e9;border-radius:15px;background:#fff}.forum-post header{display:flex;align-items:center;gap:8px}.forum-post time{margin-left:auto;color:#8395a4;font-size:13px}.forum-post p{color:#3f5e75;line-height:1.65;white-space:pre-wrap}.forum-reply{margin-top:15px;scroll-margin-top:110px}.forum-reply textarea{width:100%;min-height:130px;padding:13px;border:1px solid #cad9e2;border-radius:11px;resize:vertical}.forum-thread-layout>aside{display:grid;gap:14px;scroll-margin-top:110px}

@media(max-width:1050px){.landing-twin-offer{grid-template-columns:1fr 1fr}.landing-twin-offer>aside{grid-column:1/-1}.judge-admin-layout{grid-template-columns:1fr}.judge-admin-layout>aside{position:static;grid-template-columns:repeat(2,1fr)}.judge-admin-preview{grid-row:span 2}}
@media(max-width:760px){.landing-twin-offer{grid-template-columns:1fr}.landing-twin-offer>aside{grid-column:auto}.judge-grid,.forum-thread-layout{grid-template-columns:1fr}.judge-card>header{grid-template-columns:48px minmax(0,1fr)}.judge-card>header>.badge{grid-column:2}.judge-card-metrics{grid-template-columns:1fr}.judge-card-metrics article{border-right:0;border-bottom:1px solid #dbe5eb}.judge-hero{grid-template-columns:54px 1fr}.judge-hero>aside{grid-column:1/-1}.judge-hero .judge-avatar{width:54px;height:54px}.judge-admin-flow{grid-template-columns:1fr 1fr}.judge-admin-layout>aside{grid-template-columns:1fr}.judge-admin-preview{grid-row:auto}.judge-admin-fields,.judge-admin-charts{grid-template-columns:1fr}.judge-admin-kpis{grid-template-columns:1fr 1fr}.judge-admin-ai-copy{grid-template-columns:28px 1fr}.judge-admin-ai-copy>em{grid-column:2}.judge-admin-card>.card-head{align-items:flex-start;flex-direction:column}.judge-admin-card>.card-head select{width:100%}}

/* Interactive analytics, judge declarations and Messenger-style chat dock */
.chart-date-toolbar{margin:12px 16px 4px;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border:1px solid #d7e2ea;border-radius:13px;background:linear-gradient(135deg,#f7fafc,#fff);box-shadow:0 8px 22px rgba(20,55,82,.05)}.chart-date-toolbar>div,.chart-date-toolbar nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chart-date-toolbar>div>span{display:inline-flex;align-items:center;gap:6px;color:#214a68;font-size:13px;font-weight:850}.chart-date-toolbar>div>span svg{width:16px;color:#bd872c}.chart-date-toolbar label{display:flex;align-items:center;gap:5px;color:#6b8092;font-size:13px;font-weight:750}.chart-date-toolbar input{height:34px;max-width:145px;padding:0 8px;border:1px solid #ccd9e3;border-radius:8px;color:#173f5e;background:#fff;font:700 13px var(--sans)}.chart-date-toolbar nav{padding:3px;border-radius:9px;background:#eaf1f6}.chart-date-toolbar nav button{height:29px;padding:0 9px;border:0;border-radius:7px;color:#526d83;background:transparent;font-size:13px;font-weight:850;cursor:pointer}.chart-date-toolbar nav button.active{color:#fff;background:#0b5e94;box-shadow:0 4px 10px rgba(11,94,148,.2)}.chart-date-toolbar output{color:#60788c;font-size:13px;text-align:right}.interactive-data-point,.record-drilldown{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.interactive-data-point:hover,.interactive-data-point:focus-visible,.record-drilldown:hover,.record-drilldown:focus-visible{outline:2px solid rgba(14,112,170,.28);outline-offset:2px;filter:saturate(1.08)}.record-drilldown:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,53,80,.1)}.chart-empty{min-height:90px;position:relative}.chart-empty::after{content:"Brak punktów w wybranym zakresie dat";position:absolute;inset:12px;display:grid;place-items:center;border:1px dashed #cbd8e1;border-radius:10px;color:#6e8496;background:#f8fbfc;font-size:13px;font-weight:800}.data-detail-hero{padding:18px;display:flex;align-items:center;gap:14px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#082f56,#0f6ea5)}.data-detail-hero>svg{width:34px;height:34px;color:#e6bd5d}.data-detail-hero span>*{display:block}.data-detail-hero small{color:#bfd6e7;font-size:13px}.data-detail-hero b{margin:2px 0;font:700 25px var(--serif)}.data-detail-hero em{color:#e9f2f8;font-size:13px;font-style:normal}.data-detail-list{margin:16px 0;display:grid;border:1px solid #dbe5ec;border-radius:13px;overflow:hidden}.data-detail-list>div{padding:11px 13px;display:grid;grid-template-columns:minmax(120px,.45fr) minmax(0,1fr);gap:12px;border-top:1px solid #e3eaf0}.data-detail-list>div:first-child{border-top:0}.data-detail-list dt{color:#74899a;font-size:13px}.data-detail-list dd{margin:0;color:#1e4563;font-size:13px;font-weight:800;overflow-wrap:anywhere}.data-detail-note{color:#687f91;font-size:13px;line-height:1.6}.detail-modal-actions{margin-top:15px;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.judge-assets-section{margin-top:17px;scroll-margin-top:118px;overflow:hidden}.judge-assets-section>.card-head p{margin:5px 0 0;color:#72879a;font-size:13px}.judge-assets-tabs{padding:10px 18px;display:flex;gap:8px;border-block:1px solid #dbe5ec;background:#f4f8fa;overflow-x:auto}.judge-assets-tabs button{min-height:38px;padding:0 14px;border:1px solid #d2dee7;border-radius:10px;color:#527087;background:#fff;font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer}.judge-assets-tabs button.active{border-color:#0c659e;color:#fff;background:linear-gradient(135deg,#0d6aa3,#0b416e)}.judge-assets-pane{padding:18px}.judge-assets-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.judge-assets-kpis article{padding:15px;border:1px solid #dce6ed;border-radius:13px;background:linear-gradient(145deg,#fff,#f6fafc)}.judge-assets-kpis small,.judge-assets-kpis b,.judge-assets-kpis span{display:block}.judge-assets-kpis small{color:#6e8496;font-size:13px;font-weight:800}.judge-assets-kpis b{margin:5px 0;color:#0c5e92;font:700 21px var(--serif)}.judge-assets-kpis span{color:#718697;font-size:13px}.judge-assets-visual{margin-top:13px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:12px}.judge-assets-map,.judge-assets-structure{border:1px solid #dce6ed;border-radius:14px;background:#fff;overflow:hidden}.judge-assets-map>header,.judge-assets-structure>header{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e9ee}.judge-assets-map h3,.judge-assets-structure h3{margin:2px 0 0;color:#193f5d;font:700 17px var(--serif)}.judge-assets-bars{padding:16px;display:grid;gap:11px}.judge-assets-bars button{padding:0;display:grid;grid-template-columns:145px minmax(80px,1fr) 115px;gap:10px;align-items:center;border:0;color:#294e68;background:transparent;text-align:left;cursor:pointer}.judge-assets-bars span{font-size:13px;font-weight:800}.judge-assets-bars i{height:10px;border-radius:99px;background:#e9f0f5;overflow:hidden}.judge-assets-bars em{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#147aae,#43a9b0)}.judge-assets-bars em.liability{background:linear-gradient(90deg,#be6a48,#d9a24e)}.judge-assets-bars em.income{background:linear-gradient(90deg,#2b8b67,#5fb28a)}.judge-assets-bars b{text-align:right;font-size:13px}.judge-assets-method{margin:0;padding:11px 16px;border-top:1px solid #e3eaef;color:#6e8395;background:#f7fafc;font-size:13px;line-height:1.55}.judge-asset-groups{padding:10px;display:grid;gap:7px}.judge-asset-groups button{padding:10px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid transparent;border-radius:10px;color:#27506c;background:#f6f9fb;text-align:left;cursor:pointer}.judge-asset-groups button:hover{border-color:#bfd3e0;background:#fff}.judge-asset-groups svg{width:21px;color:#0e75aa}.judge-asset-groups b,.judge-asset-groups small{display:block}.judge-asset-groups b{font-size:13px}.judge-asset-groups small{margin-top:2px;color:#72889a;font-size:13px}.judge-assets-source{margin-top:13px;padding:12px;display:flex;align-items:center;gap:8px;border:1px solid #dbe5ec;border-radius:12px;background:#f8fbfc}.judge-assets-source>span{min-width:0;margin-right:auto;display:grid;grid-template-columns:27px minmax(0,1fr);column-gap:8px}.judge-assets-source>span svg{grid-row:1/3;width:24px;color:#0b70a8}.judge-assets-source b,.judge-assets-source small{display:block}.judge-assets-source b{font-size:13px}.judge-assets-source small{color:#708698;font-size:13px}.judge-source-note.wide{margin:0 18px 18px}.judge-asset-modal-note{padding:12px;display:flex;align-items:center;gap:10px;border-radius:11px;color:#29506c;background:#edf6fa}.judge-asset-modal-note svg{width:25px;color:#0b71a9}.judge-asset-modal-note b,.judge-asset-modal-note small{display:block}.judge-asset-modal-note b{font-size:13px}.judge-asset-modal-note small{color:#6b8396;font-size:13px}.judge-asset-detail-list{margin-top:12px;display:grid;gap:10px}.judge-asset-detail-row{padding:13px;border:1px solid #dbe5ec;border-radius:11px}.judge-asset-detail-row header{display:flex;justify-content:space-between;gap:12px}.judge-asset-detail-row header b{color:#214a67}.judge-asset-detail-row header span{color:#0c669d;font-weight:900}.judge-asset-detail-row p{margin:7px 0;color:#4e687c;font-size:13px}.judge-asset-detail-row blockquote{margin:9px 0;padding:10px;border-left:3px solid #d5aa4c;color:#526d81;background:#f8fafb;font-size:13px;line-height:1.55}.judge-asset-detail-row>small{color:#7c8e9d;font-size:13px}
.global-chat-dock{position:fixed;right:22px;bottom:0;z-index:90;width:360px;pointer-events:none}.global-chat-toggle{width:100%;height:48px;padding:0 14px;display:flex;align-items:center;gap:10px;border:1px solid #cbd9e3;border-bottom:0;border-radius:14px 14px 0 0;color:#fff;background:linear-gradient(135deg,#082e54,#0b5e91);box-shadow:0 -8px 26px rgba(8,39,69,.18);pointer-events:auto;cursor:pointer}.global-chat-toggle>svg{width:22px;color:#e3ba59}.global-chat-toggle span{flex:1;text-align:left}.global-chat-toggle b,.global-chat-toggle small{display:block}.global-chat-toggle b{font-size:13px}.global-chat-toggle small{color:#c7d9e6;font-size:13px}.global-chat-toggle>i{width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#24a778;box-shadow:0 0 0 4px rgba(36,167,120,.18)}.global-chat-window{height:min(520px,calc(100vh - 96px));display:grid;grid-template-rows:54px minmax(0,1fr);border:1px solid #cbd9e3;border-bottom:0;border-radius:16px 16px 0 0;background:#fff;box-shadow:0 -18px 48px rgba(8,39,69,.22);pointer-events:auto;overflow:hidden}.global-chat-window[hidden]{display:none}.global-chat-window>header{padding:7px 9px;display:grid;grid-template-columns:34px 36px minmax(0,1fr) 30px 30px;gap:7px;align-items:center;border-bottom:1px solid #dbe5ec;background:#fff}.global-chat-window>header button,.global-chat-window>header a{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;color:#315b78;background:#edf4f8;cursor:pointer}.global-chat-window>header svg{width:16px}.global-chat-window>header .avatar{width:34px;height:34px}.global-chat-window>header b,.global-chat-window>header small{display:block}.global-chat-window>header b{font-size:13px}.global-chat-window>header small{color:#72889a;font-size:13px}.global-chat-body{min-height:0;display:grid;grid-template-columns:104px minmax(0,1fr)}.global-chat-conversations{padding:7px;display:grid;align-content:start;gap:5px;border-right:1px solid #dbe5ec;background:#f5f8fa;overflow-y:auto}.global-chat-conversations button{padding:6px;display:grid;grid-template-columns:32px minmax(0,1fr);gap:6px;align-items:center;border:1px solid transparent;border-radius:9px;color:#34566e;background:transparent;text-align:left;cursor:pointer}.global-chat-conversations button.active{border-color:#c2d7e4;background:#fff}.global-chat-conversations .avatar{width:30px;height:30px;font-size:13px}.global-chat-conversations b,.global-chat-conversations small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-chat-conversations b{font-size:13px}.global-chat-conversations small{color:#718596;font-size:13px}.global-chat-conversations em{display:none}.global-chat-thread{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto}.global-chat-messages{padding:12px 10px;overflow-y:auto;background:linear-gradient(180deg,#f8fbfc,#fff)}.global-chat-messages .message{margin-bottom:8px}.global-chat-messages .message-bubble{max-width:88%;font-size:13px}.global-chat-messages .message small{font-size:13px}.global-chat-emoji{padding:7px;display:flex;gap:4px;flex-wrap:wrap;border-top:1px solid #e0e8ee;background:#fff}.global-chat-emoji[hidden]{display:none}.global-chat-emoji button{min-height:28px;padding:0 7px;border:1px solid #dbe5ec;border-radius:8px;background:#f8fafb;cursor:pointer}.global-chat-compose{padding:8px;display:grid;grid-template-columns:30px 30px minmax(0,1fr) 32px;gap:5px;align-items:end;border-top:1px solid #dbe5ec;background:#fff}.global-chat-compose>button,.global-chat-attach{width:30px;height:32px;display:grid;place-items:center;border:0;border-radius:9px;color:#38627e;background:#edf4f8;cursor:pointer}.global-chat-attach input{display:none}.global-chat-attach svg,.global-chat-compose button svg{width:16px}.global-chat-compose textarea{min-height:32px;max-height:82px;padding:8px 10px;resize:vertical;border:1px solid #d5e0e7;border-radius:16px;color:#234963;background:#f5f8fa;font:500 13px var(--sans)}.global-chat-compose .global-chat-send{color:#fff;background:#0c69a0}.global-chat-dock.open>.global-chat-toggle{display:none}
.ai-local-analysis{margin-top:17px;overflow:hidden}.ai-local-empty{min-height:150px;padding:28px;display:grid;place-items:center;align-content:center;text-align:center;color:#6d8395}.ai-local-empty>svg{width:30px;color:#bc872c}.ai-local-empty b{margin-top:7px;color:#214a67}.ai-local-empty p{margin:4px 0 0;font-size:13px}.ai-local-result{padding:18px}.ai-local-result>header{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:16px;align-items:center}.ai-local-classification{display:flex;align-items:center;gap:13px}.ai-local-classification>span{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;color:#083f6b;background:linear-gradient(135deg,#e6f3f9,#fff1cb)}.ai-local-classification svg{width:25px}.ai-local-classification small{color:#9a6b1f;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.ai-local-classification h3{margin:3px 0;color:#173f5e;font:700 22px var(--serif)}.ai-local-classification p{margin:0;color:#6b8193;font-size:13px}.ai-local-confidence{display:grid;grid-template-columns:1fr auto;align-items:end;gap:4px}.ai-local-confidence i{grid-column:1/-1;height:8px;border-radius:99px;background:linear-gradient(90deg,#167bae var(--score),#e5edf2 var(--score))}.ai-local-confidence b{color:#0c659b;font-size:19px}.ai-local-confidence small{color:#718698;font-size:13px}.ai-local-grid{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.ai-local-grid>section{border:1px solid #dbe5ec;border-radius:13px;overflow:hidden}.ai-local-grid h4{margin:0;padding:13px 14px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #dbe5ec;color:#234b68;font-size:13px}.ai-local-grid h4 svg{width:18px;color:#0c70a9}.ai-local-grid a{padding:11px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border-top:1px solid #e5ebef;color:#234b67}.ai-local-grid h4+a{border-top:0}.ai-local-grid a:hover{background:#f4f9fb}.ai-local-grid b,.ai-local-grid small{display:block}.ai-local-grid b{font-size:13px}.ai-local-grid small{margin-top:2px;color:#718698;font-size:13px}.ai-local-grid em{color:#0c669c;font-size:13px;font-style:normal;font-weight:900}.ai-local-grid>section>p{margin:0;padding:16px;color:#6c8193;font-size:13px}.ai-local-entities{margin-top:12px;padding:14px;border:1px solid #dce6ec;border-radius:13px;background:#f8fbfc}.ai-local-entities h4{margin:0 0 9px;color:#234b68}.ai-local-entities>div{margin-top:7px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ai-local-entities>div>b{min-width:70px;color:#587187;font-size:13px}.ai-local-entities button{min-height:29px;padding:0 9px;border:1px solid #cddce6;border-radius:8px;color:#1d567c;background:#fff;font-size:13px;font-weight:800;cursor:pointer}.ai-local-result>footer{margin-top:12px;padding:11px;display:flex;align-items:center;gap:10px;border-radius:11px;color:#506b80;background:#edf4f7}.ai-local-result>footer svg{width:22px}.ai-local-result>footer b,.ai-local-result>footer small{display:block}.ai-local-result>footer b{font-size:13px}.ai-local-result>footer small{font-size:13px;line-height:1.45}
.ai-local-warning{margin-top:14px;padding:11px 13px;display:flex;align-items:center;gap:10px;border:1px solid #edc783;border-radius:11px;color:#7c5519;background:#fff7e7}.ai-local-warning svg{width:23px;flex:0 0 auto}.ai-local-warning b,.ai-local-warning small{display:block}.ai-local-warning b{font-size:13px}.ai-local-warning small{margin-top:2px;font-size:13px}.ai-local-entities button.invalid{border-color:#dc9b78;color:#9b4d2f;background:#fff1eb}
.ai-inline-signal{min-height:58px;padding:10px 12px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #d7e3eb;border-radius:13px;color:#345970;background:linear-gradient(135deg,#f5f9fb,#fff)}.ai-inline-signal>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#0b669c;background:#e7f2f8}.ai-inline-signal svg{width:20px}.ai-inline-signal small,.ai-inline-signal b{display:block}.ai-inline-signal small{color:#7890a2;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.ai-inline-signal b{margin-top:2px;font-size:13px}.ai-inline-signal em,.ai-inline-signal a{color:#7a8e9e;font-size:13px;font-style:normal;font-weight:850}.ai-inline-signal.ready{border-color:#9fc9bb;background:linear-gradient(135deg,#edf9f4,#fff8e7)}.ai-inline-signal.ready>span{color:#177d63;background:#dff4ea}.ai-inline-signal.ready a{color:#086a9e}
.ai-attachment-lab{overflow:hidden;border:1px solid #d7e2e9;border-radius:17px;background:#f8fbfc}.ai-attachment-lab>header{padding:16px 17px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e0e8ed;background:#fff}.ai-attachment-lab h3{margin:3px 0;color:#173f5e;font:700 18px var(--serif)}.ai-attachment-lab header p{max-width:620px;margin:0;color:#718698;font-size:13px;line-height:1.5}.ai-attachment-drop{margin:14px;padding:15px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;gap:12px!important;align-items:center;border:1px dashed #9bbbd0;border-radius:13px;color:#244d68!important;background:linear-gradient(135deg,#f1f8fb,#fff9e9);cursor:pointer}.ai-attachment-drop:hover{border-color:#0c70a8;background:#fff}.ai-attachment-drop input{display:none}.ai-attachment-drop>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#0b6da4;background:#fff;box-shadow:0 6px 16px rgba(13,76,113,.1)}.ai-attachment-drop svg{width:22px}.ai-attachment-drop b,.ai-attachment-drop small{display:block}.ai-attachment-drop b{font-size:13px}.ai-attachment-drop small{margin-top:3px;color:#778c9e;font-size:13px;font-weight:650}.ai-attachment-drop em{padding:9px 12px;border-radius:9px;color:#fff;background:#0a5f94;font-size:13px;font-style:normal;font-weight:900}.ai-file-list{max-height:420px;padding:0 14px 14px;display:grid;gap:8px;overflow:auto}.ai-file-empty{min-height:84px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #dfe7ec;border-radius:12px;color:#6f8495;background:#fff;text-align:left}.ai-file-empty>svg{width:26px;color:#b78932}.ai-file-empty b,.ai-file-empty small{display:block}.ai-file-empty b{color:#355973;font-size:13px}.ai-file-empty small{margin-top:3px;font-size:13px}.ai-file-list>article{padding:10px;display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:10px;align-items:center;border:1px solid #dae5eb;border-radius:12px;background:#fff}.ai-file-list>article.processing{background:linear-gradient(90deg,#f1f8fc,#fff)}.ai-file-list>article.error{border-color:#e6bdb7;background:#fff8f7}.ai-file-type{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;color:#0b6297;background:#eaf4f9;font-size:13px;font-weight:950}.ai-file-list article>div{min-width:0}.ai-file-list article>div>b,.ai-file-list article>div>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-file-list article>div>b{color:#234b67;font-size:13px}.ai-file-list article>div>small{margin-top:3px;color:#74899a;font-size:13px}.ai-file-list article>div>i{height:4px;margin-top:7px;display:block;border-radius:99px;background:#e8eef2;overflow:hidden}.ai-file-list article>div>i em{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#0b70a9,#4eb08f);animation:ai-file-pulse 1.4s ease-in-out infinite}.ai-file-list article:not(.processing)>div>i em{animation:none}.ai-file-list nav{display:flex;gap:4px}.ai-file-list nav button{min-width:34px;height:34px;padding:0 7px;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #d6e1e8;border-radius:9px;color:#315b77;background:#f7fafb;font-size:13px;font-weight:850;cursor:pointer}.ai-file-list nav button:hover{border-color:#9dbdce;color:#075d91;background:#fff}.ai-file-list nav svg{width:15px}.ai-attachment-lab>footer{padding:11px 14px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #dde6ec;background:#fff}@keyframes ai-file-pulse{50%{opacity:.45}}
.ai-local-guidance{margin-top:14px;padding:13px;display:flex;align-items:flex-start;gap:11px;border:1px solid #c9dfd6;border-radius:12px;color:#29536a;background:linear-gradient(135deg,#eef8f4,#fffaf0)}.ai-local-guidance>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;color:#16785f;background:#fff}.ai-local-guidance svg{width:19px}.ai-local-guidance small{color:#258168;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.ai-local-guidance p{margin:3px 0 0;font-size:13px;line-height:1.6}.ai-risk-grid{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.ai-risk-grid>section{padding:14px;border:1px solid #dce5eb;border-radius:13px;background:#f9fbfc}.ai-risk-grid h4{margin:0;display:flex;align-items:center;gap:7px;color:#274f6b;font-size:13px}.ai-risk-grid h4 svg{width:18px;color:#b37e23}.ai-risk-grid ul{margin:10px 0 0;padding-left:18px;color:#587185;font-size:13px;line-height:1.7}
.ai-document-preview>header{padding:13px;display:flex;align-items:center;gap:10px;border-radius:12px;color:#345970;background:#f2f7fa}.ai-document-preview>header b{flex:1}.ai-document-preview>header em{font-size:13px;font-style:normal}.ai-document-preview>nav{margin-top:11px;padding:5px;display:flex;gap:5px;border-radius:10px;background:#eaf1f5;overflow-x:auto}.ai-document-preview>nav button{min-height:32px;padding:0 10px;border:0;border-radius:8px;color:#557084;background:transparent;font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer}.ai-document-preview>nav button.active{color:#fff;background:#0b6197}.ai-document-preview>article{margin-top:11px;border:1px solid #dbe5eb;border-radius:12px;overflow:hidden}.ai-document-preview>article>div{padding:10px 13px;display:flex;align-items:center;justify-content:space-between;background:#f5f8fa}.ai-document-preview>article small{color:#718697;font-size:13px}.ai-document-preview>article b{color:#315771;font-size:13px}.ai-document-preview pre{max-height:52vh;margin:0;padding:16px;overflow:auto;color:#213f55;background:#fff;white-space:pre-wrap;font:500 13px/1.7 var(--sans)}.ai-document-preview>footer{margin-top:12px;display:flex;justify-content:flex-end;gap:8px}
.judge-analysis-grid{align-items:start}.judge-analysis-grid>.card{align-self:start}.judge-documents:has(.judge-json-link){grid-template-columns:minmax(0,1fr) auto;align-items:stretch}.judge-documents>a{min-width:0}.judge-documents .judge-json-link{margin:0;padding-inline:14px;justify-content:center;white-space:nowrap}.judge-year-chart>article{border-radius:8px;cursor:pointer}.judge-year-chart>article:hover,.judge-year-chart>article:focus-visible{background:rgba(13,111,166,.07);outline:2px solid rgba(13,111,166,.2)}.judge-period-summary{padding:16px;display:flex;align-items:center;gap:13px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#082f56,#0c6c9f)}.judge-period-summary>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#f0c765;background:rgba(255,255,255,.1)}.judge-period-summary svg{width:24px}.judge-period-summary small,.judge-period-summary b{display:block}.judge-period-summary small{color:#bad3e4;font-size:13px}.judge-period-summary b{font:700 24px var(--serif)}.judge-period-summary p{margin:2px 0 0;color:#d7e5ef;font-size:13px}.judge-period-list{margin-top:12px;display:grid;gap:9px}.judge-period-list>a,.judge-period-list>article{padding:13px;display:block;border:1px solid #dbe5ec;border-radius:12px;color:#214a67;background:#fff}.judge-period-list>a:hover{border-color:#9fc1d5;background:#f7fbfd}.judge-period-list header,.judge-period-list footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.judge-period-list header b{font-size:13px}.judge-period-list header span{padding:4px 7px;border-radius:99px;color:#8a601c;background:#fff4d7;font-size:13px;font-weight:850}.judge-period-list p{margin:8px 0;color:#4e687c;font-size:13px;line-height:1.55}.judge-period-list footer{color:#758a9b;font-size:13px}.judge-period-list footer em{color:#0a659b;font-style:normal;font-weight:850}
@media(min-width:1181px){.sidebar .primary-nav-grid{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;flex:1;align-content:start;overflow:auto}.sidebar .primary-nav-column{min-width:0;display:grid;align-content:start;gap:5px}.sidebar .primary-nav-group{min-width:0}.sidebar .primary-nav-group .nav-section{margin:12px 2px 5px;text-align:center}.sidebar .primary-nav-group .side-nav{gap:4px}.sidebar .primary-nav-group .side-nav a{min-width:0;min-height:53px;height:auto;padding:6px 3px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;text-align:center}.sidebar .primary-nav-group .side-nav a:hover{transform:translateY(-1px)}.sidebar .primary-nav-group .side-nav-label{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.1;white-space:nowrap}.sidebar .primary-nav-group .side-nav i{width:24px}.sidebar .primary-nav-group .nav-count{margin:0;position:absolute;right:5px;top:5px}body.workspace-page .portal,body[data-page="sejm"] .portal{grid-template-columns:216px minmax(0,1fr)}body.workspace-page .sidebar,body[data-page="sejm"] .sidebar{padding-inline:9px}body.workspace-page .module-workspace{grid-template-columns:218px minmax(0,1fr)}}
@media(max-width:1180px){.sidebar .primary-nav-grid{display:block}.sidebar .primary-nav-column{display:contents}}
@media(min-width:1181px){body.workspace-page .module-workspace{grid-template-columns:236px minmax(0,1fr)}body.workspace-page .module-rail>nav a{font-size:13px;line-height:1.35}}
@media(max-width:1050px){.chart-date-toolbar{grid-template-columns:1fr auto}.chart-date-toolbar output{grid-column:1/-1;text-align:left}.judge-assets-kpis{grid-template-columns:1fr 1fr}.judge-assets-visual{grid-template-columns:1fr}.global-chat-dock{right:12px}}
@media(max-width:700px){.chart-date-toolbar{margin-inline:8px;grid-template-columns:1fr}.chart-date-toolbar nav{justify-self:start}.chart-date-toolbar input{max-width:125px}.judge-assets-pane{padding:10px}.judge-assets-kpis{grid-template-columns:1fr}.judge-assets-bars button{grid-template-columns:1fr}.judge-assets-bars b{text-align:left}.judge-assets-source{align-items:stretch;flex-direction:column}.judge-assets-source>span{margin-right:0}.data-detail-list>div{grid-template-columns:1fr;gap:3px}.global-chat-dock{right:0;left:0;width:auto}.global-chat-toggle{margin-left:auto;width:min(100%,260px)}.global-chat-window{height:calc(100dvh - 58px);border-radius:16px 16px 0 0}.global-chat-body{grid-template-columns:1fr}.global-chat-conversations{display:none;position:absolute;inset:54px 0 0;z-index:2;border-right:0}.global-chat-dock.show-conversations .global-chat-conversations{display:grid}.global-chat-window>header{grid-template-columns:34px 36px minmax(0,1fr) 30px 30px}.global-chat-compose{padding-bottom:max(8px,env(safe-area-inset-bottom))}.ai-local-result{padding:12px}.ai-local-result>header,.ai-local-grid{grid-template-columns:1fr}.ai-local-confidence{max-width:180px}.ai-local-classification h3{font-size:18px}}
@media(max-width:700px){.judge-documents{grid-template-columns:1fr}.judge-period-list header,.judge-period-list footer{align-items:flex-start;flex-direction:column}}
@media(max-width:780px){.ai-inline-signal{grid-template-columns:38px minmax(0,1fr)}.ai-inline-signal>em,.ai-inline-signal>a{grid-column:2}.ai-attachment-lab>header{flex-direction:column}.ai-attachment-drop{grid-template-columns:38px minmax(0,1fr)}.ai-attachment-drop>em{grid-column:1/-1;text-align:center}.ai-file-list>article{grid-template-columns:38px minmax(0,1fr) auto}.ai-file-list>article>nav{grid-column:1/-1}.ai-file-list nav button{flex:1}.ai-risk-grid{grid-template-columns:1fr}.ai-attachment-lab>footer{align-items:stretch;flex-direction:column}.ai-attachment-lab>footer .btn{width:100%}}

/* Compact global rail with visible labels. */
@media(min-width:821px){
  body.workspace-page .portal,body[data-page="sejm"] .portal{grid-template-columns:132px minmax(0,1fr)}
  body.workspace-page .sidebar,body[data-page="sejm"] .sidebar{padding:9px 8px}
  body.workspace-page .side-nav,body[data-page="sejm"] .side-nav{gap:2px}
  body.workspace-page .nav-section,body[data-page="sejm"] .nav-section{height:11px;margin:3px 4px 1px;display:block;overflow:visible;border:0;color:#7892ad;font-size:13px;line-height:11px;letter-spacing:.12em;text-align:center}
  body.workspace-page .side-nav a,body[data-page="sejm"] .side-nav a{height:38px;min-height:38px;padding:3px 2px;display:flex;gap:1px;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;color:#afc2d6;font-size:13px;line-height:1;text-align:center;white-space:nowrap}
  body.workspace-page .side-nav a:hover,body.workspace-page .side-nav a.active,body[data-page="sejm"] .side-nav a:hover,body[data-page="sejm"] .side-nav a.active{color:#fff}
  body.workspace-page .side-nav-label,body[data-page="sejm"] .side-nav-label{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:800;text-align:center}
  body.workspace-page .side-nav i,body[data-page="sejm"] .side-nav i{width:22px}
  body.workspace-page .side-nav .ui-icon,body[data-page="sejm"] .side-nav .ui-icon{width:16px;height:16px}
}

/* Record context and data-entry workspaces. */
.ocr-case-context{margin-bottom:12px;padding:13px 15px;display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:10px;align-items:center;border:1px solid #cbdde8;border-radius:14px;background:linear-gradient(110deg,#edf7fb,#fff)}.ocr-case-context>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#0a5d91}.ocr-case-context>span svg{width:20px}.ocr-case-context small,.ocr-case-context b{display:block}.ocr-case-context small{color:#7b8fa0;font-size:13px}.ocr-case-context b{margin-top:2px;color:#1b425f;font-size:13px}.case-record-relations{overflow:hidden}.case-relation-hub{padding:20px;background:linear-gradient(180deg,#f7fafc,#fff)}.case-relation-center{max-width:520px;margin:0 auto 22px;padding:17px;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:15px;color:#fff;background:linear-gradient(135deg,#0b507f,#062744);box-shadow:0 14px 34px rgba(7,46,76,.18)}.case-relation-center>svg{width:30px;color:#e5bd61}.case-relation-center small,.case-relation-center b,.case-relation-center em{display:block}.case-relation-center small{color:#a9c4d8;font-size:13px}.case-relation-center b{font-size:14px}.case-relation-center em{color:#d4e2ec;font-size:13px;font-style:normal}.case-relation-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.case-relation-columns>section{padding:14px;border:1px solid #d9e4eb;border-radius:13px;background:#fff}.case-relation-columns h3{margin:0 0 10px;display:flex;align-items:center;gap:7px;color:#254b67;font-size:13px}.case-relation-columns h3 svg{width:18px;color:#b77d22}.case-relation-columns a{margin-top:7px;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;border-radius:9px;color:#294e68;background:#f4f8fa}.case-relation-columns a b,.case-relation-columns a small{display:block;grid-column:1}.case-relation-columns a b{font-size:13px}.case-relation-columns a small{margin-top:2px;color:#72889a;font-size:13px}.case-relation-columns a span{grid-column:2;grid-row:1/3;align-self:center;color:#0b6a9f;font-size:13px;font-weight:850}.case-relation-columns p{color:#7b8e9e;font-size:13px}
.registry-create-form{width:min(900px,90vw)}.registry-create-form>header p{margin:5px 0 16px;color:#6d8294;font-size:13px}.registry-create-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.registry-create-grid label{display:grid;gap:5px}.registry-create-grid label.wide{grid-column:1/-1}.registry-create-grid span{color:#506b80;font-size:13px;font-weight:800}.registry-create-grid input,.registry-create-grid select,.registry-create-grid textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #cad9e2;border-radius:9px;color:#1b405c;background:#fff}.registry-create-grid textarea{min-height:92px;resize:vertical}.registry-create-files{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.registry-create-files label{padding:18px;display:grid;place-items:center;gap:5px;border:1px dashed #9db8ca;border-radius:12px;color:#1d4d6c;background:#f4f9fb;cursor:pointer}.registry-create-files input{position:absolute;opacity:0;pointer-events:none}.registry-create-files svg{width:26px;color:#0a6a9f}.registry-create-files b{font-size:13px}.registry-create-files small{color:#708698;font-size:13px}.registry-create-preview{margin-top:12px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.registry-create-preview article{overflow:hidden;border:1px solid #dbe5eb;border-radius:9px;background:#fff}.registry-create-preview img{width:100%;height:86px;display:block;object-fit:cover}.registry-create-preview span{padding:7px;display:block}.registry-create-preview b,.registry-create-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.registry-create-preview b{font-size:13px}.registry-create-preview small{color:#8193a2;font-size:13px}.registry-create-form>footer{margin-top:16px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e0e8ed}.registry-create-form>footer>span{color:#6b8295;font-size:13px}

/* Sejm video and speeches. */
.sejm-video-record{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);overflow:hidden}.sejm-video-player{min-width:0}.sejm-video-screen{min-height:360px;padding:28px;display:grid;place-items:center;align-content:center;gap:8px;color:#fff;text-align:center;background:radial-gradient(circle at 50% 45%,rgba(28,113,169,.45),transparent 18rem),linear-gradient(145deg,#06172c,#092f53)}.sejm-video-screen>span{width:62px;height:62px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.08)}.sejm-video-screen>span svg{width:31px;color:#e6bd61}.sejm-video-screen>b{font:700 27px var(--serif)}.sejm-video-screen>small{color:#b8cedf}.sejm-video-screen>.btn{margin-top:10px}.sejm-video-meta{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #dce5eb}.sejm-video-meta article{padding:12px;border-right:1px solid #dce5eb}.sejm-video-meta article:last-child{border:0}.sejm-video-meta small,.sejm-video-meta b{display:block}.sejm-video-meta small{color:#778b9c;font-size:13px}.sejm-video-meta b{margin-top:3px;color:#264b67;font-size:13px}.sejm-video-agenda{border-left:1px solid #dce5eb;background:#f7fafc}.sejm-video-agenda>header{padding:18px;border-bottom:1px solid #dce5eb}.sejm-video-agenda h3{margin:4px 0 0;color:#173d59;font:700 21px var(--serif)}.sejm-video-agenda>button{width:100%;padding:13px 15px;display:grid;grid-template-columns:58px minmax(0,1fr);gap:3px 8px;border:0;border-bottom:1px solid #e1e8ed;color:#30516a;background:transparent;text-align:left;cursor:pointer}.sejm-video-agenda>button:hover,.sejm-video-agenda>button.active{background:#eaf4f9}.sejm-video-agenda>button b{grid-row:1/3;color:#b17820;font-size:13px}.sejm-video-agenda>button span{font-size:13px;font-weight:800}.sejm-video-agenda>button em{color:#0b689d;font-size:13px;font-style:normal}.sejm-video-agenda>footer{padding:12px 15px;color:#647d90;font-size:13px}.sejm-speech-record>header{padding:19px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid #dce5eb}.sejm-speech-avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(145deg,#1477ad,#07365e);font-weight:900}.sejm-speech-record h2{margin:3px 0;color:#183e5b;font:700 22px var(--serif)}.sejm-speech-record p{margin:0;color:#728799}.sejm-speech-record blockquote{margin:0;padding:30px 34px;color:#294c65;background:linear-gradient(135deg,#f7fafc,#fff);font:17px/1.8 var(--serif)}.sejm-speech-record>footer{padding:15px 19px;display:flex;gap:9px;border-top:1px solid #dce5eb}

@media(max-width:900px){.ocr-case-context{grid-template-columns:38px 1fr}.ocr-case-context .btn{grid-column:2}.case-relation-columns,.sejm-video-record{grid-template-columns:1fr}.sejm-video-agenda{border-left:0;border-top:1px solid #dce5eb}.registry-create-form{width:auto}.registry-create-preview{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.registry-create-grid,.registry-create-files{grid-template-columns:1fr}.registry-create-grid label.wide{grid-column:auto}.registry-create-form>footer{align-items:stretch;flex-direction:column}.sejm-video-meta{grid-template-columns:1fr 1fr}.case-relation-columns{grid-template-columns:1fr}}

/* Two independent global rails: work on the left, law and account on the right. */
.mobile-secondary-nav{display:none}.right-rail-mark{min-height:66px;display:grid;place-items:center;align-content:center;gap:3px;border-bottom:1px solid rgba(255,255,255,.09)}.right-rail-mark>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:#14243a;background:linear-gradient(145deg,#f5d98f,#c78e2f)}.right-rail-mark svg{width:21px}.right-rail-mark small{color:#8ea7c0;font-size:13px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
@media(min-width:821px){
  .portal,.portal body{grid-template-columns:112px minmax(0,1fr) 112px}
  body.workspace-page .portal,body[data-page="sejm"] .portal{grid-template-columns:112px minmax(0,1fr) 112px}
  .sidebar-left,.sidebar-right,body.workspace-page .sidebar-left,body.workspace-page .sidebar-right,body[data-page="sejm"] .sidebar-left,body[data-page="sejm"] .sidebar-right{width:auto;padding:9px 7px;overflow-y:auto;overflow-x:hidden}
  .sidebar-right{grid-column:3;grid-row:1;right:0;left:auto;background:radial-gradient(circle at 70% 0,rgba(31,118,176,.17),transparent 28%),linear-gradient(195deg,#06182f,#08213f 70%,#051529)}
  .sidebar-left .brand{min-height:66px;padding:4px;justify-content:center}
  .sidebar-left .brand-mark{width:46px;height:46px}
  .sidebar-left .brand>span:last-child{display:none}
  .sidebar .primary-nav-column{min-width:0;display:grid;align-content:start;gap:4px}
  .sidebar .primary-nav-group .nav-section,.sidebar .nav-section{height:auto;margin:10px 2px 4px;color:#7f98b1;font-size:13px;line-height:1.2;text-align:center}
  .sidebar .primary-nav-group .side-nav,.sidebar .side-nav{display:grid;gap:3px}
  .sidebar .primary-nav-group .side-nav a,.sidebar .side-nav a,body.workspace-page .side-nav a,body[data-page="sejm"] .side-nav a{min-width:0;width:100%;height:54px;min-height:54px;padding:6px 3px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:10px;text-align:center}
  .sidebar .primary-nav-group .side-nav-label,.sidebar .side-nav-label,body.workspace-page .side-nav-label,body[data-page="sejm"] .side-nav-label{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;color:inherit;font-size:13px;line-height:1.1;font-weight:800;white-space:nowrap}
  .sidebar .primary-nav-group .side-nav i,.sidebar .side-nav i{width:24px}
  .sidebar .primary-nav-group .side-nav .ui-icon,.sidebar .side-nav .ui-icon{width:19px;height:19px}
  .sidebar .nav-count{margin:0;position:absolute;right:5px;top:5px}
  .sidebar .sidebar-foot{display:none}
  .shell{grid-column:2;grid-row:1}
}
@media(max-width:820px){
  .sidebar-right{display:none}
  .mobile-secondary-nav{display:block}
  .sidebar-left .primary-nav-column{display:block}
}

/* KRS / AML monitoring workspace. */
.aml-dashboard-hero{padding:30px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:30px;align-items:center;border-radius:22px;color:#fff;background:radial-gradient(circle at 82% 0,rgba(45,142,197,.4),transparent 26rem),linear-gradient(135deg,#061d38,#0a4a79);box-shadow:0 24px 62px rgba(7,42,70,.18)}.aml-dashboard-hero h2{max-width:700px;margin:7px 0 10px;color:#fff;font:700 clamp(31px,3vw,45px)/1.05 var(--serif)}.aml-dashboard-hero p{max-width:760px;margin:0;color:#c5d9e7;font-size:13px;line-height:1.7}.aml-dashboard-hero .eyebrow{color:#efc968}.aml-dashboard-hero form{margin-top:21px;display:flex;gap:8px}.aml-dashboard-hero form label{min-height:50px;padding:0 14px;display:flex;align-items:center;gap:9px;flex:1;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.1)}.aml-dashboard-hero form label svg{width:19px;color:#efc968}.aml-dashboard-hero form input{width:100%;border:0;outline:0;color:#fff;background:transparent;font:600 13px var(--sans)}.aml-dashboard-hero form input::placeholder{color:#a8c1d3}.aml-dashboard-hero>div>small{margin-top:12px;display:flex;align-items:center;gap:7px;color:#aac2d4;font-size:13px}.aml-dashboard-hero>div>small svg{width:15px;color:#efc968}.aml-dashboard-hero>aside{display:grid;grid-template-columns:1fr 1fr;gap:9px}.aml-dashboard-hero>aside article{padding:15px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08)}.aml-dashboard-hero>aside small,.aml-dashboard-hero>aside b,.aml-dashboard-hero>aside span{display:block}.aml-dashboard-hero>aside small{color:#b9cede;font-size:13px;text-transform:uppercase}.aml-dashboard-hero>aside b{margin:4px 0;color:#fff;font:700 27px var(--serif)}.aml-dashboard-hero>aside span{color:#9fb9cc;font-size:13px}
.aml-source-strip{margin-top:14px;padding:8px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.aml-source-strip a{min-height:58px;padding:10px;display:grid;grid-template-columns:auto 1fr auto;gap:3px 9px;align-items:center;border:1px solid #dce5eb;border-radius:11px;color:#0c659b;background:#f8fbfc}.aml-source-strip a:hover{border-color:#a9c5d6;background:#fff}.aml-source-strip b{grid-row:1/3;padding:7px;border-radius:8px;color:#fff;background:#0a436f;font-size:13px}.aml-source-strip span{color:#547087;font-size:13px;font-weight:750}
.aml-dashboard-grid{margin-top:14px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:14px;align-items:start}.aml-dashboard-grid>main,.aml-dashboard-grid>aside{overflow:hidden}.aml-dashboard-grid>aside{position:sticky;top:100px}.aml-filter-bar{padding:12px;display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(120px,.7fr)) auto;gap:7px;border-bottom:1px solid #dce5eb;background:#f5f8fa}.aml-filter-bar input,.aml-filter-bar select{min-width:0;min-height:39px;padding:0 10px;border:1px solid #ccd9e3;border-radius:9px;color:#294e68;background:#fff;font:700 13px var(--sans)}.aml-entity-list{max-height:760px;overflow:auto}.aml-entity-row{padding:13px;display:grid;grid-template-columns:minmax(250px,1.25fr) minmax(260px,1fr) 100px auto;gap:12px;align-items:center;border-top:1px solid #e2e9ed;background:#fff}.aml-entity-row:first-child{border-top:0}.aml-entity-row:hover{background:#f8fbfc}.aml-entity-row>a:first-child{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;color:#244a65}.aml-company-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#0a689f;background:#eaf4f9}.aml-company-icon svg{width:21px}.aml-entity-row>a small,.aml-entity-row>a b,.aml-entity-row>a em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aml-entity-row>a small{color:#8c671f;font-size:13px;font-weight:850}.aml-entity-row>a b{margin:3px 0;color:#1e4561;font-size:13px}.aml-entity-row>a em{color:#748a9b;font-size:13px;font-style:normal}.aml-row-flags{display:flex;gap:5px;flex-wrap:wrap}.aml-risk-score{display:grid;grid-template-columns:1fr auto;gap:3px 6px}.aml-risk-score i{grid-column:1/-1;height:6px;border-radius:99px;background:linear-gradient(90deg,#2aa77b var(--risk),#e7edf1 var(--risk));overflow:hidden}.aml-risk-score b{color:#19445f;font-size:13px}.aml-risk-score small{color:#7d8f9e;font-size:13px}.aml-no-results{padding:35px;display:grid;place-items:center;gap:6px;color:#6d8293;text-align:center}.aml-no-results[hidden]{display:none}.aml-no-results svg{width:28px;color:#b17a23}.aml-no-results b{color:#234c68}
.aml-alert-tabs{padding:8px;display:flex;gap:5px;border-bottom:1px solid #dce5eb;background:#f4f8fa;overflow-x:auto}.aml-alert-tabs button{min-height:32px;padding:0 9px;border:1px solid transparent;border-radius:8px;color:#567187;background:transparent;font-size:13px;font-weight:900;cursor:pointer}.aml-alert-tabs button.active{color:#fff;background:#0b5f94}.aml-alert-list{max-height:760px;overflow:auto}.aml-alert-row{padding:12px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;align-items:start;border-top:1px solid #e2e9ed}.aml-alert-row:first-child{border-top:0}.aml-source{width:44px;height:38px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#3c6683;font-size:13px;font-weight:950}.aml-source.high{background:#a44845}.aml-source.medium{color:#61440f;background:#f3d487}.aml-alert-row div small,.aml-alert-row div b,.aml-alert-row div p{display:block}.aml-alert-row div small{color:#8b6b2c;font-size:13px}.aml-alert-row div b{margin-top:3px;color:#254a65;font-size:13px}.aml-alert-row div p{margin:3px 0 0;color:#708596;font-size:13px;line-height:1.45}.aml-alert-row nav{grid-column:2/-1;display:flex;justify-content:flex-end;gap:11px}.aml-alert-row nav a{color:#0b679e;font-size:13px;font-weight:850}
@media(max-width:1180px){.aml-dashboard-grid{grid-template-columns:1fr}.aml-dashboard-grid>aside{position:static}.aml-filter-bar{grid-template-columns:1fr 1fr 1fr}.aml-filter-bar input{grid-column:1/-1}.aml-entity-row{grid-template-columns:minmax(250px,1fr) minmax(220px,1fr) 90px}.aml-entity-row>.btn{grid-column:1/-1;justify-self:end}}
@media(max-width:760px){.aml-dashboard-hero{padding:21px;grid-template-columns:1fr}.aml-dashboard-hero form{align-items:stretch;flex-direction:column}.aml-dashboard-hero>aside,.aml-source-strip{grid-template-columns:1fr 1fr}.aml-filter-bar{grid-template-columns:1fr}.aml-filter-bar input{grid-column:auto}.aml-entity-row{grid-template-columns:1fr}.aml-row-flags{grid-column:1}.aml-risk-score{max-width:180px}.aml-entity-row>.btn{grid-column:1;justify-self:stretch}.aml-alert-row{grid-template-columns:42px minmax(0,1fr)}.aml-alert-row>.badge{grid-column:2;justify-self:start}.aml-alert-row nav{grid-column:2}}

.ai-result-content .ai-dynamic-summary{margin:14px 0 18px;padding:15px;display:flex;align-items:flex-start;gap:11px;border:1px solid #c9dfd6;border-radius:13px;background:linear-gradient(135deg,#eef8f4,#fffaf0);white-space:normal}.ai-dynamic-summary>span{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;color:#16785f;background:#fff}.ai-dynamic-summary svg{width:21px}.ai-dynamic-summary small{color:#258168;font-size:13px;font-weight:900;text-transform:uppercase}.ai-dynamic-summary p{margin:4px 0 0;color:#35566d;font-size:13px;line-height:1.65}.ai-result-content h4{margin:20px 0 9px;color:#234b67;font:700 16px var(--serif);white-space:normal}.ai-result-content ul{margin:0;padding-left:20px;white-space:normal}.ai-result-content li{margin:5px 0;color:#526d81;font-size:13px;line-height:1.55}.ai-dynamic-sources{display:grid;gap:7px;white-space:normal}.ai-dynamic-sources a{padding:10px 12px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #d9e4eb;border-radius:10px;color:#0b6398;background:#f8fbfc;font-size:13px;font-weight:800}.ai-dynamic-sources a:hover{border-color:#a9c7d8;background:#fff}.ai-dynamic-sources svg{width:18px;color:#b57d25}.ai-dynamic-limit{margin-top:18px;padding:11px;display:flex;align-items:center;gap:9px;border-radius:10px;color:#775619;background:#fff7e5;font-size:13px;line-height:1.5;white-space:normal}.ai-dynamic-limit svg{width:19px;flex:0 0 auto}

@media(min-width:821px){
  .sidebar-left,.sidebar-right,body.workspace-page .sidebar-left,body.workspace-page .sidebar-right,body[data-page="sejm"] .sidebar-left,body[data-page="sejm"] .sidebar-right{height:100dvh;overflow:hidden}
  .sidebar .primary-nav-column{min-height:0;grid-template-rows:auto auto}
  .sidebar .primary-nav-group .nav-section,.sidebar .nav-section{margin:clamp(3px,1vh,10px) 2px 2px}
  .sidebar .primary-nav-group .side-nav,.sidebar .side-nav{gap:clamp(1px,.45vh,3px)}
  .sidebar .primary-nav-group .side-nav a,.sidebar .side-nav a,body.workspace-page .side-nav a,body[data-page="sejm"] .side-nav a{height:clamp(42px,5.45vh,54px);min-height:42px;padding:3px}
  .global-chat-dock{right:128px}
}
@media(max-width:820px){.global-chat-dock{right:0}}
@media(min-width:821px) and (max-height:760px){
  .sidebar-left .brand,.right-rail-mark{min-height:54px}
  .sidebar-left .brand-mark{width:40px;height:40px}
  .sidebar .primary-nav-group .side-nav a,.sidebar .side-nav a,body.workspace-page .side-nav a,body[data-page="sejm"] .side-nav a{height:42px}
  .sidebar .primary-nav-group .side-nav-label,.sidebar .side-nav-label,body.workspace-page .side-nav-label,body[data-page="sejm"] .side-nav-label{font-size:13px}
}

.filter-core{position:relative}.case-ajax-results{width:min(720px,calc(100% - 24px));max-height:330px;padding:7px;position:absolute;z-index:25;left:12px;top:calc(100% - 4px);overflow:auto;border:1px solid #cad9e3;border-radius:13px;background:#fff;box-shadow:0 20px 50px rgba(9,39,65,.2)}.case-ajax-results[hidden]{display:none}.case-ajax-results a{padding:9px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;border-radius:9px;color:#244b67}.case-ajax-results a:hover{background:#f1f7fa}.case-ajax-results a>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#0b679e;background:#e9f4f9}.case-ajax-results svg{width:17px}.case-ajax-results b,.case-ajax-results small{display:block}.case-ajax-results b{font-size:13px}.case-ajax-results small{margin-top:2px;color:#74899a;font-size:13px}.case-ajax-results em{color:#0a669d;font-size:13px;font-style:normal;font-weight:900}

/* AML search uses vertical filters beside a full list, not a contextual module rail. */
.aml-dashboard-grid>main{display:grid;grid-template-columns:245px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.aml-dashboard-grid>main>.card-head{grid-column:1/-1}.aml-filter-bar{padding:14px;grid-column:1;grid-row:2;grid-template-columns:1fr;align-content:start;gap:9px;border-right:1px solid #dce5eb;border-bottom:0;background:linear-gradient(180deg,#f4f8fa,#edf4f7)}.aml-filter-bar::before{content:"Filtry podmiotów";margin-bottom:4px;color:#234c68;font:700 17px var(--serif)}.aml-filter-bar input,.aml-filter-bar select{width:100%;min-height:42px}.aml-filter-bar .btn{width:100%;margin-top:4px}.aml-entity-list{grid-column:2;grid-row:2}.aml-no-results{grid-column:2;grid-row:2;background:#fff}.aml-no-results:not([hidden]){display:grid}
@media(max-width:760px){.aml-dashboard-grid>main{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)}.aml-dashboard-grid>main>.card-head,.aml-filter-bar,.aml-entity-list,.aml-no-results{grid-column:1}.aml-filter-bar{grid-row:2;border-right:0;border-bottom:1px solid #dce5eb}.aml-entity-list,.aml-no-results{grid-row:3}}

/* Portal-wide layout guardrails: content wraps instead of creating a horizontal page. */
html,body,#app,.portal,.shell,.content{width:100%;max-width:100%;overflow-x:clip}
.shell,.content,.dashboard-grid,.record-layout,.judgment-browser,.judgment-record-layout,.market-layout,.aml-dashboard-grid{min-width:0}
.card,.card-body,.card-head,main,section,article,aside,nav,header,footer{min-width:0}
p,h1,h2,h3,h4,b,small,span,a,td,th{overflow-wrap:break-word;word-break:normal}
.tabs,.judgment-record-tabs,.judgment-year-line,.aml-alert-tabs{flex-wrap:wrap;overflow:visible}
.tabs button,.tabs a,.judgment-record-tabs button{white-space:normal;text-align:center}
.table-wrap{width:100%;max-width:100%;overflow-x:clip}
.data-table{width:100%;table-layout:auto}
.data-table td,.data-table th{min-width:0}
a.list-row,.cell-title,.judge-record-link,.judgment-regulation,.case-relation-columns a{position:relative}
a.list-row::after,.cell-title::after,.judge-record-link::after,.case-relation-columns a::after{content:"Otwórz rekord";margin-left:auto;color:#08689f;font-size:13px;font-weight:900;white-space:nowrap}
a.list-row>span:last-child{display:none}
a.list-row:hover,.judge-record-link:hover,.case-relation-columns a:hover{color:#075e93;background:#f1f8fb}

/* Dashboard chart and judgment list guide. */
.card-body:has(.demo-activity){padding-bottom:22px;overflow:hidden}
.demo-activity{height:auto!important;min-height:230px!important;overflow:hidden}
.demo-activity-bars{height:205px;min-height:205px;overflow:hidden}
.demo-activity-bars article{height:200px;grid-template-rows:168px 26px}
.demo-activity-bars article>div{height:158px}
.judgment-how{margin:18px 0;padding:28px;border:1px solid #dbe5ec;border-radius:20px;background:radial-gradient(circle at 92% 0,rgba(37,124,181,.09),transparent 22rem),#fff;box-shadow:var(--shadow)}
.judgment-how>header{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:28px;align-items:end}
.judgment-how>header h2{margin:6px 0 0;color:#133653;font:700 30px var(--serif)}
.judgment-how>header p{margin:0;color:#5c7488;font-size:14px;line-height:1.7}
.judgment-how>div{margin-top:24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.judgment-how article{min-height:150px;padding:18px;border:1px solid #dce6ed;border-radius:14px;background:linear-gradient(145deg,#f8fbfc,#fff)}
.judgment-how article>b{color:#b27c25;font-size:13px;letter-spacing:.08em}
.judgment-how article h3{margin:13px 0 7px;color:#173d59;font:700 20px var(--serif)}
.judgment-how article p{margin:0;color:#657c8e;font-size:13px;line-height:1.55}

/* KRS/AML list stays inside its column without an internal horizontal scrollbar. */
.aml-dashboard-grid>main{overflow:visible}
.aml-entity-list{width:100%;max-height:none;overflow:visible}
.aml-entity-row{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto}
.aml-entity-row>a:first-child{grid-column:1;grid-row:1}
.aml-entity-row>.btn{grid-column:2;grid-row:1;white-space:nowrap}
.aml-row-flags{grid-column:1;grid-row:2}
.aml-risk-score{grid-column:2;grid-row:2;width:112px}
.aml-entity-row>a small{font-size:13px}.aml-entity-row>a b{font-size:13px}.aml-entity-row>a em{font-size:13px}
.aml-risk-score b{font-size:13px}.aml-risk-score small{font-size:13px}
.aml-alert-list{max-height:none;overflow:visible}.aml-alert-row div b{font-size:13px}.aml-alert-row div p,.aml-alert-row nav a{font-size:13px}
.aml-filter-bar::before{content:"Filtry podmiotów"}

/* Public-rate archive in the statutory interest calculator. */
.interest-archive{margin:0 20px 20px;border:1px solid #d8e4eb;border-radius:15px;background:#fff;overflow:hidden}
.interest-archive>summary{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none;background:linear-gradient(135deg,#f5f9fb,#fff)}
.interest-archive>summary::-webkit-details-marker{display:none}
.interest-archive>summary b,.interest-archive>summary small{display:block}
.interest-archive>summary b{color:#183f5c;font-size:14px}.interest-archive>summary small{margin-top:3px;color:#728799;font-size:13px}
.interest-archive>summary em{color:#0b689f;font-size:13px;font-style:normal;font-weight:850}
.interest-archive-grid{display:grid;grid-template-columns:1.2fr .8fr;border-top:1px solid #e1e9ee}
.interest-archive-grid>section{min-width:0;padding:16px}.interest-archive-grid>section+section{border-left:1px solid #e1e9ee}
.interest-archive-grid header{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.interest-archive-grid h3{margin:0;color:#173d59;font:700 18px var(--serif)}
.interest-archive-grid a,.interest-archive>footer a{color:#07689f;font-size:13px;font-weight:850}
.interest-archive table{width:100%;border-collapse:collapse;table-layout:auto}
.interest-archive th,.interest-archive td{padding:8px;border-top:1px solid #e6edf1;color:#456176;font-size:13px;text-align:left}
.interest-archive th{border-top:0;color:#708496;background:#f6f9fb;font-size:13px}
.interest-archive>footer{padding:12px 16px;display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid #e1e9ee;background:#f8fafb}

/* Landing pricing. */
.pricing-section{background:radial-gradient(circle at 10% 10%,rgba(201,149,53,.11),transparent 25rem),linear-gradient(180deg,#f4f7fa,#fff)}
.pricing-cycle{width:max-content;max-width:100%;margin:0 auto 28px;padding:5px;display:flex;border:1px solid #d8e2e9;border-radius:13px;background:#fff;box-shadow:0 10px 30px rgba(14,47,73,.08)}
.pricing-cycle button{min-height:42px;padding:0 18px;border:0;border-radius:9px;color:#5b7287;background:transparent;font-size:13px;font-weight:850}
.pricing-cycle button.active{color:#fff;background:#0a426e}.pricing-cycle span{margin-left:5px;color:#865d15;background:#f8db91;font-size:13px}
.pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.pricing-card{padding:28px;position:relative;border:1px solid #d8e3ea;border-radius:22px;background:#fff;box-shadow:0 18px 50px rgba(12,43,69,.08)}
.pricing-card.recommended{color:#fff;border-color:#0b416b;background:radial-gradient(circle at 88% 0,rgba(216,166,65,.25),transparent 16rem),linear-gradient(145deg,#061c37,#0a4775);box-shadow:0 28px 70px rgba(7,35,61,.22);transform:translateY(-8px)}
.pricing-ribbon{position:absolute;right:18px;top:18px;padding:6px 9px;border-radius:999px;color:#1a293a;background:linear-gradient(145deg,#f4d98e,#c99130);font-size:13px;font-weight:900}
.pricing-card>header{display:flex;align-items:center;gap:12px}.pricing-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:#fff;background:#0b416b}.recommended .pricing-icon{color:#16263a;background:linear-gradient(145deg,#f5da91,#c7902f)}
.pricing-card header small,.pricing-card header h3{display:block;margin:0}.pricing-card header small{color:#9a6c20;font-size:13px;font-weight:900;text-transform:uppercase}.recommended header small{color:#efcc7c}.pricing-card header h3{margin-top:2px;font:700 28px var(--serif)}
.pricing-card>p{min-height:54px;margin:19px 0;color:#687b8e;font-size:13px;line-height:1.65}.recommended>p{color:#b9cadd}
.pricing-price{min-height:72px;padding:14px 0;display:flex;align-items:baseline;gap:8px;border-top:1px solid #e1e8ed;border-bottom:1px solid #e1e8ed}.recommended .pricing-price{border-color:rgba(255,255,255,.14)}
.pricing-price b{font:700 35px var(--serif)}.pricing-price span{color:#778a9c;font-size:13px}.recommended .pricing-price span{color:#adc0d3}.pricing-price.custom{align-items:flex-start;flex-direction:column;gap:1px}.pricing-price.custom b{font-size:27px}
.pricing-card ul{min-height:190px;margin:20px 0;padding:0;display:grid;align-content:start;gap:11px;list-style:none}.pricing-card li{padding-left:21px;position:relative;color:#405b71;font-size:13px}.recommended li{color:#d5e0ea}.pricing-card li::before{content:"✓";position:absolute;left:0;color:#208463;font-weight:950}.pricing-card>.btn{width:100%}
.pricing-note{max-width:820px;margin:25px auto 0;padding:15px 18px;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #d8e5df;border-radius:14px;color:#436174;background:#f5fbf8;font-size:13px}.pricing-note svg{width:23px;color:#1d8262}

/* Legal services marketplace. */
.market-hero{margin-bottom:18px;padding:28px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(420px,.8fr);gap:30px;align-items:center;color:#fff;background:radial-gradient(circle at 90% 0,rgba(209,158,56,.28),transparent 20rem),linear-gradient(135deg,#061c36,#0a527f)}
.market-hero h2{margin:7px 0 9px;color:#fff;font:700 36px var(--serif)}.market-hero p{max-width:760px;margin:0;color:#c5d7e5;font-size:13px;line-height:1.7}
.market-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.market-stats article{padding:15px;border:1px solid rgba(255,255,255,.15);border-radius:13px;background:rgba(255,255,255,.075)}.market-stats b,.market-stats span{display:block}.market-stats b{font:700 25px var(--serif)}.market-stats span{margin-top:4px;color:#afc5d6;font-size:13px}
.market-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}.market-filters{padding:18px;display:grid;gap:13px;position:sticky;top:94px}.market-filters>header{display:flex;align-items:center;gap:10px}.market-filters>header>span{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;color:#a4711e;background:#fff2d3}.market-filters small,.market-filters h2{display:block;margin:0}.market-filters small{color:#9a6d20;font-size:13px;font-weight:900;text-transform:uppercase}.market-filters h2{font:700 21px var(--serif)}
.market-filters label{display:grid;gap:6px}.market-filters label>span,.market-create-grid label>span{color:#526d82;font-size:13px;font-weight:850}.market-filters input,.market-filters select,.market-create-grid input,.market-create-grid select,.market-create-grid textarea{width:100%;min-height:43px;padding:0 11px;border:1px solid #d2dfe7;border-radius:10px;color:#1f435e;background:#fff;font-size:13px}
.market-results-head{margin-bottom:11px;padding:0 3px;display:flex;align-items:end;justify-content:space-between;gap:12px}.market-results-head h2{margin:4px 0 0;font:700 27px var(--serif)}.market-order-list{display:grid;gap:12px}
.market-order{padding:19px;overflow:hidden}.market-order>header,.market-order>footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.market-category{display:inline-flex;align-items:center;gap:7px;color:#8f631b;font-size:13px;font-weight:900;text-transform:uppercase}.market-category svg{width:17px}
.market-order-main{margin:14px -19px;padding:17px 19px;display:grid;grid-template-columns:minmax(0,1fr) 165px;gap:20px;border-top:1px solid #e4eaef;border-bottom:1px solid #e4eaef;background:#f9fbfc}.market-order-main h2{margin:0;color:#173b58;font:700 23px var(--serif)}.market-order-main p{margin:7px 0 0;color:#60778a;font-size:13px;line-height:1.65}.market-meta{margin-top:13px;display:flex;gap:13px;flex-wrap:wrap}.market-meta span{display:inline-flex;align-items:center;gap:5px;color:#627b8e;font-size:13px;font-weight:750}.market-meta svg{width:14px;color:#0d6ba2}
.market-order-main>aside{padding-left:18px;display:flex;justify-content:center;flex-direction:column;border-left:1px solid #dce5eb}.market-order-main>aside small,.market-order-main>aside b,.market-order-main>aside em{display:block}.market-order-main>aside small{color:#7b8d9d;font-size:13px}.market-order-main>aside b{margin:3px 0;color:#116d52;font:700 25px var(--serif)}.market-order-main>aside em{color:#708598;font-size:13px;font-style:normal}
.market-order>footer>div{display:flex;gap:18px;color:#657b8e;font-size:13px}.market-order>footer b{color:#153c59}
.market-safety{margin-top:18px;padding:17px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center}.market-safety>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#1e7b5e;background:#e9f7f1}.market-safety b{font-size:13px}.market-safety p{margin:4px 0 0;color:#667d90;font-size:13px;line-height:1.55}
.market-bid-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.market-bid-modal>header p{margin:6px 0 0;color:#61798c;font-size:13px;line-height:1.6}.market-bid-list{margin-top:16px;display:grid;gap:9px}.market-bid-list article{padding:14px;display:grid;grid-template-columns:34px minmax(0,1fr) 145px auto;gap:12px;align-items:center;border:1px solid #dce5eb;border-radius:13px;background:#fff}.market-bid-list article.cheapest{border-color:#d1a445;background:#fffaf0}.market-bid-rank{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#0b4d78;font-weight:900}.market-bid-person a{color:#08689f;font-size:13px;font-weight:900;text-decoration:underline;text-decoration-color:#bf913c;text-underline-offset:4px}.market-bid-person small{display:block;margin-top:4px;color:#6f8597;font-size:13px}.market-bid-person p{margin:5px 0 0;color:#455f73;font-size:13px}.market-bid-price small,.market-bid-price b,.market-bid-price em{display:block}.market-bid-price small{color:#8a651f;font-size:13px}.market-bid-price b{margin:2px 0;color:#173d59;font:700 22px var(--serif)}.market-bid-price em{color:#26805f;font-size:13px;font-style:normal}.market-bid-modal>footer{margin-top:14px;padding:13px;display:flex;align-items:center;gap:9px;border-radius:11px;color:#6e571f;background:#fff6df;font-size:13px}.market-bid-modal>footer svg{width:20px;flex:0 0 auto}
.market-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.market-create-grid label{display:grid;gap:6px}.market-create-grid label.wide{grid-column:1/-1}.market-create-grid textarea{min-height:110px;padding:11px;resize:vertical}.market-create-files{padding:14px;border:1px dashed #9eb8c8;border-radius:12px;background:#f6fafc}.market-create-files small{color:#708699;font-size:13px}.market-create-form>footer{margin-top:16px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e1e8ed}.market-create-form>footer small{color:#708496;font-size:13px}

/* Larger base text for high-density data screens. */
.aml-filter-bar input,.aml-filter-bar select,.aml-filter-bar .btn,.case-ajax-results b{font-size:13px}
.case-ajax-results small,.case-ajax-results em{font-size:13px}
.list-row b,.timeline-item b,.analysis-card b{font-size:13px}
.list-row small,.timeline-item small{font-size:13px}

/* Judge reasoning coverage drill-down. */
.judge-coverage-metric{cursor:pointer;border-color:#c8dfeb;background:radial-gradient(circle at 90% 15%,rgba(24,125,181,.12),transparent 8rem),#fff}
.judge-coverage-metric:hover,.judge-coverage-metric:focus-visible{border-color:#1571a9;box-shadow:0 20px 48px rgba(13,91,138,.15);transform:translateY(-2px)}
.judge-linked-judgments{margin-top:16px;scroll-margin-top:94px;overflow:hidden}.judge-linked-judgments.focus-pulse{animation:judge-focus-pulse 1.1s ease both}
@keyframes judge-focus-pulse{0%,100%{box-shadow:var(--shadow)}35%{box-shadow:0 0 0 5px rgba(28,116,171,.18),0 25px 60px rgba(12,70,108,.18)}}
.judge-linked-judgments>.card-head p{margin:4px 0 0;color:#718698;font-size:13px}
.judge-corpus-filters{padding:14px;display:grid;grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(135px,.7fr)) auto;gap:9px;align-items:end;border-bottom:1px solid #dfe8ed;background:linear-gradient(180deg,#f7fafc,#f1f6f8)}
.judge-corpus-filters label{display:grid;gap:5px}.judge-corpus-filters label>span{color:#5b7386;font-size:13px;font-weight:850}.judge-corpus-filters input,.judge-corpus-filters select{width:100%;min-height:42px;padding:0 10px;border:1px solid #ccd9e2;border-radius:9px;color:#21455f;background:#fff;font-size:13px}
.judge-corpus-list{display:grid}.judge-corpus-row{padding:17px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:13px;align-items:start;border-top:1px solid #e2e9ee}.judge-corpus-row:first-child{border-top:0}.judge-corpus-row:hover{background:#f8fbfc}
.judge-corpus-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:#0d689f;background:#e9f4f9}.judge-corpus-icon svg{width:21px}.judge-corpus-row small{color:#7c8f9f;font-size:13px}.judge-corpus-row h3{margin:4px 0}.judge-corpus-row h3 a{color:#0a659b;font:700 18px var(--serif);text-decoration:underline;text-decoration-color:#c9a04e;text-underline-offset:4px}.judge-corpus-row p{margin:6px 0 10px;color:#536d80;font-size:13px;line-height:1.6}

@media(max-width:1180px){
  .pricing-grid{grid-template-columns:1fr 1fr}.pricing-card:last-child{grid-column:1/-1}.pricing-card.recommended{transform:none}
  .market-hero{grid-template-columns:1fr}.market-layout{grid-template-columns:230px minmax(0,1fr)}
  .judgment-how>div{grid-template-columns:1fr 1fr}
  .aml-dashboard-grid{grid-template-columns:1fr}.aml-dashboard-grid>aside{position:static}
}
@media(max-width:820px){
  .pricing-grid,.market-layout{grid-template-columns:1fr}.pricing-card:last-child{grid-column:auto}
  .market-filters{position:static;grid-template-columns:1fr 1fr}.market-filters>header,.market-filters>.btn{grid-column:1/-1}
  .market-bid-list article{grid-template-columns:34px minmax(0,1fr)}.market-bid-price,.market-bid-list article>.btn{grid-column:2}
  .judgment-how>header{grid-template-columns:1fr}.judgment-how>div{grid-template-columns:1fr 1fr}
  .demo-activity{grid-template-columns:1fr!important}.demo-activity-bars{height:200px}
  .judge-corpus-filters{grid-template-columns:1fr 1fr}.judge-corpus-filters label:first-child{grid-column:1/-1}
}
@media(max-width:620px){
  .content{padding-left:12px;padding-right:12px}
  .pricing-cycle{width:100%}.pricing-cycle button{flex:1;padding:0 9px}
  .market-stats{grid-template-columns:1fr}.market-filters,.market-create-grid{grid-template-columns:1fr}.market-filters>header,.market-filters>.btn,.market-create-grid label.wide{grid-column:auto}
  .market-order>header,.market-order>footer,.market-order>footer>div{align-items:flex-start;flex-direction:column}.market-order>footer .btn{width:100%}
  .market-order-main{grid-template-columns:1fr}.market-order-main>aside{padding:13px 0 0;border-top:1px solid #dce5eb;border-left:0}
  .market-safety{grid-template-columns:40px minmax(0,1fr)}.market-safety>.btn{grid-column:1/-1}
  .judgment-how{padding:19px}.judgment-how>div{grid-template-columns:1fr}.judgment-how article{min-height:0}
  .interest-archive-grid{grid-template-columns:1fr}.interest-archive-grid>section+section{border-top:1px solid #e1e9ee;border-left:0}
  .aml-entity-row{grid-template-columns:minmax(0,1fr)}.aml-entity-row>a:first-child,.aml-entity-row>.btn,.aml-row-flags,.aml-risk-score{grid-column:1;grid-row:auto}.aml-risk-score{width:100%}.aml-entity-row>.btn{width:100%}
  .data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}.data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.data-table tr{padding:9px;border-top:1px solid #e1e8ed}.data-table td{padding:7px;border:0}.data-table td:last-child .btn{width:100%}
  .demo-activity-legend{flex-wrap:wrap}.demo-activity-bars{grid-template-columns:repeat(7,minmax(28px,1fr));gap:3px}
  .judge-corpus-filters{grid-template-columns:1fr}.judge-corpus-filters label:first-child{grid-column:auto}.judge-corpus-row{grid-template-columns:40px minmax(0,1fr)}.judge-corpus-row>.btn{grid-column:1/-1;width:100%}
  .landing-tour-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.landing-tour-tabs button{min-width:0;width:100%}
  .sidebar-left{overflow-x:hidden!important;overflow-y:auto}
  .filter-tabs,.ct-tabs,.law-result-tabs,.law-record-tabs,.sejm-record-nav,.registry-record-nav{display:flex;flex-wrap:wrap;overflow:visible}
  .filter-tabs>* ,.ct-tabs>* ,.law-result-tabs>* ,.law-record-tabs>* ,.sejm-record-nav>* ,.registry-record-nav>*{min-width:0!important;flex:1 1 125px}
  .ocr-pages{display:grid!important;grid-template-columns:1fr 1fr;overflow:visible!important}.ocr-pages .ocr-thumb{min-width:0;width:100%}
  .landing-twin-stage>aside{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.landing-twin-stage>aside button{min-width:0;width:100%}
}
.portal{background:linear-gradient(180deg,#f7f9fb,#edf1f4)}
.data-table {
    min-width: 100%;
}
a.btn {
    width: auto;
}

.skip-link{position:fixed;z-index:999;left:14px;top:12px;padding:11px 15px;border-radius:9px;color:#fff;background:#092f52;box-shadow:0 8px 24px rgba(5,30,55,.24);transform:translateY(-150%);transition:transform .18s ease}.skip-link:focus{transform:translateY(0)}
.noscript-message{margin:20px;padding:16px;border:1px solid #e2c577;border-radius:12px;color:#5e4517;background:#fff8e8;font:600 14px/1.5 Georgia,serif}
.landing .btn{min-width:max-content;padding:0 18px;font-size:13px;white-space:nowrap}.landing a:focus-visible,.landing button:focus-visible{outline:3px solid #d0a340;outline-offset:3px}.hero-login{display:inline-flex;align-items:center;min-height:44px;color:#245c84;font-size:13px;font-weight:750;text-decoration:underline;text-decoration-color:#d5af62;text-underline-offset:5px}.landing-links .landing-login{font-weight:750}
.first-start{padding-top:78px;padding-bottom:80px;background:linear-gradient(180deg,#f6f9fb,#fff)}.first-start-grid{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.first-start-grid>a{min-height:142px;padding:20px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;align-items:start;border:1px solid #d5e1e9;border-radius:17px;color:#173c59;background:#fff;box-shadow:0 14px 38px rgba(12,45,72,.07);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.first-start-grid>a:hover{border-color:#c7973d;box-shadow:0 18px 45px rgba(12,45,72,.12);transform:translateY(-3px)}.first-start-grid>a>b{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#fff;background:#0a527e;font:700 21px var(--serif)}.first-start-grid strong,.first-start-grid small{display:block}.first-start-grid strong{font-size:15px}.first-start-grid small{margin-top:6px;color:#647b8e;font-size:13px;line-height:1.55}.first-start-grid em{grid-column:2;color:#0a659b;font-size:13px;font-style:normal;font-weight:800}.demo-safety{max-width:930px;margin:20px auto 0;padding:15px 18px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:center;border:1px solid #e5cd91;border-radius:14px;color:#674b18;background:#fff9eb;font-size:13px;line-height:1.55}.demo-safety svg{color:#a87723}
.dashboard-onboarding{margin-bottom:18px;padding:22px;border:1px solid #ccdde8;border-radius:18px;background:radial-gradient(circle at 92% 0,rgba(201,149,53,.15),transparent 20rem),linear-gradient(135deg,#fff,#f3f8fb);box-shadow:0 16px 42px rgba(13,45,72,.07)}.dashboard-onboarding h2{margin:4px 0 5px;color:#0c2f4d;font:700 27px var(--serif)}.dashboard-onboarding p{margin:0;color:#62798b;font-size:13px}.dashboard-onboarding-actions{margin-top:17px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-onboarding-actions>a{min-height:92px;padding:14px;display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:10px;align-items:center;border:1px solid #d6e1e8;border-radius:13px;color:#173d59;background:#fff}.dashboard-onboarding-actions>a:hover{border-color:#c6963c;box-shadow:0 10px 24px rgba(10,47,75,.08)}.dashboard-onboarding-actions span{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#0b649a;background:#e9f4fa}.dashboard-onboarding-actions b{font-size:13px}.dashboard-onboarding-actions small{color:#6a8091;font-size:13px}.dashboard-demo-warning{margin-top:13px!important;padding:10px 12px;border-radius:9px;color:#765417!important;background:#fff5dc;font-weight:700}
.cta-actions{display:flex;align-items:center;gap:17px;flex-wrap:wrap}.cta-contact{color:#fff;font-size:13px;font-weight:750;text-decoration:underline;text-decoration-color:#dcb75f;text-underline-offset:5px}.landing-footer nav{display:flex;gap:18px;flex-wrap:wrap}.landing-footer a{color:inherit;text-decoration:underline;text-decoration-color:#c8d2dc;text-underline-offset:4px}
@media(max-width:900px){.first-start-grid,.dashboard-onboarding-actions{grid-template-columns:1fr}.dashboard-onboarding-actions>a{min-height:78px}}
@media(max-width:560px){.landing .btn{max-width:100%;min-width:0;white-space:normal}.hero-actions{align-items:stretch;flex-direction:column}.hero-actions .btn,.hero-actions .hero-login{width:100%;justify-content:center}.first-start{padding-top:60px;padding-bottom:60px}.landing-footer nav{gap:10px}.cta-actions{align-items:flex-start;flex-direction:column}.dashboard-onboarding{padding:17px}.dashboard-onboarding h2{font-size:23px}}

/* Production UX hardening */
.sr-only{width:1px;height:1px;padding:0;position:absolute!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid #b97816;outline-offset:3px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[contenteditable="true"]:focus-visible{outline:3px solid #b97816;outline-offset:3px}
button[disabled],input[disabled],select[disabled],textarea[disabled]{cursor:not-allowed;opacity:.58}
input,select,textarea{font-size:max(14px,1em)}
label{cursor:pointer}
.btn,.icon-btn,.side-nav a,.tabs button,.tabs a,.landing-links a,.conversation,.settings-menu button{min-height:44px}
.source-state{min-height:40px;font-size:13px}
.source-state[type="button"]:hover{border-color:#b9c8d5;box-shadow:0 7px 20px rgba(13,40,68,.08)}
.empty-state{min-height:180px;padding:34px 24px}
.empty-state.compact{min-height:120px}
.empty-state b{font-size:18px}.empty-state p{max-width:58ch;font-size:13px;line-height:1.65}
.toast{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));max-width:min(390px,calc(100vw - 32px));padding:14px 16px;font-size:13px;line-height:1.5}
.modal{padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.modal-panel{overscroll-behavior:contain}
.modal-head{position:sticky;z-index:3;top:0;background:#fff}
.modal-head h2{font-size:24px}
.modal-body{padding:24px}
.global-search input::placeholder,.filters input::placeholder,textarea::placeholder{color:#718397;opacity:1}
.search-suggestions [role="option"]:focus-visible{background:#edf5fa}
.data-table caption{padding:12px 15px;text-align:left;font-weight:800}
.data-table th{white-space:nowrap}
.table-wrap{overscroll-behavior-x:contain}
.api-empty .empty-state-icon{width:32px;height:32px;color:#82601f}
.aml-dashboard-hero p,.aml-dashboard-hero form input{font-size:14px}
.aml-dashboard-hero>div>small,.aml-source-strip span,.aml-filter-bar input,.aml-filter-bar select,.aml-entity-row>a small,.aml-entity-row>a em,.aml-risk-score small,.aml-alert-row div small,.aml-alert-row div p,.aml-alert-row nav a{font-size:13px}
.aml-entity-row>a b,.aml-alert-row div b{font-size:13px}
.ai-result-content .ai-dynamic-summary p,.ai-result-content li,.ai-dynamic-sources a,.ai-dynamic-limit{font-size:13px}
.ct-source-state b{font-size:13px}.ct-source-state small{font-size:13px}
.ct-table th{font-size:13px}.ct-table td{font-size:13px}
.intake-privacy{font-size:13px;line-height:1.6}
.intake-toolbar button,.text-codec button{min-height:42px}
.landing-footer{font-size:13px}
.landing-menu-link,.landing-login,.landing-demo-link{display:inline-flex;align-items:center;gap:8px}
.landing-menu-icon{width:27px;height:27px;display:grid;flex:0 0 27px;place-items:center;border:1px solid #d9e3eb;border-radius:9px;color:#25658d;background:linear-gradient(145deg,#fff,#edf4f8);box-shadow:0 4px 12px rgba(13,47,76,.06);transition:transform .18s ease,border-color .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease}
.landing-menu-icon .ui-icon{width:14px;height:14px}
.landing-links>a:not(.btn):hover .landing-menu-icon,.landing-links>a:not(.btn):focus-visible .landing-menu-icon{border-color:#d1a34b;color:#0b3154;background:linear-gradient(145deg,#fffaf0,#f2dfae);box-shadow:0 7px 18px rgba(129,88,22,.13);transform:translateY(-1px)}
.landing-links>a.is-active{color:#0b3154;font-weight:800}
.landing-links>a.is-active::after{right:0}
.landing-links>a.is-active .landing-menu-icon{border-color:#d4aa58;color:#092f52;background:linear-gradient(145deg,#fff8e8,#efd38c);box-shadow:0 7px 18px rgba(129,88,22,.15)}
.landing-demo-link .landing-menu-icon{width:25px;height:25px;flex-basis:25px;border-color:rgba(8,39,67,.15);color:#092f52;background:rgba(255,255,255,.28);box-shadow:none}
.landing-demo-link:hover .landing-menu-icon,.landing-demo-link:focus-visible .landing-menu-icon{background:rgba(255,255,255,.48);transform:translateX(1px)}
.landing-demo-link>b{font-size:15px;line-height:1}
#pierwsze-kroki,#moduly,#cennik,#dane{scroll-margin-top:104px}

@media(max-width:820px){
  .landing-nav{height:auto;min-height:76px;padding:10px 14px;align-items:center;flex-wrap:wrap}
  .landing-nav .brand{padding:4px 0;border-bottom:0}
  .landing-links{width:100%;margin:0;display:flex;order:3;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  .landing-links a:not(.btn){min-width:max-content;padding:0 11px;display:inline-flex;align-items:center;border:1px solid #dce4eb;border-radius:10px;background:#fff}
  .landing-links .btn{min-width:max-content}
  .landing-menu-icon{width:26px;height:26px;flex-basis:26px;border:0;background:#eef5f8;box-shadow:none}
  .landing-links>a.is-active{border-color:#d2aa5d;background:#fff9ed}
  .landing-links>a.is-active .landing-menu-icon{box-shadow:none}
  .landing-hero{padding-top:54px}
  .topbar{gap:9px}
  .top-actions{gap:6px}
  .source-state{max-width:190px;overflow:hidden;text-overflow:ellipsis}
  .content{padding-bottom:max(32px,env(safe-area-inset-bottom))}
  .page-head{align-items:flex-start;flex-direction:column}
  .head-actions{width:100%}
  .head-actions .btn{flex:1}
}

/* Release gates: compact AML filters, stable Sejm toolbar and visible OCR. */
.aml-dashboard-grid.aml-dashboard-v2>main{
  grid-template-columns:minmax(270px,300px) minmax(0,1fr);
}
.aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar{
  grid-template-columns:1fr;
  align-content:start;
}
.aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar::before{
  grid-column:1;
  line-height:1.15;
}
.aml-dashboard-grid.aml-dashboard-v2 .smart-select-trigger{
  min-height:42px;
  padding-inline:11px;
}
.aml-dashboard-grid.aml-dashboard-v2 .smart-select-trigger [data-smart-select-value]{
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:normal;
  word-break:normal;
  white-space:nowrap;
}
.sejm-workspace-bar,
.sejm-workspace-bar>label{
  min-height:0;
  max-height:none;
}
.sejm-workspace-bar>label{
  height:40px;
  flex:1 1 300px;
}
.sejm-workspace-bar>label input{
  height:38px;
}
.sejm-ocr-summary{
  border-bottom:1px solid #dce5eb;
  background:linear-gradient(180deg,#f8fbfd,#f2f7fa);
}
.sejm-ocr-kpis{
  padding:14px 18px;
  display:grid;
  grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(135px,1fr));
  gap:9px;
}
.sejm-ocr-kpis article{
  min-width:0;
  padding:12px;
  border:1px solid #d5e2ea;
  border-radius:12px;
  background:#fff;
}
.sejm-ocr-kpis small,
.sejm-ocr-kpis b,
.sejm-ocr-kpis span{
  display:block;
}
.sejm-ocr-kpis small{
  color:#74899b;
  font-size:13px;
  font-weight:850;
  text-transform:uppercase;
}
.sejm-ocr-kpis b{
  margin-top:4px;
  overflow:hidden;
  color:#1d4663;
  font-size:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sejm-ocr-kpis span{
  margin-top:3px;
  color:#718697;
  font-size:13px;
}
.sejm-ocr-notice{
  margin:0 18px 12px;
  padding:10px 12px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:5px 12px;
  border:1px solid #c9dfd6;
  border-radius:10px;
  color:#285743;
  background:#f1fbf6;
}
.sejm-ocr-notice.warning{
  border-color:#ead4a4;
  color:#75551e;
  background:#fff8e8;
}
.sejm-ocr-notice strong{
  font-size:13px;
}
.sejm-ocr-notice span{
  font-size:13px;
  line-height:1.5;
}
.sejm-ocr-pages{
  padding:0 18px 14px;
  display:flex;
  gap:7px;
  overflow-x:auto;
}
.sejm-ocr-pages button{
  min-width:78px;
  min-height:48px;
  padding:7px 10px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:7px;
  align-items:center;
  border:1px solid #cfdde6;
  border-radius:10px;
  color:#355a72;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.sejm-ocr-pages button b{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#fff;
  background:#176d9f;
}
.sejm-ocr-pages button span{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.sejm-ocr-pages button.active{
  border-color:#0b689f;
  background:#eaf5fa;
  box-shadow:0 0 0 3px rgba(11,104,159,.1);
}

@media(max-width:1280px){
  .aml-dashboard-grid.aml-dashboard-v2>main{
    grid-template-columns:1fr;
    grid-template-rows:auto auto minmax(0,1fr);
  }
  .aml-dashboard-grid.aml-dashboard-v2>main>.card-head{
    grid-column:1;
    grid-row:1;
  }
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar{
    grid-column:1;
    grid-row:2;
    grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(170px,1fr));
    border-right:0;
    border-bottom:1px solid #dce5eb;
  }
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar::before{
    grid-column:1/-1;
  }
  .aml-dashboard-grid.aml-dashboard-v2 .aml-entity-list,
  .aml-dashboard-grid.aml-dashboard-v2 .aml-no-results{
    grid-column:1;
    grid-row:3;
  }
}
@media(max-width:980px){
  body[data-page="sejm"] .sejm-canvas{
    grid-template-rows:auto auto;
  }
  body[data-page="sejm"] .sejm-workspace-bar{
    height:auto;
    padding:9px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    align-items:center;
  }
  body[data-page="sejm"] .sejm-workspace-bar>label{
    width:100%;
    height:40px;
    min-width:0;
    min-height:40px;
    max-height:40px;
    grid-column:1;
    grid-row:1;
  }
  body[data-page="sejm"] .sejm-filter-button{
    grid-column:2;
    grid-row:1;
  }
  body[data-page="sejm"] .sejm-term-switch{
    grid-column:1/-1;
    grid-row:2;
  }
  .sejm-ocr-kpis{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar{
    grid-template-columns:1fr;
  }
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar::before{
    grid-column:1;
  }
  .sejm-ocr-kpis{
    padding:12px;
    grid-template-columns:1fr;
  }
  .sejm-ocr-notice{
    margin-inline:12px;
    grid-template-columns:1fr;
  }
  .sejm-ocr-pages{
    padding-inline:12px;
  }
}

@media(max-width:620px){
  .modal{padding:0}
  .modal-panel{width:100%;max-height:100dvh;min-height:100dvh;border:0;border-radius:0}
  .modal-body{padding:18px}
  .top-actions .source-state{width:40px;min-width:40px;padding:0;justify-content:center;font-size:0}
  .top-actions .source-state i{width:9px;height:9px}
  .global-search label{height:44px;padding-inline:10px}
  .content{padding-inline:12px}
  .card{border-radius:15px}
  .page-head h1{overflow-wrap:anywhere}
  .filters{align-items:stretch;flex-direction:column}
  .filters input,.filters select,.filters .btn{width:100%;min-width:0}
  .landing-links{padding-bottom:2px}
  .landing-links a{font-size:13px}
  .first-start-grid>a{min-height:0}
}

/* Responsive data controls */
.chart-date-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.chart-date-toolbar>div{min-width:0;display:flex;flex:1 1 390px;align-items:center;gap:8px;flex-wrap:wrap}
.chart-date-toolbar>div>span{flex:0 0 100%;overflow-wrap:normal;white-space:nowrap}
.chart-date-toolbar label{min-width:150px;flex:1 1 150px;overflow-wrap:normal;white-space:nowrap}
.chart-date-toolbar input{min-width:118px;max-width:none;flex:1}
.chart-date-toolbar nav{flex:0 0 auto;flex-wrap:nowrap}
.chart-date-toolbar nav button,.chart-date-toolbar output{overflow-wrap:normal;white-space:nowrap}
.chart-date-toolbar output{flex:1 0 100%;text-align:left}
.dashboard-activity-toolbar{margin:0 0 16px}
.chart-empty>*{visibility:hidden}
.chart-empty::after{visibility:visible}

/* Wide tables scroll inside their card instead of crushing action columns. */
.table-wrap{overflow-x:auto}
.data-table:has(th:nth-child(6)){min-width:920px}
.data-table td:last-child{width:1%;min-width:132px;text-align:right}
.data-table td:last-child .btn{min-width:116px;display:inline-flex;align-items:center;justify-content:center;overflow-wrap:normal;white-space:nowrap}
.cell-title::after{display:none}

/* Searchable case picker keeps large case registers usable. */
.ai-case-picker{position:relative}
.ai-case-picker-trigger{width:100%;min-height:50px;padding:0 13px;display:grid;grid-template-columns:30px minmax(0,1fr) 20px;gap:8px;align-items:center;border:1px solid #d5e0e9;border-radius:12px;color:#173651;background:#fff;text-align:left;cursor:pointer}
.ai-case-picker-trigger>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:#0b6ca5;background:#edf6fb}
.ai-case-picker-trigger svg{width:16px}
.ai-case-picker-trigger b{min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.ai-case-picker-trigger i{color:#71879a;font-size:18px;font-style:normal;text-align:center;transition:transform .18s ease}
.ai-case-picker.open .ai-case-picker-trigger{border-color:#1674bb;box-shadow:0 0 0 4px rgba(22,116,187,.1)}
.ai-case-picker.open .ai-case-picker-trigger i{transform:rotate(180deg)}
.ai-case-picker-panel{width:100%;padding:9px;position:absolute;z-index:60;left:0;top:calc(100% + 7px);border:1px solid #cbd9e3;border-radius:14px;background:#fff;box-shadow:0 22px 60px rgba(7,37,62,.2)}
.ai-case-picker-panel[hidden]{display:none}
.ai-case-picker-search{height:44px;padding:0 11px!important;display:flex!important;align-items:center;gap:8px!important;border:1px solid #d5e0e9;border-radius:10px;background:#f8fbfc}
.ai-case-picker-search svg{width:17px;color:#0b6ca5}
.ai-live-form .ai-case-picker-search input{min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:13px}
.ai-case-picker-results{max-height:286px;margin-top:7px;display:grid;gap:3px;overflow-y:auto;overscroll-behavior:contain}
.ai-case-picker-results button{width:100%;min-height:52px;padding:9px 11px;display:block;border:1px solid transparent;border-radius:9px;color:#234761;background:#fff;text-align:left;cursor:pointer}
.ai-case-picker-results button:hover,.ai-case-picker-results button:focus-visible{border-color:#bdd4e2;background:#eef7fb}
.ai-case-picker-results b,.ai-case-picker-results small{display:block;overflow-wrap:normal}
.ai-case-picker-results b{font-size:13px}.ai-case-picker-results small{margin-top:3px;color:#708698;font-size:13px;line-height:1.4}
.ai-case-picker-panel footer{padding:8px 5px 1px;color:#75899a;font-size:13px}

/* Empty relationship sections occupy the complete content area. */
.sejm-reference-grid>.empty-state{width:100%;grid-column:1/-1}
.sejm-reference-grid>.empty-state,.law-related-list>.empty-state{min-height:180px;border:1px dashed #cbdbe6;border-radius:16px;background:radial-gradient(circle at 50% 0,rgba(25,119,177,.06),transparent 18rem),#fbfdfe}

@media(max-width:620px){
  .data-table:has(th:nth-child(6)){min-width:0}
  .data-table td:last-child{width:100%;min-width:0;text-align:left}
  .data-table td:last-child .btn{width:100%}
  .chart-date-toolbar{margin-inline:0;padding:10px}
  .chart-date-toolbar>div{flex-basis:100%}
  .chart-date-toolbar label{min-width:0;flex-basis:100%}
  .chart-date-toolbar nav{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  .chart-date-toolbar nav button{padding-inline:5px}
  .ai-case-picker-panel{position:fixed;z-index:170;inset:auto 12px 12px;width:auto;max-height:72dvh}
  .ai-case-picker-results{max-height:52dvh}
}

/* Forum workspace */
.forum-home-hero{margin-bottom:18px;padding:clamp(24px,4vw,44px);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:36px;align-items:center;border:1px solid #173f61;border-radius:24px;color:#fff;background:radial-gradient(circle at 88% 10%,rgba(48,143,196,.34),transparent 26rem),radial-gradient(circle at 12% 100%,rgba(206,158,62,.16),transparent 22rem),linear-gradient(135deg,#061d37,#0a406b);box-shadow:0 28px 65px rgba(6,31,57,.19)}
.forum-home-hero .eyebrow{color:#efc86c}.forum-home-hero h2{max-width:760px;margin:6px 0 12px;color:#fff;font:700 clamp(30px,3.2vw,47px)/1.03 var(--serif)}.forum-home-hero p{max-width:760px;margin:0;color:#c4d7e6;font-size:13px;line-height:1.75}
.forum-home-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.forum-home-stats article{min-height:108px;padding:17px 13px;display:grid;align-content:center;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.07);backdrop-filter:blur(9px)}.forum-home-stats b,.forum-home-stats small{display:block}.forum-home-stats b{color:#f3cc72;font:700 32px/1 var(--serif)}.forum-home-stats small{margin-top:8px;color:#d4e1eb;font-size:13px;line-height:1.4}
.forum-toolbar{margin-bottom:16px;padding:11px;display:grid;grid-template-columns:minmax(280px,1fr) 220px auto;gap:10px;align-items:center}.forum-toolbar>label{height:44px;padding:0 13px;display:flex;align-items:center;gap:9px;border:1px solid #d5e0e8;border-radius:11px;background:#f7fafc}.forum-toolbar>label svg{width:18px;color:#0b6ba5}.forum-toolbar input,.forum-toolbar select{width:100%;min-width:0;border:0;outline:0;background:transparent}.forum-toolbar>select{height:44px;padding:0 12px;border:1px solid #d5e0e8;border-radius:11px;background:#fff}.forum-view-tabs{padding:4px;display:flex;border-radius:11px;background:#edf3f6}.forum-view-tabs button{min-height:36px;padding:0 12px;border:0;border-radius:8px;color:#5c7488;background:transparent;font-size:13px;font-weight:800;cursor:pointer}.forum-view-tabs button.active{color:#fff;background:#0a5f96;box-shadow:0 7px 17px rgba(10,95,150,.18)}
.forum-home-layout{grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.forum-topic-list{overflow:hidden}.forum-topic-list>header{min-height:76px;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe7ed}.forum-topic-list>header h2{margin:2px 0 0;font:700 23px/1.1 var(--serif)}
.forum-topic{padding:19px 18px;display:grid;grid-template-columns:46px minmax(0,1fr) 126px;gap:14px;border-bottom:1px solid #e2e9ee;background:#fff;transition:background .18s ease,transform .18s ease}.forum-topic:last-child{border-bottom:0}.forum-topic:hover{position:relative;z-index:1;background:#f8fbfd}.forum-topic.featured{background:linear-gradient(90deg,rgba(232,245,252,.8),#fff 42%)}.forum-topic-author{position:relative}.forum-topic-author .avatar{width:44px;height:44px;color:#fff;background:linear-gradient(145deg,#1474ad,#082f55);font-size:13px}.forum-topic-author i{position:absolute;right:0;bottom:2px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#28a477}
.forum-topic-copy>header{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.forum-category,.forum-status,.forum-followed{min-height:23px;padding:0 8px;display:inline-flex;align-items:center;border-radius:999px;font-size:13px;font-weight:850}.forum-category{color:#0a5f94;background:#e7f3fa}.forum-status{color:#705221;background:#fff3d6}.forum-followed{gap:4px;color:#247455;background:#e9f7f1}.forum-followed svg{width:12px}.forum-topic-copy h2{margin:8px 0 6px;font:700 20px/1.2 var(--serif)}.forum-topic-copy h2 a{color:#173b58}.forum-topic-copy h2 a:hover{color:#0870aa}.forum-topic-copy>p{max-width:760px;margin:0;color:#61788c;font-size:13px;line-height:1.65}.forum-topic-copy>footer{margin-top:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#7b8f9f;font-size:13px}.forum-topic-copy>footer b{color:#35546d}.forum-topic-copy .tags{margin-left:auto}.forum-topic-copy .tags span{padding:4px 7px;border:1px solid #dae4eb;border-radius:7px;color:#526e83;background:#fff;font-size:13px;font-weight:750}
.forum-topic-stats{padding-left:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-left:1px solid #e0e8ee}.forum-topic-stats>span{display:grid;place-items:center;align-content:center;color:#71899c;text-align:center}.forum-topic-stats>span svg{width:16px;color:#0a6ca6}.forum-topic-stats b,.forum-topic-stats small{display:block}.forum-topic-stats b{margin-top:4px;color:#183f5d;font-size:14px}.forum-topic-stats small{font-size:13px}.forum-topic-stats>a{grid-column:1/-1;min-height:32px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:9px;color:#fff;background:#0a6097;font-size:13px;font-weight:850}.forum-topic-stats>a svg{width:14px}
.forum-home-aside{display:grid;gap:15px}.forum-categories>div:last-child{padding:8px}.forum-categories button{width:100%;min-height:42px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;border:0;border-radius:9px;color:#3c5c74;background:transparent;text-align:left;cursor:pointer}.forum-categories button:hover{color:#0a6299;background:#edf6fb}.forum-categories button b{min-width:27px;padding:3px 7px;border-radius:999px;color:#6c8090;background:#edf2f5;text-align:center;font-size:13px}.forum-standards{padding:18px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;border-color:#e3cf9f;background:linear-gradient(145deg,#fffaf0,#fff)}.forum-standards>svg{width:24px;margin:8px auto;color:#a67620}.forum-standards small{color:#9b6c1a;font-size:13px;font-weight:850;text-transform:uppercase}.forum-standards h2{margin:3px 0 7px;font:700 20px var(--serif)}.forum-standards p{margin:0;color:#6e6a61;font-size:13px;line-height:1.6}.forum-source-preview .list-row>svg{width:15px}
.forum-thread-hero{padding:clamp(24px,4vw,44px);grid-template-columns:minmax(0,1fr) 290px;gap:35px;align-items:center;border-radius:24px}.forum-thread-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.forum-thread-meta span,.forum-thread-meta time{padding:5px 8px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:#d2e2ed;background:rgba(255,255,255,.07);font-size:13px;font-weight:750}.forum-thread-hero h1{max-width:950px;margin:13px 0 11px;font-size:clamp(31px,3.4vw,49px);line-height:1.04}.forum-thread-hero>div>footer{margin-top:20px;padding-top:17px;display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.15)}.forum-thread-hero footer .avatar{width:42px;height:42px;background:#fff;color:#0a4f7e}.forum-thread-hero footer span small,.forum-thread-hero footer span b{display:block}.forum-thread-hero footer span small{color:#9db6c9;font-size:13px}.forum-thread-hero footer span b{font-size:13px}.forum-thread-hero footer .btn{margin-left:auto;color:#fff;border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.08)}.forum-thread-hero footer .btn svg{width:15px}.forum-thread-hero>aside{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.forum-thread-hero>aside article{min-height:100px;padding:13px 8px;display:grid;place-items:center;align-content:center;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.07);text-align:center}.forum-thread-hero>aside b{color:#f0c96e;font:700 28px/1 var(--serif)}.forum-thread-hero>aside small{margin-top:7px;color:#cfdeea;font-size:13px}
.forum-posts{gap:0}.forum-posts>.card-head{border-bottom:1px solid #dfe7ed}.forum-post{margin:0 18px;padding:20px 0;grid-template-columns:48px minmax(0,1fr);border:0;border-bottom:1px solid #e2e9ee;border-radius:0}.forum-post:last-child{border-bottom:0}.forum-post.source-analysis{margin:13px;padding:17px;border:1px solid #c9e0ed;border-radius:14px;background:#f1f9fc}.forum-post>.avatar{width:46px;height:46px;color:#fff;background:linear-gradient(145deg,#1576af,#083b66);font-size:13px}.forum-post header>span b,.forum-post header>span small{display:block}.forum-post header>span b{color:#173b57;font-size:13px}.forum-post header>span small{margin-top:2px;color:#71889b;font-size:13px}.forum-post header>em{padding:4px 7px;border-radius:999px;color:#8b651e;background:#fff1cd;font-size:13px;font-style:normal;font-weight:850}.forum-post p{margin:12px 0 0;color:#334f67;font-size:13px;line-height:1.75}.forum-post footer{margin-top:14px;display:flex;gap:7px;align-items:center}.forum-post footer button,.forum-post footer a{min-height:32px;padding:0 9px;display:inline-flex;align-items:center;gap:5px;border:1px solid #d5e1e9;border-radius:8px;color:#557086;background:#fff;font-size:13px;font-weight:800;cursor:pointer}.forum-post footer button.active{color:#187151;border-color:#b7dbc9;background:#edf9f3}.forum-post footer svg{width:13px}.forum-reply{padding-bottom:17px}.forum-reply>label{margin:0 18px;display:grid;gap:7px}.forum-reply>label>span{color:#47637a;font-size:13px;font-weight:800}.forum-reply textarea{min-height:170px;font-size:13px;line-height:1.65}.forum-reply-tools{margin:10px 18px;display:flex;gap:7px;flex-wrap:wrap}.forum-reply-tools button{min-height:34px;padding:0 9px;display:flex;align-items:center;gap:6px;border:1px solid #d7e1e8;border-radius:8px;color:#49667c;background:#f8fafb;font-size:13px;font-weight:800}.forum-reply-tools svg{width:14px}.forum-reply>footer{padding:10px 18px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}.forum-reply>footer small{max-width:650px;color:#788c9c;font-size:13px;line-height:1.5}.forum-thread-sources .list-row>svg{width:15px}.forum-verification-card{padding:17px;display:grid;grid-template-columns:38px 1fr;gap:11px;border:1px solid #e3ce9b;border-radius:15px;background:linear-gradient(145deg,#fff9eb,#fff)}.forum-verification-card>svg{width:24px;margin:5px auto;color:#9a6b1b}.forum-verification-card small,.forum-verification-card b{display:block}.forum-verification-card small{color:#9a6b1b;font-size:13px;font-weight:850;text-transform:uppercase}.forum-verification-card b{margin-top:3px;color:#51442d;font-size:13px}.forum-verification-card p{margin:6px 0 0;color:#766c5b;font-size:13px;line-height:1.55}

/* Full messaging workspace */
.chat-overview{margin-bottom:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.chat-overview article{min-height:76px;padding:14px 16px;display:flex;align-items:center;gap:12px;border:1px solid #d7e2e9;border-radius:15px;background:#fff;box-shadow:0 10px 28px rgba(15,48,74,.06)}.chat-overview article>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#0a669e;background:#eaf5fb}.chat-overview svg{width:19px}.chat-overview small,.chat-overview b{display:block}.chat-overview small{color:#75899b;font-size:13px}.chat-overview b{margin-top:2px;color:#173b57;font:700 24px/1 var(--serif)}
body[data-page="chat"] .chat-shell,body[data-page="chat"].workspace-page .chat-shell{height:clamp(600px,calc(100vh - 300px),780px);min-height:600px;max-height:780px;grid-template-columns:360px minmax(0,1fr);border-radius:22px}
body[data-page="chat"] .conversation-list>header{padding:19px 15px 13px}.conversation-list>header>div>span small,.conversation-list>header>div>span b{display:block}.conversation-list>header>div>span small{color:#9a6b1b;font-size:13px;font-weight:850;text-transform:uppercase}.conversation-list>header>div>span b{margin-top:3px;font-size:24px}.conversation-list>header>nav{margin-top:11px;padding:4px;display:grid;grid-template-columns:1fr 1fr;border-radius:10px;background:#eaf0f4}.conversation-list>header>nav button{width:auto;height:34px;border-radius:8px;color:#5e7487;background:transparent;font-size:13px}.conversation-list>header>nav button.active{color:#fff;background:#0a6198}.conversation-list>header>nav button span{margin-left:4px;padding:2px 5px;border-radius:999px;background:rgba(255,255,255,.18)}
body[data-page="chat"] [data-conversation-items]{min-height:0;padding:7px;overflow-y:auto}.conversation-list .conversation{min-height:86px;padding:10px;border-radius:12px;border:1px solid transparent}.conversation-list .conversation+.conversation{margin-top:3px}.conversation-list .conversation.active{border-color:#bdd7e6;background:#eaf5fb}.conversation-list .conversation>span:nth-child(2){min-width:0}.conversation-list .conversation>span:nth-child(2)>span{display:flex;align-items:center;gap:7px}.conversation-list .conversation>span:nth-child(2)>span b{min-width:0;flex:1}.conversation-list .conversation time{white-space:nowrap}.conversation-list .conversation em{display:block;margin-top:5px;color:#9a6b1b;font-size:13px;font-style:normal;font-weight:850;text-transform:uppercase}.conversation-list .conversation>strong{min-width:21px;height:21px;padding:0 6px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#0b6ba4;font-size:13px}
body[data-page="chat"] .chat-panel{grid-template-rows:72px auto minmax(0,1fr) auto}.chat-head>div>span{display:flex;align-items:center;gap:7px}.chat-head>div>span em{padding:3px 6px;border-radius:999px;color:#8d661e;background:#fff1cc;font-size:13px;font-style:normal;font-weight:850}.chat-context{min-height:48px;padding:7px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dbe4ea;background:#f8fbfc}.chat-context>span{display:grid;grid-template-columns:30px auto;grid-template-rows:auto auto;column-gap:9px;align-items:center}.chat-context>span>svg{grid-row:1/3;width:18px;margin:auto;color:#0a689f}.chat-context small,.chat-context b{display:block}.chat-context small{color:#7b8e9e;font-size:13px}.chat-context b{color:#294d66;font-size:13px}.chat-context a,.chat-context button{min-height:32px;padding:0 9px;display:flex;align-items:center;gap:5px;border:1px solid #ccdae3;border-radius:8px;color:#0a6399;background:#fff;font-size:13px;font-weight:850}.chat-context svg{width:13px}
body[data-page="chat"] .messages{padding:22px clamp(14px,3vw,34px)}.message-day{max-width:none!important;margin:14px 0 18px;display:flex;align-items:center;gap:10px}.message-day::before,.message-day::after{content:"";height:1px;flex:1;background:#d8e2e9}.message-day span{padding:4px 8px;border-radius:999px;color:#718799;background:#e8eef2;font-size:13px;font-weight:800}.messages .message{max-width:min(76%,680px);display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:end}.messages .message.mine{grid-template-columns:minmax(0,1fr);margin-left:auto}.message-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#587991;font-size:13px;font-weight:850}.message.mine .message-avatar{display:none}.messages .message-bubble{padding:11px 13px}.messages .message-bubble p{margin:0;white-space:pre-wrap}.messages .message>div>small{margin-top:5px;display:flex;align-items:center;gap:6px}.messages .message>div>small b{color:#5c7285;font-size:13px}.messages .message>div>small time{color:#8a9aa7}.messages .message>div>small i{color:#1c8b66;font-style:normal}.message.mine>div>small{justify-content:flex-end}.message-attachment{margin-top:9px;padding:9px;display:grid;grid-template-columns:28px minmax(0,1fr) 16px;gap:8px;align-items:center;border:1px solid #d7e2e9;border-radius:10px;color:#28536f;background:#f5f9fb}.message.mine .message-attachment{border-color:rgba(255,255,255,.23);color:#fff;background:rgba(255,255,255,.11)}.message-attachment>svg{width:17px;margin:auto}.message-attachment b,.message-attachment small{display:block}.message-attachment b{font-size:13px}.message-attachment small{margin-top:2px;font-size:13px;opacity:.76}.chat-empty-thread{height:100%;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#768b9c}.chat-empty-thread>span{width:55px;height:55px;display:grid;place-items:center;border-radius:17px;color:#0a689f;background:#e6f2f8}.chat-empty-thread svg{width:25px}.chat-empty-thread b{color:#244a64;font:700 20px var(--serif)}.chat-empty-thread p{margin:0;font-size:13px}
body[data-page="chat"] .chat-compose{min-height:72px;grid-template-columns:42px minmax(0,1fr) 44px;align-items:end}.chat-attach{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#0a649a;background:#eaf4f9;cursor:pointer}.chat-attach input{display:none}.chat-attach svg{width:19px}.chat-message-field{min-height:42px!important;height:auto!important;padding:6px 14px!important;display:grid!important;align-items:center!important;border-radius:16px!important}.chat-message-field textarea{width:100%;min-height:28px;max-height:120px;padding:5px 0;border:0;outline:0;resize:none;color:#264961;background:transparent;font:500 13px/1.45 var(--sans)}.chat-message-field>span{display:block!important;color:#9a6b1b;font-size:13px}.chat-compose .chat-send{width:44px!important;height:44px!important}

/* Document library */
.document-hub-hero{margin-bottom:17px;padding:clamp(24px,3.5vw,40px);display:grid;grid-template-columns:minmax(0,1fr) minmax(460px,.8fr);gap:30px;align-items:center;border:1px solid #173e60;border-radius:23px;color:#fff;background:radial-gradient(circle at 92% 0,rgba(48,143,196,.35),transparent 25rem),linear-gradient(135deg,#061e39,#0a446f);box-shadow:0 25px 60px rgba(7,34,59,.17)}.document-hub-hero .eyebrow{color:#efc86a}.document-hub-hero h2{max-width:720px;margin:5px 0 10px;color:#fff;font:700 clamp(29px,3vw,44px)/1.04 var(--serif)}.document-hub-hero p{max-width:720px;margin:0;color:#c7d9e6;font-size:13px;line-height:1.7}.document-hub-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.document-hub-stats article{min-height:82px;padding:12px;display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.07)}.document-hub-stats article>span{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;color:#f0c86c;background:rgba(255,255,255,.09)}.document-hub-stats svg{width:18px}.document-hub-stats small,.document-hub-stats b{display:block}.document-hub-stats small{color:#bdd0de;font-size:13px}.document-hub-stats b{margin-top:2px;color:#fff;font:700 22px/1 var(--serif)}
.document-library-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:17px;align-items:start}.document-library-nav{position:sticky;top:98px;overflow:hidden}.document-library-nav>header{padding:16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e7ed}.document-library-nav>header h2{margin:3px 0 0;font:700 20px var(--serif)}.document-library-nav>header button{width:34px;height:34px;border:0;border-radius:10px;color:#fff;background:#0a659d;font-size:20px}.document-library-nav>nav{padding:8px}.document-library-nav>nav button{width:100%;min-height:54px;padding:8px;display:grid;grid-template-columns:34px minmax(0,1fr) 17px;gap:9px;align-items:center;border:1px solid transparent;border-radius:11px;color:#426078;background:transparent;text-align:left;cursor:pointer}.document-library-nav>nav button:hover,.document-library-nav>nav button.active{border-color:#c4dae7;color:#0b6196;background:#edf7fb}.document-library-nav>nav button>span:first-child{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#0a699f;background:#e7f2f8}.document-library-nav>nav svg{width:16px}.document-library-nav b,.document-library-nav small{display:block}.document-library-nav b{font-size:13px}.document-library-nav small{margin-top:3px;color:#7c8f9e;font-size:13px}.document-library-nav>nav em{display:grid;place-items:center}.document-library-nav>nav em svg{width:13px}.document-library-nav>footer{margin:8px;padding:12px;display:grid;grid-template-columns:32px 1fr;gap:9px;border:1px solid #d7e6de;border-radius:11px;color:#366551;background:#f2faf6}.document-library-nav>footer>span{width:32px;height:32px;display:grid;place-items:center}.document-library-nav>footer svg{width:18px}.document-library-nav>footer b,.document-library-nav>footer small{display:block}.document-library-nav>footer b{font-size:13px}.document-library-nav>footer small{margin-top:3px;font-size:13px;line-height:1.4}
.document-filter-base{padding:10px;display:grid;grid-template-columns:minmax(260px,1fr) 180px auto;gap:9px}.document-filter-base>label{min-height:44px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid #d5e0e8;border-radius:10px;background:#f8fafb}.document-filter-base>label svg{width:17px;color:#0b689f}.document-filter-base input{width:100%;min-width:0;border:0;outline:0;background:transparent}.document-filter-base select{min-height:44px;padding:0 10px;border:1px solid #d5e0e8;border-radius:10px;background:#fff}.document-view-switch{padding:4px;display:flex;border-radius:10px;background:#edf2f5}.document-view-switch button{width:38px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;color:#627b8e;background:transparent}.document-view-switch button.active{color:#fff;background:#0a639a}.document-view-switch svg{width:17px}.document-library-head{margin:18px 2px 11px;display:flex;align-items:end;justify-content:space-between}.document-library-head h2{margin:2px 0 0;font:700 24px var(--serif)}.document-library-head>span{color:#6d8395;font-size:13px;font-weight:800}
.document-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.document-library-card{min-width:0;padding:17px;display:flex;flex-direction:column;border:1px solid #d5e1e9;border-radius:18px;background:#fff;box-shadow:0 13px 36px rgba(15,48,73,.07);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.document-library-card:hover{border-color:#b9cdd9;box-shadow:0 21px 48px rgba(15,48,73,.12);transform:translateY(-2px)}.document-library-card>header{display:grid;grid-template-columns:46px minmax(0,1fr) 34px;gap:10px;align-items:center}.document-format{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#315b79;font-size:13px;font-weight:900}.document-format.pdf{background:#a74343}.document-format.docx{background:#226ba3}.document-format.zip{background:#746128}.document-library-card>header>div{display:flex;align-items:center;justify-content:space-between;gap:7px}.document-library-card>header>div small{color:#8495a3;font-size:13px}.document-library-card>header>button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:9px;color:#61798c;background:#edf3f6;cursor:pointer}.document-library-card>header>button svg{width:16px}.document-card-copy{margin-top:15px}.document-card-copy>small{color:#9a6b1d;font-size:13px;font-weight:850}.document-card-copy h2{margin:5px 0 5px;font:700 19px/1.2 var(--serif);overflow-wrap:anywhere}.document-card-copy h2 a{color:#173c59}.document-card-copy p{margin:0;color:#6e8395;font-size:13px}.document-ocr-status{margin-top:15px;padding:11px;border:1px solid #dce4e9;border-radius:11px;background:#f8fafb}.document-ocr-status header{display:flex;justify-content:space-between;gap:10px}.document-ocr-status small,.document-ocr-status b{display:block}.document-ocr-status small{color:#7b8e9d;font-size:13px}.document-ocr-status b{margin-top:2px;color:#264b64;font-size:13px}.document-ocr-status em{color:#74899a;font-size:13px;font-style:normal}.document-ocr-status>i{height:6px;margin-top:9px;display:block;overflow:hidden;border-radius:999px;background:#dfe7ec}.document-ocr-status>i span{height:100%;display:block;border-radius:inherit;background:#268a68}.document-ocr-status.medium>i span{background:#cf9a34}.document-ocr-status.low>i span{background:#bc4f55}.document-ocr-status.queued>i span{background:#7e91a0}.document-card-relations{margin-top:10px}.document-card-relations>a,.document-card-relations>button{width:100%;min-height:49px;padding:8px;display:grid;grid-template-columns:30px minmax(0,1fr) 15px;gap:8px;align-items:center;border:1px solid #d8e3ea;border-radius:10px;color:#24536f;background:#f9fbfc;text-align:left}.document-card-relations svg{width:15px;margin:auto}.document-card-relations small,.document-card-relations b{display:block}.document-card-relations small{color:#7c8f9f;font-size:13px}.document-card-relations b{margin-top:2px;font-size:13px}.document-card-tags{min-height:26px;margin-top:11px;display:flex;gap:5px;flex-wrap:wrap}.document-card-tags span{padding:4px 7px;border-radius:7px;color:#5e7486;background:#edf3f6;font-size:13px;font-weight:800}.document-library-card>footer{margin-top:auto;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e3e9ee}.document-library-card>footer>span{display:flex;align-items:center;gap:5px;color:#75899a;font-size:13px}.document-library-card>footer>span svg{width:14px}.document-library-card>footer>div{display:flex;gap:6px}.document-library-card>footer .btn{min-height:36px;padding:0 10px;font-size:13px}.document-library-card>footer .btn svg{width:13px}.document-card-grid.compact{display:block}.document-card-grid.compact .document-library-card{margin-bottom:8px;display:grid;grid-template-columns:190px minmax(220px,1fr) 190px minmax(180px,.7fr);gap:12px;align-items:center}.document-card-grid.compact .document-library-card>header{grid-template-columns:42px 1fr}.document-card-grid.compact .document-library-card>header>button{display:none}.document-card-grid.compact .document-card-copy,.document-card-grid.compact .document-ocr-status,.document-card-grid.compact .document-card-relations{margin-top:0}.document-card-grid.compact .document-card-tags{display:none}.document-card-grid.compact .document-library-card>footer{grid-column:1/-1}

/* Expanded record popups */
.modal-panel:has(.record-detail-modal){width:min(1040px,100%)}.record-detail-modal{display:grid;gap:14px}.record-detail-hero{padding:20px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:15px;align-items:center;border:1px solid #173f61;border-radius:18px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(51,145,199,.34),transparent 22rem),linear-gradient(135deg,#061e39,#0a436d)}.record-detail-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;color:#192d41;background:linear-gradient(145deg,#f0d58b,#c49031)}.record-detail-icon svg{width:27px}.record-detail-hero small{color:#f0c86b;font-size:13px;font-weight:850;text-transform:uppercase}.record-detail-hero h2{margin:4px 0;color:#fff;font:700 25px/1.1 var(--serif);overflow-wrap:anywhere}.record-detail-hero p{max-width:720px;margin:5px 0 0;color:#c4d6e3;font-size:13px;line-height:1.55}.record-detail-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.record-detail-kpis article{min-height:86px;padding:13px;border:1px solid #d7e2e9;border-radius:13px;background:#f8fbfc}.record-detail-kpis small,.record-detail-kpis b,.record-detail-kpis span{display:block}.record-detail-kpis small{color:#7a8d9d;font-size:13px}.record-detail-kpis b{margin-top:5px;color:#163b58;font:700 20px/1 var(--serif)}.record-detail-kpis span{margin-top:6px;color:#73899a;font-size:13px}.record-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.record-detail-grid>section{padding:16px;border:1px solid #d8e3ea;border-radius:14px;background:#fff}.record-detail-grid>section>header{margin-bottom:12px;display:grid;grid-template-columns:36px 1fr;gap:9px;align-items:center}.record-detail-grid>section>header>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0a669e;background:#eaf5fa}.record-detail-grid>section>header svg{width:17px}.record-detail-grid>section>header small,.record-detail-grid>section>header h3{display:block}.record-detail-grid>section>header small{color:#9b6c1b;font-size:13px;font-weight:850;text-transform:uppercase}.record-detail-grid>section>header h3{margin:2px 0 0;font:700 18px var(--serif)}.record-detail-grid dl{margin:0}.record-detail-grid dl div{min-height:39px;padding:7px 0;display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;border-top:1px solid #e5ebef}.record-detail-grid dl div:first-child{border-top:0}.record-detail-grid dt{color:#75899a;font-size:13px}.record-detail-grid dd{margin:0;color:#294b63;font-size:13px;font-weight:750;overflow-wrap:anywhere}.record-detail-relation{padding:12px;display:grid;grid-template-columns:38px minmax(0,1fr) 17px;gap:10px;align-items:center;border:1px solid #d4e1e9;border-radius:11px;color:#28536e;background:#f7fafc}.record-detail-relation>svg{width:18px;margin:auto}.record-detail-relation small,.record-detail-relation b,.record-detail-relation em{display:block}.record-detail-relation small{color:#7c8f9e;font-size:13px}.record-detail-relation b{margin-top:2px;font-size:13px}.record-detail-relation em{margin-top:3px;color:#668095;font-size:13px;font-style:normal}.record-detail-tags{margin-top:11px;display:flex;gap:6px;flex-wrap:wrap}.record-detail-tags span{padding:5px 8px;border-radius:8px;color:#49677d;background:#edf3f6;font-size:13px;font-weight:750}.record-detail-audit{padding:14px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;border:1px solid #d5e7de;border-radius:13px;color:#345e4c;background:#f1faf5}.record-detail-audit>span{width:38px;height:38px;display:grid;place-items:center}.record-detail-audit svg{width:21px}.record-detail-audit small,.record-detail-audit b{display:block}.record-detail-audit small{font-size:13px;font-weight:850;text-transform:uppercase}.record-detail-audit b{margin-top:2px;font-size:13px}.record-detail-audit p{margin:5px 0 0;color:#60786b;font-size:13px;line-height:1.5}.record-detail-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.record-detail-actions .btn{display:inline-flex;align-items:center;gap:6px}.record-detail-actions svg{width:14px}

@media(max-width:1100px){
  .forum-home-hero,.document-hub-hero{grid-template-columns:1fr}.forum-home-layout{grid-template-columns:minmax(0,1fr) 285px}.forum-toolbar{grid-template-columns:1fr 190px}.forum-view-tabs{grid-column:1/-1}.document-library-layout{grid-template-columns:220px minmax(0,1fr)}.document-card-grid{grid-template-columns:1fr}.document-card-grid.compact .document-library-card{grid-template-columns:170px 1fr}
}
@media(max-width:820px){
  .forum-home-layout,.document-library-layout{grid-template-columns:1fr}.forum-home-aside{grid-template-columns:1fr 1fr}.forum-source-preview{grid-column:1/-1}.forum-topic{grid-template-columns:42px minmax(0,1fr)}.forum-topic-stats{grid-column:2;padding:9px 0 0;display:flex;border-left:0;border-top:1px solid #e1e8ed}.forum-topic-stats>span{display:flex;gap:5px}.forum-topic-stats>a{margin-left:auto;padding:0 10px}.forum-thread-hero{grid-template-columns:1fr}.forum-thread-layout{grid-template-columns:1fr}.document-library-nav{position:static}.document-library-nav>nav{display:grid;grid-template-columns:1fr 1fr}.document-filter-base{grid-template-columns:1fr 150px auto}.record-detail-grid{grid-template-columns:1fr}.record-detail-kpis{grid-template-columns:1fr 1fr}.document-card-grid.compact .document-library-card{display:flex}.document-card-grid.compact .document-library-card>header{display:grid}
}
@media(max-width:620px){
  .forum-home-hero,.document-hub-hero{padding:24px 18px;border-radius:18px}.forum-home-stats{grid-template-columns:1fr}.forum-home-stats article{min-height:72px}.forum-toolbar{grid-template-columns:1fr}.forum-toolbar>select,.forum-view-tabs{grid-column:auto}.forum-view-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.forum-topic{padding:15px 12px;grid-template-columns:36px minmax(0,1fr);gap:10px}.forum-topic-author .avatar{width:36px;height:36px}.forum-topic-copy h2{font-size:17px}.forum-topic-copy .tags{width:100%;margin-left:0}.forum-topic-stats{grid-column:1/-1}.forum-topic-stats>a{font-size:0}.forum-topic-stats>a svg{width:17px}.forum-home-aside{grid-template-columns:1fr}.forum-source-preview{grid-column:auto}.forum-thread-hero>aside{grid-template-columns:repeat(3,1fr)}.forum-thread-hero>div>footer{align-items:flex-start;flex-wrap:wrap}.forum-thread-hero footer .btn{width:100%;margin-left:0}.forum-post{margin:0 12px;grid-template-columns:38px minmax(0,1fr)}.forum-post>.avatar{width:38px;height:38px}.forum-post header{align-items:flex-start;flex-wrap:wrap}.forum-post time{width:100%;margin-left:0}.forum-post footer{flex-wrap:wrap}.forum-reply>footer{align-items:stretch;flex-direction:column}.forum-reply>footer .btn{width:100%}
  .chat-overview{grid-template-columns:1fr}.chat-overview article{min-height:62px}body[data-page="chat"] .chat-shell,body[data-page="chat"].workspace-page .chat-shell{height:calc(100dvh - 110px);min-height:500px}.chat-context{padding-inline:10px}.chat-context>a,.chat-context>button{font-size:0}.chat-context>a svg{width:16px}.messages .message{max-width:91%}.message-avatar{display:none}.messages .message{grid-template-columns:1fr}
  .document-hub-stats{grid-template-columns:1fr 1fr}.document-library-nav>nav{grid-template-columns:1fr}.document-filter-base{grid-template-columns:1fr}.document-filter-base select,.document-view-switch{width:100%}.document-view-switch button{flex:1}.document-library-card{padding:14px}.document-library-card>footer{align-items:stretch;flex-direction:column}.document-library-card>footer>div{display:grid;grid-template-columns:1fr 1fr}.record-detail-hero{grid-template-columns:48px minmax(0,1fr)}.record-detail-hero>.badge{grid-column:1/-1}.record-detail-icon{width:48px;height:48px}.record-detail-kpis{grid-template-columns:1fr 1fr}.record-detail-grid dl div{grid-template-columns:1fr}.record-detail-actions{display:grid}.record-detail-actions .btn{width:100%;justify-content:center}
}

/* Sejm command dashboard */
.sejm-dashboard-hero{margin-bottom:14px;padding:clamp(22px,3vw,36px);display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:center;border:1px solid #183f61;border-radius:20px;color:#fff;background:radial-gradient(circle at 92% 0,rgba(42,137,193,.34),transparent 24rem),radial-gradient(circle at 15% 100%,rgba(206,158,62,.13),transparent 20rem),linear-gradient(135deg,#061e39,#0a426d)}
.sejm-dashboard-hero .eyebrow{color:#edc66c}.sejm-dashboard-hero h2{margin:5px 0 9px;color:#fff;font:700 clamp(28px,3vw,42px)/1.04 var(--serif)}.sejm-dashboard-hero p{max-width:720px;margin:0;color:#c5d7e5;font-size:13px;line-height:1.7}.sejm-dashboard-hero nav{margin-top:18px;display:flex;gap:8px;flex-wrap:wrap}.sejm-dashboard-hero nav button{min-height:40px;padding:0 12px;display:flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.2);border-radius:10px;color:#fff;background:rgba(255,255,255,.08);font-size:13px;font-weight:850;cursor:pointer}.sejm-dashboard-hero nav button:first-child{color:#172b40;border:0;background:linear-gradient(145deg,#f0d487,#c58e31)}.sejm-dashboard-hero nav svg{width:14px}.sejm-dashboard-hero>aside{padding:17px;border:1px solid rgba(255,255,255,.15);border-radius:16px;background:rgba(255,255,255,.07)}.sejm-dashboard-hero>aside small,.sejm-dashboard-hero>aside b,.sejm-dashboard-hero>aside span{display:block}.sejm-dashboard-hero>aside small{color:#edc76e;font-size:13px;font-weight:850;text-transform:uppercase}.sejm-dashboard-hero>aside b{margin-top:5px;font:700 27px var(--serif)}.sejm-dashboard-hero>aside span{margin-top:5px;color:#c8d8e4;font-size:13px;line-height:1.5}.sejm-dashboard-hero>aside>i{height:6px;margin-top:13px;display:block;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.12)}.sejm-dashboard-hero>aside>i em{height:100%;display:block;border-radius:inherit;background:#e9c369}
.sejm-process-watch{margin-top:14px;padding:17px;border:1px solid #d7e2e9;border-radius:17px;background:#fff}.sejm-process-watch>header{margin-bottom:13px;display:flex;align-items:end;justify-content:space-between;gap:18px}.sejm-process-watch>header h2{margin:3px 0 0;font:700 23px var(--serif)}.sejm-process-watch>header p{margin:5px 0 0;color:#718698;font-size:13px}.sejm-process-watch>header button{min-height:36px;padding:0 10px;display:flex;align-items:center;gap:5px;border:1px solid #d2dfe7;border-radius:9px;color:#0a6299;background:#f8fbfc;font-size:13px;font-weight:850}.sejm-process-watch>header button svg{width:13px}.sejm-process-watch>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sejm-process-watch-card{padding:14px;display:block;border:1px solid #dce5eb;border-radius:13px;color:#274c66;background:linear-gradient(145deg,#fbfdfe,#f5f9fb)}.sejm-process-watch-card:hover{border-color:#b6cbd8;box-shadow:0 12px 27px rgba(13,48,74,.08)}.sejm-process-watch-card>header{display:flex;align-items:center;justify-content:space-between;gap:9px}.sejm-process-watch-card>header span{color:#9b6a19;font-size:13px;font-weight:900;text-transform:uppercase}.sejm-process-watch-card>header em{padding:4px 7px;border-radius:999px;color:#196e51;background:#e7f6ef;font-size:13px;font-style:normal;font-weight:850}.sejm-process-watch-card h3{margin:9px 0 6px;color:#173b57;font:700 17px/1.25 var(--serif)}.sejm-process-watch-card p{min-height:42px;margin:0;color:#6b8193;font-size:13px;line-height:1.55}.sejm-process-watch-card>div{margin-top:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}.sejm-process-watch-card>div i{height:6px;overflow:hidden;border-radius:999px;background:#dfe7ec}.sejm-process-watch-card>div i span{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#0b6ca6,#d3a13f)}.sejm-process-watch-card>div b{color:#587287;font-size:13px}.sejm-process-watch-card>footer{margin-top:11px;padding-top:9px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e1e8ed;color:#778c9d;font-size:13px}.sejm-process-watch-card>footer strong{display:flex;align-items:center;gap:4px;color:#0b659d}.sejm-process-watch-card>footer svg{width:12px}
.sejm-quick-sections{margin:14px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.sejm-quick-sections button{min-height:80px;padding:12px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #d7e2e9;border-radius:13px;color:#284e68;background:#fff;text-align:left;cursor:pointer}.sejm-quick-sections button:hover{border-color:#b7cfdd;background:#f6fbfd}.sejm-quick-sections button>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0a649a;background:#e9f4fa}.sejm-quick-sections svg{width:18px}.sejm-quick-sections b,.sejm-quick-sections small{display:block}.sejm-quick-sections b{font-size:13px}.sejm-quick-sections small{margin-top:4px;color:#758a9b;font-size:13px;line-height:1.4}.sejm-quick-sections em{min-width:24px;padding:4px 6px;border-radius:999px;color:#866019;background:#fff0cb;font-size:13px;font-style:normal;font-weight:850;text-align:center}
@media(max-width:980px){.sejm-dashboard-hero{grid-template-columns:1fr}.sejm-process-watch>div{grid-template-columns:1fr}.sejm-quick-sections{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.sejm-dashboard-hero{padding:22px 17px}.sejm-dashboard-hero nav{display:grid}.sejm-process-watch{padding:13px}.sejm-process-watch>header{align-items:flex-start;flex-direction:column}.sejm-quick-sections{grid-template-columns:1fr}}

/* Full AML subject profile */
body[data-page="record"]{background:radial-gradient(circle at 88% 4%,rgba(53,142,194,.12),transparent 30rem),linear-gradient(180deg,#edf4f8 0,#f7f9fa 44rem,#edf3f6 100%);background-attachment:fixed}
.aml-profile-section,.aml-profile-grid{scroll-margin-top:112px}
.aml-profile-hero{position:relative;margin-bottom:12px;padding:clamp(22px,3vw,36px);display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;align-items:center;overflow:hidden;border:1px solid #17496f;border-radius:24px;color:#fff;background:radial-gradient(circle at 86% 0,rgba(31,146,196,.38),transparent 24rem),radial-gradient(circle at 15% 120%,rgba(218,165,56,.18),transparent 25rem),linear-gradient(135deg,#061d38,#0a4169 66%,#0d5884);box-shadow:0 24px 60px rgba(7,39,65,.18)}
.aml-profile-hero:after{content:"";position:absolute;right:-70px;bottom:-105px;width:280px;height:280px;border:1px solid rgba(255,255,255,.09);border-radius:50%;box-shadow:0 0 0 36px rgba(255,255,255,.025),0 0 0 72px rgba(255,255,255,.02)}
.aml-profile-identity{position:relative;z-index:1;display:grid;grid-template-columns:66px minmax(0,1fr);gap:17px;align-items:start}
.aml-profile-mark{width:66px;height:66px;display:grid;place-items:center;border-radius:18px;color:#16344e;background:linear-gradient(145deg,#f5dc91,#c8912c);box-shadow:0 10px 24px rgba(0,0,0,.17)}
.aml-profile-mark svg{width:31px}
.aml-profile-identity .eyebrow{color:#f0c76e}.aml-profile-identity h1{max-width:900px;margin:5px 0 8px;color:#fff;font:700 clamp(27px,3.2vw,44px)/1.05 var(--serif);letter-spacing:-.02em}
.aml-profile-identity p{margin:0;color:#c9dae6;font-size:13px;line-height:1.6}
.aml-profile-badges{margin-top:16px;display:flex;gap:7px;flex-wrap:wrap}.aml-profile-badges .badge{border-color:rgba(255,255,255,.12)}
.aml-profile-hero>aside{position:relative;z-index:1;padding:18px;display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px;align-items:center;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.08);backdrop-filter:blur(12px)}
.aml-profile-hero>aside>div:nth-child(2) small,.aml-profile-hero>aside>div:nth-child(2) b,.aml-profile-hero>aside>div:nth-child(2) p{display:block}.aml-profile-hero>aside>div:nth-child(2) small{color:#b8cfdd;font-size:13px}.aml-profile-hero>aside>div:nth-child(2) b{margin-top:3px;color:#fff;font-size:14px}.aml-profile-hero>aside>div:nth-child(2) p{margin:5px 0 0;color:#bcd0de;font-size:13px;line-height:1.5}.aml-profile-hero>aside>.btn{grid-column:1/-1;justify-content:center}
.aml-risk-gauge{--ring:#2ca576;position:relative;width:84px;height:84px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--ring) calc(var(--score)*1%),rgba(255,255,255,.12) 0)}
.aml-risk-gauge:before{content:"";position:absolute;inset:8px;border-radius:50%;background:#0a3455}.aml-risk-gauge.medium{--ring:#dfa73b}.aml-risk-gauge.high{--ring:#e26458}.aml-risk-gauge span{position:relative;text-align:center}.aml-risk-gauge b,.aml-risk-gauge small{display:block}.aml-risk-gauge b{font:700 25px/1 var(--serif)}.aml-risk-gauge small{margin-top:2px;color:#aac4d4;font-size:13px}
.aml-decision-strip{margin-bottom:12px;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) minmax(260px,1.7fr);overflow:hidden;border:1px solid #cadbe5;border-radius:17px;background:#fff;box-shadow:0 12px 34px rgba(20,54,78,.08)}
.aml-decision-strip>article,.aml-decision-strip>div{min-height:96px;padding:16px 18px;border-left:1px solid #dbe5eb}.aml-decision-strip>:first-child{border-left:0}.aml-decision-strip small,.aml-decision-strip b,.aml-decision-strip span{display:block}.aml-decision-strip small{color:#71869a;font-size:13px;font-weight:800;text-transform:uppercase}.aml-decision-strip b{margin-top:6px;color:#113a59;font:700 23px/1 var(--serif)}.aml-decision-strip span{margin-top:6px;color:#688095;font-size:13px}.aml-decision-strip article.low{box-shadow:inset 0 3px #2b9d74}.aml-decision-strip article.medium{box-shadow:inset 0 3px #d7a03c}.aml-decision-strip article.high{box-shadow:inset 0 3px #d75d52}.aml-decision-strip>div{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(135deg,#f8fbfc,#eef5f8)}.aml-decision-strip>div b{font:800 13px/1.45 var(--sans)}
.aml-profile-nav{position:sticky;top:75px;z-index:12;margin:0 0 12px;padding:7px;display:flex;gap:3px;overflow-x:auto;border:1px solid #cfdee7;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(16,52,76,.1);backdrop-filter:blur(14px);scrollbar-width:thin}
.aml-profile-nav a{min-height:38px;padding:0 12px;display:flex;align-items:center;white-space:nowrap;border-radius:9px;color:#5a7388;font-size:13px;font-weight:850}.aml-profile-nav a:hover{color:#fff;background:#0a527f}
.aml-profile-grid{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aml-profile-card,.aml-profile-section{border-color:#ccdce6;border-radius:19px;box-shadow:0 14px 38px rgba(21,54,77,.08)}
.aml-profile-card{padding:20px}.aml-profile-section{margin:12px 0;padding:22px}.aml-profile-card .card-head,.aml-profile-section>.card-head{margin-bottom:17px}.aml-profile-card .card-head h2,.aml-profile-section>.card-head h2{margin:3px 0 0;font-size:23px}.aml-profile-section>.card-head p{max-width:760px;margin:6px 0 0;color:#73889a;font-size:13px;line-height:1.55}
.aml-empty-note{min-height:82px;padding:15px;display:flex;gap:11px;align-items:center;border:1px dashed #bfd2de;border-radius:13px;color:#547189;background:#f8fbfc}.aml-empty-note>svg{width:21px;color:#23926c}.aml-empty-note b,.aml-empty-note small{display:block}.aml-empty-note b{font-size:13px}.aml-empty-note small{margin-top:4px;color:#7b8fa0;font-size:13px}
.aml-identifier-grid{margin-bottom:13px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.aml-identifier-grid article,.aml-fact-tiles article{min-width:0;padding:12px;border:1px solid #d9e4ea;border-radius:12px;background:linear-gradient(145deg,#fff,#f7fafc)}.aml-identifier-grid small,.aml-identifier-grid b,.aml-identifier-grid span,.aml-fact-tiles small,.aml-fact-tiles b{display:block}.aml-identifier-grid small,.aml-fact-tiles small{color:#7a8e9f;font-size:13px;font-weight:800;text-transform:uppercase}.aml-identifier-grid b{margin-top:5px;color:#0b4f79;font-size:13px;overflow-wrap:anywhere}.aml-identifier-grid span{margin-top:4px;color:#7d91a0;font-size:13px}.aml-fact-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.aml-fact-tiles b{margin-top:5px;color:#244d68;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.aml-profile-subsection{margin-top:18px;padding-top:15px;border-top:1px solid #e0e8ed}.aml-profile-subsection>h3{margin:0 0 9px;font:700 16px var(--serif)}.aml-name-list{display:grid;gap:7px}.aml-name-list>span{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;background:#f2f7fa}.aml-name-list b{font-size:13px}.aml-name-list small{color:#7a8e9e;font-size:13px}
.aml-address-list{display:grid;gap:8px}.aml-address-list>article{padding:13px;display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #dce6ec;border-radius:12px}.aml-address-list>article.primary{border-color:#b9d5e3;background:#f3fafd}.aml-address-list>article>span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;color:#0b679e;background:#e4f2f9}.aml-address-list svg{width:17px}.aml-address-list small,.aml-address-list b,.aml-address-list p{display:block}.aml-address-list small{color:#7c90a0;font-size:13px}.aml-address-list b{margin-top:3px;color:#244d68;font-size:13px}.aml-address-list p{margin:4px 0 0;color:#7b8e9e;font-size:13px}.aml-address-list em{padding:4px 7px;border-radius:999px;color:#267457;background:#e5f5ed;font-size:13px;font-style:normal;font-weight:800}
.aml-contact-list{margin-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.aml-contact-list>a{padding:10px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;border:1px solid #dce5eb;border-radius:10px;color:#28516c}.aml-contact-list>a>svg{width:16px;color:#0b6da7}.aml-contact-list small,.aml-contact-list b{display:block}.aml-contact-list small{color:#8193a1;font-size:13px}.aml-contact-list b{margin-top:2px;font-size:13px;overflow-wrap:anywhere}
.aml-verification-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.aml-verification-grid>article{min-height:95px;padding:13px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;border:1px solid #d7e5dd;border-radius:13px;background:#f7fcf9}.aml-verification-grid>article.warning{border-color:#ecd6a5;background:#fffaf0}.aml-verification-grid>article>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#218a67;background:#e2f4eb}.aml-verification-grid>article.warning>span{color:#a06a15;background:#fff0cd}.aml-verification-grid svg{width:17px}.aml-verification-grid small,.aml-verification-grid b,.aml-verification-grid p{display:block}.aml-verification-grid small{color:#728a7d;font-size:13px}.aml-verification-grid b{margin-top:3px;color:#285346;font-size:13px}.aml-verification-grid p{margin:4px 0 0;color:#71897c;font-size:13px;line-height:1.45}.aml-verification-grid time{grid-column:2;color:#8a9a91;font-size:13px}
.aml-registry-overview{margin-bottom:14px}.aml-registry-overview .aml-fact-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.aml-registry-columns{display:grid;grid-template-columns:1.2fr .8fr 1.2fr;gap:10px}.aml-registry-columns>article{padding:15px;border:1px solid #d8e3ea;border-radius:14px;background:#fbfdfe}.aml-registry-columns>article>header{margin-bottom:12px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center}.aml-registry-columns>article>header>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#0b699e;background:#e7f3f8}.aml-registry-columns svg{width:17px}.aml-registry-columns small,.aml-registry-columns h3{display:block}.aml-registry-columns small{color:#8797a4;font-size:13px}.aml-registry-columns h3{margin:2px 0 0;font:700 16px var(--serif)}.aml-registry-columns blockquote{margin:0 0 11px;padding:12px;border-left:3px solid #d3a13e;color:#527086;background:#f4f8fa;font-size:13px;line-height:1.55}.aml-registry-columns>article>p{color:#718697;font-size:13px;line-height:1.55}.aml-pkd-list{display:grid;gap:6px}.aml-pkd-list>span{padding:8px;display:grid;grid-template-columns:52px 1fr;gap:7px;border-radius:9px;background:#edf4f7;color:#577187;font-size:13px}.aml-pkd-list b{color:#0b6498;font-size:13px}
.aml-registry-lists{margin-top:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.aml-registry-lists>section{padding:14px;border:1px solid #d8e3e9;border-radius:14px}.aml-registry-lists>section>header,.aml-people-group>header,.aml-rdf-report-list>header,.aml-rdf-trend>header,.aml-rdf-latest>header,.aml-rdf-documents>header{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.aml-registry-lists h3,.aml-people-group h3,.aml-rdf-report-list h3,.aml-rdf-trend h3,.aml-rdf-latest h3,.aml-rdf-documents h3{margin:0;font:700 16px var(--serif)}.aml-registry-lists>section>header>span,.aml-people-group>header>span,.aml-rdf-report-list>header>span,.aml-rdf-trend>header>span,.aml-rdf-documents>header>span{min-width:27px;padding:5px;border-radius:999px;color:#0b6498;background:#e6f2f8;font-size:13px;font-weight:850;text-align:center}
.aml-record-list{display:grid;gap:6px}.aml-record-list>article{padding:9px;display:grid;grid-template-columns:31px minmax(0,1fr) 18px;gap:8px;align-items:center;border:1px solid #e0e8ed;border-radius:10px}.aml-record-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;color:#0a6b9f;background:#e9f4f9}.aml-record-icon svg,.aml-record-list>article>a svg{width:15px}.aml-record-list small,.aml-record-list b,.aml-record-list p{display:block}.aml-record-list small{color:#8294a2;font-size:13px}.aml-record-list b{margin-top:2px;color:#2b5069;font-size:13px}.aml-record-list p{margin:3px 0 0;color:#778b9b;font-size:13px}
.aml-people-groups{display:grid;gap:13px}.aml-people-group{padding-top:13px;border-top:1px solid #e0e8ed}.aml-people-group:first-child{padding-top:0;border-top:0}.aml-people-group>header p{margin:4px 0 0;color:#7b8e9e;font-size:13px}.aml-person-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.aml-person-grid>article{padding:12px;display:grid;grid-template-columns:39px minmax(0,1fr) 25px;gap:9px;align-items:start;border:1px solid #d8e4ea;border-radius:12px;background:linear-gradient(145deg,#fff,#f8fbfc)}.aml-person-avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(145deg,#0b72aa,#164a70);font-size:13px;font-weight:900}.aml-person-grid small,.aml-person-grid b,.aml-person-grid p{display:block}.aml-person-grid small{color:#8a9aa7;font-size:13px}.aml-person-grid b{margin-top:3px;color:#244b66;font-size:13px}.aml-person-grid p{margin:3px 0 0;color:#657e91;font-size:13px}.aml-person-grid footer{margin-top:7px;display:flex;gap:4px;flex-wrap:wrap}.aml-person-grid footer span{padding:4px 6px;border-radius:7px;color:#526f84;background:#eaf1f5;font-size:13px}.aml-person-grid button{width:25px;height:25px;padding:0;display:grid;place-items:center;border:1px solid #d3e0e7;border-radius:8px;color:#0c6598;background:#fff;cursor:pointer}.aml-person-grid button svg{width:13px}
.aml-msig-summary{margin-bottom:13px;padding:14px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.7fr);gap:16px;align-items:center;border:1px solid #d5e3ea;border-radius:14px;background:linear-gradient(135deg,#f8fbfc,#edf5f8)}.aml-msig-summary .aml-fact-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.aml-msig-summary>p{margin:0;color:#617a8e;font-size:13px;line-height:1.6}
.aml-msig-list{display:grid;gap:9px}.aml-msig-entry{padding:16px;border:1px solid #d6e2e9;border-radius:15px;background:#fff;transition:.2s ease}.aml-msig-entry:hover{border-color:#abc7d7;box-shadow:0 12px 30px rgba(19,57,82,.08)}.aml-msig-entry>header{display:grid;grid-template-columns:104px minmax(0,1fr) auto;gap:13px;align-items:start}.aml-msig-issue{min-height:58px;padding:10px;display:flex;flex-direction:column;justify-content:center;border-radius:11px;color:#fff;background:linear-gradient(145deg,#0a3659,#0a6a9e)}.aml-msig-issue small,.aml-msig-issue b{display:block}.aml-msig-issue small{color:#bcd8e7;font-size:13px}.aml-msig-issue b{margin-top:3px;font-size:13px}.aml-msig-entry>header>div>small{color:#8295a3;font-size:13px}.aml-msig-entry h3{margin:4px 0 0;color:#183e5b;font:700 16px/1.3 var(--serif)}.aml-msig-context{margin:12px 0;padding:10px 12px;border-left:3px solid #d5a13c;border-radius:0 9px 9px 0;background:#fff8e8}.aml-msig-context small{color:#9b6a17;font-size:13px;font-weight:850;text-transform:uppercase}.aml-msig-context p{margin:4px 0 0;color:#6e5b38;font-size:13px;line-height:1.5}.aml-msig-excerpt{margin:12px 0;color:#5c7487;font-size:13px;line-height:1.7;white-space:pre-line}.aml-msig-entry>footer{padding-top:11px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e3e9ed}.aml-msig-entry>footer>div{display:flex;gap:5px;flex-wrap:wrap}.aml-msig-entry>footer>div>span{padding:5px 7px;display:flex;align-items:center;gap:4px;border-radius:7px;color:#476a82;background:#edf4f7;font-size:13px;font-weight:750}.aml-msig-entry>footer svg{width:12px}
.aml-msig-pagination{margin-top:14px;padding:11px;display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;border:1px solid #d7e3ea;border-radius:12px;background:#f7fafc}.aml-msig-pagination label{color:#647d90;font-size:13px}.aml-msig-pagination select{min-height:34px;margin:0 5px;padding:0 27px 0 9px;border:1px solid #cddde6;border-radius:8px;color:#224b66;background:#fff}.aml-msig-pagination>div{display:flex;align-items:center;gap:8px}.aml-msig-pagination>div b{min-width:90px;color:#536f83;font-size:13px;text-align:center}.aml-msig-pagination>span{color:#7a8e9e;font-size:13px;text-align:right}.aml-msig-pagination button:disabled{opacity:.4;cursor:not-allowed}
.aml-rdf-section{background:linear-gradient(180deg,#fff,#fbfdfe)}.aml-rdf-source-note{margin-bottom:12px;padding:14px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #cfe1e9;border-radius:14px;background:linear-gradient(135deg,#f4fafc,#fffaf0)}.aml-rdf-source-note>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:#0b699e;background:#e2f1f8}.aml-rdf-source-note svg{width:20px}.aml-rdf-source-note small,.aml-rdf-source-note b,.aml-rdf-source-note p{display:block}.aml-rdf-source-note small{color:#8c6b2c;font-size:13px;font-weight:850;text-transform:uppercase}.aml-rdf-source-note b{margin-top:2px;color:#214a64;font-size:13px}.aml-rdf-source-note p{margin:4px 0 0;color:#718696;font-size:13px;line-height:1.45}
.aml-rdf-kpis{margin-bottom:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.aml-rdf-kpis article{padding:14px;border:1px solid #d6e3e9;border-radius:13px;background:#fff}.aml-rdf-kpis small,.aml-rdf-kpis b,.aml-rdf-kpis span{display:block}.aml-rdf-kpis small{color:#8193a1;font-size:13px;text-transform:uppercase}.aml-rdf-kpis b{margin-top:5px;color:#143f5e;font:700 20px/1 var(--serif)}.aml-rdf-kpis b.negative,.aml-rdf-report-metrics b.negative,.aml-rdf-statement dd.negative{color:#bd4d45}.aml-rdf-kpis b.positive,.aml-rdf-report-metrics b.positive{color:#23805f}.aml-rdf-kpis span{margin-top:6px;color:#71889a;font-size:13px}
.aml-rdf-layout{margin-bottom:12px;display:grid;grid-template-columns:1.45fr .85fr;gap:10px}.aml-rdf-trend,.aml-rdf-latest{padding:15px;border:1px solid #d7e3e9;border-radius:15px;background:#fafdfe}.aml-rdf-trend>header small,.aml-rdf-latest>header small,.aml-rdf-report-list>header small,.aml-rdf-documents>header small{display:block;color:#8b6a2b;font-size:13px;font-weight:850;text-transform:uppercase}.aml-rdf-trend>header h3,.aml-rdf-latest>header h3,.aml-rdf-report-list>header h3,.aml-rdf-documents>header h3{margin-top:2px}.aml-rdf-trend>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.aml-rdf-trend>div>article{padding:11px;border:1px solid #dde6eb;border-radius:11px;background:#fff}.aml-rdf-trend article>header{display:flex;align-items:center;justify-content:space-between}.aml-rdf-trend article>header>b{color:#174563;font:700 16px var(--serif)}.aml-rdf-trend dl{margin:8px 0 0}.aml-rdf-trend dl div{padding:5px 0;display:flex;justify-content:space-between;gap:7px;border-top:1px solid #e8edef}.aml-rdf-trend dt{color:#8193a1;font-size:13px}.aml-rdf-trend dd{margin:0;color:#2b526b;font-size:13px;font-weight:800}.aml-rdf-trend dd.negative{color:#ba4c44}.aml-rdf-trend article>i{height:5px;margin-top:8px;display:block;overflow:hidden;border-radius:999px;background:#e3eaee}.aml-rdf-trend article>i span{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#0b6ea7,#d5a13e)}.aml-rdf-latest .aml-fact-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.aml-rdf-flags{margin-top:9px;display:grid;gap:5px}.aml-rdf-flags>span{padding:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:9px;color:#825522;background:#fff1d1}.aml-rdf-flags>span.high{color:#9c443d;background:#fdebea}.aml-rdf-flags b,.aml-rdf-flags small{font-size:13px}
.aml-rdf-report-list{padding:15px;border:1px solid #d4e2e9;border-radius:15px;background:#f8fbfc}.aml-rdf-report-list>header{margin-bottom:12px}.aml-rdf-report-list{display:grid;gap:8px}.aml-rdf-report{padding:14px;border:1px solid #d9e4e9;border-radius:13px;background:#fff}.aml-rdf-report>header{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:11px;align-items:center}.aml-rdf-year{width:52px;height:52px;display:grid;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(145deg,#0b6ea7,#103b5c);font:700 15px var(--serif)}.aml-rdf-report>header small,.aml-rdf-report>header h3,.aml-rdf-report>header p{display:block}.aml-rdf-report>header small{color:#8b6a29;font-size:13px}.aml-rdf-report>header h3{margin:3px 0 0;color:#244b65;font:700 15px var(--serif)}.aml-rdf-report>header p{margin:3px 0 0;color:#7d909e;font-size:13px}.aml-rdf-report-metrics{margin-top:11px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.aml-rdf-report-metrics>span{padding:9px;border-radius:9px;background:#f0f6f9}.aml-rdf-report-metrics small,.aml-rdf-report-metrics b{display:block}.aml-rdf-report-metrics small{color:#8093a1;font-size:13px}.aml-rdf-report-metrics b{margin-top:3px;color:#2d536b;font-size:13px}.aml-rdf-report>footer{margin-top:10px;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e2e9ed}.aml-rdf-report>footer>span{display:grid;grid-template-columns:25px minmax(0,1fr);gap:0 7px;align-items:center}.aml-rdf-report>footer>span>svg{grid-row:1/3;width:17px;color:#0a6ba1}.aml-rdf-report>footer b,.aml-rdf-report>footer small{display:block}.aml-rdf-report>footer b{font-size:13px}.aml-rdf-report>footer small{margin-top:2px;color:#8394a0;font-size:13px}
.aml-financial-note{margin-top:12px;padding:12px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;border-radius:11px;color:#4b6c81;background:#edf5f8}.aml-financial-note>svg{width:18px;color:#0a6da5}.aml-financial-note b{font-size:13px}.aml-financial-note p{margin:3px 0 0;font-size:13px;line-height:1.5}.risk-bars{display:grid;gap:9px}.risk-bars>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,1.2fr) 38px;gap:8px;align-items:center}.risk-bars>div>span{font-size:13px;font-weight:750}.risk-bars>div>i{height:7px;overflow:hidden;border-radius:999px;background:#e3eaee}.risk-bars>div>i em{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#d89f38,#cf574f)}.risk-bars>div.positive>i em{background:#2d9a72}.risk-bars>div>b{color:#905245;font-size:13px;text-align:right}.risk-bars>div.positive>b{color:#27805f}.risk-bars>div>small{grid-column:1/-1;color:#8293a0;font-size:13px}.aml-risk-detail>footer{margin-top:14px;padding:12px;border-radius:11px;background:#f2f7f9}.aml-risk-detail>footer small{color:#91681f;font-size:13px;font-weight:850;text-transform:uppercase}.aml-risk-detail>footer p{margin:4px 0 0;color:#597488;font-size:13px;line-height:1.5}

/* Detailed AML source modals */
.modal-panel:has(.aml-msig-modal-body),.modal-panel:has(.aml-rdf-modal-body){width:min(1120px,100%);max-height:min(90vh,900px)}
.aml-msig-modal-body,.aml-rdf-modal-body{display:grid;gap:13px}.aml-msig-modal-body>header,.aml-rdf-modal-body>header{padding:19px;display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:14px;align-items:center;border-radius:17px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(42,146,195,.35),transparent 20rem),linear-gradient(135deg,#061f3b,#0a4a75)}.aml-msig-modal-mark,.aml-rdf-modal-mark{width:62px;height:62px;display:grid;place-items:center;border-radius:15px;color:#15364f;background:linear-gradient(145deg,#f2d788,#c6902f);font:800 13px var(--serif)}.aml-msig-modal-body>header small,.aml-msig-modal-body>header h2,.aml-msig-modal-body>header p,.aml-rdf-modal-body>header small,.aml-rdf-modal-body>header h2,.aml-rdf-modal-body>header p{display:block}.aml-msig-modal-body>header small,.aml-rdf-modal-body>header small{color:#efcb78;font-size:13px}.aml-msig-modal-body>header h2,.aml-rdf-modal-body>header h2{margin:4px 0 0;color:#fff;font:700 23px/1.2 var(--serif)}.aml-msig-modal-body>header p,.aml-rdf-modal-body>header p{margin:5px 0 0;color:#bfd3df;font-size:13px}.aml-msig-modal-facts .aml-fact-tiles,.aml-rdf-modal-meta .aml-fact-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.aml-msig-modal-context{padding:12px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;border:1px solid #ead5a6;border-radius:12px;background:#fff9ec}.aml-msig-modal-context>span{width:34px;height:34px;display:grid;place-items:center;color:#a67218}.aml-msig-modal-context svg{width:18px}.aml-msig-modal-context small{color:#9c6a18;font-size:13px;font-weight:850;text-transform:uppercase}.aml-msig-modal-context p{margin:4px 0 0;color:#705d3c;font-size:13px;line-height:1.55}.aml-msig-full-copy{padding:16px;border:1px solid #d5e2e9;border-radius:14px}.aml-msig-full-copy>header{margin-bottom:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.aml-msig-full-copy h3{margin:2px 0 0;font:700 18px var(--serif)}.aml-msig-full-text{max-height:360px;padding:16px;overflow:auto;border-radius:11px;color:#35566d;background:#f4f8fa;font:400 13px/1.75 var(--sans);white-space:pre-wrap}.aml-msig-modal-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.aml-msig-modal-links>article{padding:14px;border:1px solid #d8e3e9;border-radius:13px}.aml-msig-modal-links>article>header{display:flex;align-items:center;justify-content:space-between}.aml-msig-modal-links h3{margin:0;font:700 15px var(--serif)}.aml-msig-modal-links>article>header>span{padding:4px 7px;border-radius:999px;color:#0c6598;background:#e8f3f8;font-size:13px}.aml-msig-modal-links>article>div{margin-top:9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.aml-msig-modal-links>article>div>span{padding:8px;border-radius:9px;background:#f1f6f8}.aml-msig-modal-links small,.aml-msig-modal-links b{display:block}.aml-msig-modal-links small{color:#8495a1;font-size:13px}.aml-msig-modal-links b{margin-top:3px;color:#2b5069;font-size:13px}.aml-msig-source-ids{padding:10px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-radius:10px;background:#eef4f7}.aml-msig-source-ids small{color:#778d9d;font-size:13px}.aml-msig-source-ids span{padding:4px 6px;border-radius:6px;color:#45677e;background:#fff;font-size:13px}
.aml-rdf-modal-flags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.aml-rdf-modal-flags>article{padding:11px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;border:1px solid #edd6aa;border-radius:11px;background:#fff9ed}.aml-rdf-modal-flags>article.high{border-color:#efc7c3;background:#fff3f2}.aml-rdf-modal-flags>article>span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#fff;background:#d55f54;font-weight:900}.aml-rdf-modal-flags small,.aml-rdf-modal-flags b,.aml-rdf-modal-flags p{display:block}.aml-rdf-modal-flags small{color:#9a6b1c;font-size:13px;text-transform:uppercase}.aml-rdf-modal-flags b{margin-top:2px;color:#624b31;font-size:13px}.aml-rdf-modal-flags p{margin:3px 0 0;color:#866f53;font-size:13px}.aml-rdf-statements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.aml-rdf-statement{padding:14px;border:1px solid #d7e3e9;border-radius:13px}.aml-rdf-statement:last-child{grid-column:1/-1}.aml-rdf-statement>header{margin-bottom:9px;display:flex;align-items:center;justify-content:space-between}.aml-rdf-statement>header small{color:#8b6a29;font-size:13px;text-transform:uppercase}.aml-rdf-statement>header h3{margin:2px 0 0;font:700 16px var(--serif)}.aml-rdf-statement>header>span{padding:4px 7px;border-radius:999px;color:#0c6497;background:#e8f3f8;font-size:13px}.aml-rdf-statement dl{margin:0}.aml-rdf-statement dl div{padding:6px 0;display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e5ebef}.aml-rdf-statement dl div:first-child{border-top:0}.aml-rdf-statement dt{color:#718797;font-size:13px}.aml-rdf-statement dd{margin:0;color:#2a516a;font-size:13px;font-weight:800}.aml-rdf-documents{padding:14px;border:1px solid #d6e3e9;border-radius:13px}.aml-rdf-documents>article{padding:9px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:center;border-top:1px solid #e5ebef}.aml-rdf-documents>article>span{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:#0b679d;background:#e8f3f8}.aml-rdf-documents svg{width:15px}.aml-rdf-documents small,.aml-rdf-documents b,.aml-rdf-documents p{display:block}.aml-rdf-documents small{color:#8a9aa6;font-size:13px}.aml-rdf-documents b{margin-top:2px;font-size:13px}.aml-rdf-documents p{margin:3px 0 0;color:#8395a1;font-size:13px;overflow-wrap:anywhere}.aml-rdf-documents em{padding:4px 7px;border-radius:7px;color:#536e82;background:#eef4f6;font-size:13px;font-style:normal}.aml-rdf-modal-actions{padding-top:11px;display:flex;align-items:center;justify-content:flex-end;gap:7px;border-top:1px solid #dfe7eb}.aml-rdf-modal-actions>div{margin-right:auto;display:flex;gap:5px;align-items:center;flex-wrap:wrap}.aml-rdf-modal-actions small{color:#8293a0;font-size:13px}.aml-rdf-modal-actions>div span{padding:4px 6px;border-radius:6px;color:#4f6d81;background:#edf3f6;font-size:13px}

@media(max-width:1100px){
  .aml-profile-hero{grid-template-columns:1fr}.aml-profile-hero>aside{grid-template-columns:84px minmax(0,1fr) auto}.aml-profile-hero>aside>.btn{grid-column:auto}.aml-decision-strip{grid-template-columns:repeat(4,1fr)}.aml-decision-strip>div{grid-column:1/-1;border-top:1px solid #dbe5eb;border-left:0}.aml-verification-grid,.aml-person-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aml-registry-columns{grid-template-columns:1fr 1fr}.aml-registry-columns>article:last-child{grid-column:1/-1}.aml-registry-lists{grid-template-columns:1fr}.aml-rdf-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  .aml-profile-hero{padding:20px 16px;border-radius:18px}.aml-profile-identity{grid-template-columns:48px minmax(0,1fr)}.aml-profile-mark{width:48px;height:48px;border-radius:13px}.aml-profile-mark svg{width:24px}.aml-profile-hero>aside{grid-template-columns:70px minmax(0,1fr)}.aml-profile-hero>aside>.btn{grid-column:1/-1}.aml-risk-gauge{width:68px;height:68px}.aml-decision-strip{grid-template-columns:1fr 1fr}.aml-decision-strip>article{border-top:1px solid #dbe5eb}.aml-profile-nav{top:66px}.aml-profile-grid{grid-template-columns:1fr}.aml-profile-card,.aml-profile-section{padding:16px;border-radius:16px}.aml-identifier-grid,.aml-registry-overview .aml-fact-tiles,.aml-msig-summary .aml-fact-tiles,.aml-rdf-kpis{grid-template-columns:1fr 1fr}.aml-contact-list,.aml-verification-grid,.aml-registry-columns,.aml-person-grid{grid-template-columns:1fr}.aml-registry-columns>article:last-child{grid-column:auto}.aml-msig-summary{grid-template-columns:1fr}.aml-msig-entry>header{grid-template-columns:84px minmax(0,1fr)}.aml-msig-entry>header>.badge{grid-column:1/-1;justify-self:start}.aml-msig-entry>footer{align-items:stretch;flex-direction:column}.aml-msig-pagination{grid-template-columns:1fr}.aml-msig-pagination>div{justify-content:space-between}.aml-msig-pagination>span{text-align:left}.aml-rdf-source-note{grid-template-columns:38px minmax(0,1fr)}.aml-rdf-source-note>.btn{grid-column:1/-1}.aml-rdf-trend>div{grid-template-columns:1fr}.aml-rdf-report>header{grid-template-columns:46px minmax(0,1fr)}.aml-rdf-report>header>.badge{grid-column:1/-1;justify-self:start}.aml-rdf-report-metrics{grid-template-columns:1fr 1fr}.aml-rdf-report>footer{align-items:stretch;flex-direction:column}.aml-msig-modal-body>header,.aml-rdf-modal-body>header{grid-template-columns:50px minmax(0,1fr)}.aml-msig-modal-body>header>.badge,.aml-rdf-modal-body>header>.badge{grid-column:1/-1;justify-self:start}.aml-msig-modal-mark,.aml-rdf-modal-mark{width:50px;height:50px}.aml-msig-modal-facts .aml-fact-tiles,.aml-rdf-modal-meta .aml-fact-tiles{grid-template-columns:1fr 1fr}.aml-msig-modal-links,.aml-rdf-statements,.aml-rdf-modal-flags{grid-template-columns:1fr}.aml-rdf-statement:last-child{grid-column:auto}.aml-rdf-modal-actions{align-items:stretch;flex-direction:column}.aml-rdf-modal-actions>div{margin:0}.aml-rdf-modal-actions .btn{width:100%;justify-content:center}
}

@media(max-width:480px){
  .aml-decision-strip,.aml-identifier-grid,.aml-registry-overview .aml-fact-tiles,.aml-msig-summary .aml-fact-tiles,.aml-rdf-kpis,.aml-rdf-report-metrics,.aml-msig-modal-facts .aml-fact-tiles,.aml-rdf-modal-meta .aml-fact-tiles{grid-template-columns:1fr}.aml-name-list>span{align-items:flex-start;flex-direction:column}.aml-msig-entry>header{grid-template-columns:1fr}.aml-msig-issue{min-height:48px}.aml-msig-modal-links>article>div{grid-template-columns:1fr}
}

/* Cross-page visual QA layer */
:root{
  --focus-ring:0 0 0 4px rgba(20,108,166,.16);
  --surface-soft:#f5f8fa;
  --surface-blue:#edf6fa;
  --surface-gold:#fff8e9;
  --text-soft:#6a8093;
  --card-line:#d4e0e8;
}
html{scroll-behavior:smooth;scroll-padding-top:104px}
body{min-width:320px}
#app,.portal,.shell,.content,.content>*,.grid>*,.card,.card-head>*,.modal-body>*{min-width:0}
.content{min-height:calc(100dvh - 80px);overflow-x:clip}
button,input,select,textarea{font-family:var(--sans)}
button:not(:disabled),select:not(:disabled),input[type="checkbox"]:not(:disabled),input[type="radio"]:not(:disabled){cursor:pointer}
input,select,textarea{max-width:100%;color:var(--ink)}
select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
textarea{resize:vertical}
button:disabled,.btn:disabled{cursor:not-allowed;filter:saturate(.6);opacity:.52}
a,button,input,select,textarea,[tabindex]{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #1173af;outline-offset:3px;box-shadow:var(--focus-ring)}
.skip-link:focus{z-index:300}
.ui-icon,svg{flex:0 0 auto}
.content :is(h1,h2,h3,h4,p,b,strong,small,span,dt,dd,a){overflow-wrap:break-word;word-break:normal}
.content :is(.badge,.btn,.eyebrow,.source-state,.tabs a,.tabs button,.data-table .btn,.head-actions a,.head-actions button){overflow-wrap:normal}
.card{isolation:isolate}
.card-head{align-items:flex-start;flex-wrap:wrap}
.card-head>div{min-width:0}
.card-head>div>p{max-width:72ch;margin:5px 0 0;color:var(--text-soft);font-size:13px;line-height:1.55}
.head-actions{align-items:center}
.head-actions .btn{white-space:nowrap}
.muted{color:var(--text-soft)!important;line-height:1.65}
.tags{align-items:center}
.tags .badge{max-width:100%;white-space:normal}
.filters{align-items:stretch}
.filters input,.filters select{min-width:0}
.table-wrap{max-width:100%;overscroll-behavior-inline:contain}
.data-table td{overflow-wrap:anywhere}
.data-table td:last-child{width:1%;min-width:112px}
.data-table .btn{min-width:96px;white-space:nowrap}
.data-table .cell-title{min-width:190px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center}
.data-table .cell-title>b,.data-table .cell-title>small{grid-column:1}
.data-table .cell-title::after{grid-column:2;grid-row:1/3;align-self:center}
.pagination-bar{flex-wrap:wrap}
.pagination-bar .btn{white-space:nowrap}
.modal{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.modal-panel{overscroll-behavior:contain}
.modal-head{position:sticky;z-index:5;top:0;gap:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
.modal-head h2{min-width:0;overflow-wrap:anywhere}
.modal-body{overflow-x:hidden}
.toast{max-width:min(390px,calc(100vw - 24px))}

/* Missing landing, judgment, document and graph surfaces */
.shot-case .shot-columns{height:calc(100% - 72px);padding:14px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(100px,.6fr);gap:11px}
.shot-case .shot-timeline{padding:11px;display:grid;align-content:center;gap:9px;border:1px solid #dce6ed;border-radius:11px;background:#fff}
.shot-case .shot-timeline p{margin:0;display:grid;grid-template-columns:10px minmax(0,1fr);gap:8px;align-items:center;color:#587086;font-size:13px}
.shot-case .shot-timeline p>i{width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#1472aa;box-shadow:0 0 0 2px #cfe1eb}
.shot-case .shot-score{padding:12px;display:grid;place-items:center;align-content:center;border-radius:11px;color:#fff;background:radial-gradient(circle at 70% 0,rgba(227,176,67,.35),transparent 8rem),linear-gradient(145deg,#082d52,#0b6595)}
.shot-case .shot-score small,.shot-case .shot-score b,.shot-case .shot-score em{display:block}.shot-case .shot-score small{font-size:13px}.shot-case .shot-score b{margin:5px 0;font:700 25px var(--serif)}.shot-case .shot-score em{width:72%;height:5px;border-radius:99px;background:#e8c56f}
.judge-timeline{max-height:430px;margin-top:18px;padding-top:17px;overflow:auto;border-top:1px solid #dfe7ed;scrollbar-width:thin}
.document-library-main,.judgment-result-main{min-width:0}
.judgment-result-main{padding-right:8px}
.judgment-result-main h3,.judgment-result-main p{overflow-wrap:anywhere}
.graph-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.graph-tools .btn{min-width:42px;padding-inline:11px;white-space:nowrap}
.document-library-head{gap:14px;flex-wrap:wrap}
.document-library-head>span{white-space:nowrap}

/* AML dashboard and sources */
.aml-command-hero{position:relative;margin-bottom:13px;padding:clamp(24px,3vw,40px);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(390px,.75fr);gap:30px;overflow:hidden;border:1px solid #17466a;border-radius:23px;color:#fff;background:radial-gradient(circle at 88% 4%,rgba(42,145,194,.34),transparent 24rem),radial-gradient(circle at 10% 120%,rgba(211,161,59,.16),transparent 25rem),linear-gradient(135deg,#061d38,#0a4169);box-shadow:0 24px 60px rgba(7,39,65,.17)}
.aml-command-hero:after{content:"";position:absolute;right:-90px;bottom:-140px;width:330px;height:330px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 42px rgba(255,255,255,.022),0 0 0 84px rgba(255,255,255,.018)}
.aml-command-hero>div,.aml-command-hero>aside{position:relative;z-index:1}.aml-command-hero .eyebrow{color:#eec770}.aml-command-hero h2{max-width:16ch;margin:6px 0 10px;color:#fff;font:700 clamp(30px,3.2vw,45px)/1.03 var(--serif)}.aml-command-hero p{max-width:72ch;margin:0;color:#c5d7e4;font-size:13px;line-height:1.7}
.aml-command-hero form{margin-top:20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.aml-command-hero form label{min-height:49px;padding:0 14px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.1);backdrop-filter:blur(10px)}.aml-command-hero form label:focus-within{border-color:#f0ca72;box-shadow:0 0 0 4px rgba(240,202,114,.12)}.aml-command-hero form svg{width:18px;color:#e9c56f}.aml-command-hero form input{width:100%;min-width:0;border:0;outline:0;color:#fff;background:transparent;font-size:13px}.aml-command-hero form input::placeholder{color:#aac1d0}.aml-command-hero form .btn{white-space:nowrap}
.aml-command-trust{margin-top:15px;display:flex;gap:13px;flex-wrap:wrap}.aml-command-trust span{display:flex;align-items:center;gap:5px;color:#c6d8e4;font-size:13px;font-weight:750}.aml-command-trust svg{width:14px;color:#4cc196}
.aml-command-hero>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.aml-command-hero>aside article{min-height:105px;padding:15px;display:flex;flex-direction:column;justify-content:center;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.075);backdrop-filter:blur(10px)}.aml-command-hero>aside small,.aml-command-hero>aside b,.aml-command-hero>aside span{display:block}.aml-command-hero>aside small{color:#bad0de;font-size:13px}.aml-command-hero>aside b{margin-top:5px;color:#fff;font:700 27px/1 var(--serif)}.aml-command-hero>aside span{margin-top:7px;color:#a9c2d1;font-size:13px}
.aml-source-ribbon{margin-bottom:13px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;border:1px solid #cfdee7;border-radius:15px;background:#fff;box-shadow:0 10px 30px rgba(15,48,74,.06)}.aml-source-ribbon>span{min-height:72px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center;border-left:1px solid #e0e8ed;color:#718697;font-size:13px}.aml-source-ribbon>span:first-child{border-left:0}.aml-source-ribbon b{margin-bottom:3px;color:#0b659a;font-size:13px}
.aml-dashboard-grid.aml-dashboard-v2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.65fr);gap:13px;align-items:start}.aml-dashboard-v2>main,.aml-dashboard-v2>aside{overflow:hidden}.aml-dashboard-v2>aside{position:sticky;top:98px}
.aml-filter-bar{padding:13px;display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(145px,.8fr));gap:8px;border-bottom:1px solid #dfe7ed;background:#f6f9fb}.aml-filter-bar input,.aml-filter-bar select,.aml-filter-bar button{width:100%;min-width:0;min-height:42px;padding:0 10px;border:1px solid #cedbe4;border-radius:9px;color:#244b66;background:#fff;font-size:13px}.aml-filter-bar input:focus,.aml-filter-bar select:focus{border-color:#1b76ad;outline:0;box-shadow:var(--focus-ring)}
.aml-entity-list{display:grid}.aml-subject-result{padding:16px;display:grid;grid-template-columns:minmax(240px,1.35fr) minmax(210px,.9fr) 145px auto;gap:13px;align-items:center;border-top:1px solid #e1e8ed;background:#fff}.aml-subject-result:first-child{border-top:0}.aml-subject-result:hover{background:#f8fbfc}.aml-subject-main{min-width:0;display:grid;grid-template-columns:44px minmax(0,1fr);gap:11px;align-items:center;color:#214966}.aml-company-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#0a699f;background:#e7f3f8}.aml-company-icon svg{width:21px}.aml-subject-main small,.aml-subject-main b,.aml-subject-main em{display:block}.aml-subject-main small{color:#8093a1;font-size:13px}.aml-subject-main b{margin-top:3px;color:#173d5a;font-size:13px;line-height:1.3}.aml-subject-main em{margin-top:4px;color:#6f8496;font-size:13px;font-style:normal}.aml-subject-signals{display:flex;gap:5px;flex-wrap:wrap}.aml-subject-signals .badge{white-space:normal}.aml-subject-risk{display:flex;align-items:center;gap:9px}.aml-subject-risk>span{--risk:#2c9872;width:45px;height:45px;position:relative;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--risk) calc(var(--score)*1%),#dfe7eb 0)}.aml-subject-risk.medium>span{--risk:#d19a33}.aml-subject-risk.high>span{--risk:#cf584f}.aml-subject-risk>span:before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}.aml-subject-risk>span b{position:relative;color:#214b65;font-size:13px}.aml-subject-risk small,.aml-subject-risk strong{display:block}.aml-subject-risk small{color:#8495a2;font-size:13px}.aml-subject-risk strong{margin-top:2px;color:#365b72;font-size:13px}.aml-subject-result>.btn{white-space:nowrap}
.aml-alert-tabs{padding:9px;display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid #e0e8ed}.aml-alert-tabs button{min-height:34px;padding:0 9px;border:1px solid transparent;border-radius:8px;color:#637d91;background:transparent;font-size:13px;font-weight:850;white-space:nowrap}.aml-alert-tabs button.active{border-color:#0a6399;color:#fff;background:#0a6399}.aml-alert-list{display:grid}.aml-alert-row{padding:13px;display:grid;grid-template-columns:43px minmax(0,1fr) auto;gap:9px;align-items:start;border-top:1px solid #e2e9ed}.aml-alert-row:first-child{border-top:0}.aml-source{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;color:#fff;background:#276f9d;font-size:13px;font-weight:900}.aml-source.high{background:#bd544e}.aml-source.medium{background:#c9912d}.aml-alert-row small,.aml-alert-row b,.aml-alert-row p{display:block}.aml-alert-row small{color:#8496a3;font-size:13px}.aml-alert-row b{margin-top:3px;color:#234c68;font-size:13px}.aml-alert-row p{margin:3px 0 0;color:#6d8394;font-size:13px}.aml-alert-row nav{grid-column:2/-1;display:flex;gap:10px;flex-wrap:wrap}.aml-alert-row nav a{color:#0a669d;font-size:13px;font-weight:800}.aml-no-results{min-height:190px;padding:25px;display:grid;place-items:center;align-content:center;gap:7px;color:#708698;text-align:center}.aml-no-results svg{width:27px}.aml-no-results b{color:#234b66;font:700 18px var(--serif)}
.aml-lookup-v2{border-color:#cbdde7;box-shadow:0 11px 32px rgba(16,52,76,.07)}
.aml-identity-card{background:linear-gradient(180deg,#fff,#fbfdfe)}
.aml-msig-section{background:linear-gradient(180deg,#fff,#fcfdfe)}
.aml-relations-card{background:#fff}

/* AML compliance, chronology and provenance */
.aml-compliance-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.aml-compliance-grid>article{padding:13px;border:1px solid #d6e4dc;border-radius:13px;background:#f6fcf8}.aml-compliance-grid>article.has-records{border-color:#ead5a6;background:#fff9ee}.aml-compliance-grid>article>header{margin-bottom:10px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;align-items:center}.aml-compliance-grid>article>header>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#268365;background:#e1f3ea}.aml-compliance-grid>article.has-records>header>span{color:#9a681a;background:#ffedc4}.aml-compliance-grid svg{width:16px}.aml-compliance-grid small,.aml-compliance-grid h3{display:block}.aml-compliance-grid small{color:#788d80;font-size:13px;line-height:1.35}.aml-compliance-grid h3{margin:2px 0 0;color:#285345;font:700 15px var(--serif)}.aml-compliance-grid>article>header>b{color:#39705c;font-size:13px}.aml-compliance-grid>article>p{margin:0;color:#6c8375;font-size:13px;line-height:1.55}
.aml-graph-summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.aml-graph-summary span{padding:6px 8px;border-radius:8px;color:#536f83;background:#edf4f7;font-size:13px}.aml-graph-summary b{color:#0a659b}
.aml-timeline-v2{position:relative;display:grid}.aml-timeline-v2:before{content:"";position:absolute;top:9px;bottom:9px;left:102px;width:1px;background:#d7e2e9}.aml-timeline-v2>article{min-height:72px;display:grid;grid-template-columns:84px 20px minmax(0,1fr);gap:9px;align-items:start}.aml-timeline-v2 time{padding-top:4px;color:#6e8496;font-size:13px;text-align:right}.aml-timeline-v2 i{position:relative;width:11px;height:11px;margin:4px auto 0;border:3px solid #fff;border-radius:50%;background:#2c9872;box-shadow:0 0 0 2px #bcd9ce}.aml-timeline-v2 article.medium i{background:#cf9632;box-shadow:0 0 0 2px #ead5a8}.aml-timeline-v2 article.high i{background:#ca554d;box-shadow:0 0 0 2px #edc5c2}.aml-timeline-v2 small,.aml-timeline-v2 b,.aml-timeline-v2 p{display:block}.aml-timeline-v2 small{color:#96681d;font-size:13px;text-transform:uppercase}.aml-timeline-v2 b{margin-top:3px;color:#214a65;font-size:13px}.aml-timeline-v2 p{margin:4px 0 0;color:#6b8193;font-size:13px;line-height:1.55}
.aml-quality-callout{margin-top:13px;padding:13px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;border:1px solid #ecd6a7;border-radius:12px;color:#755722;background:#fff9ec}.aml-quality-callout>svg{width:23px;color:#a77622}.aml-quality-callout b{font-size:13px}.aml-quality-callout p{margin:4px 0 0;font-size:13px;line-height:1.55}
.aml-evidence-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:12px}.aml-evidence-layout>main,.aml-evidence-layout>aside{padding:13px;border:1px solid #d8e3e9;border-radius:14px;background:#fbfdfe}.aml-evidence-layout>aside>header{margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.aml-evidence-layout>aside>header h3{margin:0;font:700 16px var(--serif)}.aml-evidence-layout>aside>header span{padding:4px 7px;border-radius:99px;color:#0b659a;background:#e6f2f8;font-size:13px}.aml-evidence-layout>aside>article{padding:9px;display:grid;grid-template-columns:31px minmax(0,1fr) 18px;gap:8px;align-items:center;border-top:1px solid #e1e8ed}.aml-evidence-layout>aside>article>span{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;color:#0b689e;background:#e8f3f8}.aml-evidence-layout svg{width:15px}.aml-evidence-layout small,.aml-evidence-layout b,.aml-evidence-layout p{display:block}.aml-evidence-layout small{color:#8394a1;font-size:13px}.aml-evidence-layout b{margin-top:2px;color:#294f68;font-size:13px}.aml-evidence-layout p{margin:3px 0 0;color:#768b9b;font-size:13px}.aml-provenance-facts{margin-top:12px;padding:11px;display:flex;gap:6px;flex-wrap:wrap;border-radius:11px;background:#eef4f7}.aml-provenance-facts>span{padding:7px 9px;border-radius:8px;background:#fff}.aml-provenance-facts small,.aml-provenance-facts b{display:block}.aml-provenance-facts small{color:#8495a2;font-size:13px}.aml-provenance-facts b{margin-top:2px;color:#345a72;font-size:13px}

/* Readability across dense modules */
:is(.document-library-card,.forum-topic,.forum-post,.sejm-process-watch-card,.sejm-workspace-panel,.record-detail-modal,.aml-profile-section) p{line-height:1.6}
.document-library-card :is(.document-card-copy p,.document-ocr-status small,.document-card-relations small,.document-card-tags span,.document-library-card>footer),.forum-topic :is(p,small),.forum-post :is(p,small),.sejm-process-watch-card :is(p,small),.record-detail-modal :is(p,small,dt,dd){font-size:max(9px,.62rem)}
.document-library-card .btn,.record-detail-modal .btn{font-size:max(9px,.62rem)}
.record-detail-modal h2,.record-detail-modal h3,.document-library-card h2,.forum-topic h2{overflow-wrap:anywhere}
.chart-date-toolbar{overflow:hidden}
.chart-date-toolbar>div>span,.chart-date-toolbar label,.chart-date-toolbar nav button,.chart-date-toolbar output{word-break:normal;overflow-wrap:normal}
.chart-date-toolbar input{min-width:132px}
.global-chat-dock{z-index:70}

@media(max-width:1260px){
  .aml-command-hero{grid-template-columns:1fr}.aml-command-hero h2{max-width:22ch}.aml-command-hero>aside{grid-template-columns:repeat(4,minmax(0,1fr))}
  .aml-dashboard-grid.aml-dashboard-v2{grid-template-columns:1fr}.aml-dashboard-v2>aside{position:static}
  .aml-filter-bar{grid-template-columns:repeat(3,minmax(150px,1fr))}.aml-filter-bar>*:first-child{grid-column:span 2}
  .aml-subject-result{grid-template-columns:minmax(260px,1.3fr) minmax(210px,.8fr) 140px}.aml-subject-result>.btn{grid-column:1/-1;justify-self:end}
  .aml-compliance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .page-head{align-items:flex-start;flex-direction:column}.head-actions{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.head-actions .btn{flex:0 0 auto}
  .aml-command-hero>aside{grid-template-columns:repeat(2,minmax(0,1fr))}.aml-source-ribbon{grid-template-columns:repeat(3,minmax(0,1fr))}.aml-source-ribbon>span{border-top:1px solid #e0e8ed}
  .aml-filter-bar{grid-template-columns:1fr 1fr}.aml-filter-bar>*:first-child{grid-column:1/-1}
  .aml-subject-result{grid-template-columns:1fr 150px}.aml-subject-signals{grid-column:1/-1}.aml-subject-result>.btn{grid-column:1/-1;width:100%;justify-self:stretch}.aml-compliance-grid{grid-template-columns:1fr 1fr}.aml-evidence-layout{grid-template-columns:1fr}
  .data-table .cell-title{min-width:170px}.document-card-grid.compact .document-library-card{display:flex!important}
}
@media(max-width:700px){
  html{scroll-padding-top:82px}.content{min-height:calc(100dvh - 72px)}
  .global-search kbd,.source-state{display:none}.global-search{min-width:0}.top-actions{gap:5px}.top-actions .icon-btn{width:40px;height:40px}
  .filters{display:grid;grid-template-columns:1fr}.filters>*{width:100%!important;min-width:0!important}
  .data-table{min-width:680px}.table-wrap{border:1px solid var(--card-line);border-radius:12px}.table-wrap:after{content:"Przesuń tabelę w bok, aby zobaczyć wszystkie kolumny";position:sticky;left:0;padding:7px 10px;display:block;color:#6e8394;background:#f5f8fa;font-size:13px}
  .modal{place-items:end center;padding:8px 8px 0}.modal-panel{width:100%;max-height:94dvh;border-radius:18px 18px 0 0}.modal-body{padding:14px}
  .aml-command-hero{padding:22px 16px;border-radius:18px}.aml-command-hero form{grid-template-columns:1fr}.aml-command-hero form .btn{width:100%}.aml-command-hero>aside{grid-template-columns:1fr 1fr}.aml-source-ribbon{display:flex;overflow-x:auto}.aml-source-ribbon>span{min-width:150px;border-top:0}
  .aml-filter-bar{grid-template-columns:1fr}.aml-filter-bar>*:first-child{grid-column:auto}.aml-subject-result{grid-template-columns:1fr}.aml-subject-risk{justify-content:flex-start}.aml-subject-result>.btn{grid-column:auto}
  .aml-compliance-grid{grid-template-columns:1fr}.aml-timeline-v2:before{left:9px}.aml-timeline-v2>article{grid-template-columns:20px minmax(0,1fr)}.aml-timeline-v2 time{grid-column:2;grid-row:1;padding:0;text-align:left}.aml-timeline-v2 i{grid-column:1;grid-row:1/3}.aml-timeline-v2>article>div{grid-column:2}
  .chart-date-toolbar{padding:10px}.chart-date-toolbar>div{display:grid;grid-template-columns:1fr}.chart-date-toolbar label{width:100%;display:grid;grid-template-columns:24px minmax(0,1fr)}.chart-date-toolbar input{width:100%;min-width:0}.chart-date-toolbar nav{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.chart-date-toolbar output{width:100%}
  .demo-activity{overflow-x:auto!important}.demo-activity-bars{min-width:460px}
}
@media(max-width:480px){
  .aml-command-hero>aside{grid-template-columns:1fr}.aml-alert-row{grid-template-columns:38px minmax(0,1fr)}.aml-alert-row>.badge{grid-column:2;justify-self:start}.aml-source{width:38px;height:38px}
  .aml-evidence-layout>main,.aml-evidence-layout>aside{padding:10px}.aml-provenance-facts{display:grid}.aml-provenance-facts>span{width:100%}
  .shot-case .shot-columns{grid-template-columns:1fr}.shot-case .shot-score{display:none}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* Readable navigation and complete record pages */
:root{
  --tab-text:#294b68;
  --tab-muted:#647d92;
  --tab-active:#073c67;
  --tab-active-2:#0b679d;
}
body{font-size:18px}
.content{font-size:16px}
.content :is(p,li,dd,blockquote){font-size:clamp(15px,14px + .14vw,17px);line-height:1.72}
.content :is(small,.muted){font-size:13px;line-height:1.55}
.content :is(input,select,textarea,button){font-size:15px}
.content :is(.card-head h2,.card-head h3){font-size:clamp(23px,21px + .35vw,28px)}
.content :is(.list-row b,.cell-title b,.setting-row b,.conversation b,.timeline-item b){font-size:15px;line-height:1.4}
.content :is(.list-row small,.cell-title small,.setting-row small,.conversation small,.timeline-item small){font-size:13px;line-height:1.5}
.side-nav a{font-size:15px;font-weight:750}
.page-head p{font-size:17px}
.btn{font-size:15px;font-weight:800}
.badge{font-size:13px;font-weight:850}

:is(.tabs,.filter-tabs,.law-result-tabs,.judge-assets-tabs,.aml-alert-tabs,.registry-record-nav,.sejm-record-nav,.law-record-tabs){
  scrollbar-width:thin;
  scrollbar-color:#a8bbc9 transparent;
}
:is(.aml-profile-nav,.entity-section-nav,.forum-view-tabs,.settings-menu,.landing-tour-tabs){
  scrollbar-width:thin;
  scrollbar-color:#a8bbc9 transparent;
}
:is(.aml-profile-nav,.entity-section-nav,.forum-view-tabs,.settings-menu,.landing-tour-tabs) :is(a,button){
  min-height:48px;
  padding:10px 15px;
  display:flex;
  align-items:center;
  color:var(--tab-text);
  font-size:14px;
  font-weight:850;
  line-height:1.3;
  white-space:nowrap;
}
:is(.aml-profile-nav,.entity-section-nav,.forum-view-tabs,.settings-menu,.landing-tour-tabs) :is(a,button):hover{color:#075989;background:#eaf4fa}
:is(.forum-view-tabs,.settings-menu,.landing-tour-tabs) :is(a,button).active{color:#fff;background:linear-gradient(145deg,var(--tab-active-2),var(--tab-active))}
.aml-profile-nav,.entity-section-nav,.forum-view-tabs{gap:7px;overflow-x:auto;flex-wrap:nowrap}
.aml-profile-nav a,.entity-section-nav a,.forum-view-tabs button{flex:0 0 auto}
.landing-tour-tabs button{font-size:14px;font-weight:900}
:is(.tabs,.filter-tabs,.law-result-tabs,.judge-assets-tabs,.aml-alert-tabs,.registry-record-nav,.sejm-record-nav,.law-record-tabs) button,
.tabs a{
  min-height:50px;
  padding:10px 17px;
  color:var(--tab-text);
  font-size:14px;
  font-weight:850;
  line-height:1.25;
  letter-spacing:.005em;
  overflow-wrap:normal;
  white-space:nowrap;
}
:is(.tabs,.filter-tabs,.law-result-tabs,.judge-assets-tabs,.aml-alert-tabs,.registry-record-nav,.sejm-record-nav,.law-record-tabs) button:hover,
.tabs a:hover{color:#075989;background:#eaf4fa}
:is(.tabs,.filter-tabs,.law-result-tabs,.judge-assets-tabs,.aml-alert-tabs,.registry-record-nav,.sejm-record-nav,.law-record-tabs) button.active,
.tabs a.active{
  color:#fff;
  border-color:var(--tab-active);
  background:linear-gradient(145deg,var(--tab-active-2),var(--tab-active));
  box-shadow:0 9px 22px rgba(7,60,103,.2);
}
.record-tabs{padding:9px}
.record-tabs .tabs{display:flex;gap:7px;overflow-x:auto;flex-wrap:nowrap}
.record-tabs .tabs button{min-height:52px;padding-inline:18px;flex:0 0 auto;font-size:14px;font-weight:900}
.filter-tabs{padding:8px;gap:7px}
.filter-tabs button{min-height:48px;padding-inline:16px;font-size:14px}
.filter-tabs button span{min-width:24px;height:24px;font-size:13px}
.law-result-tabs{display:flex;gap:7px;overflow-x:auto}
.law-result-tabs button{flex:0 0 auto}
.judge-assets-tabs{display:flex;gap:7px;overflow-x:auto}
.judge-assets-tabs button{flex:0 0 auto}
.aml-alert-tabs{padding:10px;gap:7px;flex-wrap:nowrap;overflow-x:auto}
.aml-alert-tabs button{min-height:46px;padding:9px 14px;flex:0 0 auto;font-size:13px;font-weight:900}
.registry-record-nav{display:flex;gap:7px;overflow-x:auto}
.registry-record-nav button{min-width:max-content;flex:0 0 auto}
.sejm-record-nav{display:flex;gap:7px;overflow-x:auto}
.sejm-record-nav button{min-width:max-content;flex:1 0 auto;font-size:14px}
.law-record-tabs{gap:6px;overflow-x:auto}
.law-record-tabs button{min-width:max-content;font-size:14px}
.judgment-record-tabs button{min-height:62px;padding:10px;grid-template-columns:34px minmax(0,1fr);gap:11px;text-align:left}
.judgment-record-tabs button>i{width:34px;height:34px;font-size:13px}
.judgment-record-tabs button>span b{font-size:14px;font-weight:900;line-height:1.25}
.judgment-record-tabs button>span small{margin-top:4px;font-size:13px;line-height:1.35}
.judgment-tab-content{padding:34px}
.judgment-tab-content :is(.judgment-prose,.judgment-verdict,blockquote){font-size:17px;line-height:1.8}

.aml-alert-row div small{font-size:13px}
.aml-alert-row div b{font-size:14px;line-height:1.4}
.aml-alert-row div p{font-size:13px;line-height:1.55}
.aml-alert-row nav a{font-size:13px}
.aml-source{font-size:13px}
.forum-post p,.thread p,.message-bubble{font-size:16px;line-height:1.7}
.forum-post header b,.thread h3{font-size:17px}
.message small,.thread-stats{font-size:13px}

.full-record-hero{
  margin-bottom:18px;
  padding:32px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) minmax(220px,300px);
  gap:22px;
  align-items:center;
  border:1px solid #cbdce7;
  border-radius:22px;
  color:#fff;
  background:radial-gradient(circle at 88% 10%,rgba(224,177,73,.25),transparent 24rem),linear-gradient(135deg,#061d39,#0a4f7e);
  box-shadow:0 24px 65px rgba(8,43,72,.2);
}
.full-record-hero-icon{width:72px;height:72px;display:grid;place-items:center;border-radius:18px;color:#15344e;background:linear-gradient(145deg,#f6dfa3,#cf9a32);box-shadow:0 12px 30px rgba(4,28,51,.2)}
.full-record-hero-icon .ui-icon{width:34px;height:34px}
.full-record-hero .eyebrow{color:#f3cf79}
.full-record-hero h1{margin:6px 0 8px;color:#fff;font:700 clamp(32px,3vw,46px)/1.08 var(--serif)}
.full-record-hero p{margin:0;color:#d4e2ed;font-size:16px}
.full-record-hero .tags{margin-top:15px}
.full-record-hero>aside{padding:20px;display:grid;gap:5px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.08)}
.full-record-hero>aside small{color:#bad1e2;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.full-record-hero>aside b{color:#f4d88f;font:700 38px var(--serif)}
.full-record-hero>aside span{color:#d6e3ed;font-size:13px;line-height:1.55}
.full-record-workspace{overflow:hidden}
.full-record-tabs{
  padding:10px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  border-bottom:1px solid #dce6ed;
  background:#f3f7fa;
}
.full-record-tabs button{
  min-height:68px;
  padding:11px 15px;
  display:grid;
  align-content:center;
  gap:4px;
  border:1px solid #d4e0e8;
  border-radius:12px;
  color:var(--tab-text);
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.full-record-tabs button b{font-size:15px;font-weight:900}
.full-record-tabs button small{color:var(--tab-muted);font-size:13px;font-weight:700}
.full-record-tabs button:hover{border-color:#9fc3d9;background:#f8fcff}
.full-record-tabs button.active{color:#fff;border-color:#064975;background:linear-gradient(145deg,#0b679d,#073c67);box-shadow:0 10px 24px rgba(7,60,103,.2)}
.full-record-tabs button.active small{color:#cde2ef}
.full-record-panels>section{display:none;padding:28px}
.full-record-panels>section.active{display:block}
.full-record-content>header{margin-bottom:20px;padding-bottom:18px;display:flex;gap:13px;align-items:center;border-bottom:1px solid #dce5eb}
.full-record-content>header>span{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;color:#08669f;background:#e8f4fa}
.full-record-content>header .ui-icon{width:23px;height:23px}
.full-record-content>header small{display:block;color:#8a6826;font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.full-record-content>header h2{margin:4px 0 0;color:#133b59;font:700 27px var(--serif)}
.full-record-fields{margin:0;display:grid;gap:10px}
.full-record-fields>div{padding:14px 16px;display:grid;grid-template-columns:minmax(170px,250px) minmax(0,1fr);gap:18px;border:1px solid #dce5eb;border-radius:12px;background:#fff}
.full-record-fields>div:nth-child(even){background:#f8fafc}
.full-record-fields dt{color:#385872;font-size:14px;font-weight:900;line-height:1.4}
.full-record-fields dt small{margin-top:3px;display:block;color:#8a9ba9;font:600 13px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace}
.full-record-fields dd{min-width:0;margin:0;color:#243f57;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.full-record-fields .full-record-fields{padding:10px;border-left:3px solid #b7d4e5;border-radius:10px;background:#f3f8fb}
.full-record-array{margin:0;padding:0;display:grid;gap:10px;list-style:none}
.full-record-array>li{padding:12px;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;border:1px solid #dce6ed;border-radius:11px;background:#f8fafc}
.full-record-index{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#0a6096;font-size:13px;font-weight:900}
.full-record-text{white-space:pre-wrap}
.full-record-text.long{display:block;padding:14px;border-left:4px solid #d4a23f;border-radius:8px;background:#fffdf7;line-height:1.8}
.full-record-number{color:#075f96;font-weight:900}
.full-record-boolean{padding:4px 9px;display:inline-flex;border-radius:999px;color:#0d714f;background:#e6f7ef;font-weight:850}
.full-record-empty{color:#7f91a0;font-style:italic}
.full-record-json,.sejm-json-preview{
  max-height:none;
  margin:0;
  padding:22px;
  overflow:auto;
  border:1px solid #284d69;
  border-radius:14px;
  color:#e8f3fa;
  background:#092641;
  font:13px/1.72 ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.full-record-embedded{padding:26px}

/* Responsive record lists replace wide data tables. */
.record-list-card{container-type:inline-size;overflow:hidden}
.data-record-list,.case-record-list,.document-record-list{min-width:0}
.case-list-row,.document-record-row{position:relative}
.record-list-tools{padding:12px 15px;display:grid;grid-template-columns:auto minmax(150px,1fr) auto auto;gap:12px;align-items:center;border-bottom:1px solid #dce5eb;background:#fbfcfd}
.record-select-all{display:flex;align-items:center;gap:8px;color:#35536d;font-size:13px;font-weight:850;white-space:nowrap}
.record-select-all input,.record-select input{width:18px;height:18px;accent-color:#0b679f}
.record-list-summary b,.record-list-summary small{display:block}.record-list-summary b{color:#173b58;font-size:13px}.record-list-summary small{margin-top:2px;color:#7b8d9d;font-size:13px}
.record-sort,.record-list-actions{display:flex;align-items:center;gap:7px}
.record-sort label{min-height:40px;padding:0 10px;display:flex;align-items:center;gap:8px;border:1px solid #d5e0e8;border-radius:10px;background:#fff}
.record-sort label span{color:#718598;font-size:13px;font-weight:800}.record-sort select{min-width:130px;border:0;outline:0;color:#244760;background:transparent;font-weight:800}
.record-sort button,.record-list-actions button{min-height:40px;padding:0 13px;border:1px solid #d5e0e8;border-radius:10px;color:#274963;background:#fff;font-weight:850;cursor:pointer}
.record-sort button:hover,.record-list-actions button:hover{border-color:#9fc4d8;color:#075f97;background:#f3f9fc}
.data-record-head,.data-record-row{display:grid;grid-template-columns:36px minmax(220px,1.55fr) minmax(105px,.72fr) minmax(135px,.85fr) minmax(125px,.8fr) minmax(105px,.65fr) 108px;gap:13px;align-items:center}
.data-record-head{min-height:48px;padding:0 15px;color:#687c8f;background:#f4f7f9;font-size:13px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.data-record-row{min-width:0;padding:16px 15px;border-top:1px solid #e1e8ed;background:#fff;transition:background .18s ease,box-shadow .18s ease}
.data-record-row:hover{background:#f8fbfd;box-shadow:inset 4px 0 #1475b3}
.data-record-row[hidden]{display:none}
.record-select{display:grid;place-items:center}.record-primary,.record-field,.record-action{min-width:0}
.record-primary .cell-title{min-width:0;display:grid;gap:4px}.record-primary .cell-title b{color:#123c5e;font-size:16px}.record-primary .cell-title small{color:#697f92;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.record-field{color:#35536d;font-size:13px;line-height:1.45}.record-field::before{display:none}
.record-progress{display:grid;grid-template-columns:minmax(50px,1fr) auto;gap:8px;align-items:center}.record-progress small{color:#61788b;font-size:13px;font-weight:850}
.record-action .btn{width:100%;min-height:40px;justify-content:center;white-space:nowrap}
.document-record-list .data-record-head,.document-record-list .data-record-row{grid-template-columns:36px minmax(230px,1.65fr) minmax(120px,.85fr) minmax(110px,.7fr) 85px 80px 108px}

/* Document quick views belong to the left navigation, not a horizontal rail. */
.document-library-quick{padding:12px 8px 6px;border-bottom:1px solid #e0e7ed}
.document-library-quick>small,.document-nav-label{padding:0 8px 7px;display:block;color:#8798a6;font-size:13px!important;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.document-library-quick .filter-tabs{margin:0;padding:0;display:grid;gap:5px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.document-library-quick .filter-tabs button{width:100%;min-height:44px;padding:8px 10px;display:flex;justify-content:space-between;flex:initial;border:1px solid transparent;border-radius:10px;text-align:left;white-space:normal}
.document-library-quick .filter-tabs button.active{border-color:#0a5a8b;background:linear-gradient(145deg,#0c6b9f,#08466f)}
.document-library-quick .filter-tabs button span{flex:0 0 auto}
.document-library-nav>nav>.document-nav-label{grid-column:1/-1}
.ct-evidence-list{overflow:hidden;border:1px solid #d9e3e9;border-radius:14px;background:#fff}
.ct-evidence-head,.ct-evidence-row{display:grid;grid-template-columns:minmax(230px,1.6fr) 70px 105px minmax(135px,.9fr) 75px 150px;gap:12px;align-items:center}
.ct-evidence-head{min-height:46px;padding:0 14px;color:#687e90;background:#f4f7f9;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.ct-evidence-row{padding:14px;border-top:1px solid #e1e8ed;color:#35536d;font-size:13px}
.ct-evidence-row[hidden]{display:none}.ct-evidence-row:hover{background:#f8fbfd}
.ct-evidence-row>div{min-width:0}.ct-evidence-row>div::before{display:none}
.ct-evidence-action .btn{width:100%;justify-content:center;white-space:nowrap}
.interest-archive-list{overflow:hidden;border:1px solid #d9e3e9;border-radius:12px}
.interest-archive-head,.interest-archive-row{display:grid;gap:10px;align-items:center}
.interest-archive-head.reference,.interest-archive-row.reference{grid-template-columns:minmax(145px,1.25fr) repeat(3,minmax(90px,.75fr))}
.interest-archive-head.commercial,.interest-archive-row.commercial{grid-template-columns:minmax(145px,1.25fr) repeat(2,minmax(110px,.9fr))}
.interest-archive-head{min-height:42px;padding:0 12px;color:#677d8f;background:#f3f7f9;font-size:13px;font-weight:900;text-transform:uppercase}
.interest-archive-row{min-height:46px;padding:9px 12px;border-top:1px solid #e2e8ed;color:#35536d;background:#fff;font-size:13px}
.interest-archive-row:nth-child(odd){background:#f9fbfc}.interest-archive-row>span::before{display:none}
.search-results-layout{margin-top:16px;display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:start}
.search-results-layout>.card{margin-top:0!important;min-width:0}
.search-type-nav{position:sticky;top:96px;overflow:hidden}
.search-type-nav>header{padding:18px;border-bottom:1px solid #dce5eb}.search-type-nav>header h2{margin:4px 0;color:#143b59;font:700 23px var(--serif)}.search-type-nav>header p{margin:7px 0 0;color:#718598;font-size:13px;line-height:1.5}
.search-type-list.filter-tabs{margin:0;padding:9px;display:grid;gap:5px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.search-type-list.filter-tabs button{width:100%;min-height:46px;padding:9px 11px;display:flex;justify-content:space-between;flex:initial;border:1px solid transparent;border-radius:10px;text-align:left;white-space:normal}
.search-type-list.filter-tabs button.active{border-color:#0a5b8c;background:linear-gradient(145deg,#0c6b9f,#08466f)}
.search-type-list.filter-tabs button span{flex:0 0 auto}

@container (max-width:920px){
  .record-list-tools{padding:12px;grid-template-columns:1fr 1fr}
  .record-sort{grid-column:1/-1}.record-sort label{min-width:0;flex:1}.record-sort select{min-width:0;width:100%}
  .record-list-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.record-list-actions button{width:100%}
  .data-record-head{display:none}
  .data-record-row,.document-record-list .data-record-row{margin:10px;padding:14px;grid-template-columns:28px minmax(0,1fr);gap:10px 12px;border:1px solid #d8e3ea;border-radius:14px;box-shadow:0 9px 24px rgba(14,47,72,.06)}
  .record-select{grid-column:1;grid-row:1}.record-primary{grid-column:2;grid-row:1}
  .record-field,.record-action{grid-column:2}.record-field{padding-top:9px;display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,1fr);gap:10px;border-top:1px solid #e4eaee}
  .record-field::before{content:attr(data-label);display:block;color:#74889a;font-size:13px;font-weight:850}
  .record-progress{grid-template-columns:minmax(120px,.65fr) minmax(0,1fr) auto}.record-progress::before{grid-column:1}.record-progress .progress{grid-column:2}.record-progress small{grid-column:3}
  .record-action .btn{width:100%}
}

@media(max-width:1100px){
  .full-record-hero{grid-template-columns:auto minmax(0,1fr)}
  .full-record-hero>aside{grid-column:1/-1}
  .full-record-tabs{grid-template-columns:1fr 1fr}
  .law-record-tabs{display:flex}
  .record-list-tools{grid-template-columns:auto 1fr auto}.record-list-actions{grid-column:1/-1;justify-content:flex-end}
  .data-record-head,.data-record-row{grid-template-columns:32px minmax(210px,1.35fr) minmax(95px,.7fr) minmax(120px,.8fr) minmax(112px,.75fr) minmax(90px,.6fr) 96px}
}
@media(max-width:760px){
  body{font-size:17px}
  .content{font-size:15px}
  .content :is(p,li,dd,blockquote){font-size:15px}
  .content :is(small,.muted){font-size:13px}
  .record-tabs .tabs,:is(.filter-tabs,.law-result-tabs,.judge-assets-tabs,.aml-alert-tabs,.registry-record-nav,.sejm-record-nav,.law-record-tabs){flex-wrap:nowrap;overflow-x:auto}
  :is(.tabs,.filter-tabs,.law-result-tabs,.judge-assets-tabs,.aml-alert-tabs,.registry-record-nav,.sejm-record-nav,.law-record-tabs) button,.tabs a{font-size:14px}
  .judgment-record-tabs{display:flex;position:static;overflow-x:auto;border-right:0;border-bottom:1px solid #dce5eb}
  .judgment-record-tabs .judgment-tabs-heading{min-width:190px}
  .judgment-record-tabs button{min-width:190px;flex:0 0 190px}
  .full-record-hero{padding:22px;grid-template-columns:1fr}
  .full-record-hero-icon{width:58px;height:58px}
  .full-record-hero>aside{grid-column:auto}
  .full-record-tabs{display:flex;overflow-x:auto}
  .full-record-tabs button{min-width:210px;flex:0 0 210px}
  .full-record-panels>section{padding:16px}
  .full-record-fields>div{grid-template-columns:1fr;gap:8px;padding:13px}
  .full-record-fields dt{padding-bottom:7px;border-bottom:1px solid #e3eaef}
  .full-record-content>header h2{font-size:23px}
  .full-record-json,.sejm-json-preview{padding:15px;font-size:13px}
  .record-list-tools{padding:12px;grid-template-columns:1fr 1fr}.record-select-all,.record-list-summary{min-width:0}.record-sort{grid-column:1/-1}.record-sort label{min-width:0;flex:1}.record-sort select{min-width:0;width:100%}.record-list-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.record-list-actions button{width:100%}
  .data-record-head{display:none}
  .data-record-row,.document-record-list .data-record-row{margin:10px;padding:14px;grid-template-columns:28px minmax(0,1fr);gap:10px 12px;border:1px solid #d8e3ea;border-radius:14px;box-shadow:0 9px 24px rgba(14,47,72,.06)}
  .data-record-row:first-of-type{margin-top:12px}.data-record-row:last-child{margin-bottom:12px}
  .record-select{grid-column:1;grid-row:1}.record-primary{grid-column:2;grid-row:1}
  .record-field,.record-action{grid-column:2}.record-field{padding-top:9px;display:grid;grid-template-columns:minmax(105px,.65fr) minmax(0,1fr);gap:10px;border-top:1px solid #e4eaee}
  .record-field::before{content:attr(data-label);display:block;color:#74889a;font-size:13px;font-weight:850}
  .record-progress{grid-template-columns:minmax(105px,.65fr) minmax(0,1fr) auto}.record-progress::before{grid-column:1}.record-progress .progress{grid-column:2}.record-progress small{grid-column:3}
  .record-action .btn{width:100%}
  .document-library-quick .filter-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible}
  .document-library-nav>nav{display:grid;grid-template-columns:1fr 1fr}
  .search-results-layout{grid-template-columns:1fr}.search-type-nav{position:static}.search-type-nav>header{padding:14px}.search-type-list.filter-tabs{grid-template-columns:1fr 1fr}
  .ct-evidence-head,.interest-archive-head{display:none}
  .ct-evidence-row{margin:10px;padding:13px;grid-template-columns:1fr;border:1px solid #d9e3e9;border-radius:12px}
  .ct-evidence-row>div:not(.ct-evidence-source):not(.ct-evidence-action){padding-top:8px;display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;border-top:1px solid #e3e9ed}
  .ct-evidence-row>div::before{content:attr(data-label);display:block;color:#74899b;font-size:13px;font-weight:850}
  .ct-evidence-source::before,.ct-evidence-action::before{display:none!important}
  .interest-archive-row.reference,.interest-archive-row.commercial{margin:9px;padding:11px;grid-template-columns:1fr;border:1px solid #d9e3e9;border-radius:11px}
  .interest-archive-row>span{display:grid;grid-template-columns:minmax(125px,.8fr) 1fr;gap:9px}
  .interest-archive-row>span::before{content:attr(data-label);display:block;color:#74889a;font-weight:850}
}

/* Compact professional workspace: dense, legible and consistent across modules. */
body.workspace-page{font-size:14px;line-height:1.45}
body.workspace-page .content{padding:18px;font-size:14px}
body.workspace-page .content :is(p,li,dd,blockquote){font-size:13px;line-height:1.55}
body.workspace-page .content :is(small,.muted){font-size:13px;line-height:1.45}
body.workspace-page .content>.page-head{min-height:54px;margin-bottom:12px}
body.workspace-page .content>.page-head h1{font-size:clamp(27px,2.3vw,34px);line-height:1.03}
body.workspace-page .content>.page-head p{max-width:76ch;margin-top:5px;font-size:13px;line-height:1.5}
body.workspace-page .eyebrow{font-size:13px;letter-spacing:.12em}
body.workspace-page .card{border-radius:14px;box-shadow:0 8px 26px rgba(20,42,68,.065)}
body.workspace-page .card-head{min-height:54px;padding:13px 15px;gap:10px}
body.workspace-page .card-head h2,
body.workspace-page .card-head h3{font-size:18px;line-height:1.12}
body.workspace-page .card-head p{margin-top:4px;font-size:13px;line-height:1.45}
body.workspace-page .card-body{padding:15px}
body.workspace-page .btn{min-height:36px;padding:0 12px;border-radius:9px;font-size:13px}
body.workspace-page .badge{padding:4px 8px;font-size:13px}
body.workspace-page :is(input,select,textarea){font-size:13px}
body.workspace-page :is(.filters input,.filters select,.entity-lookup input,.entity-lookup select,.judgment-filter-panel input,.judgment-filter-panel select,.aml-filter-bar input,.aml-filter-bar select){min-height:38px;height:auto}
body.workspace-page .module-canvas-scroll{padding:10px 10px 58px}
body.workspace-page .module-workspace{border-radius:16px}
body.workspace-page .module-workspace-bar{min-height:48px}
body.workspace-page .record-hero{padding:16px}
body.workspace-page .record-title h1{font-size:26px}
body.workspace-page .record-title p{font-size:13px}
body.workspace-page .metric{padding:14px}
body.workspace-page .metric b{font-size:28px}
body.workspace-page .empty-state{padding:24px}
body.workspace-page .empty-state b{font-size:15px}
body.workspace-page .empty-state p{font-size:13px}

/* Pointer clicks stay calm; keyboard focus remains clear and WCAG-visible. */
:where(a,button,input,select,textarea,[tabindex]):focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #1674b2!important;outline-offset:2px!important;box-shadow:0 0 0 3px rgba(22,116,178,.12)!important}
:where(input,select,textarea):focus:not(:focus-visible){border-color:#cbd8e2!important}

/* Searchable selects. The native control remains the form value and event source. */
.smart-select{min-width:0;position:relative;display:block}
.smart-select-native{width:1px!important;height:1px!important;padding:0!important;position:absolute!important;opacity:0!important;pointer-events:none!important}
.smart-select-trigger{width:100%;min-height:38px;padding:7px 10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #ccd9e3;border-radius:9px;color:#244a65;background:#fff;font:800 13px/1.35 var(--sans);text-align:left;cursor:pointer}
.smart-select-trigger [data-smart-select-value]{min-width:0;overflow-wrap:anywhere}
.smart-select-trigger>i{color:#6d8294;font-size:13px;font-style:normal}
.smart-select.open .smart-select-trigger{border-color:#4a8bb8;background:#fbfdff}
.smart-select-panel{width:max(100%,260px);max-width:min(360px,calc(100vw - 32px));padding:8px;position:absolute;z-index:80;left:0;top:calc(100% + 5px);border:1px solid #cbd9e3;border-radius:11px;background:#fff;box-shadow:0 18px 48px rgba(8,39,66,.2)}
.smart-select-panel>label{min-height:36px;padding:0 9px;display:flex!important;align-items:center;gap:7px;border:1px solid #d7e2e9;border-radius:8px;background:#f7fafc}
.smart-select-panel>label .ui-icon{width:15px;color:#1a6d9f}
.smart-select-panel input{width:100%;min-width:0;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important}
.smart-select-options{max-height:238px;margin-top:6px;display:grid;gap:2px;overflow:auto}
.smart-select-options button{width:100%;min-height:34px;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:7px;color:#294d67;background:transparent;font:750 13px/1.35 var(--sans);text-align:left;overflow-wrap:anywhere;cursor:pointer}
.smart-select-options button:hover,.smart-select-options button[aria-selected="true"]{color:#075b90;background:#edf6fb}
.smart-select-options button .ui-icon{width:14px;flex:0 0 auto;color:#18805f}
.smart-select-panel>[data-smart-select-empty]{padding:12px;display:block;color:#788b9c;text-align:center}

/* Szybkie widoki become a real side rail instead of a wrapped horizontal bar. */
.filter-panel.filter-panel-with-rail{display:grid;grid-template-columns:168px minmax(0,1fr);grid-template-rows:auto auto auto;overflow:visible}
.filter-panel-with-rail>.filter-tabs{grid-column:1;grid-row:1/4;margin:0;padding:8px;display:grid;align-content:start;gap:4px;overflow:visible;border:0;border-right:1px solid #dce5eb;border-radius:0;background:#f5f8fa;box-shadow:none}
.filter-panel-with-rail>.filter-panel-head,
.filter-panel-with-rail>.filter-core,
.filter-panel-with-rail>.advanced-filters{grid-column:2}
.filter-panel-with-rail>.filter-tabs button,
.document-library-quick .filter-tabs button{width:100%;min-width:0;min-height:38px;padding:7px 8px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:7px;align-items:center;flex:none;border:1px solid transparent;border-radius:8px;color:#48647c;background:transparent;text-align:left;white-space:normal}
.filter-panel-with-rail>.filter-tabs button i,
.document-library-quick .filter-tabs button i{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;color:#0f6399;background:#e6f2f8;font-style:normal}
.filter-panel-with-rail>.filter-tabs button i .ui-icon,
.document-library-quick .filter-tabs button i .ui-icon{width:14px;height:14px}
.filter-panel-with-rail>.filter-tabs button b,
.document-library-quick .filter-tabs button b{min-width:0;font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.filter-panel-with-rail>.filter-tabs button span,
.document-library-quick .filter-tabs button span{min-width:22px;padding:3px 5px;border-radius:999px;color:#60768a;background:#e5ebf0;font-size:13px;text-align:center}
.filter-panel-with-rail>.filter-tabs button.active,
.document-library-quick .filter-tabs button.active{color:#fff;border-color:#074c79;background:linear-gradient(145deg,#0c669c,#073e67)}
.filter-panel-with-rail>.filter-tabs button.active i,
.document-library-quick .filter-tabs button.active i{color:#17364f;background:linear-gradient(145deg,#f5dc99,#cd9836)}
.filter-panel-with-rail>.filter-tabs button.active span,
.document-library-quick .filter-tabs button.active span{color:#fff;background:rgba(255,255,255,.16)}
.filter-panel-head{padding:11px 13px}
.filter-panel-title b{font-size:13px}
.filter-panel-title small{font-size:13px}
.filter-core{padding:10px 12px;gap:8px}
.advanced-filters{padding:10px 12px}
.document-library-quick{padding:7px 5px}
.document-library-quick .filter-tabs{display:grid!important;grid-template-columns:1fr!important;gap:3px!important}

/* AML profile: one active work panel, sticky themed rail, no 15k-pixel document. */
.aml-profile-hero{margin-bottom:10px;padding:18px;grid-template-columns:minmax(0,1.45fr) minmax(245px,.55fr);gap:18px;border-radius:17px}
.aml-profile-identity{gap:13px}
.aml-profile-mark{width:54px;height:54px;border-radius:14px}
.aml-profile-mark .ui-icon{width:26px;height:26px}
.aml-profile-identity h1{max-width:34ch;margin:4px 0 5px;font-size:clamp(25px,2.35vw,34px);line-height:1.04;overflow-wrap:anywhere}
.aml-profile-identity p{font-size:13px!important}
.aml-profile-hero>aside{padding:13px;gap:10px}
.aml-profile-hero>aside p{font-size:13px!important;line-height:1.4!important}
.aml-risk-gauge{width:72px;height:72px}
.aml-decision-strip{margin-bottom:10px}
.aml-decision-strip>article,.aml-decision-strip>div{min-height:78px;padding:11px}
.aml-decision-strip small{font-size:13px}
.aml-decision-strip b{font-size:20px}
.aml-decision-strip span{font-size:13px}
.aml-panel-workspace{min-width:0;display:grid;grid-template-columns:184px minmax(0,1fr);gap:10px;align-items:start}
.aml-panel-stack{min-width:0}
.aml-panel-stack>[data-aml-profile-panel]{margin:0;scroll-margin-top:12px}
.aml-panel-stack>[data-aml-profile-panel][hidden]{display:none!important}
.aml-profile-nav.entity-section-nav{margin:0;padding:7px;position:sticky;top:8px;z-index:8;align-self:start;display:grid;gap:3px;overflow:visible;border-radius:13px;background:#f5f8fa;box-shadow:0 8px 24px rgba(11,45,72,.08)}
.aml-profile-nav.entity-section-nav a{min-width:0;min-height:40px;padding:6px 8px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;border:1px solid transparent;border-radius:9px;color:#426079;font-size:13px;font-weight:850;line-height:1.25;white-space:normal}
.aml-profile-nav.entity-section-nav a:hover{color:#075c91;border-color:#c8dce8;background:#edf6fb}
.aml-profile-nav.entity-section-nav a.active{color:#fff;border-color:#074a76;background:linear-gradient(145deg,#0c659a,#073e66);box-shadow:0 7px 18px rgba(7,62,102,.16)}
.aml-profile-nav-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#0b679e;background:#e3f1f7}
.aml-profile-nav-icon .ui-icon{width:15px;height:15px}
.aml-profile-nav a.active .aml-profile-nav-icon{color:#183850;background:linear-gradient(145deg,#f5dc98,#ca9231)}
.aml-profile-nav-label{min-width:0;overflow-wrap:anywhere}
.aml-profile-grid{gap:10px}
.aml-profile-card,.aml-profile-section{padding:13px;border-radius:14px}
.aml-identifier-grid,.aml-verification-grid,.aml-person-grid{gap:7px}
.aml-verification-grid>article,.aml-person-card{padding:10px}
.aml-registry-columns,.aml-registry-lists,.aml-rdf-layout,.aml-compliance-grid,.aml-evidence-layout{gap:8px}
.aml-msig-entry,.aml-rdf-report{padding:12px}
.aml-msig-entry h3,.aml-rdf-report h3{font-size:15px}
.aml-msig-excerpt{font-size:13px!important;line-height:1.55!important}

/* Ustawy: vertical category rail inside the result workspace. */
.law-results-card{display:grid;grid-template-columns:154px minmax(0,1fr);align-content:start}
.law-results-card>header{grid-column:1/-1;min-height:64px;padding:13px 15px}
.law-results-card>header h2{font-size:21px}
.law-result-tabs{grid-column:1;grid-row:2/5;margin:0;padding:7px;display:grid;align-content:start;gap:4px;overflow:visible;border-right:1px solid #dce5eb;border-bottom:0;background:#f5f8fa}
.law-result-tabs button{width:100%;min-width:0;min-height:40px;padding:7px 8px;display:grid;grid-template-columns:25px minmax(0,1fr);gap:7px;align-items:center;border-radius:8px;font-size:13px;text-align:left;white-space:normal}
.law-result-tabs button .ui-icon{width:15px;height:15px}
.law-result-tabs button span{min-width:0;overflow-wrap:anywhere}
.law-index-list,.law-no-results,.law-results-card>footer{grid-column:2;min-width:0}
.law-index-list .law-row{padding:13px 15px}

/* Forum: view mode is a side switcher, search and category stay full-width. */
.forum-toolbar{padding:9px;display:grid;grid-template-columns:154px minmax(0,1fr);grid-template-rows:auto auto;gap:7px}
.forum-toolbar>label{grid-column:2;grid-row:1;min-height:38px;height:38px}
.forum-toolbar>select,.forum-toolbar>.smart-select{grid-column:2;grid-row:2}
.forum-view-tabs{grid-column:1;grid-row:1/3;padding:5px;display:grid;grid-template-columns:1fr;gap:3px;border-right:1px solid #dce5eb;border-radius:9px;background:#f3f7f9}
.forum-view-tabs button{width:100%;min-height:38px;padding:6px 8px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;align-items:center;text-align:left}
.forum-view-tabs button .ui-icon{width:15px;height:15px}
.forum-view-tabs button span{min-width:0;overflow-wrap:anywhere}

/* Record detail workspaces use the same left-rail pattern. */
.full-record-workspace{display:grid;grid-template-columns:184px minmax(0,1fr)}
.full-record-tabs{padding:8px;display:grid;grid-template-columns:1fr;align-content:start;gap:4px;border-right:1px solid #dce5eb;border-bottom:0;background:#f4f7f9}
.full-record-tabs button{min-height:52px;padding:8px 10px;border-radius:9px}
.full-record-tabs button b{font-size:13px}
.full-record-tabs button small{font-size:13px}
.full-record-panels{min-width:0}
.full-record-panels>section{padding:18px}
.judgment-tabs-card{display:grid;grid-template-columns:166px minmax(0,1fr)}
.judgment-record-tabs{padding:7px;display:grid;align-content:start;gap:3px;overflow:visible;border-right:1px solid #dce5eb;border-bottom:0;background:#f4f7f9}
.judgment-record-tabs button{min-width:0;min-height:40px;padding:7px 8px;border-radius:8px;text-align:left;white-space:normal}
.judgment-record-tabs button.active{color:#fff;background:linear-gradient(145deg,#0b659b,#073e68)}
.judgment-record-tabs button.active::after{display:none}
.judgment-tab-content{min-width:0;padding:18px}
.judgment-record-hero{min-height:285px;padding:22px}
.judgment-record-hero>h1{font-size:clamp(30px,3vw,42px)}
.judgment-record-hero>p{font-size:13px!important}
.judgment-record-meta{margin-top:16px;padding-top:14px}

@media(max-width:900px){
  body.workspace-page .content{padding:12px}
  .filter-panel.filter-panel-with-rail{grid-template-columns:142px minmax(0,1fr)}
  .aml-panel-workspace{grid-template-columns:58px minmax(0,1fr)}
  .aml-profile-nav.entity-section-nav{padding:5px}
  .aml-profile-nav.entity-section-nav a{min-height:40px;padding:5px;grid-template-columns:1fr;place-items:center}
  .aml-profile-nav-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .aml-profile-nav-icon{width:32px;height:32px}
  .aml-profile-nav-icon .ui-icon{width:17px;height:17px}
  .aml-profile-hero{grid-template-columns:1fr}
  .aml-profile-hero>aside{grid-template-columns:72px minmax(0,1fr) auto}
  .law-results-card{grid-template-columns:132px minmax(0,1fr)}
  .forum-toolbar{grid-template-columns:132px minmax(0,1fr)}
  .full-record-workspace{grid-template-columns:146px minmax(0,1fr)}
  .judgment-tabs-card{grid-template-columns:142px minmax(0,1fr)}
}

@media(max-width:560px){
  body.workspace-page{font-size:13px}
  body.workspace-page .content{padding:8px}
  body.workspace-page .content>.page-head h1{font-size:25px}
  body.workspace-page .content>.page-head p{display:none}
  body.workspace-page .content :is(p,li,dd,blockquote){font-size:13px}
  .filter-panel.filter-panel-with-rail{grid-template-columns:58px minmax(0,1fr)}
  .filter-panel-with-rail>.filter-tabs button{grid-template-columns:1fr;place-items:center}
  .filter-panel-with-rail>.filter-tabs button b,
  .filter-panel-with-rail>.filter-tabs button span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .aml-panel-workspace{grid-template-columns:52px minmax(0,1fr);gap:6px}
  .aml-profile-nav-icon{width:30px;height:30px}
  .aml-profile-card,.aml-profile-section{padding:10px}
  .aml-profile-hero{padding:14px}
  .aml-profile-identity{grid-template-columns:42px minmax(0,1fr)}
  .aml-profile-mark{width:42px;height:42px}
  .aml-profile-identity h1{font-size:22px}
  .law-results-card{grid-template-columns:54px minmax(0,1fr)}
  .law-result-tabs button{grid-template-columns:1fr;place-items:center}
  .law-result-tabs button span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .forum-toolbar{grid-template-columns:54px minmax(0,1fr)}
  .forum-view-tabs button{grid-template-columns:1fr;place-items:center}
  .forum-view-tabs button span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .full-record-workspace{grid-template-columns:58px minmax(0,1fr)}
  .full-record-tabs button{min-height:44px;padding:6px;place-items:center;text-align:center}
  .full-record-tabs button small{display:none}
  .full-record-tabs button b{font-size:13px;overflow-wrap:anywhere}
  .judgment-tabs-card{grid-template-columns:58px minmax(0,1fr)}
  .judgment-record-tabs button{min-height:42px;padding:5px;font-size:0;text-align:center}
  .judgment-record-tabs button::first-letter{font-size:13px}
  .judgment-tab-content,.full-record-panels>section{padding:12px}
  .smart-select-panel{width:min(300px,calc(100vw - 28px))}
}

/* Ustawy: na tabletach i telefonach filtr kategorii jest paskiem, nie wąską szyną. */
@media(max-width:1000px){
  .law-results-card{display:block;min-width:0}
  .law-results-card>header{min-height:78px;padding:15px 16px}
  .law-result-tabs{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;padding:9px 11px;border-right:0;border-bottom:1px solid #dce5eb;background:#f6f9fb;scrollbar-width:thin}
  .law-result-tabs button{width:auto;min-width:max-content;min-height:42px;padding:0 12px;display:flex;grid-template-columns:none;gap:7px;align-items:center;justify-content:center;font-size:13px;white-space:nowrap}
  .law-result-tabs button span{position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip:auto;white-space:nowrap}
  .law-index-list,.law-no-results,.law-results-card>footer{display:block;min-width:0}
  .law-index-list{padding:10px}
  .legal-catalog-row{grid-template-columns:42px minmax(0,1fr) auto;gap:12px;padding:14px}
  .legal-catalog-row .law-index-meta{grid-column:auto;align-self:center;display:flex;justify-content:flex-end}
}
@media(max-width:560px){
  .law-results-card{border-radius:14px}
  .law-results-card>header{min-height:auto;padding:14px 13px;align-items:flex-start}
  .law-results-card>header h2{font-size:22px}
  .law-results-card>header p{margin-top:5px;line-height:1.4}
  .law-result-tabs{padding:8px;gap:6px}
  .law-result-tabs button{min-height:40px;padding:0 11px}
  .legal-catalog-row{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:12px}
  .legal-catalog-row .law-index-icon{width:36px;height:36px;font-size:20px}
  .legal-catalog-row .law-index-copy b{margin-top:4px;font-size:14px;line-height:1.35}
  .legal-catalog-row .law-index-copy>span{margin-top:5px;font-size:13px;line-height:1.35}
  .legal-catalog-row .law-index-copy em{display:none}
  .legal-catalog-row .law-index-meta{grid-column:2;justify-content:flex-start;margin-top:2px}
  .legal-catalog-row .law-index-meta .btn{min-height:38px;padding:0 10px}
  .law-results-card>footer{padding:11px 13px;line-height:1.4}
}

/* Every filter bar must fit its card without duplicate controls or horizontal scrolling. */
.registry-filter-panel{margin-bottom:12px;padding:10px;display:grid;grid-template-columns:minmax(250px,1.65fr) repeat(3,minmax(145px,1fr)) auto;gap:8px;align-items:end;overflow:visible}
.registry-filter-panel>label{min-width:0;display:grid;gap:5px;align-items:center}
.registry-filter-panel>label>span{color:#6b8092;font-size:13px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.registry-filter-panel .registry-search-control{grid-template-columns:24px minmax(0,1fr)}
.registry-filter-panel .registry-search-control>span{grid-column:1/-1}
.registry-filter-panel .registry-search-control>i{width:24px;height:38px;display:grid;place-items:center;color:#176a9c;font-style:normal}
.registry-filter-panel .registry-search-control>i .ui-icon{width:16px}
.registry-filter-panel .registry-search-control>input{width:100%;min-width:0;height:38px;padding:0 9px;border:1px solid #ccd9e3;border-radius:9px;background:#f9fbfc}
.registry-filter-panel .registry-filter-control>select{width:100%;min-width:0;height:38px}
.registry-filter-panel .registry-filter-control>.smart-select{width:100%;min-width:0}
.registry-filter-panel>[data-registry-count]{align-self:end;min-height:38px;padding:0 11px;display:flex;align-items:center;justify-content:center;border-radius:9px;white-space:nowrap}
:is(.registry-filter-panel,.document-filter-base,.aml-filter-bar,.filters,.forum-toolbar,.market-filters)>*{min-width:0}
:is(.registry-filter-panel,.document-filter-base,.aml-filter-bar,.filters,.forum-toolbar) .smart-select{max-width:100%}

/* Full chat workspace: stable split view, safe text wrapping and compact composer. */
body[data-page="chat"] .chat-shell,
body[data-page="chat"].workspace-page .chat-shell{grid-template-columns:minmax(270px,32%) minmax(0,1fr);border-radius:16px}
body[data-page="chat"] .conversation-list{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
body[data-page="chat"] .conversation-list>header{min-width:0;padding:13px 12px 9px}
body[data-page="chat"] .conversation-list>header>div{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:8px;align-items:center}
body[data-page="chat"] .conversation-list>header>div>span{min-width:0}
body[data-page="chat"] .conversation-list>header>div>span b{font-size:20px;line-height:1.05;overflow-wrap:normal;word-break:normal}
body[data-page="chat"] .conversation-list>header>label{min-width:0;height:38px;padding:0 10px}
body[data-page="chat"] .conversation-list>header>label input{min-width:0;font-size:13px}
body[data-page="chat"] .conversation-list>header>nav{margin-top:8px;padding:3px;display:grid;grid-template-columns:1fr 1fr;gap:3px}
body[data-page="chat"] .conversation-list>header>nav button{min-width:0;height:32px;padding:0 8px;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
body[data-page="chat"] [data-conversation-items]{min-width:0;padding:5px}
body[data-page="chat"] .conversation-list .conversation{min-width:0;min-height:70px;padding:8px;grid-template-columns:38px minmax(0,1fr) auto;gap:8px}
body[data-page="chat"] .conversation-list .conversation .avatar{width:38px;height:38px}
body[data-page="chat"] .conversation-list .conversation>span:nth-child(2)>span{min-width:0}
body[data-page="chat"] .conversation-list .conversation b{min-width:0;overflow:hidden;font-size:13px!important;line-height:1.3!important;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body[data-page="chat"] .conversation-list .conversation small{overflow:hidden;font-size:13px!important;line-height:1.35!important;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body[data-page="chat"] .conversation-list .conversation time{flex:0 0 auto;font-size:13px}
body[data-page="chat"] .chat-panel{min-width:0;grid-template-rows:58px auto minmax(0,1fr) auto}
body[data-page="chat"] .chat-head{min-width:0;padding:0 12px;grid-template-columns:auto 38px minmax(0,1fr) auto;gap:9px}
body[data-page="chat"] .chat-head .avatar{width:38px;height:38px}
body[data-page="chat"] .chat-head>div{min-width:0}
body[data-page="chat"] .chat-head>div>span{min-width:0;display:flex;align-items:center;gap:6px}
body[data-page="chat"] .chat-head>div>span b{min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body[data-page="chat"] .chat-head>div>span em{max-width:110px;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body[data-page="chat"] .chat-head>div>small{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body[data-page="chat"] .chat-context{min-width:0;min-height:42px;padding:6px 12px}
body[data-page="chat"] .chat-context>span{min-width:0}
body[data-page="chat"] .chat-context b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-page="chat"] .messages{min-width:0;padding:16px clamp(12px,2.2vw,24px)}
body[data-page="chat"] .messages .message-bubble{font-size:13px;line-height:1.55}
body[data-page="chat"] .chat-compose{min-height:60px;padding:8px 10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:end;border-top:1px solid #dbe4ea;background:#fff}
body[data-page="chat"] .chat-attach,
body[data-page="chat"] .chat-send{width:auto!important;min-width:40px;height:40px!important;padding:0 11px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d2dee7;border-radius:11px;color:#176393;background:#f2f7fa;font:850 13px var(--sans);cursor:pointer}
body[data-page="chat"] .chat-attach svg,
body[data-page="chat"] .chat-send svg{width:16px;height:16px}
body[data-page="chat"] .chat-send{color:#fff;border-color:#075084;background:linear-gradient(145deg,#0c6ba2,#074875);box-shadow:0 6px 15px rgba(7,72,117,.16)}
body[data-page="chat"] .chat-message-field{min-width:0;min-height:40px!important;padding:5px 11px!important;display:grid!important;align-items:center!important;border:1px solid #d1dde6!important;border-radius:12px!important;background:#f6f9fb!important;box-shadow:none!important}
body[data-page="chat"] .chat-message-field:has(textarea:focus-visible){border-color:#4b8bb7!important;box-shadow:0 0 0 2px rgba(25,111,167,.1)!important}
body[data-page="chat"] .chat-message-field textarea{width:100%;min-width:0;min-height:27px;max-height:104px;padding:4px 0;border:0!important;outline:0!important;resize:none;color:#264961;background:transparent;font:500 13px/1.45 var(--sans);box-shadow:none!important}
body[data-page="chat"] .chat-message-field textarea:focus,
body[data-page="chat"] .chat-message-field textarea:focus-visible{outline:0!important;box-shadow:none!important}
body[data-page="chat"] .chat-message-field>[data-chat-attachment]:empty{display:none!important}
body[data-page="chat"] .chat-message-field>[data-chat-attachment]{padding-top:3px;color:#936817;font-size:13px}

/* Date controls stay a toolbar, not a second form card. */
.chart-date-toolbar{min-height:52px;margin:8px 12px 3px;padding:7px 9px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center;overflow:visible;border-radius:10px;box-shadow:none}
.chart-date-toolbar>div{min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.chart-date-toolbar>div>span{flex:0 0 auto;font-size:13px;white-space:nowrap}
.chart-date-toolbar>div>span svg{width:14px}
.chart-date-toolbar label{min-width:0;display:flex;align-items:center;gap:4px;font-size:13px;white-space:nowrap}
.chart-date-toolbar input{width:118px;min-width:0;max-width:118px;height:30px;padding:0 6px;border-radius:7px;font-size:13px}
.chart-date-toolbar nav{padding:2px;display:flex;gap:2px;flex-wrap:nowrap;border-radius:8px}
.chart-date-toolbar nav button{height:28px;padding:0 8px;border-radius:6px;font-size:13px;white-space:nowrap}
.chart-date-toolbar output{grid-column:1/-1;min-width:0;font-size:13px;text-align:left;white-space:normal}

@media(max-width:1100px){
  .registry-filter-panel{grid-template-columns:minmax(230px,1.4fr) repeat(2,minmax(150px,1fr))}
  .registry-filter-panel .registry-search-control{grid-column:1/-1}
  .registry-filter-panel>[data-registry-count]{justify-self:stretch}
}

@media(max-width:900px){
  body[data-page="chat"] .content>.page-head{display:none}
  body[data-page="chat"] .module-workspace{grid-template-columns:1fr}
  body[data-page="chat"] .module-rail,
  body[data-page="chat"] .module-workspace-bar,
  body[data-page="chat"] .module-scroll-dock{display:none}
  body[data-page="chat"] .module-canvas{display:block}
  body[data-page="chat"].workspace-page .module-canvas-scroll{padding:0!important;overflow:hidden}
  body[data-page="chat"] .chat-overview{display:none}
  body[data-page="chat"] .chat-shell,
  body[data-page="chat"].workspace-page .chat-shell{height:calc(100dvh - 84px);min-height:440px;max-height:none;grid-template-columns:1fr;border-radius:13px}
  body[data-page="chat"] .conversation-list{grid-column:1;grid-row:1;border-right:0}
  body[data-page="chat"] .chat-panel{display:none;grid-column:1;grid-row:1}
  body[data-page="chat"] .chat-shell.conversation-open .conversation-list{display:none}
  body[data-page="chat"] .chat-shell.conversation-open .chat-panel{display:grid}
  body[data-page="chat"] [data-chat-back]{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:9px;color:#0b639a;background:#edf5fa}
  body[data-page="chat"] .chat-head{grid-template-columns:32px 36px minmax(0,1fr) auto}
  body[data-page="chat"] .chat-head .avatar{width:36px;height:36px}
}

@media(max-width:700px){
  .registry-filter-panel{grid-template-columns:1fr 1fr}
  .registry-filter-panel .registry-search-control{grid-column:1/-1}
  .registry-filter-panel>[data-registry-count]{grid-column:1/-1}
  .chart-date-toolbar{grid-template-columns:1fr}
  .chart-date-toolbar>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px}
  .chart-date-toolbar>div>span{grid-column:1/-1}
  .chart-date-toolbar label{display:grid;grid-template-columns:auto minmax(0,1fr)}
  .chart-date-toolbar input{width:100%;max-width:none}
  .chart-date-toolbar nav{width:max-content;max-width:100%;justify-self:start}
  .chart-date-toolbar output{grid-column:1}
}

@media(max-width:480px){
  .registry-filter-panel{grid-template-columns:1fr}
  .registry-filter-panel .registry-search-control,
  .registry-filter-panel>[data-registry-count]{grid-column:1}
  body[data-page="chat"] .chat-compose{grid-template-columns:38px minmax(0,1fr) 40px;padding:7px}
  body[data-page="chat"] .chat-attach,
  body[data-page="chat"] .chat-send{width:38px!important;min-width:38px;padding:0}
  body[data-page="chat"] .chat-attach span,
  body[data-page="chat"] .chat-send span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}
  body[data-page="chat"] .chat-head nav button:last-child{display:none}
}

/* Application views: module rail, contextual navigation, compact filters. */
body.workspace-page .content :is(h1,h2,h3,h4,b,strong,small,span,a,button,dt,dd){
  min-width:0;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none;
}
.module-context-nav{
  min-height:46px;
  margin:0 0 10px;
  padding:5px;
  display:flex;
  align-items:center;
  gap:4px;
  overflow-x:auto;
  border:1px solid #d7e2ea;
  border-radius:12px;
  background:#fff;
  box-shadow:0 5px 16px rgba(18,50,75,.045);
  scrollbar-width:thin;
}
.module-context-nav :is(a,button){
  min-height:34px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  border:0;
  border-radius:8px;
  color:#526d82;
  background:transparent;
  font:800 13px/1.2 var(--sans);
  white-space:nowrap;
  cursor:pointer;
}
.module-context-nav :is(a,button):hover{color:#0b6095;background:#edf5f9}
.module-context-nav :is(a,button).active{color:#fff;background:#0a5b8d}
.module-context-nav .ui-icon{width:15px;height:15px}
.lawyer-context-nav{width:100%}
.judgment-side-toggle{display:inline-flex;align-items:center;gap:6px}
.filter-panel-with-quickbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:hidden}
.filter-panel-with-quickbar>.filter-panel-head,
.filter-panel-with-quickbar>.filter-tabs,
.filter-panel-with-quickbar>.filter-core,
.filter-panel-with-quickbar>.advanced-filters{grid-column:1!important}
.filter-panel-with-quickbar>.filter-tabs{
  margin:0!important;
  padding:5px 10px!important;
  display:flex!important;
  align-items:center;
  gap:4px!important;
  overflow-x:auto!important;
  border:0!important;
  border-bottom:1px solid #dfe7ec!important;
  border-radius:0!important;
  background:#f6f9fb!important;
  box-shadow:none!important;
}
.filter-panel-with-quickbar>.filter-tabs button{
  width:auto!important;
  min-width:max-content!important;
  min-height:32px!important;
  padding:4px 9px!important;
  display:inline-flex!important;
  grid-template-columns:none!important;
  gap:6px!important;
  flex:0 0 auto!important;
  border-radius:7px!important;
  white-space:nowrap!important;
}
.filter-panel-with-quickbar>.filter-tabs button i{width:21px!important;height:21px!important}
.filter-panel-with-quickbar>.filter-tabs button b{font-size:13px!important;white-space:nowrap}
.filter-panel-with-quickbar>.filter-tabs button span{min-width:19px!important;padding:2px 5px!important;font-size:13px!important}

/* Case record: compact header and one real view at a time. */
body[data-page="case"] .page-head{margin-bottom:10px}
body[data-page="case"] .page-head>div>p{display:none}
body[data-page="case"] .page-head h1{font-size:25px}
body[data-page="case"] .case-media{display:none!important}
body[data-page="case"] .record-hero{
  min-height:0;
  margin-bottom:12px;
  padding:16px 18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  border:1px solid rgba(255,255,255,.12);
  border-radius:15px;
  box-shadow:0 12px 28px rgba(7,37,65,.13);
}
body[data-page="case"] .record-title{min-width:0;gap:12px}
body[data-page="case"] .record-icon{width:44px;height:44px;flex:0 0 44px}
body[data-page="case"] .record-icon .ui-icon{width:21px;height:21px}
body[data-page="case"] .record-title h1{
  max-width:70ch;
  margin:2px 0 3px;
  overflow:hidden;
  font-size:21px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-page="case"] .record-title p{font-size:13px}
body[data-page="case"] .record-meta{margin-top:7px;gap:5px}
body[data-page="case"] .record-meta .badge{padding:4px 7px;font-size:13px}
body[data-page="case"] .record-actions{gap:6px;flex-wrap:nowrap}
body[data-page="case"] .record-actions .btn{min-height:36px;padding:0 10px;font-size:13px;white-space:nowrap}
.case-view-workspace{
  min-width:0;
  display:grid;
  grid-template-columns:178px minmax(0,1fr);
  gap:10px;
  align-items:start;
}
.case-view-workspace>.record-tabs{
  margin:0;
  padding:6px;
  position:sticky;
  top:84px;
  border-radius:13px;
}
.case-view-workspace>.record-tabs .tabs{display:grid;grid-template-columns:1fr;gap:3px;overflow:visible}
.case-view-workspace>.record-tabs .tabs button{
  width:100%;
  min-height:39px;
  padding:6px 8px;
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:7px;
  align-items:center;
  border-radius:8px;
  text-align:left;
  white-space:normal;
}
.case-view-workspace>.record-tabs .tabs button i{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:7px;
  color:#0d679d;
  background:#e9f4f9;
  font-style:normal;
}
.case-view-workspace>.record-tabs .tabs button i .ui-icon{width:14px;height:14px}
.case-view-workspace>.record-tabs .tabs button span{
  overflow:hidden;
  font-size:13px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.case-view-workspace>.record-tabs .tabs button.active i{color:#173950;background:#e7c66f}
.case-view-workspace>[data-case-content]{min-width:0}
.case-view-workspace>[data-case-content]>.card:first-child{margin-top:0}
body[data-page="case"] .case-view-workspace>.ct-shell,
body[data-page="case"] .case-view-workspace>[data-case-content]>.legal-calculators{display:none!important}

/* Judgment record: full-width work area plus an on-demand information drawer. */
body[data-page="judgment"] .content{width:100%;max-width:none}
body[data-page="judgment"] .judgment-breadcrumb{margin-bottom:8px}
.judgment-record-layout{display:block!important}
.judgment-record-layout>main{width:100%;min-width:0}
.judgment-record-hero{
  min-height:0!important;
  padding:17px 19px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto auto!important;
  gap:6px 14px;
  border-radius:15px!important;
  background:linear-gradient(125deg,#062442,#0a4f82)!important;
  box-shadow:0 12px 30px rgba(8,43,73,.16)!important;
}
.judgment-record-actions{
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:start!important;
  display:flex!important;
  gap:5px!important;
  flex-wrap:wrap;
}
.judgment-record-actions .btn{min-height:34px!important;padding:0 9px!important;font-size:13px!important;white-space:nowrap}
.judgment-record-hero>.badge{grid-column:1!important;grid-row:1!important;justify-self:start}
.judgment-record-hero>h1{
  grid-column:1!important;
  grid-row:2!important;
  max-width:70ch!important;
  margin:1px 0!important;
  overflow:hidden;
  font-size:clamp(23px,2vw,31px)!important;
  line-height:1.16!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.judgment-record-hero>p{
  grid-column:1/-1!important;
  grid-row:3!important;
  max-width:110ch!important;
  margin:0!important;
  overflow:hidden!important;
  font-size:13px!important;
  line-height:1.5!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.judgment-record-meta{
  grid-column:1/-1!important;
  grid-row:4!important;
  margin-top:7px!important;
  padding-top:8px!important;
  grid-template-columns:repeat(5,minmax(120px,1fr))!important;
  gap:5px!important;
}
.judgment-record-meta>span{
  min-height:37px!important;
  padding:6px 8px!important;
  overflow:hidden;
  border:0!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.08)!important;
  font-size:13px!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.judgment-tabs-card{
  margin-top:10px!important;
  display:grid!important;
  grid-template-columns:178px minmax(0,1fr)!important;
  border:1px solid #d7e2e9!important;
  border-radius:14px!important;
  box-shadow:0 8px 24px rgba(14,46,70,.06)!important;
}
.judgment-record-tabs{
  padding:6px!important;
  position:sticky!important;
  top:84px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  align-content:start!important;
  gap:3px!important;
  border-right:1px solid #dce5eb!important;
  border-bottom:0!important;
  background:#f5f8fa!important;
  overflow:visible!important;
}
.judgment-tabs-heading{padding:5px 7px 9px!important}
.judgment-tabs-heading b{font-size:16px!important}
.judgment-tabs-heading span{display:none!important}
.judgment-record-tabs button{
  min-height:40px!important;
  padding:5px 7px!important;
  grid-template-columns:26px minmax(0,1fr)!important;
  gap:7px!important;
  border-radius:8px!important;
}
.judgment-record-tabs button>i{width:26px!important;height:26px!important;font-size:13px!important}
.judgment-record-tabs button>span b{
  overflow:hidden;
  font-size:13px!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.judgment-record-tabs button>span small{
  overflow:hidden;
  font-size:13px!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.judgment-tab-content{min-width:0;padding:18px!important}
.judgment-tab-content>[data-judgment-pane]:not(.active){display:none!important}
.judgment-tab-content>[data-judgment-pane].active{display:block!important}
.judgment-tab-content h2{font-size:20px!important}
.judgment-verdict,.judgment-tab-content blockquote{
  padding:17px 19px!important;
  border:0!important;
  border-left:3px solid #1777b8!important;
  border-radius:8px!important;
  background:#f5f8fa!important;
  font-size:14px!important;
  line-height:1.7!important;
}
.judgment-record-side[hidden]{display:none!important}
.judgment-record-side{
  width:min(430px,calc(100vw - 28px))!important;
  max-height:calc(100dvh - 96px);
  padding:12px;
  position:fixed!important;
  z-index:151;
  top:80px!important;
  right:14px;
  display:grid;
  gap:9px;
  overflow:auto;
  border:1px solid #cbd9e3;
  border-radius:16px;
  background:#f2f6f8;
  box-shadow:0 24px 70px rgba(4,30,54,.28);
}
.judgment-side-close{
  min-height:34px;
  padding:0 9px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  border:0;
  border-radius:8px;
  color:#45637a;
  background:transparent;
  font:800 13px var(--sans);
  cursor:pointer;
}
.judgment-side-close:hover{color:#0a5e94;background:#e4eef4}
.judgment-side-close .ui-icon{width:15px;height:15px}
.judgment-record-side :is(.judgment-info-card,.judgment-related-card,.judgment-ai-tip){
  padding:14px!important;
  border:0!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
.judgment-info-card::before,.judgment-related-card::before{display:none!important}
.judgment-info-card h2,.judgment-related-card h2{margin-bottom:9px!important;font-size:18px!important}
.judgment-info-card dl{gap:0!important}
.judgment-info-card dl>div{
  min-height:43px!important;
  padding:8px 2px!important;
  grid-template-columns:minmax(105px,.75fr) minmax(0,1.25fr)!important;
  border:0!important;
  border-top:1px solid #e1e8ed!important;
  border-radius:0!important;
  background:transparent!important;
}
.judgment-info-card dl>div:first-child{border-top:0!important}
.judgment-info-card dd{
  overflow:hidden!important;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.judge-record-link{
  min-width:0!important;
  padding:5px 0!important;
  display:grid!important;
  grid-template-columns:17px minmax(0,1fr) 12px!important;
  gap:6px!important;
  align-items:center;
}
.judge-record-link .ui-icon{width:15px;height:15px}
.judge-record-link span{
  overflow:hidden!important;
  text-overflow:ellipsis;
  white-space:nowrap!important;
}
.judge-record-link i{font-style:normal}
body.judgment-side-open::after{
  content:"";
  position:fixed;
  z-index:150;
  inset:0;
  background:rgba(4,24,43,.24);
  backdrop-filter:blur(1px);
}

@media(max-width:900px){
  .case-view-workspace{grid-template-columns:58px minmax(0,1fr)}
  .case-view-workspace>.record-tabs .tabs button{grid-template-columns:1fr;place-items:center;padding:5px}
  .case-view-workspace>.record-tabs .tabs button span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}
  .judgment-tabs-card{grid-template-columns:58px minmax(0,1fr)!important}
  .judgment-tabs-heading{display:none}
  .judgment-record-tabs button{grid-template-columns:1fr!important;place-items:center!important}
  .judgment-record-tabs button>span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}
}

@media(max-width:762px){
  body[data-page="case"] .record-hero{grid-template-columns:1fr}
  body[data-page="case"] .record-actions{justify-content:flex-start;overflow-x:auto}
  .judgment-record-hero{grid-template-columns:1fr!important}
  .judgment-record-actions{grid-column:1!important;grid-row:1!important;justify-self:stretch!important;overflow-x:auto;flex-wrap:nowrap!important}
  .judgment-record-hero>.badge{grid-row:2!important}
  .judgment-record-hero>h1{grid-row:3!important;font-size:22px!important}
  .judgment-record-hero>p{grid-row:4!important}
  .judgment-record-meta{grid-row:5!important;grid-template-columns:1fr 1fr!important}
  .judgment-record-meta>span:last-child{grid-column:1/-1}
  .judgment-record-side{top:70px!important;right:8px;width:calc(100vw - 16px)!important;max-height:calc(100dvh - 78px)}
}

/* Final responsive polish: record pages and work lists must never rely on horizontal scrolling. */
[hidden]{display:none!important}
.sidebar,.sidebar *{max-width:100%}
.sidebar .primary-nav-grid,
.sidebar .primary-nav-column,
.sidebar .primary-nav-group,
.sidebar .side-nav{min-width:0;width:100%;overflow-x:hidden}
.sidebar .primary-nav-grid{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#49647f transparent}

.full-record-array.compact{display:flex;flex-wrap:wrap;gap:8px}
.full-record-array.compact>li{
  min-width:0;
  padding:7px 10px;
  display:inline-grid;
  grid-template-columns:26px minmax(0,1fr);
  align-items:center;
  flex:0 1 auto;
}
.full-record-array.compact .full-record-index{width:26px;height:26px}

.judgment-record-hero{
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto auto auto auto!important;
}
.judgment-record-actions{
  grid-column:1!important;
  grid-row:4!important;
  position:static!important;
  justify-self:start!important;
  overflow:visible!important;
  flex-wrap:wrap!important;
}
.judgment-record-hero>.badge{grid-column:1!important;grid-row:1!important}
.judgment-record-hero>h1{
  grid-column:1!important;
  grid-row:2!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
}
.judgment-record-hero>p{
  grid-column:1!important;
  grid-row:3!important;
  max-width:100ch!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
}
.judgment-record-meta{
  grid-column:1!important;
  grid-row:5!important;
  grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;
}
.judgment-record-meta>span{
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  word-break:normal!important;
}
.judgment-record-tabs button>i .ui-icon{width:15px;height:15px}

/* Interest calculator: structured cards and a real form grid. */
.interest-calculator{
  min-width:0;
  overflow:hidden;
  border:1px solid #d6e2e9;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 30px rgba(14,47,72,.07);
}
.interest-calculator>header{
  padding:20px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid #e0e8ed;
  background:linear-gradient(135deg,#f7fafc,#fff);
}
.interest-calculator>header h2{margin:6px 0 7px;color:#163a57;font:700 25px/1.12 var(--serif)}
.interest-calculator>header p{max-width:76ch;margin:0;color:#61798d;font-size:13px;line-height:1.6}
.interest-live{
  min-height:32px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  border-radius:999px;
  color:#167257;
  background:#eaf8f2;
  font-size:13px;
  font-weight:850;
  white-space:nowrap;
}
.interest-live i{width:8px;height:8px;border-radius:50%;background:#24a77e;box-shadow:0 0 0 4px rgba(36,167,126,.12)}
.interest-current{
  padding:14px 20px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.interest-current article{
  min-width:0;
  padding:13px;
  display:grid;
  gap:3px;
  border:1px solid #dce6ec;
  border-radius:12px;
  background:#f8fbfc;
}
.interest-current small{color:#778b9c;font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.interest-current b{color:#0a6399;font-size:19px}
.interest-current span{color:#5f778a;font-size:13px;line-height:1.35}
.interest-calculator>[data-interest-form]{
  margin:0 20px 18px;
  padding:16px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:end;
  border:1px solid #d8e3ea;
  border-radius:14px;
  background:#f7fafc;
}
.interest-calculator>[data-interest-form]>label{min-width:0;display:grid;gap:6px}
.interest-calculator>[data-interest-form]>label>span{color:#49667d;font-size:13px;font-weight:850}
.interest-calculator>[data-interest-form] :is(input,select){
  width:100%;
  min-width:0;
  height:40px;
  padding:0 10px;
  border:1px solid #cbd9e3;
  border-radius:9px;
  color:#183e5b;
  background:#fff;
  font:700 13px var(--sans);
}
.interest-calculator>[data-interest-form]>.btn{grid-column:1/-1;justify-self:start}
.interest-money{position:relative}
.interest-money input{padding-right:46px!important}
.interest-money i{position:absolute;right:11px;top:50%;color:#718598;font-size:13px;font-style:normal;transform:translateY(-50%)}
.interest-output{margin:0 20px 18px}
.interest-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.interest-summary article{padding:12px;border:1px solid #d9e4eb;border-radius:11px;background:#fff}
.interest-summary small,.interest-summary b{display:block}
.interest-summary small{color:#788c9d;font-size:13px}.interest-summary b{margin-top:4px;color:#173e5b;font-size:16px}
.interest-result-note{margin-top:10px;padding:11px;display:flex;justify-content:space-between;gap:12px;border-radius:10px;color:#45657d;background:#edf6fa;font-size:13px}
.interest-period-breakdown{margin-top:10px;border:1px solid #dbe5eb;border-radius:11px;background:#fff;overflow:hidden}
.interest-period-breakdown>summary{
  min-height:54px;
  padding:10px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  list-style:none;
  cursor:pointer;
  background:#f7fafc;
}
.interest-period-breakdown>summary::-webkit-details-marker{display:none}
.interest-period-breakdown>summary b,.interest-period-breakdown>summary small{display:block}
.interest-period-breakdown>summary b{color:#274d68;font-size:13px}
.interest-period-breakdown>summary small{margin-top:2px;color:#7b8f9f;font-size:13px}
.interest-period-breakdown>summary em{color:#0a679e;font-size:13px;font-style:normal;font-weight:850}
.interest-period-breakdown[open]>summary{border-bottom:1px solid #dbe5eb}
.interest-periods{margin-top:10px;overflow:hidden;border:1px solid #dbe5eb;border-radius:11px}
.interest-period-breakdown .interest-periods{margin-top:0;border:0;border-radius:0}
.interest-periods>header,.interest-periods>div{padding:9px 11px;display:grid;grid-template-columns:1.4fr .45fr .8fr .8fr;gap:9px;align-items:center}
.interest-periods>header{color:#6f8496;background:#f2f6f8;font-size:13px;font-weight:900;text-transform:uppercase}
.interest-periods>div{border-top:1px solid #e3eaee;color:#385873;font-size:13px}
.interest-periods small,.interest-periods a{display:block;font-size:13px}
.interest-periods a{color:#08679e;font-weight:850}
.interest-calculator>.interest-error{margin:0 20px 16px;padding:11px;border-radius:10px;color:#944444;background:#fff0f0}
.interest-calculator>footer{
  padding:15px 20px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.75fr) auto;
  gap:15px;
  align-items:center;
  border-top:1px solid #e0e8ed;
  background:#f8fafb;
}
.interest-calculator>footer>div{display:flex;gap:8px;flex-wrap:wrap}
.interest-calculator>footer>div b{width:100%;color:#365873;font-size:13px}
.interest-calculator>footer a{color:#09689f;font-size:13px;font-weight:850}
.interest-calculator>footer p{margin:0;color:#74899b;font-size:13px!important;line-height:1.5}

@media(max-width:1100px){
  .filter-panel.filter-panel-with-rail{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto auto!important;
  }
  .filter-panel-with-rail>.filter-tabs{
    grid-column:1!important;
    grid-row:2!important;
    padding:7px!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;
    border-right:0!important;
    border-top:1px solid #dce5eb!important;
    border-bottom:1px solid #dce5eb!important;
    overflow:visible!important;
  }
  .filter-panel-with-rail>.filter-panel-head{grid-column:1!important;grid-row:1!important}
  .filter-panel-with-rail>.filter-core{grid-column:1!important;grid-row:3!important}
  .filter-panel-with-rail>.advanced-filters{grid-column:1!important;grid-row:4!important}
  body[data-page="case"] .record-hero{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="case"] .record-actions{grid-column:1!important;justify-content:flex-start!important;flex-wrap:wrap!important;overflow:visible!important}
}

@media(max-width:900px){
  .case-record-list .data-record-head{display:none}
  .case-record-list .data-record-row{
    margin:10px;
    padding:13px;
    display:grid;
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:8px 12px;
    border:1px solid #d8e3ea;
    border-radius:13px;
    box-shadow:0 7px 20px rgba(14,47,72,.05);
  }
  .case-record-list .record-select{grid-column:1;grid-row:1}
  .case-record-list .record-primary{grid-column:2;grid-row:1}
  .case-record-list :is(.record-field,.record-action){grid-column:2;width:100%}
  .case-record-list .record-field{
    padding-top:8px;
    display:grid;
    grid-template-columns:minmax(115px,.42fr) minmax(0,1fr);
    gap:10px;
    border-top:1px solid #e4eaee;
  }
  .case-record-list .record-field::before{content:attr(data-label);display:block;color:#74889a;font-size:13px;font-weight:850}
  .case-record-list .record-progress{grid-template-columns:minmax(115px,.42fr) minmax(0,1fr) auto}
  .case-record-list .record-progress::before{grid-column:1}
  .case-record-list .record-progress .progress{grid-column:2}
  .case-record-list .record-progress small{grid-column:3}
  .case-record-list .record-action .btn{width:100%;justify-content:center}
  .full-record-fields>div{grid-template-columns:1fr;gap:8px;padding:12px}
  .full-record-fields dt{padding-bottom:7px;border-bottom:1px solid #e4eaee}
  .full-record-array.compact>li{flex:1 1 150px}
  .forum-toolbar{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
  }
  .forum-view-tabs{
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    border-right:0!important;
    overflow:visible!important;
  }
  .forum-toolbar>label{grid-column:1!important;grid-row:2!important}
  .forum-toolbar>select,.forum-toolbar>.smart-select{grid-column:1!important;grid-row:3!important}
  body[data-page="chat"] .conversation-list>header>nav button{
    width:100%!important;
    border-radius:8px!important;
    font-size:13px!important;
  }
  .interest-current{grid-template-columns:1fr 1fr}
  .interest-calculator>[data-interest-form]{grid-template-columns:1fr 1fr}
  .interest-calculator>footer{grid-template-columns:1fr}
}

@media(max-width:820px){
  .topbar{position:sticky!important;z-index:120!important;top:0}
  .sidebar-left,.sidebar,
  body.workspace-page .sidebar-left,
  body.workspace-page .sidebar{
    top:72px!important;
    height:calc(100dvh - 72px)!important;
    z-index:110!important;
    padding-top:12px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    box-shadow:18px 0 45px rgba(3,22,41,.28);
  }
  .sidebar-left .brand,.sidebar>.brand{display:none!important}
  .portal.menu-open::after{
    content:"";
    position:fixed;
    z-index:100;
    inset:72px 0 0;
    background:rgba(4,24,43,.3);
    backdrop-filter:blur(1px);
  }
  .portal.menu-open .sidebar{transform:translateX(0)!important}
  .judgment-record-actions{
    width:100%;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .judgment-record-actions .btn{justify-content:center}
  .judgment-record-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .judgment-record-meta>span:last-child{grid-column:auto!important}
}

@media(max-width:560px){
  .filter-panel-with-rail>.filter-tabs{grid-template-columns:1fr 1fr!important}
  .filter-panel-with-rail>.filter-tabs button{
    grid-template-columns:24px minmax(0,1fr) auto!important;
    place-items:initial!important;
  }
  .filter-panel-with-rail>.filter-tabs button b,
  .filter-panel-with-rail>.filter-tabs button span{
    position:static!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    overflow:visible!important;
    clip:auto!important;
    white-space:normal!important;
  }
  .case-record-list .record-field{grid-template-columns:1fr;gap:5px}
  .case-record-list .record-progress{grid-template-columns:minmax(0,1fr) auto}
  .case-record-list .record-progress::before{grid-column:1/-1}
  .case-record-list .record-progress .progress{grid-column:1}
  .case-record-list .record-progress small{grid-column:2}
  .forum-view-tabs button{
    grid-template-columns:24px minmax(0,1fr)!important;
    place-items:initial!important;
  }
  .forum-view-tabs button span{
    position:static!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    overflow:visible!important;
    clip:auto!important;
    white-space:normal!important;
  }
  .interest-calculator>header{padding:16px;display:grid}
  .interest-live{justify-self:start}
  .interest-current{padding:12px;grid-template-columns:1fr}
  .interest-calculator>[data-interest-form]{margin:0 12px 14px;padding:12px;grid-template-columns:1fr}
  .interest-summary{grid-template-columns:1fr 1fr}
  .interest-result-note{align-items:flex-start;flex-direction:column}
  .interest-periods>header{display:none}
  .interest-periods>div{grid-template-columns:1fr 1fr}
  .interest-output{margin-inline:12px}
  .interest-archive{margin-inline:12px}
}

/* Final business-view and responsive release overrides. */
.full-record-groups{display:grid;gap:14px}
.full-record-group{overflow:hidden;border:1px solid #d8e3ea;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(16,48,73,.04)}
.full-record-group>header{min-height:62px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #dfe7ec;background:linear-gradient(135deg,#f8fbfd,#f1f6f9)}
.full-record-group>header h3{margin:0;color:#173f5d;font:700 18px/1.2 var(--serif)}
.full-record-group>header p{margin:4px 0 0;color:#718697;font-size:13px}
.full-record-group>header>span{min-width:30px;height:30px;padding:0 8px;display:grid;place-items:center;border-radius:999px;color:#0b6499;background:#e5f1f7;font-size:13px;font-weight:900}
.full-record-group .full-record-fields{border:0;border-radius:0}
.full-record-group .full-record-fields>div:first-child{border-top:0}
.full-record-group-document>header{background:linear-gradient(135deg,#eef8f4,#fffaf0)}
.full-record-group-relations>header{background:linear-gradient(135deg,#edf5fb,#f7f2e8)}
.full-record-technical{margin-top:16px;border:1px solid #d9e3e9;border-radius:12px;background:#f7fafb}
.full-record-technical>summary{min-height:46px;padding:0 14px;display:flex;align-items:center;color:#516d82;font-size:13px;font-weight:850;cursor:pointer}
.full-record-technical[open]>summary{border-bottom:1px solid #d9e3e9}
.full-record-technical>.full-record-fields{border:0;border-radius:0;background:#fff}
.full-record-fields dt{color:#294f69;font-weight:850}
.full-record-fields dt small{margin-top:3px;color:#93a2ae;font-size:13px;font-weight:650}
.full-record-hero>aside b{font-size:clamp(28px,3vw,42px);white-space:nowrap}

.aml-dashboard-grid.aml-dashboard-v2>main{grid-template-columns:minmax(270px,300px) minmax(0,1fr)}
.aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar{grid-template-columns:1fr;align-content:start}
.aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar::before{grid-column:1;line-height:1.15}
.aml-dashboard-grid.aml-dashboard-v2 .smart-select-trigger{min-height:42px;padding-inline:11px}
.aml-dashboard-grid.aml-dashboard-v2 .smart-select-trigger [data-smart-select-value]{overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal;white-space:nowrap}
.sejm-workspace-bar,.sejm-workspace-bar>label{min-height:0;max-height:none}
.sejm-workspace-bar>label{height:40px;flex:1 1 300px}
.sejm-workspace-bar>label input{height:38px}

@media(max-width:1280px){
  .aml-dashboard-grid.aml-dashboard-v2>main{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)}
  .aml-dashboard-grid.aml-dashboard-v2>main>.card-head{grid-column:1;grid-row:1}
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar{grid-column:1;grid-row:2;grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(170px,1fr));border-right:0;border-bottom:1px solid #dce5eb}
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar::before{grid-column:1/-1}
  .aml-dashboard-grid.aml-dashboard-v2 .aml-entity-list,.aml-dashboard-grid.aml-dashboard-v2 .aml-no-results{grid-column:1;grid-row:3}
}
@media(max-width:980px){
  body[data-page="sejm"] .sejm-canvas{grid-template-rows:auto auto}
  body[data-page="sejm"] .sejm-workspace-bar{height:auto;padding:9px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
  body[data-page="sejm"] .sejm-workspace-bar>label{width:100%;height:40px;min-width:0;min-height:40px;max-height:40px;grid-column:1;grid-row:1}
  body[data-page="sejm"] .sejm-filter-button{grid-column:2;grid-row:1}
  body[data-page="sejm"] .sejm-term-switch{grid-column:1/-1;grid-row:2}
  .sejm-ocr-kpis{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .full-record-group>header{align-items:flex-start}
  .full-record-group .full-record-fields>div{grid-template-columns:1fr}
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar{grid-template-columns:1fr}
  .aml-dashboard-grid.aml-dashboard-v2 .aml-filter-bar::before{grid-column:1}
}

/* Professional judgment header: stable hierarchy without overlapping content. */
body[data-page="judgment"] .judgment-record-hero{min-height:0!important;padding:26px 28px 22px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto auto!important;gap:12px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:22px!important;background:radial-gradient(circle at 88% 5%,rgba(31,132,187,.34),transparent 34%),linear-gradient(135deg,#062844,#0a4b76)!important;box-shadow:0 22px 56px rgba(6,35,59,.18)!important}
body[data-page="judgment"] .judgment-record-hero>.badge{grid-column:1!important;grid-row:1!important;justify-self:start!important;color:#165f4b!important;background:#e8f7f1!important;border-color:#cdeade!important}
body[data-page="judgment"] .judgment-record-hero>h1{grid-column:1!important;grid-row:2!important;max-width:28ch!important;margin:0!important;overflow:visible!important;color:#fff!important;font-size:clamp(30px,3vw,46px)!important;line-height:1.08!important;text-overflow:clip!important;white-space:normal!important}
body[data-page="judgment"] .judgment-record-hero>p{grid-column:1!important;grid-row:3!important;max-width:100ch!important;margin:0!important;overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;color:#dceaf4!important;font-size:15px!important;line-height:1.65!important;text-overflow:ellipsis!important;white-space:normal!important}
body[data-page="judgment"] .judgment-record-actions{grid-column:1!important;grid-row:4!important;position:static!important;margin:2px 0 0!important;padding:12px 0!important;display:flex!important;align-items:center!important;justify-self:stretch!important;gap:8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;border-block:1px solid rgba(255,255,255,.14)!important}
body[data-page="judgment"] .judgment-record-actions .btn{min-height:38px!important;padding:0 12px!important;flex:0 0 auto!important;color:#eaf4fb!important;border-color:rgba(255,255,255,.2)!important;background:rgba(255,255,255,.08)!important}
body[data-page="judgment"] .judgment-record-actions .btn:hover{background:rgba(255,255,255,.16)!important}
body[data-page="judgment"] .judgment-record-meta{grid-column:1!important;grid-row:5!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
body[data-page="judgment"] .judgment-record-meta>span{min-width:0!important;min-height:48px!important;padding:10px 12px!important;display:flex!important;align-items:center!important;gap:8px!important;overflow:hidden!important;color:#eef7fc!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:11px!important;background:rgba(255,255,255,.075)!important;font-size:13px!important;line-height:1.35!important;text-overflow:ellipsis!important;white-space:normal!important}
@media(max-width:980px){body[data-page="judgment"] .judgment-record-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body[data-page="judgment"] .judgment-record-hero{padding:20px 18px!important}body[data-page="judgment"] .judgment-record-meta{grid-template-columns:1fr!important}}

/* Professional order detail. */
.order-professional{margin-bottom:16px;display:grid;gap:13px}
.order-professional>header{padding:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-radius:15px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(41,133,183,.32),transparent 22rem),linear-gradient(135deg,#072642,#0b527c)}
.order-professional>header h2{margin:4px 0 7px;color:#fff;font:700 27px/1.15 var(--serif)}
.order-professional>header p{max-width:78ch;margin:0;color:#c8dbe7;font-size:13px;line-height:1.65}
.order-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.order-kpis article{padding:14px;border:1px solid #d7e3ea;border-radius:13px;background:#fff}
.order-kpis small,.order-kpis b,.order-kpis span{display:block}
.order-kpis small{color:#74899a;font-size:13px;font-weight:850;text-transform:uppercase}
.order-kpis b{margin-top:5px;color:#163f5d;font:700 22px var(--serif)}
.order-kpis span{margin-top:3px;color:#718697;font-size:13px}
.order-brief-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.order-brief-grid article{padding:13px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #d8e3ea;border-radius:12px;background:#f8fbfc}
.order-brief-grid article>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0c699f;background:#e6f2f8}
.order-brief-grid svg{width:18px}.order-brief-grid small,.order-brief-grid b{display:block}.order-brief-grid small{color:#788c9c;font-size:13px}.order-brief-grid b{margin-top:2px;color:#284d67;font-size:13px}
.order-offers{overflow:hidden;border:1px solid #d7e2e9;border-radius:14px;background:#fff}
.order-offers>header{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe7ec;background:#f6f9fb}
.order-offers>header h3{margin:2px 0 0;color:#173e5b;font:700 20px var(--serif)}
.order-offers>header>span{min-width:31px;height:31px;display:grid;place-items:center;border-radius:50%;color:#0b6499;background:#e5f1f7;font-weight:900}
.order-offers>article{padding:13px 15px;display:grid;grid-template-columns:minmax(210px,1.15fr) minmax(240px,1.3fr) 90px 110px auto;gap:13px;align-items:center;border-top:1px solid #e1e8ed}
.order-offers>article:first-of-type{border-top:0}
.order-offers>article.best{background:linear-gradient(90deg,#f0faf5,#fff)}
.order-offers>article>div:first-child{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center}
.order-rank{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#176d9f;font-weight:900}
.order-offers article small,.order-offers article b,.order-offers article em{display:block}.order-offers article small{color:#7b8f9f;font-size:13px}.order-offers article b{margin-top:2px;color:#244b66;font-size:13px}.order-offers article em{margin-top:2px;color:#6f8596;font-size:13px;font-style:normal}.order-offers article p{margin:3px 0 0;color:#536d80;font-size:13px;line-height:1.45}

/* Law record section rail. */
.law-record-main{min-width:0;display:grid;grid-template-columns:210px minmax(0,1fr);align-items:start}
.law-record-tabs{height:max-content;padding:9px!important;position:sticky;top:96px;z-index:4;grid-column:1;grid-row:1;display:grid!important;grid-template-columns:1fr!important;gap:5px!important;overflow:visible!important;border-right:1px solid #dce5eb;border-bottom:0!important;background:#f4f7f9}
.law-record-tabs button{width:100%;min-width:0!important;min-height:58px!important;padding:8px 9px!important;display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:9px!important;align-items:center;border-radius:9px!important;text-align:left!important;white-space:normal!important}
.law-record-tabs button>i{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#0a6a9f;background:#e5f1f7;font-style:normal}
.law-record-tabs button>i svg{width:17px}
.law-record-tabs button>span{min-width:0}.law-record-tabs button b,.law-record-tabs button small{display:block}.law-record-tabs button b{font-size:13px;line-height:1.25}.law-record-tabs button small{margin-top:2px;color:#7a8e9f;font-size:13px;line-height:1.35}
.law-record-tabs button.active>i{color:#132a42;background:#edc667}.law-record-tabs button.active small{color:#c4d9e7}
.law-record-panel{min-width:0;grid-column:2;grid-row:1}

@media(max-width:1100px){
  .order-kpis{grid-template-columns:1fr 1fr}
  .order-offers>article{grid-template-columns:minmax(210px,1fr) minmax(220px,1.2fr) 80px 100px}
  .order-offers>article>.btn{grid-column:1/-1;justify-self:end}
  .law-record-main{grid-template-columns:176px minmax(0,1fr)}
}
@media(max-width:760px){
  .order-professional>header{flex-direction:column}
  .order-brief-grid{grid-template-columns:1fr}
  .order-offers>article{grid-template-columns:1fr 1fr}
  .order-offers>article>div:first-child,.order-offers>article>div:nth-child(2),.order-offers>article>.btn{grid-column:1/-1}
  .order-offers>article>.btn{justify-self:stretch}
  .law-record-main{grid-template-columns:1fr}
  .law-record-tabs{padding:7px!important;position:static;grid-column:1;grid-row:1;grid-template-columns:1fr 1fr!important;border-right:0;border-bottom:1px solid #dce5eb!important}
  .law-record-panel{grid-column:1;grid-row:2}
}
@media(max-width:480px){
  .order-kpis,.law-record-tabs{grid-template-columns:1fr!important}
  .order-offers>article{grid-template-columns:1fr}
}

/* Dense Sejm dashboard: charts carry the overview while lists retain detail. */
body[data-page="sejm"] .sejm-analytics-grid{margin-top:18px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr);gap:12px}
body[data-page="sejm"] .sejm-analytics-card{min-height:272px;padding:20px;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid #dbe6ed;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(24,55,78,.07)}
body[data-page="sejm"] .sejm-analytics-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
body[data-page="sejm"] .sejm-analytics-card h2{margin:3px 0 0;color:#163c5a;font:700 23px/1.15 var(--serif)}
body[data-page="sejm"] .sejm-analytics-card>header button{min-height:34px;padding:0 9px;display:flex;align-items:center;gap:5px;border:1px solid #cfe0ea;border-radius:9px;color:#0a679e;background:#f5f9fb;font-size:13px;font-weight:850;white-space:nowrap}
body[data-page="sejm"] .sejm-analytics-card>header svg{width:13px}
body[data-page="sejm"] .sejm-activity-card{grid-template-rows:auto minmax(145px,1fr) auto}
body[data-page="sejm"] .sejm-activity-chart{margin-top:10px;min-height:145px}
body[data-page="sejm"] .sejm-activity-chart svg{width:100%;height:100%;overflow:visible}
body[data-page="sejm"] .sejm-activity-chart .sejm-chart-grid{fill:none;stroke:#dce7ed;stroke-width:1}
body[data-page="sejm"] .sejm-activity-chart .sejm-chart-line{stroke:#0b6fa7;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
body[data-page="sejm"] .sejm-activity-chart .sejm-chart-dot{fill:#fff;stroke:#0b6fa7;stroke-width:3}
body[data-page="sejm"] .sejm-activity-chart text{fill:#234b67;font:800 13px var(--sans)}
body[data-page="sejm"] .sejm-activity-card>footer{padding-top:10px;display:flex;flex-wrap:wrap;gap:7px 13px;border-top:1px solid #e4edf2}
body[data-page="sejm"] .sejm-activity-card>footer span{display:inline-flex;align-items:center;gap:5px;color:#617c91;font-size:13px}
body[data-page="sejm"] .sejm-activity-card>footer i{width:7px;height:7px;border-radius:50%;background:#0b6fa7}
body[data-page="sejm"] .sejm-activity-card>footer b{color:#173d5a;font-size:13px}
body[data-page="sejm"] .sejm-stage-card{background:linear-gradient(145deg,#fff,#f3f8fb)}
body[data-page="sejm"] .sejm-stage-chart{min-height:166px;display:grid;grid-template-columns:140px minmax(0,1fr);gap:18px;align-items:center}
body[data-page="sejm"] .sejm-stage-donut{width:136px;height:136px;position:relative;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#0b6fa7 0 var(--progress),#dce8ef var(--progress) 100%)}
body[data-page="sejm"] .sejm-stage-donut::before{content:"";width:104px;height:104px;position:absolute;border-radius:50%;background:#fff}
body[data-page="sejm"] .sejm-stage-donut>div{z-index:1;display:grid;gap:3px;text-align:center}
body[data-page="sejm"] .sejm-stage-donut b{color:#173d5a;font:700 25px var(--serif)}
body[data-page="sejm"] .sejm-stage-donut small{max-width:82px;color:#6c8497;font-size:13px;line-height:1.35}
body[data-page="sejm"] .sejm-stage-chart dl{margin:0;display:grid;gap:10px}
body[data-page="sejm"] .sejm-stage-chart dl>div{padding-bottom:9px;border-bottom:1px solid #dfe9ee}
body[data-page="sejm"] .sejm-stage-chart dl>div:last-child{border-bottom:0}
body[data-page="sejm"] .sejm-stage-chart dt{color:#6b8497;font-size:13px;font-weight:800}
body[data-page="sejm"] .sejm-stage-chart dd{margin:3px 0 0;color:#173d5a;font:700 16px var(--serif)}
body[data-page="sejm"] .sejm-dashboard-lower{align-items:start}
body[data-page="sejm"] .sejm-dashboard-lower .sejm-board-card:last-child{height:auto;align-self:start}
body[data-page="sejm"] .sejm-dashboard-lower .sejm-board-card:last-child .sejm-mini-chart{padding-top:16px;align-content:start}

@media(max-width:1100px){body[data-page="sejm"] .sejm-analytics-grid{grid-template-columns:1fr}}
@media(max-width:600px){body[data-page="sejm"] .sejm-analytics-card{padding:16px;min-height:0}body[data-page="sejm"] .sejm-analytics-card>header{flex-direction:column}body[data-page="sejm"] .sejm-stage-chart{grid-template-columns:1fr;justify-items:center}body[data-page="sejm"] .sejm-stage-chart dl{width:100%}}

/* Public editorial sections. */
.landing-editorial{background:radial-gradient(circle at 10% 0,rgba(225,178,76,.15),transparent 27rem),linear-gradient(180deg,#f6f9fb,#fff)}
.landing-editorial-grid{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.landing-editorial-grid>a{min-height:220px;padding:26px;display:grid;grid-template-columns:58px minmax(0,1fr);gap:18px;border:1px solid #d5e1e8;border-radius:19px;color:#193d58;background:#fff;box-shadow:0 18px 50px rgba(8,43,70,.08);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.landing-editorial-grid>a:hover{border-color:#d1a244;box-shadow:0 23px 58px rgba(8,43,70,.13);transform:translateY(-3px)}
.landing-editorial-grid>a>span{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;color:#fff;background:linear-gradient(145deg,#0d6b9f,#082f51)}
.landing-editorial-grid>a:nth-child(2)>span{color:#122b43;background:linear-gradient(145deg,#f2d588,#cf9220)}
.landing-editorial-grid svg{width:27px}
.landing-editorial-grid small{color:#a16b15;font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.landing-editorial-grid h3{margin:5px 0 8px;color:#102f4c;font:700 28px/1.1 var(--serif)}
.landing-editorial-grid p{max-width:54ch;margin:0;color:#61798c;font-size:13px;line-height:1.65}
.landing-editorial-grid em{display:block;margin-top:22px;color:#0870aa;font-size:13px;font-style:normal;font-weight:900}

.legal-news-hero,.investigation-hero{margin-bottom:16px;padding:26px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;border-radius:20px;color:#fff;background:radial-gradient(circle at 86% 0,rgba(54,143,189,.35),transparent 25rem),linear-gradient(135deg,#061f38,#0b5681);box-shadow:0 24px 58px rgba(8,39,65,.16)}
.legal-news-hero h2,.investigation-hero h2{margin:5px 0 10px;color:#fff;font:700 clamp(27px,3vw,42px)/1.05 var(--serif)}
.legal-news-hero p,.investigation-hero p{max-width:75ch;margin:0;color:#ccdee9;font-size:13px;line-height:1.7}
.legal-news-kpis{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:9px}
.legal-news-kpis article{min-width:112px;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08)}
.legal-news-kpis b,.legal-news-kpis small{display:block}.legal-news-kpis b{color:#f5cf73;font:700 27px var(--serif)}.legal-news-kpis small{margin-top:3px;color:#d1e0e9;font-size:13px}
.legal-news-toolbar,.investigation-toolbar{margin-bottom:16px;padding:12px;display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(170px,.7fr) minmax(170px,.7fr) auto;gap:9px;align-items:center}
.legal-news-toolbar label,.investigation-toolbar label{height:44px;padding:0 13px;display:flex;align-items:center;gap:9px;border:1px solid #d1dee7;border-radius:11px;background:#f8fbfc}
.legal-news-toolbar label svg,.investigation-toolbar label svg{width:18px;color:#0a6599}
.legal-news-toolbar input,.investigation-toolbar input{min-width:0;width:100%;border:0;outline:0;background:transparent;font:13px var(--sans)}
.legal-news-toolbar select,.investigation-toolbar select{width:100%;height:44px;padding:0 12px;border:1px solid #d1dee7;border-radius:11px;color:#294e68;background:#fff;font:800 13px var(--sans)}
.legal-news-toolbar>span,.investigation-toolbar>span{padding:10px 13px;border-radius:999px;color:#0b6398;background:#e7f2f8;font-size:13px;font-weight:900;white-space:nowrap}
.legal-news-layout,.investigation-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}
.legal-news-layout>aside,.investigation-layout>aside{display:grid;gap:13px;position:sticky;top:92px}
.legal-news-list,.investigation-list{display:grid;gap:11px}
.legal-news-row{padding:17px;display:grid;grid-template-columns:58px 42px minmax(0,1fr) auto;gap:14px;align-items:start}
.legal-news-date{padding:9px 6px;border-radius:11px;color:#fff;background:#0a527e;text-align:center}.legal-news-date b,.legal-news-date span{display:block}.legal-news-date b{font:700 23px var(--serif)}.legal-news-date span{margin-top:2px;font-size:13px;text-transform:uppercase}
.legal-news-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#0b6ca3;background:#e8f3f8}.legal-news-icon svg{width:20px}
.legal-news-copy header{display:flex;align-items:center;gap:7px}.legal-news-copy header span,.legal-news-copy header em{padding:4px 7px;border-radius:999px;font-size:13px;font-style:normal;font-weight:900}.legal-news-copy header span{color:#08618f;background:#e7f2f7}.legal-news-copy header em{color:#855b17;background:#fff1cf}
.legal-news-copy h2{margin:7px 0 5px;font:700 19px/1.25 var(--serif)}.legal-news-copy h2 a{color:#143b58}.legal-news-copy p{margin:0;color:#60788a;font-size:13px;line-height:1.55}
.legal-news-copy footer{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}.legal-news-copy footer b{color:#284f69;font-size:13px}.legal-news-copy footer span,.legal-news-copy footer small{padding:4px 6px;border-radius:6px;color:#6b8192;background:#f1f5f7;font-size:13px}
.legal-news-row>.btn{align-self:center;white-space:nowrap}
.legal-news-brief,.editorial-standard,.investigation-rules,.investigation-source-box{padding:20px}
.legal-news-brief>span,.editorial-standard>span,.investigation-rules>span{width:42px;height:42px;margin-bottom:13px;display:grid;place-items:center;border-radius:11px;color:#0b669b;background:#e7f2f7}.legal-news-brief>span svg,.editorial-standard>span svg,.investigation-rules>span svg{width:20px}
.legal-news-brief small,.editorial-standard small,.investigation-rules small{color:#996818;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.legal-news-brief b{display:block;margin:5px 0;color:#143a56;font:700 23px var(--serif)}.legal-news-brief p,.editorial-standard p,.investigation-rules p{color:#647b8d;font-size:13px;line-height:1.6}.legal-news-brief a{color:#0870aa;font-size:13px;font-weight:900}
.editorial-standard h2,.investigation-rules h2,.investigation-source-box h2{margin:5px 0 8px;color:#143a56;font:700 22px var(--serif)}

.investigation-hero>div>div{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}.investigation-hero>div>div span{display:flex;align-items:center;gap:5px;color:#cce2ed;font-size:13px}.investigation-hero>div>div svg{width:14px;color:#efc866}
.investigation-hero>aside{min-width:160px;padding:19px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.08);text-align:center}.investigation-hero>aside>span{width:45px;height:45px;display:grid;place-items:center;border-radius:50%;color:#102b44;background:#efc96e}.investigation-hero>aside svg{width:21px}.investigation-hero>aside b,.investigation-hero>aside small{display:block}.investigation-hero>aside b{margin-top:8px;color:#fff;font:700 31px var(--serif)}.investigation-hero>aside small{color:#c8dbe7;font-size:13px}
.investigation-method{margin-bottom:16px;padding:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.investigation-method article{min-height:116px;padding:13px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;border-right:1px solid #e0e8ed}.investigation-method article:last-child{border-right:0}.investigation-method article>b{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:#173b56;background:#efcc76;font-size:13px}.investigation-method small,.investigation-method strong{display:block}.investigation-method small{color:#957029;font-size:13px;font-weight:900;text-transform:uppercase}.investigation-method strong{margin-top:3px;color:#244b65;font-size:13px}.investigation-method p{margin:5px 0 0;color:#738797;font-size:13px;line-height:1.5}
.investigation-row{overflow:hidden}.investigation-row>header{padding:16px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid #e1e8ed}.investigation-entity-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:#0a6b9f;background:#e6f2f7}.investigation-entity-icon svg{width:21px}.investigation-row header small,.investigation-row header h2,.investigation-row header p{display:block}.investigation-row header small{color:#8193a1;font-size:13px}.investigation-row header h2{margin:3px 0;color:#173c58;font:700 18px var(--serif)}.investigation-row header p{margin:0;color:#7890a0;font-size:13px}
.investigation-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f8fafb}.investigation-evidence article{padding:13px 15px;border-right:1px solid #e1e8ed}.investigation-evidence article:last-child{border-right:0}.investigation-evidence small,.investigation-evidence b,.investigation-evidence span{display:block}.investigation-evidence small{color:#8495a2;font-size:13px;text-transform:uppercase}.investigation-evidence b{margin-top:3px;color:#16415e;font:700 20px var(--serif)}.investigation-evidence span{margin-top:2px;color:#718697;font-size:13px}
.investigation-row>footer{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.investigation-row .tags{display:flex;flex-wrap:wrap;gap:5px}.investigation-row .tags span{padding:5px 7px;border-radius:999px;color:#14648f;background:#e8f2f7;font-size:13px;font-weight:850}
.investigation-source-box ul{margin:12px 0 0;padding:0;display:grid;gap:8px;list-style:none}.investigation-source-box li{padding-left:18px;position:relative;color:#567185;font-size:13px;line-height:1.5}.investigation-source-box li::before{content:"✓";position:absolute;left:0;color:#0a8b69;font-weight:900}

@media(max-width:1180px){
  .legal-news-layout,.investigation-layout{grid-template-columns:1fr}
  .legal-news-layout>aside,.investigation-layout>aside{position:static;grid-template-columns:1fr 1fr}
  .legal-news-toolbar,.investigation-toolbar{grid-template-columns:minmax(220px,1fr) 180px 180px}
  .legal-news-toolbar>span,.investigation-toolbar>span{grid-column:1/-1;justify-self:start}
}
@media(max-width:820px){
  .landing-editorial-grid{grid-template-columns:1fr}
  .legal-news-hero,.investigation-hero{grid-template-columns:1fr}
  .legal-news-kpis{grid-template-columns:repeat(3,1fr)}
  .legal-news-toolbar,.investigation-toolbar{grid-template-columns:1fr 1fr}
  .legal-news-toolbar label,.investigation-toolbar label{grid-column:1/-1}
  .legal-news-row{grid-template-columns:52px 38px minmax(0,1fr)}
  .legal-news-row>.btn{grid-column:2/-1;justify-self:start}
  .investigation-method{grid-template-columns:1fr 1fr}
  .investigation-method article:nth-child(2){border-right:0}
}
@media(max-width:560px){
  .landing-editorial-grid>a{padding:19px;grid-template-columns:45px minmax(0,1fr)}
  .landing-editorial-grid>a>span{width:45px;height:45px}.landing-editorial-grid h3{font-size:23px}
  .legal-news-hero,.investigation-hero{padding:19px}
  .legal-news-kpis{grid-template-columns:1fr}.legal-news-kpis article{min-width:0}
  .legal-news-toolbar,.investigation-toolbar,.legal-news-layout>aside,.investigation-layout>aside{grid-template-columns:1fr}
  .legal-news-toolbar select,.investigation-toolbar select{grid-column:1}
  .legal-news-row{padding:13px;grid-template-columns:46px minmax(0,1fr)}
  .legal-news-date{grid-column:1}.legal-news-icon{grid-column:1;width:38px;height:38px}.legal-news-copy{grid-column:2;grid-row:1/3}.legal-news-row>.btn{grid-column:1/-1;width:100%}
  .investigation-method{grid-template-columns:1fr}.investigation-method article{border-right:0;border-bottom:1px solid #e0e8ed}.investigation-method article:last-child{border-bottom:0}
  .investigation-row>header{grid-template-columns:42px minmax(0,1fr)}.investigation-row>header>.badge{grid-column:1/-1;justify-self:start}
  .investigation-evidence{grid-template-columns:1fr}.investigation-evidence article{border-right:0;border-bottom:1px solid #e1e8ed}.investigation-evidence article:last-child{border-bottom:0}
  .investigation-row>footer{align-items:stretch;flex-direction:column}.investigation-row>footer .btn{width:100%}
}

/* Landing inside the shared two-rail portal shell. */
.landing .content{width:100%;padding:18px 20px 48px}
.landing-workspace{width:100%;min-width:0;display:grid;gap:0}
.landing .landing-hero{min-height:570px;padding:48px;grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr);gap:42px;border-radius:22px;background:radial-gradient(circle at 86% 20%,rgba(32,125,179,.16),transparent 25rem),radial-gradient(circle at 7% 2%,rgba(220,170,67,.15),transparent 22rem),linear-gradient(135deg,#fff,#f3f8fb);box-shadow:0 20px 56px rgba(9,43,69,.09)}
.landing .landing-api-strip{margin-top:14px;min-height:68px;padding:10px 18px;border:1px solid #d9e3e9;border-radius:15px;box-shadow:0 12px 34px rgba(10,44,70,.06)}
.landing .landing-section{margin-top:16px;padding:66px 34px;border-radius:21px}
.landing .landing-cta{margin-top:16px;padding:56px 34px;border-radius:21px}
.landing .landing-footer{margin-top:16px;padding:20px 24px;border:1px solid #dbe4ea;border-radius:15px;background:#fff}

/* Business card rendering for nested lawyer offers. */
.full-record-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.full-record-offer{overflow:hidden;border:1px solid #d5e1e8;border-radius:15px;background:#fff;box-shadow:0 12px 34px rgba(11,45,70,.06)}
.full-record-offer.recommended{border-color:#b9dacd;box-shadow:inset 4px 0 #23936f,0 14px 38px rgba(11,45,70,.08)}
.full-record-offer>header{padding:14px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;background:linear-gradient(135deg,#f8fbfc,#eef5f8)}
.full-record-offer-rank{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#0c689d;font-size:13px;font-weight:900}
.full-record-offer header small,.full-record-offer header h4,.full-record-offer header p{display:block}.full-record-offer header small{color:#9a6a18;font-size:13px;font-weight:900;text-transform:uppercase}.full-record-offer header h4{margin:2px 0;color:#163d59;font:700 17px var(--serif)}.full-record-offer header p{margin:0;color:#748999;font-size:13px}
.full-record-offer-kpis{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e0e8ed;border-bottom:1px solid #e0e8ed}
.full-record-offer-kpis>span{padding:11px 13px;border-right:1px solid #e0e8ed}.full-record-offer-kpis>span:last-child{border-right:0}.full-record-offer-kpis small,.full-record-offer-kpis b{display:block}.full-record-offer-kpis small{color:#8495a2;font-size:13px;text-transform:uppercase}.full-record-offer-kpis b{margin-top:3px;color:#0b6091;font-size:13px}
.full-record-offer>section{padding:13px}.full-record-offer>section small{color:#8595a1;font-size:13px;font-weight:900;text-transform:uppercase}.full-record-offer>section p{margin:4px 0 0;color:#536e81;font-size:13px;line-height:1.55}
.full-record-offer>footer{padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e2e9ed;background:#fafcfd}.full-record-offer>footer .btn{min-height:38px;font-size:13px}.full-record-offer details{max-width:190px;color:#718697;font-size:13px}.full-record-offer summary{cursor:pointer;font-weight:850}.full-record-offer details dl{margin:7px 0 0}.full-record-offer details dl div{display:grid;grid-template-columns:1fr;gap:2px}.full-record-offer details dt{color:#8092a0}.full-record-offer details dd{margin:0;color:#294f69;overflow-wrap:anywhere}

@media(max-width:1180px){
  .landing .landing-hero{grid-template-columns:1fr;padding:38px}.landing .hero-product{max-width:760px}
}
@media(max-width:820px){
  .landing .content{padding:14px 12px 36px}
  .landing .landing-hero{min-height:0;padding:28px 20px}.landing .landing-section{padding:48px 20px}.landing .landing-cta{padding:42px 20px}
  .full-record-offers{grid-template-columns:1fr}
}
@media(max-width:560px){
  .landing .landing-hero{padding:24px 16px}.landing .hero-product{display:none}.landing .landing-api-strip{align-items:flex-start;flex-direction:column}
  .full-record-offer>header{grid-template-columns:34px minmax(0,1fr)}.full-record-offer>header>.badge{grid-column:1/-1;justify-self:start}
  .full-record-offer>footer{align-items:stretch;flex-direction:column}.full-record-offer>footer details{max-width:none}
}

/* Editorial newsroom and full article pages. */
.newsroom-masthead{margin-bottom:16px;padding:14px 18px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px;align-items:center;border-top:4px solid #0a3158;border-bottom:1px solid #ccd9e2;background:#fff}
.newsroom-masthead>div{display:flex;align-items:baseline;gap:9px;white-space:nowrap}.newsroom-masthead>div span{color:#102f4b;font:700 22px var(--serif)}.newsroom-masthead>div b{padding:4px 7px;border-radius:4px;color:#fff;background:#a56e1c;font-size:13px;letter-spacing:.14em}.newsroom-masthead>div small{color:#7c8f9f;font-size:13px}
.newsroom-masthead nav{min-width:0;display:flex;justify-content:center;gap:4px;overflow:auto}.newsroom-masthead button{min-height:36px;padding:0 10px;border:0;border-radius:8px;color:#526e83;background:transparent;font:800 13px var(--sans);white-space:nowrap;cursor:pointer}.newsroom-masthead button:hover,.newsroom-masthead button.active{color:#fff;background:#0b5f91}.newsroom-masthead>time{color:#718596;font-size:13px;text-transform:capitalize;white-space:nowrap}
.newsroom-lead{margin-bottom:16px;display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);overflow:hidden;border:1px solid #cfdae3;border-radius:20px;background:#fff;box-shadow:0 18px 52px rgba(12,43,69,.09)}
.newsroom-lead-visual{min-height:330px;padding:30px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;color:#fff;background:radial-gradient(circle at 82% 15%,rgba(225,177,74,.38),transparent 13rem),linear-gradient(145deg,#071d37,#0a5b8d)}
.newsroom-lead-visual.judgment{background:radial-gradient(circle at 80% 20%,rgba(224,177,75,.4),transparent 14rem),linear-gradient(145deg,#071d37,#164b70)}.newsroom-lead-visual.sejm{background:radial-gradient(circle at 80% 20%,rgba(60,152,188,.36),transparent 14rem),linear-gradient(145deg,#09263f,#176a75)}.newsroom-lead-visual>span{width:84px;height:84px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:22px;background:rgba(255,255,255,.1)}.newsroom-lead-visual svg{width:40px;color:#f1cb71}.newsroom-lead-visual small{max-width:190px;padding:7px 10px;border-radius:999px;color:#e4edf4;background:rgba(255,255,255,.12);font-size:13px;font-weight:800;text-align:right}
.newsroom-lead>article{padding:38px;display:flex;align-items:flex-start;justify-content:center;flex-direction:column}.newsroom-lead h1{margin:8px 0 13px;color:#102f4c;font:700 clamp(29px,3vw,43px)/1.08 var(--serif)}.newsroom-lead h1 a{color:inherit}.newsroom-lead p{max-width:70ch;margin:0;color:#5e7689;font-size:13px;line-height:1.72}.newsroom-lead .btn{margin-top:20px}
.newsroom-byline{margin-top:19px;display:flex;align-items:center;gap:10px}.newsroom-byline>span,.editorial-author,.news-article-byline>span{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#fff;background:linear-gradient(145deg,#167aaf,#073b65);font-size:13px;font-weight:900}.newsroom-byline b,.newsroom-byline small{display:block}.newsroom-byline b{color:#284c66;font-size:13px}.newsroom-byline small{margin-top:2px;color:#8293a1;font-size:13px}
.newsroom-toolbar{margin-bottom:16px;padding:11px;display:grid;grid-template-columns:minmax(280px,1fr) 190px 150px auto;gap:8px;align-items:center}.newsroom-toolbar label{min-height:44px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid #cedbe4;border-radius:10px;background:#f8fbfc}.newsroom-toolbar label svg{width:18px;color:#0a679d}.newsroom-toolbar input{width:100%;border:0;outline:0;color:#234963;background:transparent;font:600 13px var(--sans)}.newsroom-toolbar select{min-width:0;height:44px;padding:0 10px;border:1px solid #cedbe4;border-radius:10px;color:#31556f;background:#fff;font:750 13px var(--sans)}.newsroom-toolbar>span{justify-self:end;padding:7px 10px;border-radius:999px;color:#0a628f;background:#eaf4f9;font-size:13px;font-weight:850;white-space:nowrap}
.newsroom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.editorial-card{min-width:0;display:grid;grid-template-columns:158px minmax(0,1fr);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}.editorial-card:hover{box-shadow:0 20px 52px rgba(12,43,69,.13);transform:translateY(-3px)}
.editorial-card-visual{min-height:225px;padding:18px;display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;color:#fff;background:linear-gradient(155deg,#0a3158,#126c9c)}.editorial-card-visual.judgment{background:linear-gradient(155deg,#092540,#184f74)}.editorial-card-visual.sejm{background:linear-gradient(155deg,#12314c,#24756f)}.editorial-card-visual>span{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:#f2ca6b;background:rgba(255,255,255,.1)}.editorial-card-visual svg{width:25px}.editorial-card-visual em{max-width:100%;color:#d7e5ef;font-size:13px;font-style:normal;font-weight:800;overflow-wrap:anywhere}
.editorial-card>div{padding:18px;display:flex;min-width:0;flex-direction:column}.editorial-card>div>header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#93651e;font-size:13px;font-weight:850;text-transform:uppercase}.editorial-card>div>header time{color:#8495a3;font-weight:600;text-transform:none}.editorial-card h2{margin:10px 0 8px;color:#173c59;font:700 21px/1.17 var(--serif)}.editorial-card h2 a{color:inherit}.editorial-card p{margin:0;color:#62798b;font-size:13px;line-height:1.62}.editorial-card footer{margin-top:auto;padding-top:15px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center}.editorial-card footer b,.editorial-card footer small{display:block}.editorial-card footer b{color:#2c5069;font-size:13px}.editorial-card footer small{color:#8293a1;font-size:13px}.editorial-card footer>a{color:#09669b;font-size:13px;font-weight:850}
.newsroom-standards{margin-top:18px;padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #dec687;border-radius:18px;background:linear-gradient(110deg,#fff8e8,#fff)}.newsroom-standards>div{display:flex;align-items:center;gap:15px}.newsroom-standards>div>span{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;color:#fff;background:#0a527e}.newsroom-standards svg{width:23px}.newsroom-standards small{color:#98691f;font-size:13px;font-weight:900;text-transform:uppercase}.newsroom-standards h2{margin:3px 0;color:#173b57;font:700 22px var(--serif)}.newsroom-standards p{max-width:80ch;margin:0;color:#657b8c;font-size:13px;line-height:1.55}

.news-article{max-width:1240px;margin:0 auto}.news-article-hero{padding:42px;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:34px;align-items:center;overflow:hidden;border-radius:23px;color:#fff;background:radial-gradient(circle at 88% 4%,rgba(224,176,70,.3),transparent 20rem),linear-gradient(135deg,#061c35,#0a4d79);box-shadow:0 24px 64px rgba(7,35,59,.2)}.news-article-hero .eyebrow{color:#f0ca71}.news-article-hero h1{max-width:850px;margin:8px 0 13px;color:#fff;font:700 clamp(34px,4vw,52px)/1.05 var(--serif)}.news-article-hero>div>p{max-width:72ch;margin:0;color:#c8dae7;font-size:14px;line-height:1.65}.news-article-hero>aside{min-height:190px;padding:22px;display:grid;place-items:center;align-content:center;gap:8px;border:1px solid rgba(255,255,255,.16);border-radius:18px;text-align:center;background:rgba(255,255,255,.08)}.news-article-hero>aside>span{width:62px;height:62px;display:grid;place-items:center;border-radius:16px;color:#f0ca71;background:rgba(255,255,255,.1)}.news-article-hero>aside svg{width:31px}.news-article-hero>aside b{font:700 20px var(--serif);overflow-wrap:anywhere}.news-article-hero>aside small{color:#abc2d3;font-size:13px}
.news-article-byline{margin-top:20px;display:flex;align-items:center;gap:10px}.news-article-byline b,.news-article-byline small{display:block}.news-article-byline b{color:#fff;font-size:13px}.news-article-byline small{margin-top:2px;color:#a9c0d1;font-size:13px}
.news-article-layout{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}.news-article-layout>main{padding:42px;border:1px solid #d5e0e8;border-radius:20px;background:#fff;box-shadow:0 16px 45px rgba(11,43,67,.07)}.news-article-layout>main>section{margin-top:33px;padding-top:29px;border-top:1px solid #e0e7ec}.news-article-layout>main h2{margin:0 0 12px;color:#163b57;font:700 27px var(--serif)}.news-article-layout>main p,.news-article-layout>main li{color:#3f5d72;font-size:14px;line-height:1.85}.news-article-layout>main ul{padding-left:22px}.news-article-layout blockquote{margin:22px 0 0;padding:20px 23px;border-left:4px solid #c58d2e;color:#294d66;background:#fff7e5;font:700 16px/1.7 var(--serif)}.news-article-layout>aside{position:sticky;top:98px;display:grid;gap:12px}
.news-article-lead{margin:0;color:#173d59!important;font:700 21px/1.62 var(--serif)!important}
.news-article-source{padding:19px!important;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:13px;align-items:center;border:1px solid #bed6e4!important;border-radius:15px;background:#eff7fa}.news-article-source>span{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#0a6295}.news-article-source svg{width:23px}.news-article-source small{color:#7d8f9c;font-size:13px;text-transform:uppercase}.news-article-source h2{margin:2px 0 0!important;font-size:20px!important}.news-article-source p{margin:2px 0 0!important;font-size:13px!important}
.news-article-facts{padding:19px}.news-article-facts h2{margin:0 0 13px;color:#173d59;font:700 21px var(--serif)}.news-article-facts dl{margin:0}.news-article-facts dl div{padding:10px 0;display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;border-top:1px solid #e1e8ed}.news-article-facts dt{color:#8294a2;font-size:13px}.news-article-facts dd{margin:0;color:#2c5069;font-size:13px;font-weight:800;overflow-wrap:anywhere}
.news-article-disclaimer{padding:16px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;color:#665022;background:#fff9e9}.news-article-disclaimer>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#a57220}.news-article-disclaimer svg{width:19px}.news-article-disclaimer b{font-size:13px}.news-article-disclaimer p{margin:4px 0 0;font-size:13px;line-height:1.55}.news-source-link{width:100%!important;justify-content:center}
.news-related{margin-top:18px;padding:28px;border:1px solid #d4dfe7;border-radius:20px;background:#f7fafb}.news-related>header h2{margin:4px 0 17px;color:#173d59;font:700 27px var(--serif)}.news-related>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.news-related a{padding:17px}.news-related a>span{color:#97691f;font-size:13px;font-weight:850;text-transform:uppercase}.news-related h3{margin:7px 0;color:#1e4560;font:700 18px/1.2 var(--serif)}.news-related p{margin:0;color:#667d8f;font-size:13px;line-height:1.55}.news-related small{display:block;margin-top:13px;color:#0b689c;font-size:13px;font-weight:850}

@media(max-width:1100px){
  .newsroom-masthead{grid-template-columns:1fr auto}.newsroom-masthead nav{grid-column:1/-1;grid-row:2;justify-content:flex-start}.newsroom-lead{grid-template-columns:300px minmax(0,1fr)}.newsroom-toolbar{grid-template-columns:minmax(220px,1fr) 170px 140px}.newsroom-toolbar>span{grid-column:1/-1;justify-self:start}
  .newsroom-grid{grid-template-columns:1fr}.editorial-card{grid-template-columns:190px minmax(0,1fr)}
  .news-article-layout{grid-template-columns:minmax(0,1fr) 270px}.news-article-hero{grid-template-columns:minmax(0,1fr) 200px}
}
@media(max-width:780px){
  .newsroom-lead{grid-template-columns:1fr}.newsroom-lead-visual{min-height:180px}.newsroom-lead>article{padding:26px}
  .newsroom-toolbar{grid-template-columns:1fr 1fr}.newsroom-toolbar label{grid-column:1/-1}
  .news-article-hero,.news-article-layout{grid-template-columns:1fr}.news-article-hero{padding:30px}.news-article-hero>aside{min-height:130px}.news-article-layout>main{padding:27px}.news-article-layout>aside{position:static}.news-related>div{grid-template-columns:1fr}
}
@media(max-width:560px){
  .newsroom-masthead{padding:12px;grid-template-columns:1fr}.newsroom-masthead>div{align-items:flex-start;flex-wrap:wrap}.newsroom-masthead>time{grid-row:2}.newsroom-masthead nav{grid-row:3}
  .newsroom-toolbar{grid-template-columns:1fr}.newsroom-toolbar label,.newsroom-toolbar select{grid-column:1}
  .editorial-card{grid-template-columns:1fr}.editorial-card-visual{min-height:130px;flex-direction:row}.editorial-card footer{grid-template-columns:34px minmax(0,1fr)}.editorial-card footer>a{grid-column:1/-1}
  .newsroom-standards{align-items:stretch;flex-direction:column}.newsroom-standards>div{align-items:flex-start}
  .news-article-hero{padding:24px 19px}.news-article-hero h1{font-size:30px}.news-article-layout>main{padding:22px 18px}.news-article-layout>main p,.news-article-layout>main li{font-size:13px}.news-article-source{grid-template-columns:42px minmax(0,1fr)}.news-article-source .btn{grid-column:1/-1;width:100%}.news-related{padding:20px 16px}
}

/* Global top navigation with accessible mega menu. */
.portal.portal-top-navigation{min-height:100vh;display:block;background:linear-gradient(180deg,#f7f9fb,#edf2f5)}
.portal-top-navigation>.shell{width:100%;min-width:0}
.site-header{position:sticky;z-index:90;top:0;background:rgba(255,255,255,.97);box-shadow:0 10px 30px rgba(10,42,68,.07);backdrop-filter:blur(22px) saturate(145%)}
.site-header .topbar{height:72px;padding:0 max(20px,calc((100vw - 1560px)/2));position:relative;z-index:2;border-bottom:1px solid #dce5eb;background:transparent;box-shadow:none}
.topbar-brand{min-width:220px;display:flex;align-items:center;gap:11px;color:#123651}.topbar-brand .brand-mark{width:44px;height:44px;flex:0 0 auto;border-radius:12px}.topbar-brand strong,.topbar-brand small{display:block}.topbar-brand strong{font:700 19px var(--serif)}.topbar-brand small{margin-top:1px;color:#8396a5;font-size:13px;letter-spacing:.11em;text-transform:uppercase}
.site-header .global-search{max-width:680px}.site-header .top-actions{flex:0 0 auto}
.mega-nav{height:54px;position:relative;z-index:1;border-bottom:1px solid #d3dee6;background:#fff;padding-top:10px}
.mobile-menu-panel{min-width:0}
.mega-nav-inner{width:min(1560px,calc(100% - 40px));height:100%;margin:0 auto;display:flex;align-items:stretch;gap:3px}
.mega-nav-trigger{min-width:150px;padding:0 16px;position:relative;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:0;color:#45637a;background:transparent;font:850 13px var(--sans);cursor:pointer;transition:color .16s ease,background .16s ease}.mega-nav-trigger::after{content:"";height:3px;position:absolute;left:15px;right:15px;bottom:0;border-radius:3px 3px 0 0;background:transparent}.mega-nav-trigger>span{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:#0c679b;background:#ecf5f9}.mega-nav-trigger svg{width:17px}.mega-nav-trigger>b{font:inherit}.mega-nav-trigger>i{margin-left:3px;color:#8ba0af;font-size:13px;font-style:normal;transition:transform .16s ease}.mega-nav-trigger:hover,.mega-nav-trigger.open{color:#0b527d;background:#f0f6f9}.mega-nav-trigger:hover::after,.mega-nav-trigger.open::after,.mega-nav-trigger.current::after{background:#c99435}.mega-nav-trigger.open>i{transform:rotate(180deg)}
.mega-menu{position:absolute;left:0;right:0;top:100%;border-top:1px solid #d9e3e9;border-bottom:1px solid #cad8e1;background:rgba(248,251,252,.99);box-shadow:0 25px 55px rgba(8,38,62,.18)}
.mega-menu-inner{width:min(1560px,calc(100% - 40px));margin:0 auto;padding:24px 0 28px}
.mega-panel{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}.mega-panel[hidden]{display:none}
.mega-panel-intro{padding:20px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;border:1px solid #cfdee7;border-radius:16px;background:linear-gradient(145deg,#fff,#edf5f8);box-shadow:0 10px 28px rgba(10,43,68,.06)}.mega-panel-intro>span{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(145deg,#0d6d9f,#073a62)}.mega-panel-intro svg{width:24px}.mega-panel-intro small{color:#95681f;font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.mega-panel-intro h2{margin:3px 0 5px;color:#153b57;font:700 25px var(--serif)}.mega-panel-intro p{margin:0;color:#667f91;font-size:13px;line-height:1.5}
.mega-panel-sections{min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px;align-items:start}
.mega-panel-section{min-width:0;padding:11px;border:1px solid #d5e1e8;border-radius:15px;background:#fff;box-shadow:0 9px 25px rgba(10,43,68,.05)}
.mega-panel-section>h3{margin:0 4px 7px;padding:3px 4px 9px;border-bottom:1px solid #dde7ec;color:#8b5e19;font:900 13px var(--sans);letter-spacing:.08em;text-transform:uppercase}
.mega-panel-links{display:grid;grid-template-columns:1fr;gap:4px}.mega-panel-links>a{min-width:0;min-height:62px;padding:10px;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:10px;align-items:center;border:1px solid transparent;border-radius:11px;color:#244a65;background:#fff;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.mega-panel-links>a:hover{border-color:#bed2de;background:#eef6f9;box-shadow:0 7px 18px rgba(10,47,75,.07)}.mega-panel-links>a.active{border-color:#d7b567;background:linear-gradient(110deg,#fff7df,#fff);box-shadow:inset 3px 0 #c99231}.mega-panel-links>a>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#0a679b;background:#e6f2f7}.mega-panel-links>a>span svg{width:19px}.mega-panel-links b,.mega-panel-links small{display:block}.mega-panel-links b{font-size:13px;line-height:1.25}.mega-panel-links small{margin-top:3px;color:#708696;font-size:8.5px;line-height:1.4}.mega-panel-links>a>i{color:#0b6b9f;font-style:normal}.mega-panel-links>a>i svg{width:15px}.mega-panel-links>a>em{min-width:23px;height:23px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#1b78b1;font-size:13px;font-style:normal;font-weight:900}
.portal-top-navigation .content{width:min(1560px,100%);margin:0 auto}
.landing .content{width:min(1560px,100%)}

/* Górna nawigacja: nazwa działu prowadzi do centrum, strzałka rozwija katalog. */
.mega-nav-item{min-width:150px;position:relative;display:flex;align-items:stretch;border-bottom:3px solid transparent}.mega-nav-item.current,.mega-nav-item:has(.mega-nav-trigger.open){border-bottom-color:#c99435}.mega-nav-link{min-width:0;flex:1;padding:0 7px 0 15px;display:flex;align-items:center;justify-content:center;gap:9px;color:#45637a;font:850 13px var(--sans);white-space:nowrap}.mega-nav-link:hover{color:#0b527d;background:#f0f6f9}.mega-nav-link>span{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:#0c679b;background:#ecf5f9}.mega-nav-link svg{width:17px}.mega-nav-trigger{width:34px;min-width:34px;padding:0 10px;justify-content:center;gap:0}.mega-nav-trigger::after{display:none}.mega-nav-trigger:hover,.mega-nav-trigger.open{background:#f0f6f9}.mega-nav-trigger>i{margin:0}.mega-nav-trigger.open{color:#0b527d}.mega-panel-open-btn{width:100%;min-height:39px;margin-top:13px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #0c669a;border-radius:10px;color:#fff;background:#0b6599;font-size:13px;font-weight:850}.mega-panel-open-btn:hover{color:#fff;background:#084d77}.mega-panel-open-btn svg{width:15px}.mega-panel-section>header{margin:0 4px 7px;padding:3px 4px 9px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-bottom:1px solid #dde7ec}.mega-panel-section>header h3{margin:0;padding:0;border:0;color:#8b5e19;font:900 13px var(--sans);letter-spacing:.08em;text-transform:uppercase}.mega-panel-section>header small{display:block;margin-top:3px;color:#74899a;font-size:13px;line-height:1.35}.mega-panel-section>header em{min-width:23px;height:23px;display:grid;place-items:center;border-radius:999px;color:#0b6699;background:#e6f3f8;font-size:13px;font-style:normal;font-weight:900}.mega-panel-section>h3{display:none}

@media(max-width:1080px) and (min-width:821px){
  .topbar-brand{min-width:auto}.topbar-brand>span:last-child{display:none}.mega-nav-trigger{min-width:130px;padding-inline:11px}.mega-panel{grid-template-columns:190px minmax(0,1fr)}.mega-panel-sections{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .site-header .topbar{height:68px;padding:0 10px;gap:8px}.topbar-brand{min-width:auto}.topbar-brand .brand-mark{width:42px;height:42px}.topbar-brand>span:last-child{display:none}
  .site-header .mobile-menu{display:grid;flex:0 0 auto}.site-header .global-search{min-width:0}.site-header .global-search label{padding-inline:10px}.site-header .global-search kbd{display:none}.site-header .top-actions .source-state,.site-header .user-chip>span:last-child{display:none}
.mega-nav{height:calc(100dvh - 68px);display:none;position:fixed;z-index:121;left:0;right:0;top:68px;bottom:auto;border:0;background:#f4f8fa;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.portal.menu-open .mega-nav{display:block}
  .mega-nav-inner{width:100%;height:auto;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mega-nav-trigger{min-width:0;min-height:46px;padding:7px 9px;justify-content:flex-start;border:1px solid #d6e1e8;border-radius:11px;background:#fff}.mega-nav-trigger::after{display:none}.mega-nav-trigger>span{width:30px;height:30px}.mega-nav-trigger>i{margin-left:auto}.mega-nav-trigger.current,.mega-nav-trigger.open{color:#fff;border-color:#0a527e;background:#0a527e}.mega-nav-trigger.current>span,.mega-nav-trigger.open>span{color:#0a527e;background:#fff}
  .mega-menu{position:static;border:0;background:transparent;box-shadow:none}.mega-menu-inner{width:100%;padding:0 10px 20px}.mega-panel{grid-template-columns:1fr;gap:8px}.mega-panel-intro{padding:15px}.mega-panel-sections{grid-template-columns:1fr}.mega-panel-links>a{min-height:58px}.portal.menu-open{height:100dvh;overflow:hidden}
}
@media(max-width:820px){
  .mega-nav-item{min-width:0;border:1px solid #d6e1e8;border-radius:11px;background:#fff}.mega-nav-item.current,.mega-nav-item:has(.mega-nav-trigger.open){border-color:#0a527e;background:#0a527e}.mega-nav-link{min-height:46px;padding:7px 6px 7px 9px;justify-content:flex-start;color:#45637a}.mega-nav-item.current .mega-nav-link,.mega-nav-item:has(.mega-nav-trigger.open) .mega-nav-link{color:#fff}.mega-nav-item.current .mega-nav-link>span,.mega-nav-item:has(.mega-nav-trigger.open) .mega-nav-link>span{color:#0a527e;background:#fff}.mega-nav-trigger{width:38px;min-width:38px;padding:0 8px;border-left:1px solid #e1e9ee;border-radius:0 10px 10px 0;background:transparent}.mega-nav-item.current .mega-nav-trigger,.mega-nav-item:has(.mega-nav-trigger.open) .mega-nav-trigger{border-left-color:rgba(255,255,255,.2);color:#fff;background:transparent}.mega-panel-open-btn{max-width:320px}.mega-panel-section>header small{font-size:13px}
}
@media(max-width:520px){
  .site-header .global-search input::placeholder{color:transparent}.site-header .global-search{flex:1}.site-header .top-actions{gap:4px}.site-header .top-actions .icon-btn{display:none}.site-header .user-chip .avatar{width:38px;height:38px}
  .mega-nav-inner{grid-template-columns:1fr}.mega-nav-trigger{min-height:44px}.mega-panel-intro{grid-template-columns:38px minmax(0,1fr)}.mega-panel-intro>span{width:38px;height:38px}.mega-panel-links>a{grid-template-columns:32px minmax(0,1fr) 16px}.mega-panel-links>a>span{width:32px;height:32px}
}

/* Mobile navigation: explicit state prevents the panel from being hidden by
   competing responsive rules after a tap. */
@media(max-width:820px){
  .site-header .mobile-menu{position:relative;z-index:124;display:grid!important;touch-action:manipulation}
  .site-header .mobile-menu.is-open{color:#fff;border-color:#0a527e;background:#0a527e}
  .portal.menu-open .mega-nav:not([hidden]){display:block!important;visibility:visible;pointer-events:auto}
  html.mobile-menu-open,html.mobile-menu-open body{overscroll-behavior:none}
}

/* Facebook-like account popover, independent from primary navigation. */
.site-header .top-actions{position:relative}
.account-trigger{min-height:48px;padding:4px 9px 4px 5px;display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:14px;color:#294b64;background:transparent;cursor:pointer}.account-trigger:hover,.account-trigger.open{border-color:#d5e1e8;background:#f1f6f8}.account-trigger .avatar{width:39px;height:39px}.account-trigger>span:nth-child(2){min-width:0;text-align:left}.account-trigger b,.account-trigger small{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-trigger b{font-size:13px}.account-trigger small{margin-top:2px;color:#8193a1;font-size:13px}.account-trigger>i{color:#7890a0;font-size:13px;font-style:normal;transition:transform .16s ease}.account-trigger.open>i{transform:rotate(180deg)}
.account-popover{width:360px;padding:10px;position:absolute;z-index:110;right:0;top:calc(100% + 11px);border:1px solid #d4e0e7;border-radius:18px;background:#fff;box-shadow:0 24px 64px rgba(7,35,58,.22)}
.account-popover>header{padding:10px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #e1e8ed}.account-popover>header .avatar{width:48px;height:48px}.account-popover>header b,.account-popover>header small{display:block}.account-popover>header b{color:#173d59;font:700 18px var(--serif)}.account-popover>header small{margin-top:2px;color:#7a8e9d;font-size:13px}.account-online{padding:5px 7px;display:flex;align-items:center;gap:5px;border-radius:999px;color:#197456;background:#e9f7f0;font-size:13px;font-weight:850}.account-online i{width:6px;height:6px;border-radius:50%;background:#25a879}
.account-popover nav{padding:8px 0}.account-popover nav>a{min-height:57px;padding:8px;display:grid;grid-template-columns:38px minmax(0,1fr) 20px;gap:9px;align-items:center;border-radius:11px;color:#294e68}.account-popover nav>a:hover{background:#eef5f8}.account-popover nav>a>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#0a679b;background:#e8f3f8}.account-popover nav>a>span svg{width:19px}.account-popover nav b,.account-popover nav small{display:block}.account-popover nav b{font-size:13px}.account-popover nav small{margin-top:2px;color:#8192a0;font-size:13px}.account-popover nav>a>svg{width:15px;color:#0a679b}.account-popover nav>a>em{min-width:22px;height:22px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#1b78b1;font-size:13px;font-style:normal;font-weight:900}
.account-popover>footer{padding:9px 8px 3px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e1e8ed}.account-popover>footer a{display:flex;align-items:center;gap:6px;color:#587286;font-size:13px;font-weight:800}.account-popover>footer a:last-child{color:#a34a4a}.account-popover>footer svg{width:15px}

/* Judge administration: professional statement and OCR register. */
.judge-report-dashboard{padding:14px 18px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.judge-report-dashboard>article{min-height:78px;padding:12px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #d8e3ea;border-radius:12px;background:linear-gradient(145deg,#f8fbfc,#fff)}.judge-report-dashboard>article>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0a689d;background:#e7f3f8}.judge-report-dashboard svg{width:18px}.judge-report-dashboard small,.judge-report-dashboard b,.judge-report-dashboard p{display:block}.judge-report-dashboard small{color:#72889a;font-size:13px;font-weight:800}.judge-report-dashboard b{margin-top:2px;color:#153f5d;font-size:20px}.judge-report-dashboard p{margin:1px 0 0;color:#8294a2;font-size:13px}
.judge-report-toolbar{margin:12px 18px 0;padding:9px;display:grid;grid-template-columns:minmax(210px,1fr) 180px 140px auto;gap:7px;align-items:center;border:1px solid #d7e2e9;border-radius:12px;background:#f3f7f9}.judge-report-toolbar label{height:40px;padding:0 10px;display:flex;align-items:center;gap:8px;border:1px solid #cbd9e2;border-radius:9px;background:#fff}.judge-report-toolbar label svg{width:16px;color:#0a679b}.judge-report-toolbar input{width:100%;min-width:0;border:0;outline:0;color:#173d59;background:transparent;font-size:13px}.judge-report-toolbar select{height:40px;padding:0 10px;border:1px solid #cbd9e2;border-radius:9px;color:#2b506a;background:#fff;font-size:13px}.judge-report-toolbar>.badge{justify-self:end;white-space:nowrap}
.judge-admin-docs{padding:12px 18px 18px;display:grid;gap:9px}.judge-admin-docs>.judge-report-row{padding:13px;display:grid;grid-template-columns:minmax(260px,1.1fr) minmax(280px,.9fr);gap:12px;border:1px solid #d8e3ea;border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(12,47,71,.04)}.judge-report-row:hover{border-color:#adc8d8}.judge-report-row.processing{border-style:dashed}.judge-report-identity{min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center}.judge-report-identity>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:#0a689d;background:#e7f3f8}.judge-report-identity>span svg{width:20px}.judge-report-identity header{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.judge-report-identity b{min-width:0;color:#244c67;font-size:13px}.judge-report-identity p{margin:4px 0 0;color:#74899a;font-size:13px;line-height:1.45}.judge-report-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.judge-report-facts>span{min-width:0;padding:8px;border-radius:9px;background:#f3f7f9}.judge-report-facts small,.judge-report-facts b{display:block}.judge-report-facts small{color:#8092a0;font-size:13px}.judge-report-facts b{margin-top:3px;overflow:hidden;color:#204a66;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.judge-report-row>footer{grid-column:1/-1;padding-top:9px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e3eaee}.judge-report-row>footer>small{color:#7a8d9b;font-size:13px;line-height:1.45}.judge-report-row>footer>div{display:flex;gap:6px;flex:0 0 auto}.judge-report-row>footer .btn{min-height:34px;padding:0 10px;font-size:13px}.judge-report-row>.btn{justify-self:end;min-height:34px;font-size:13px}
.judge-source-library{margin:0 18px 18px;border:1px solid #c9dce8;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#f7fbfd,#fff);box-shadow:0 12px 28px rgba(12,56,84,.07)}.judge-source-library>header{padding:17px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid #dbe6ec;background:linear-gradient(110deg,#edf7fb,#fff8e9)}.judge-source-library>header>span{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(145deg,#0e75ae,#084b78)}.judge-source-library>header svg{width:22px}.judge-source-library>header small{color:#986819;font-size:13px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.judge-source-library>header h3{margin:3px 0 1px;color:#173e5a;font:700 20px var(--serif)}.judge-source-library>header p{margin:0;color:#6d8496;font-size:13px}.judge-source-library>header>b{padding:8px 11px;border-radius:999px;color:#0a6499;background:#e6f2f8;font-size:13px;white-space:nowrap}.judge-source-library>form{padding:12px;display:grid;grid-template-columns:minmax(220px,1fr) 155px 170px auto;gap:8px;border-bottom:1px solid #dfe8ed;background:#f3f7f9}.judge-source-library>form label{height:42px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid #c8d8e2;border-radius:10px;background:#fff}.judge-source-library>form label svg{width:17px;color:#0b6b9f}.judge-source-library>form input{width:100%;min-width:0;border:0;outline:0;color:#173f5c;background:transparent;font-size:13px}.judge-source-library>form select{min-width:0;height:42px;padding:0 10px;border:1px solid #c8d8e2;border-radius:10px;color:#284f69;background:#fff;font-size:13px}.judge-source-library-list{padding:12px;display:grid;gap:8px}.judge-source-library-list>article{padding:12px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #d9e4ea;border-radius:12px;background:#fff;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}.judge-source-library-list>article:hover{border-color:#9fc3d8;transform:translateY(-1px);box-shadow:0 10px 24px rgba(12,55,83,.08)}.judge-source-library-list>article>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#0d6da3;background:#e9f4f9}.judge-source-library-list>article>span svg{width:21px}.judge-source-library-list h4{margin:2px 0;color:#173f5c;font-size:14px}.judge-source-library-list small{color:#72899a;font-size:13px}.judge-source-library-list p{margin:3px 0 7px;color:#5f788b;font-size:13px}.judge-source-library-list article>div>div{display:flex;gap:5px;flex-wrap:wrap}.judge-source-library-list em{padding:4px 7px;border-radius:999px;color:#395c73;background:#edf3f6;font-size:13px;font-style:normal;font-weight:800}.judge-source-library-list em.ready{color:#147154;background:#e5f6ee}.judge-source-library-list em.error{color:#9f3f3f;background:#fbeaea}.judge-source-library-list aside{display:flex;gap:6px}.judge-source-library-list .btn{min-height:36px;padding:0 11px;font-size:13px}.judge-source-library>footer{padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:14px;border-top:1px solid #dfe8ed;background:#f6f9fb}.judge-source-library>footer span{color:#60798c;font-size:13px;font-weight:800}.judge-source-loading{min-height:90px;display:flex;align-items:center;justify-content:center;gap:10px;color:#5d778a;font-size:13px}.judge-source-loading i{width:20px;height:20px;border:2px solid #c7dce8;border-top-color:#0d6da3;border-radius:50%;animation:judge-source-spin .8s linear infinite}@keyframes judge-source-spin{to{transform:rotate(360deg)}}
.judge-report-empty{margin:0 18px 18px;padding:30px;place-items:center;text-align:center;border:1px dashed #c9d8e2;border-radius:13px;background:#f8fbfc}.judge-report-empty:not([hidden]){display:grid}.judge-report-empty>span{color:#0a689d}.judge-report-empty svg{width:26px}.judge-report-empty b{margin-top:7px;color:#254d68}.judge-report-empty p{margin:4px 0 0;color:#7a8d9b;font-size:13px}
.judge-report-modal>header{padding:15px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #d4e1e8;border-radius:13px;background:linear-gradient(135deg,#eef7fa,#fff)}.judge-report-modal>header>span:first-child{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;color:#fff;background:#0a679b}.judge-report-modal>header svg{width:21px}.judge-report-modal>header small,.judge-report-modal>header h2,.judge-report-modal>header p{display:block}.judge-report-modal>header small{color:#946820;font-size:13px;font-weight:900;text-transform:uppercase}.judge-report-modal>header h2{margin:3px 0;color:#173d59;font:700 20px var(--serif)}.judge-report-modal>header p{margin:0;color:#718798;font-size:13px}.judge-report-modal-facts{margin-top:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.judge-report-modal-facts>article{padding:11px;border:1px solid #dce5eb;border-radius:10px;background:#f8fafb}.judge-report-modal-facts small,.judge-report-modal-facts b{display:block}.judge-report-modal-facts small{color:#7d909e;font-size:13px}.judge-report-modal-facts b{margin-top:4px;overflow-wrap:anywhere;color:#214a66;font-size:13px}.judge-report-review{margin-top:12px;padding:14px;border:1px solid #ead29d;border-radius:12px;background:#fffaf0}.judge-report-review>div{display:flex;gap:9px;align-items:center}.judge-report-review>div>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#9a681d;background:#fff0c9}.judge-report-review svg{width:17px}.judge-report-review small{color:#9a681d;font-size:13px;font-weight:900;text-transform:uppercase}.judge-report-review h3{margin:2px 0 0;color:#5d4927;font-size:13px}.judge-report-review ul{margin:11px 0 0;padding-left:18px;color:#665b48;font-size:13px;line-height:1.7}.judge-report-review p{margin:10px 0 0;color:#6e624d;font-size:13px}
@media(max-width:900px){.judge-report-toolbar{grid-template-columns:1fr 1fr}.judge-report-toolbar label{grid-column:1/-1}.judge-report-toolbar>.badge{justify-self:start}.judge-admin-docs>.judge-report-row{grid-template-columns:1fr}.judge-report-row>footer{grid-column:1}.judge-report-modal-facts{grid-template-columns:1fr 1fr}.judge-source-library>form{grid-template-columns:1fr 1fr}.judge-source-library>form label{grid-column:1/-1}.judge-source-library-list>article{grid-template-columns:42px minmax(0,1fr)}.judge-source-library-list aside{grid-column:2}}
@media(max-width:600px){.judge-report-dashboard{grid-template-columns:1fr}.judge-report-toolbar{grid-template-columns:1fr}.judge-report-toolbar label{grid-column:1}.judge-report-toolbar select{width:100%}.judge-admin-docs>.judge-report-row{padding:10px}.judge-report-facts{grid-template-columns:1fr}.judge-report-row>footer{align-items:stretch;flex-direction:column}.judge-report-row>footer>div{display:grid;grid-template-columns:1fr 1fr}.judge-report-modal>header{grid-template-columns:38px minmax(0,1fr)}.judge-report-modal>header>span:first-child{width:38px;height:38px}.judge-report-modal>header>.badge{grid-column:2;justify-self:start}.judge-report-modal-facts{grid-template-columns:1fr}.judge-source-library{margin-inline:10px}.judge-source-library>header{grid-template-columns:40px minmax(0,1fr)}.judge-source-library>header>b{grid-column:2;justify-self:start}.judge-source-library>form{grid-template-columns:1fr}.judge-source-library>form label{grid-column:1}.judge-source-library-list>article{grid-template-columns:36px minmax(0,1fr)}.judge-source-library-list>article>span{width:36px;height:36px}.judge-source-library-list aside{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.judge-source-library>footer{flex-wrap:wrap}}

/* The library lives inside a narrow administrative workspace, so its toolbar uses two rows. */
.judge-source-library>form{grid-template-columns:1fr 1fr auto}.judge-source-library>form label{grid-column:1/-1}.judge-source-library>form .btn,.judge-source-library-list .btn{white-space:nowrap}
@media(max-width:600px){.judge-source-library>form{grid-template-columns:1fr}.judge-source-library>form label{grid-column:1}.judge-source-library>form .btn{width:100%}}

/* Investigative stories linked directly to AML source profiles. */
.investigation-article{position:relative}
.investigation-story header h2 a{color:inherit}.investigation-story header h2 a:hover{color:#0a679b}.investigation-story>header{align-items:start}.investigation-story>header>div>p{max-width:92ch;margin-top:7px;font-size:13px;line-height:1.58}
.investigation-subject{margin:12px 15px;padding:12px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #d7e3e9;border-radius:12px;background:#f5f9fb}.investigation-subject>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#0a5f91}.investigation-subject svg{width:19px}.investigation-subject small,.investigation-subject b,.investigation-subject p{display:block}.investigation-subject small{color:#8a6a2d;font-size:13px;font-weight:900;text-transform:uppercase}.investigation-subject b{margin-top:2px;color:#224b66;font-size:13px}.investigation-subject p{margin:2px 0 0;color:#788d9d;font-size:13px}
.investigation-actions{display:flex;gap:7px}.investigation-actions .btn{min-height:39px;font-size:13px}
.investigation-article-hero{background:radial-gradient(circle at 88% 4%,rgba(53,166,137,.26),transparent 20rem),radial-gradient(circle at 64% 110%,rgba(219,166,64,.18),transparent 21rem),linear-gradient(135deg,#061d37,#0a4f65)}
.investigation-findings{display:grid;gap:9px}.investigation-findings>article{padding:14px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:11px;border:1px solid #d8e3e9;border-radius:12px;background:#f8fbfc}.investigation-findings>article>span{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#0b6999}.investigation-findings svg{width:19px}.investigation-findings small,.investigation-findings b{display:block}.investigation-findings small{color:#95691f;font-size:13px;font-weight:850;text-transform:uppercase}.investigation-findings b{margin-top:2px;color:#234b66;font-size:13px}.investigation-findings p{margin:5px 0 0!important;font-size:13px!important;line-height:1.6!important}
.investigation-source-ledger{display:grid;gap:8px}.investigation-source-ledger>article{padding:12px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;border-bottom:1px solid #dfe7ec}.investigation-source-ledger>article>b{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;color:#173d59;background:#efcc76;font-size:13px}.investigation-source-ledger strong,.investigation-source-ledger small{display:block}.investigation-source-ledger strong{color:#264d67;font-size:13px}.investigation-source-ledger small{margin-top:3px;color:#7c8f9d;font-size:13px}
.investigation-aml-card{padding:17px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;background:linear-gradient(145deg,#edf8f4,#fff)}.investigation-aml-card>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#fff;background:#188266}.investigation-aml-card svg{width:21px}.investigation-aml-card small,.investigation-aml-card b{display:block}.investigation-aml-card small{color:#66887d;font-size:13px;text-transform:uppercase}.investigation-aml-card b{margin-top:3px;color:#1f5145;font-size:13px}.investigation-aml-card p{margin:5px 0 10px;color:#668177;font-size:13px;line-height:1.55}.investigation-aml-card .btn{width:100%;justify-content:center}

@media(max-width:820px){
  .account-trigger{padding:3px;border-color:transparent}.account-trigger>span:nth-child(2),.account-trigger>i{display:none}.account-popover{width:min(360px,calc(100vw - 20px));position:fixed;right:10px;top:62px}
}
@media(max-width:560px){
  .investigation-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.investigation-actions .btn{width:100%}
  .account-popover{left:10px;width:auto}.account-popover>header{grid-template-columns:44px minmax(0,1fr)}.account-popover .account-online{grid-column:2;justify-self:start}.account-popover>footer{align-items:flex-start;flex-direction:column}
}

/* Fixed application header: keep the default spacer globally, but allow legal pages to opt out. */
.portal-top-navigation>.shell{padding-top:126px}
.site-header{position:sticky;z-index:1000;left:0;right:0;top:0}
body[data-page="provision"] .portal-top-navigation>.shell,
body[data-page="act"] .portal-top-navigation>.shell,
body[data-page="laws"] .portal-top-navigation>.shell{padding-top:0}

/* The mobile drawer must sit above every workspace, canvas and chat panel. */
@media(max-width:820px){
  .site-header .mega-nav{inset:68px 0 0;height:auto;z-index:1001;overscroll-behavior:contain}
  .portal.menu-open .site-header .mega-nav:not([hidden]){display:block!important;visibility:visible!important;opacity:1!important}
  .site-header .mobile-menu-panel{min-height:calc(100dvh - 68px);background:#f4f8fa}
  .portal.menu-open .site-header .mobile-menu-panel.is-open{display:block!important;visibility:visible!important;opacity:1!important}
  body[data-page="provision"] .portal-top-navigation>.shell,
  body[data-page="act"] .portal-top-navigation>.shell,
  body[data-page="laws"] .portal-top-navigation>.shell{padding-top:0}

  /* The legacy sidebar backdrop must not cover the new top-navigation drawer. */
  .portal-top-navigation.menu-open::after{
    content:none!important;
    display:none!important;
  }
  .portal-top-navigation.menu-open .mega-nav,
  .portal-top-navigation.menu-open .mega-menu,
  .portal-top-navigation.menu-open .mega-panel{
    filter:none!important;
    opacity:1!important;
  }
}

/* Professional document workspace: folders, register and live inspector. */
body[data-page="documents"] .content{padding-top:24px}
body[data-page="documents"] #prawnikom-pro-features{display:none}
body[data-page="documents"] .page-head{margin-bottom:16px;align-items:center}
body[data-page="documents"] .page-head h1{font-size:34px}
body[data-page="documents"] .page-head p{font-size:13px}
.document-pro-kpis{margin-bottom:13px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.document-pro-kpis article{min-height:72px;padding:13px 15px;display:flex;align-items:center;gap:11px;border:1px solid #d4e0e7;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(10,43,68,.05)}
.document-pro-kpis article>span{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;color:#0a679b;background:#e9f4f9}
.document-pro-kpis article.warning>span{color:#91651c;background:#fff1cf}
.document-pro-kpis svg{width:18px}
.document-pro-kpis small,.document-pro-kpis b{display:block}.document-pro-kpis small{color:#73899b;font-size:13px;font-weight:750}.document-pro-kpis b{margin-top:2px;color:#173c58;font:700 22px/1 var(--serif)}
.document-pro-workspace{display:grid;grid-template-columns:220px minmax(520px,1fr) 330px;gap:12px;align-items:start}
.document-pro-sidebar,.document-pro-center,.document-pro-inspector{overflow:hidden;border-radius:16px;box-shadow:0 14px 38px rgba(11,43,67,.07)}
.document-pro-sidebar,.document-pro-inspector{position:sticky;top:138px}
.document-pro-sidebar>header{min-height:66px;padding:13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe7ec}
.document-pro-sidebar>header h2{margin:2px 0 0;color:#173d59;font:700 18px var(--serif)}
.document-pro-sidebar>header button{width:32px;height:32px;border:0;border-radius:9px;color:#fff;background:#0a659b;font-size:19px;cursor:pointer}
.document-pro-state-nav,.document-pro-folder-nav{padding:7px;display:grid;gap:3px}
.document-pro-state-nav{border-bottom:1px solid #e1e8ed}
.document-pro-sidebar nav button{width:100%;min-height:40px;padding:7px 8px;display:grid;grid-template-columns:28px minmax(0,1fr) 24px;gap:7px;align-items:center;border:1px solid transparent;border-radius:9px;color:#45647b;background:transparent;text-align:left;cursor:pointer}
.document-pro-sidebar nav button:hover{background:#f0f6f9}.document-pro-sidebar nav button.active{color:#fff;border-color:#0a5785;background:linear-gradient(145deg,#0c679b,#08456e);box-shadow:0 7px 17px rgba(8,79,122,.17)}
.document-pro-sidebar nav button>span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#0a669a;background:#e8f3f8}
.document-pro-sidebar nav button.active>span{color:#173851;background:linear-gradient(145deg,#f5dc98,#d09a36)}
.document-pro-sidebar nav svg{width:14px}.document-pro-sidebar nav b{min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.document-pro-sidebar nav em{min-width:21px;padding:3px 5px;border-radius:999px;color:#647a8c;background:#e8eef2;font-size:13px;font-style:normal;font-weight:850;text-align:center}.document-pro-sidebar nav button.active em{color:#fff;background:rgba(255,255,255,.15)}
.document-pro-folder-nav>small{padding:5px 8px 4px;color:#8798a5;font-size:13px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.document-pro-sidebar>footer{margin:7px;padding:11px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;border:1px solid #cfe1d8;border-radius:10px;color:#2d6d55;background:#eff9f4}
.document-pro-sidebar>footer>svg{width:17px;margin:3px auto}.document-pro-sidebar>footer b,.document-pro-sidebar>footer small{display:block}.document-pro-sidebar>footer b{font-size:13px}.document-pro-sidebar>footer small{margin-top:2px;color:#6f8a7d;font-size:13px;line-height:1.4}
.document-pro-center{min-width:0}
.document-pro-toolbar.filters{margin:0;padding:10px;display:grid;grid-template-columns:minmax(210px,1fr) 110px 120px 105px;gap:7px;border:0;border-bottom:1px solid #dfe7ec;border-radius:0;background:#f7fafb;box-shadow:none}
.document-pro-toolbar>label{min-height:40px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #d3dfe7;border-radius:9px;background:#fff}.document-pro-toolbar>label svg{width:16px;color:#0b679b}.document-pro-toolbar input{width:100%;min-width:0;border:0!important;outline:0;background:transparent;font-size:13px!important}.document-pro-toolbar select{width:100%;min-width:0;min-height:40px!important;padding:0 9px!important;border:1px solid #d3dfe7!important;border-radius:9px!important;background:#fff!important;font-size:13px!important}
.document-pro-toolbar .smart-select{width:100%;min-width:0}.document-pro-toolbar .smart-select-trigger{width:100%;min-width:0;min-height:40px;padding:0 8px;gap:5px;font-size:13px}.document-pro-toolbar .smart-select-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.document-pro-list-head{min-height:67px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.document-pro-list-head h2{margin:2px 0 0;color:#173d59;font:700 20px var(--serif)}.document-pro-list-head>span{padding:5px 8px;border-radius:999px;color:#0a6197;background:#e8f3f9;font-size:13px;font-weight:850;white-space:nowrap}
.document-pro-columns{min-height:31px;padding:0 12px 0 67px;display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(92px,.7fr) minmax(120px,.8fr) 92px 22px;gap:9px;align-items:center;border-top:1px solid #e2e8ed;border-bottom:1px solid #dce5eb;color:#8294a2;background:#f7f9fa;font-size:13px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.document-pro-list{min-height:360px;background:#fff}
.document-pro-row{min-width:0;min-height:82px;padding:10px 12px;display:grid;grid-template-columns:44px minmax(170px,1.4fr) minmax(92px,.7fr) minmax(120px,.8fr) 92px 22px;gap:9px;align-items:center;border-bottom:1px solid #e3e9ee;background:#fff;cursor:pointer;transition:background .16s ease,box-shadow .16s ease}
.document-pro-row:hover{background:#f7fbfd}.document-pro-row.active{position:relative;z-index:1;background:linear-gradient(90deg,#eef8fc,#fff 55%);box-shadow:inset 3px 0 #0b72ad}.document-pro-row:focus-visible{outline:2px solid #187bbb;outline-offset:-3px}
.document-pro-row .document-format{width:42px;height:42px;border-radius:11px}
.document-pro-name,.document-pro-case,.document-pro-status,.document-pro-confidence{min-width:0}.document-pro-name b,.document-pro-name small,.document-pro-case small,.document-pro-case b,.document-pro-status small,.document-pro-confidence b,.document-pro-confidence small{display:block}
.document-pro-name b{overflow:hidden;color:#173d59;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.document-pro-name small{margin-top:3px;overflow:hidden;color:#7b8e9e;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.document-pro-case small{color:#8a9aa7;font-size:13px}.document-pro-case b{margin-top:3px;overflow:hidden;color:#315570;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.document-pro-status .badge{max-width:100%;padding:4px 7px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-pro-status>small{margin-top:5px;color:#8999a5;font-size:13px}
.document-pro-confidence b{color:#244d68;font-size:13px}.document-pro-confidence i{height:4px;margin:5px 0;display:block;overflow:hidden;border-radius:999px;background:#e2e9ed}.document-pro-confidence i span{height:100%;display:block;border-radius:inherit;background:#268c69}.document-pro-confidence small{color:#8496a3;font-size:13px}
.document-pro-open{color:#0a679b}.document-pro-open svg{width:15px}
.document-pro-no-results{min-height:280px;display:grid;place-items:center;align-content:center;color:#7b8f9f;text-align:center}.document-pro-no-results>svg{width:28px;margin-bottom:10px;color:#0a6b9f}.document-pro-no-results b{color:#264d68;font:700 18px var(--serif)}.document-pro-no-results p{margin:5px 0 0;font-size:13px}
.document-pro-inspector{min-width:0}
.document-pro-inspector-inner{padding:15px}
.document-pro-inspector-head{padding-bottom:14px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;border-bottom:1px solid #dfe7ec}.document-pro-inspector-head .document-format{width:48px;height:48px}.document-pro-inspector-head>div{min-width:0}.document-pro-inspector-head>div small{color:#97691f;font-size:13px;font-weight:850}.document-pro-inspector-head h2{margin:3px 0;overflow-wrap:anywhere;color:#173c58;font:700 16px/1.15 var(--serif)}.document-pro-inspector-head p{margin:0;color:#7a8e9e;font-size:13px}.document-pro-inspector-head>.badge{grid-column:1/-1;justify-self:start;padding:5px 8px;font-size:13px}
.document-pro-preview{margin-top:13px;padding:12px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;border:1px solid #cfe0e9;border-radius:12px;background:linear-gradient(145deg,#edf7fb,#fff)}.document-pro-preview>span{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;color:#0a679b;background:#fff}.document-pro-preview svg{width:18px}.document-pro-preview small,.document-pro-preview b{display:block}.document-pro-preview small{color:#8193a1;font-size:13px}.document-pro-preview b{margin-top:2px;color:#214a65;font-size:13px}.document-pro-preview p{margin:3px 0 0;color:#768b9b;font-size:13px}.document-pro-preview>a{grid-column:1/-1;min-height:34px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;color:#fff;background:#0a6398;font-size:13px;font-weight:850}.document-pro-preview>a svg{width:13px}
.document-pro-metadata{margin:12px 0 0}.document-pro-metadata>div{padding:9px 0;display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;border-bottom:1px solid #e5eaee}.document-pro-metadata dt{color:#8395a3;font-size:13px}.document-pro-metadata dd{margin:0;color:#294e68;font-size:13px;font-weight:800;text-align:right;overflow-wrap:anywhere}.document-pro-metadata dd a{color:#08689f}.document-pro-metadata dd.needs-review{color:#a16c18}.document-pro-metadata dd.is-ready{color:#197253}
.document-pro-tags{margin-top:13px}.document-pro-tags>small{color:#8294a2;font-size:13px;font-weight:850;text-transform:uppercase}.document-pro-tags>div{margin-top:6px;display:flex;gap:5px;flex-wrap:wrap}.document-pro-tags span{padding:4px 7px;border-radius:7px;color:#526d81;background:#edf3f6;font-size:13px;font-weight:750}
.document-pro-actions{margin-top:15px;display:grid;gap:6px}.document-pro-actions .btn{width:100%;min-height:38px;padding:0 10px;justify-content:center;font-size:13px}.document-pro-actions .btn svg{width:14px}
.document-pro-empty{min-height:360px;padding:25px;display:grid;place-items:center;align-content:center;text-align:center}.document-pro-empty>svg{width:32px;color:#0a699e}.document-pro-empty b{margin-top:10px;color:#173d59;font:700 18px var(--serif)}.document-pro-empty p{margin:5px 0 0;color:#7a8e9d;font-size:13px}

@media(max-width:1120px){
  .document-pro-workspace{grid-template-columns:210px minmax(500px,1fr)}
  .document-pro-inspector{position:static;grid-column:1/-1}.document-pro-inspector-inner{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);gap:14px}.document-pro-inspector-head{align-content:start}.document-pro-preview{margin-top:0}.document-pro-metadata{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.document-pro-tags,.document-pro-actions{grid-column:1/-1}.document-pro-actions{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .document-pro-kpis{grid-template-columns:1fr 1fr}.document-pro-workspace{grid-template-columns:1fr}.document-pro-sidebar{position:static}.document-pro-state-nav,.document-pro-folder-nav{grid-template-columns:1fr 1fr}.document-pro-folder-nav>small{grid-column:1/-1}.document-pro-toolbar.filters{grid-template-columns:1fr 1fr}.document-pro-toolbar>label{grid-column:1/-1}.document-pro-center{min-width:0}
}
@media(max-width:820px){
  .portal-top-navigation>.shell{padding-top:68px}
  body[data-page="documents"] .content{padding-top:16px}
}
@media(max-width:680px){
  body[data-page="documents"] .page-head{align-items:stretch}.document-pro-kpis{grid-template-columns:1fr 1fr}.document-pro-kpis article{min-height:64px;padding:10px}.document-pro-state-nav,.document-pro-folder-nav{grid-template-columns:1fr}.document-pro-toolbar.filters{grid-template-columns:1fr}.document-pro-columns{display:none}.document-pro-row{padding:12px;grid-template-columns:42px minmax(0,1fr) 18px;grid-template-areas:"format name open" "format status open" "case case confidence";gap:7px 9px}.document-pro-row .document-format{grid-area:format}.document-pro-name{grid-area:name}.document-pro-case{grid-area:case;padding-top:7px;border-top:1px solid #e3e9ed}.document-pro-status{grid-area:status}.document-pro-status>small{display:none}.document-pro-confidence{grid-area:confidence;min-width:90px}.document-pro-open{grid-area:open}.document-pro-inspector-inner{display:block}.document-pro-preview{margin-top:13px}.document-pro-metadata{display:block}.document-pro-actions{display:grid;grid-template-columns:1fr}.document-pro-kpis small{font-size:13px}.document-pro-kpis b{font-size:19px}
}

/* Public register centre: one entry point for KRS, CEIDG, CRBR, MSiG, VAT, KRZ and RDF. */
body[data-page="registers"] .content{padding-top:24px}

/* Spójna hierarchia: nagłówek z ikoną oraz wiersz podmiotu „nazwa, potem parametry”. */
.page-head-with-icon{align-items:center}.page-head-main{min-width:0;display:flex;align-items:flex-start;gap:15px}.page-head-icon{width:54px;height:54px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #cae0eb;border-radius:17px;color:#fff;background:linear-gradient(145deg,#0c72a9,#08395e);box-shadow:0 11px 24px rgba(9,76,118,.16)}.page-head-icon .ui-icon{width:26px;height:26px}.page-head-copy{min-width:0}.professional-catalog{margin:0 0 16px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.professional-catalog-tile{min-width:0;min-height:102px;padding:12px;display:grid;align-content:start;gap:5px;border:1px solid #d6e4ec;border-radius:14px;color:#244a65;background:linear-gradient(145deg,#fff,#f5f9fb);box-shadow:0 8px 22px rgba(14,54,80,.05);transition:.2s ease}.professional-catalog-tile:hover,.professional-catalog-tile.active{border-color:#b78932;color:#153c59;background:linear-gradient(145deg,#fff9e9,#fff);box-shadow:0 13px 28px rgba(100,72,22,.11);transform:translateY(-2px)}.professional-catalog-tile>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;color:#0870aa;background:#e7f4fa}.professional-catalog-tile .ui-icon{width:17px}.professional-catalog-tile b{font-size:13px;line-height:1.25}.professional-catalog-tile small{color:#71889a;font-size:13px}.aml-subject-result{grid-template-columns:minmax(0,1fr) auto auto;gap:14px;padding:18px}.aml-subject-main{grid-column:1/-1;grid-template-columns:52px minmax(0,1fr);gap:13px;padding-bottom:13px;border-bottom:1px solid #e4edf2}.aml-company-icon{width:52px;height:52px;border-radius:15px}.aml-company-icon svg{width:24px}.aml-subject-main b{margin-top:4px;font-size:17px;line-height:1.25}.aml-subject-main em{margin-top:5px;font-size:13px;line-height:1.55;white-space:normal}.aml-subject-signals{align-items:center}.aml-subject-signals .badge{min-height:34px;display:inline-flex;align-items:center}.aml-subject-risk{min-width:160px}.aml-subject-result>.btn{align-self:center}.profile-settings-summary{padding:22px;display:flex;align-items:center;gap:17px}.profile-settings-summary b,.profile-settings-summary small{display:block}.profile-settings-summary b{color:#173d5a;font:700 23px var(--serif)}.profile-settings-summary small{margin-top:4px;color:#6e8597;font-size:13px}.profile-settings-summary p{max-width:620px;margin:7px 0 0;color:#72899a;font-size:13px;line-height:1.55}.profile-photo{width:76px;height:76px;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;border:1px solid #c7dae6;border-radius:50%;color:#fff;background:linear-gradient(145deg,#0e75ad,#083a60);font:700 24px var(--serif);box-shadow:0 10px 25px rgba(10,75,116,.14)}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-photo.firm-logo{border-radius:18px;background:#eaf4f8;color:#0b689d}.profile-editor-form{display:grid;gap:17px}.profile-editor-preview{width:88px;height:88px;display:grid;place-items:center;overflow:hidden;border:1px solid #c9dce7;border-radius:50%;color:#fff;background:linear-gradient(145deg,#0e75ad,#083a60);font:700 27px var(--serif)}.profile-editor-preview img{width:100%;height:100%;object-fit:cover}.profile-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-editor-fields label{display:grid;gap:6px;color:#48647a;font-size:13px;font-weight:800}.profile-editor-fields label.wide{grid-column:1/-1}.profile-editor-fields input{min-height:42px;padding:0 11px;border:1px solid #cfdee7;border-radius:9px;color:#193e5a;background:#fff;font-size:13px}.profile-editor-fields input[type=file]{height:auto;padding:10px}.profile-editor-fields small{color:#758c9c;font-size:13px;font-weight:600}
@media(max-width:1180px){.professional-catalog{grid-template-columns:repeat(4,minmax(0,1fr))}.aml-subject-result{grid-template-columns:minmax(0,1fr) auto}.aml-subject-signals{grid-column:1}.aml-subject-risk{grid-column:2}.aml-subject-result>.btn{grid-column:1/-1;justify-self:end}}
@media(max-width:760px){.page-head-with-icon{align-items:flex-start}.page-head-main{gap:11px}.page-head-icon{width:43px;height:43px;border-radius:13px}.page-head-icon .ui-icon{width:22px;height:22px}.professional-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.professional-catalog-tile{min-height:91px}.aml-subject-result{grid-template-columns:1fr}.aml-subject-main{grid-template-columns:45px minmax(0,1fr);gap:10px}.aml-company-icon{width:45px;height:45px}.aml-subject-main b{font-size:15px}.aml-subject-signals,.aml-subject-risk,.aml-subject-result>.btn{grid-column:auto}.aml-subject-risk{min-width:0}.aml-subject-result>.btn{width:100%;justify-self:stretch}.profile-settings-summary{padding:17px;align-items:flex-start}.profile-photo{width:61px;height:61px;font-size:20px}.profile-settings-summary b{font-size:19px}.profile-editor-fields{grid-template-columns:1fr}}

.profile-settings-card{overflow:hidden}

/* Edytor konta: jasna karta z kontekstem, podglądem i czytelnym polem przesyłania grafiki. */
.profile-editor-modal{width:min(760px,100%);border:1px solid #d9e5ec;border-radius:24px;box-shadow:0 34px 94px rgba(4,26,48,.32)}.profile-editor-modal .modal-head{min-height:82px;padding:18px 24px;background:linear-gradient(115deg,#fff,#f5f9fb)}.profile-editor-modal .modal-head h2{color:#143856;font:700 27px/1.15 var(--serif)}.profile-editor-modal .modal-head .icon-btn{width:42px;height:42px;border:1px solid #d6e2e9;border-radius:14px;color:#426078;background:#fff;font-size:20px}.profile-editor-modal .modal-body{padding:0}.profile-editor-form{gap:0}.profile-editor-hero{padding:25px 28px;display:grid;grid-template-columns:96px minmax(0,1fr);gap:18px;align-items:center;border-bottom:1px solid #e0eaf0;background:linear-gradient(115deg,#f6fbfd,#fff)}.profile-editor-preview{width:96px;height:96px;position:relative;border:4px solid #fff;box-shadow:0 12px 30px rgba(8,68,105,.18)}.profile-editor-preview>i{width:30px;height:30px;position:absolute;right:-4px;bottom:-3px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;color:#fff;background:#bd8830;box-shadow:0 4px 11px rgba(80,52,11,.2)}.profile-editor-preview>i svg{width:14px}.profile-editor-hero .eyebrow{color:#9b6d20}.profile-editor-hero h3{margin:3px 0 5px;color:#173d59;font:700 21px/1.15 var(--serif)}.profile-editor-hero p{margin:0;color:#698296;font-size:13px;line-height:1.55}.profile-editor-note{margin-top:9px;display:inline-flex;align-items:center;gap:6px;color:#477187;font-size:13px;font-weight:700}.profile-editor-note svg{width:15px;color:#0b6d9f}.profile-editor-modal .profile-editor-fields{padding:24px 28px;gap:15px}.profile-editor-fields label{gap:7px;color:#3d5e75}.profile-editor-fields label>span{font-weight:850}.profile-editor-fields input:not([type=file]){min-height:48px;padding:0 13px;border-color:#cadbe5;border-radius:12px;box-shadow:inset 0 1px 1px rgba(16,53,77,.03);transition:border-color .2s,box-shadow .2s}.profile-editor-fields input:not([type=file]):focus{border-color:#0870a8;outline:0;box-shadow:0 0 0 4px rgba(9,108,161,.1)}.profile-upload{min-height:106px;padding:15px;position:relative;display:grid!important;grid-template-columns:1fr;align-content:center;border:1px dashed #a9c7d8;border-radius:14px!important;background:#f7fbfd;cursor:pointer;transition:.2s}.profile-upload:hover{border-color:#1474a7;background:#eff8fc}.profile-upload>span{color:#244e69}.profile-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}.profile-upload em{display:grid;grid-template-columns:36px 1fr;column-gap:10px;align-items:center;font-style:normal}.profile-upload em i{width:36px;height:36px;display:grid;place-items:center;grid-row:1/3;border-radius:10px;color:#0871a9;background:#dff1f8}.profile-upload em i svg{width:18px}.profile-upload em b{color:#254f6b;font-size:13px}.profile-upload em small{margin-top:2px;color:#778e9e;font-size:13px}.profile-editor-actions{padding:18px 28px 24px;display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e3edf2;background:#fff}.profile-editor-actions .btn{display:inline-flex;align-items:center;gap:7px}.profile-editor-actions .btn svg{width:15px}.profile-editor-actions .btn:disabled{opacity:.52}
.profile-editor-page{display:grid;grid-template-columns:250px minmax(0,1fr);overflow:hidden;border:1px solid #cbdde7;border-radius:22px;background:#fff;box-shadow:0 20px 54px rgba(13,51,76,.09)}.profile-editor-page-nav{padding:25px;display:flex;flex-direction:column;color:#c8d8e5;background:radial-gradient(circle at 25% 0,rgba(37,138,190,.35),transparent 15rem),linear-gradient(160deg,#062845,#0a486f)}.profile-editor-page-nav>.eyebrow{color:#e7bd62}.profile-editor-page-nav h2{margin:5px 0;color:#fff;font:700 25px var(--serif)}.profile-editor-page-nav>p{margin:0;color:#bbd1df;font-size:13px;line-height:1.55}.profile-editor-page-nav nav{margin-top:22px;display:grid;gap:7px}.profile-editor-page-nav nav a{min-height:44px;padding:0 11px;display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:11px;color:#c7dbe7;font-size:13px;font-weight:850}.profile-editor-page-nav nav a svg{width:18px}.profile-editor-page-nav nav a:hover,.profile-editor-page-nav nav a.active{border-color:rgba(255,255,255,.22);color:#fff;background:rgba(255,255,255,.12)}.profile-editor-page-nav>div{margin-top:auto;padding:12px;display:grid;grid-template-columns:19px minmax(0,1fr);gap:8px;border:1px solid rgba(255,255,255,.15);border-radius:12px;color:#e3edf3;background:rgba(0,0,0,.12)}.profile-editor-page-nav>div svg{width:17px;color:#edc76f}.profile-editor-page-nav>div small{font-size:13px;line-height:1.45}.profile-editor-page-form{min-width:0}.profile-editor-page-form>header{padding:25px 30px;display:grid;grid-template-columns:78px minmax(0,1fr);gap:16px;align-items:center;border-bottom:1px solid #dde8ee;background:linear-gradient(135deg,#f5fbfd,#fff)}.profile-page-avatar{width:78px;height:78px;display:grid;place-items:center;overflow:hidden;border:3px solid #fff;border-radius:22px;color:#fff;background:linear-gradient(145deg,#0c70a8,#083b60);box-shadow:0 10px 24px rgba(9,77,118,.16);font:700 25px var(--serif)}.profile-page-avatar img{width:100%;height:100%;object-fit:cover}.profile-page-avatar svg{width:27px}.profile-editor-page-form h2{margin:3px 0;color:#173e5b;font:700 25px var(--serif)}.profile-editor-page-form header p{margin:0;color:#6d8596;font-size:13px;line-height:1.5}.profile-page-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(280px,.88fr)}.profile-page-fields{padding:25px 30px;display:grid;grid-template-columns:1fr 1fr;gap:14px;border-right:1px solid #e0eaef}.profile-page-fields label{min-width:0;display:grid;gap:6px;color:#45637a;font-size:13px;font-weight:850}.profile-page-fields label.wide{grid-column:1/-1}.profile-page-fields input{min-height:45px;padding:0 12px;border:1px solid #cbdce6;border-radius:11px;color:#204863;background:#fff;font:600 13px var(--sans)}.profile-page-fields input:focus{border-color:#0b71a8;outline:0;box-shadow:0 0 0 3px rgba(11,113,168,.1)}.profile-page-upload{min-height:82px;padding:13px;align-content:center;border:1px dashed #9fc1d2;border-radius:13px;background:#f3fafc}.profile-page-upload>span{display:flex;align-items:center;gap:7px;color:#0a679c}.profile-page-upload svg{width:18px}.profile-page-upload input{min-height:0;padding:0;border:0;border-radius:0;background:transparent}.profile-page-upload small{color:#718a9c;font-size:13px}.profile-page-crop{padding:15px;border:1px solid #d6e6ed;border-radius:14px;background:#f8fbfc}.profile-page-crop>header{margin-bottom:12px;display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:9px;align-items:center}.profile-page-crop>header>span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;color:#0870a5;background:#e3f3f8}.profile-page-crop>header svg{width:17px}.profile-page-crop header b,.profile-page-crop header small{display:block}.profile-page-crop header b{color:#284f68;font-size:13px}.profile-page-crop header small{margin-top:2px;color:#748c9d;font-size:13px}.profile-page-crop>header .btn{min-height:34px;padding:0 10px}.profile-page-crop>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-page-crop label{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:7px}.profile-page-crop label>span{color:#42647b}.profile-page-crop output{justify-self:end;padding:2px 6px;border-radius:6px;color:#086293;background:#e4f4f9;font-size:13px}.profile-page-crop input{grid-column:1/-1;grid-row:2;min-height:0;padding:0;border:0;border-radius:0;accent-color:#0871a8}.profile-page-description{padding:25px 24px;background:#fbfcfd}.profile-page-description>header{padding:0;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border:0;background:transparent}.profile-page-description h2{font-size:21px}.profile-description-toolbar{margin-top:14px;padding:5px;display:flex;gap:5px;border:1px solid #d5e2e9;border-radius:10px;background:#f2f7fa}.profile-description-toolbar button{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:7px;color:#315b76;background:transparent;font-size:13px;cursor:pointer}.profile-description-toolbar button:hover{color:#fff;background:#0b679d}.profile-description-editor{min-height:230px;margin-top:8px;padding:13px;border:1px solid #cbdce6;border-radius:12px;color:#294d65;background:#fff;font-size:14px;line-height:1.65;outline:none}.profile-description-editor:empty::before{content:attr(data-placeholder);color:#8296a6}.profile-description-editor:focus{border-color:#0b71a8;box-shadow:0 0 0 3px rgba(11,113,168,.1)}.profile-page-description>small{display:block;margin-top:9px;color:#7b91a1;font-size:13px;line-height:1.45}.profile-editor-page-form>footer{padding:17px 30px;display:flex;justify-content:space-between;gap:10px;border-top:1px solid #dfe9ee;background:#fff}.profile-editor-page-form>footer .btn{display:inline-flex;align-items:center;gap:7px}
@media(max-width:900px){.profile-editor-page{grid-template-columns:1fr}.profile-editor-page-nav{padding:18px}.profile-editor-page-nav nav{margin-top:13px;grid-template-columns:1fr 1fr}.profile-editor-page-nav>div{display:none}.profile-page-grid{grid-template-columns:1fr}.profile-page-fields{border-right:0;border-bottom:1px solid #e0eaef}.profile-page-description{min-height:380px}}
@media(max-width:620px){.profile-editor-page-form>header{padding:18px;grid-template-columns:60px minmax(0,1fr)}.profile-page-avatar{width:60px;height:60px;border-radius:18px;font-size:19px}.profile-editor-page-form h2{font-size:22px}.profile-page-fields{padding:18px;grid-template-columns:1fr}.profile-page-fields label.wide{grid-column:auto}.profile-page-crop>header{grid-template-columns:35px 1fr}.profile-page-crop>header .btn{grid-column:1/-1;width:100%}.profile-page-crop>div{grid-template-columns:1fr}.profile-page-description{padding:18px}.profile-description-editor{min-height:180px}.profile-editor-page-form>footer{padding:14px 18px;flex-direction:column-reverse}.profile-editor-page-form>footer .btn{width:100%;justify-content:center}.profile-editor-page-nav nav{grid-template-columns:1fr}}
@media(max-width:560px){.profile-editor-modal .modal-head{min-height:68px;padding:14px 16px}.profile-editor-modal .modal-head h2{font-size:22px}.profile-editor-hero{padding:20px;grid-template-columns:70px minmax(0,1fr);gap:13px}.profile-editor-preview{width:70px;height:70px;font-size:22px}.profile-editor-hero h3{font-size:18px}.profile-editor-note{display:none}.profile-editor-modal .profile-editor-fields{padding:20px}.profile-editor-actions{padding:15px 20px 20px;align-items:stretch;flex-direction:column-reverse}.profile-editor-actions .btn{width:100%;justify-content:center}}
/* Rozbudowany profil zawodowy: sekcje odpowiadają temu, co prawnik kontroluje publicznie. */
.profile-editor-expanded{align-items:stretch}.profile-editor-expanded .profile-editor-page-form{background:#f5f9fb}.profile-editor-expanded .profile-editor-page-form>header{grid-template-columns:78px minmax(0,1fr) auto}.profile-completion{align-self:center;padding:9px 12px;display:inline-flex;align-items:center;gap:6px;border:1px solid #cce8dc;border-radius:999px;color:#177451;background:#ecf9f2;font-size:13px;font-weight:800}.profile-completion svg{width:15px}.profile-editor-progress{margin:24px 0;padding:0;display:grid;gap:9px;list-style:none;counter-reset:profile}.profile-editor-progress li{display:flex;align-items:center;gap:9px;color:#b9d0e0;font-size:13px;font-weight:750}.profile-editor-progress li span{width:24px;height:24px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:50%;color:#e3eef5;background:rgba(255,255,255,.08);font-size:12px}.profile-editor-progress li.active{color:#fff}.profile-editor-progress li.active span{border-color:#e9bd5b;color:#163d58;background:#e9bd5b}.profile-editor-section{margin:18px 24px;overflow:hidden;border:1px solid #d4e3ea;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(22,61,85,.045)}.profile-editor-section>header{padding:17px 20px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:start;border-bottom:1px solid #e2ebf0;background:linear-gradient(100deg,#fbfdfe,#f3f9fb)}.profile-editor-section>header>span:not(.badge){width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#0770a8;background:#e2f3f9}.profile-editor-section>header>span svg{width:19px}.profile-editor-section .eyebrow{color:#9b6a1f}.profile-editor-section h2{margin:2px 0 3px;color:#173e5b;font:700 20px/1.15 var(--serif)}.profile-editor-section header p{margin:0;color:#738b9c;font-size:13px;line-height:1.45}.profile-editor-expanded .profile-page-fields{padding:19px 20px;border:0;background:#fff}.profile-editor-expanded .profile-page-upload{min-height:92px}.profile-editor-expanded .profile-page-crop{margin:0}.profile-editor-specialties .profile-page-fields{grid-template-columns:1fr 1fr}.profile-editor-specialties .profile-page-fields .wide{grid-column:1/-1}.profile-editor-description{padding:0 20px 19px}.profile-editor-description>.profile-description-toolbar{margin-top:16px}.profile-editor-description>.profile-description-editor{min-height:178px}.profile-editor-description>small{display:block;margin-top:9px;color:#728b9d;font-size:13px;line-height:1.45}.profile-editor-availability .profile-visibility-options{padding:17px 20px;display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:stretch}.profile-visibility-options label{min-height:76px;padding:13px;display:flex;align-items:flex-start;gap:10px;border:1px solid #d7e5eb;border-radius:12px;background:#f9fcfd;cursor:pointer}.profile-visibility-options input{width:17px;height:17px;margin:2px 0 0;accent-color:#0973aa}.profile-visibility-options b,.profile-visibility-options small{display:block}.profile-visibility-options b{color:#244c66;font-size:13px}.profile-visibility-options small{margin-top:4px;color:#748b9c;font-size:13px;line-height:1.35}.profile-visibility-options .btn{align-self:center;white-space:nowrap;display:inline-flex;align-items:center;gap:7px}.profile-visibility-options .btn svg{width:16px}.profile-editor-expanded .profile-editor-page-form>footer{margin-top:0;background:#fff}.profile-editor-expanded .profile-editor-page-nav{min-height:100%}
@media(max-width:1000px){.profile-editor-availability .profile-visibility-options{grid-template-columns:1fr 1fr}.profile-visibility-options .btn{grid-column:1/-1;justify-content:center}}
@media(max-width:700px){.profile-editor-expanded .profile-editor-page-form>header{grid-template-columns:60px minmax(0,1fr)}.profile-completion{grid-column:1/-1;justify-self:start}.profile-editor-section{margin:14px}.profile-editor-section>header{padding:15px}.profile-editor-expanded .profile-page-fields,.profile-editor-description{padding-left:15px;padding-right:15px}.profile-editor-specialties .profile-page-fields,.profile-editor-availability .profile-visibility-options{grid-template-columns:1fr}.profile-editor-specialties .profile-page-fields .wide{grid-column:auto}.profile-visibility-options .btn{grid-column:auto;width:100%;justify-content:center}}
/* Wspólna nawigacja: pulpit jest zawsze jednym kliknięciem od każdego widoku. */
.global-dashboard-link{min-height:42px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;border:1px solid #d5e3eb;border-radius:12px;color:#315a75;background:#f8fbfd;font-size:13px;font-weight:850;white-space:nowrap}.global-dashboard-link svg{width:17px;color:#0870a8}.global-dashboard-link:hover,.global-dashboard-link.active{border-color:#0a6e9f;color:#fff;background:#0a517d}.global-dashboard-link:hover svg,.global-dashboard-link.active svg{color:#f2cf78}@media(max-width:920px){.global-dashboard-link span{display:none}.global-dashboard-link{width:42px;padding:0;justify-content:center}}@media(max-width:560px){.global-dashboard-link{display:none}}
/* Skrót do zawodowego profilu jest częścią pulpitu, obok bieżącej pracy. */
.profile-identity-fields{grid-template-columns:1fr 1fr}.profile-visual-section{background:#fdfefe}.dashboard-profile-shortcut{overflow:hidden;border-color:#bad8e7;background:linear-gradient(145deg,#fff,#f1f9fc)}.dashboard-profile-shortcut>header{padding:17px;display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #d9e9ef}.dashboard-profile-shortcut h2{margin:2px 0;color:#173e5b;font:700 20px var(--serif)}.dashboard-profile-shortcut header p{margin:0;color:#738b9d;font-size:13px}.dashboard-profile-avatar{width:50px;height:50px;display:grid;place-items:center;overflow:hidden;border:2px solid #fff;border-radius:16px;color:#fff;background:linear-gradient(145deg,#0c6fa7,#083c61);font:700 18px var(--serif);box-shadow:0 7px 16px rgba(7,72,112,.18)}.dashboard-profile-avatar img{width:100%;height:100%;object-fit:cover}.dashboard-profile-status{padding:14px 17px 0;display:flex;flex-wrap:wrap;gap:7px}.dashboard-profile-status span{padding:5px 8px;display:inline-flex;align-items:center;gap:5px;border:1px solid #d2e4eb;border-radius:999px;color:#41667e;background:#fff;font-size:13px;font-weight:750}.dashboard-profile-status svg{width:14px;color:#0870a6}.dashboard-profile-shortcut>p{margin:12px 17px;color:#6f889a;font-size:13px;line-height:1.45}.dashboard-profile-shortcut footer{padding:0 17px 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.dashboard-profile-shortcut .btn{justify-content:center;display:inline-flex;align-items:center;gap:6px;padding-left:8px;padding-right:8px;font-size:13px}.dashboard-profile-shortcut .btn svg{width:15px}.dashboard-profile-firm{padding:11px 17px;display:flex;align-items:center;gap:7px;border-top:1px solid #dcebf1;color:#33617c;background:#fff;font-size:13px;font-weight:800}.dashboard-profile-firm svg{width:16px;color:#0873a8}@media(max-width:620px){.dashboard-profile-shortcut>header{grid-template-columns:46px minmax(0,1fr)}.dashboard-profile-shortcut>header>.badge{display:none}.dashboard-profile-shortcut footer{grid-template-columns:1fr}.profile-identity-fields{grid-template-columns:1fr}}
body[data-page="registers"] .page-head{margin-bottom:16px}
.public-register-search{padding:18px;display:grid;grid-template-columns:minmax(300px,.85fr) minmax(360px,1.15fr);gap:16px;align-items:center;border-top:3px solid #c99435}
.public-register-search-copy{min-width:0;display:grid;grid-template-columns:54px minmax(0,1fr);gap:13px;align-items:center}.public-register-search-copy>span{width:54px;height:54px;display:grid;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(145deg,#0d6c9f,#073a62);box-shadow:0 10px 24px rgba(8,69,107,.18)}.public-register-search-copy>span svg{width:25px}.public-register-search-copy small{color:#96691f;font-size:13px;font-weight:900;text-transform:uppercase}.public-register-search-copy h2{margin:3px 0 5px;color:#173c58;font:700 22px/1.15 var(--serif)}.public-register-search-copy p{margin:0;color:#6f8495;font-size:13px;line-height:1.55}
.public-register-form{padding:11px;display:grid;grid-template-columns:minmax(200px,1fr) auto;gap:8px;align-items:end;border:1px solid #d2dee6;border-radius:13px;background:#f5f9fb}.public-register-form label{min-width:0;display:grid;gap:5px}.public-register-form label>span{color:#567084;font-size:13px;font-weight:850}.public-register-form label>div{height:43px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid #cad8e2;border-radius:9px;background:#fff}.public-register-form label svg{width:16px;color:#0a679b}.public-register-form input{width:100%;min-width:0;border:0;outline:0;color:#173d59;background:transparent;font-size:13px}.public-register-form .btn{min-height:43px;white-space:nowrap}.public-register-form .btn svg{width:14px}
.public-register-scope{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.public-register-scope article{min-height:54px;padding:9px 11px;display:flex;align-items:center;gap:9px;border:1px solid #dce5eb;border-radius:11px;background:#f9fbfc}.public-register-scope article>span{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;color:#0a669b;background:#e7f3f8}.public-register-scope svg{width:15px}.public-register-scope small,.public-register-scope b{display:block}.public-register-scope small{color:#8495a2;font-size:13px}.public-register-scope b{margin-top:2px;color:#31536b;font-size:13px}
.public-register-layout{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}.public-register-layout>main{min-width:0}.public-register-layout>main>header{min-height:62px;padding:0 4px;display:flex;align-items:center;justify-content:space-between;gap:12px}.public-register-layout>main>header h2{margin:3px 0 0;color:#173c58;font:700 24px var(--serif)}.public-register-layout>main>header>span{padding:5px 8px;border-radius:999px;color:#0b6398;background:#e7f3f9;font-size:13px;font-weight:850}
.public-register-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-register-card{min-width:0;min-height:174px;padding:15px;display:grid;grid-template-columns:42px minmax(0,1fr) 18px;gap:11px;align-items:start;border:1px solid #d3dfe7;border-radius:15px;color:#244b66;background:#fff;box-shadow:0 10px 30px rgba(10,43,68,.055);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.public-register-card:hover{border-color:#a9c5d5;box-shadow:0 16px 36px rgba(10,43,68,.1);transform:translateY(-2px)}.public-register-card.active{border-color:#d3ac55;background:linear-gradient(120deg,#fff9e9,#fff 54%);box-shadow:inset 3px 0 #c99231,0 12px 32px rgba(10,43,68,.07)}.public-register-card>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#0a669b;background:#e8f3f8}.public-register-card.active>span{color:#173851;background:linear-gradient(145deg,#f5dc98,#d09a36)}.public-register-card>span svg{width:20px}.public-register-card>svg{width:15px;margin-top:12px;color:#0a679b}.public-register-card small{color:#976a1f;font-size:13px;font-weight:900}.public-register-card h2{margin:3px 0 6px;color:#173d59;font:700 17px/1.2 var(--serif)}.public-register-card p{margin:0;color:#6d8293;font-size:13px;line-height:1.55}.public-register-card footer{margin-top:12px;display:flex;gap:5px;flex-wrap:wrap}.public-register-card footer em{padding:4px 6px;border-radius:6px;color:#587084;background:#edf3f6;font-size:13px;font-style:normal;font-weight:750}
.public-register-layout>aside{position:sticky;top:138px;display:grid;gap:11px}.register-workflow{padding:18px;background:radial-gradient(circle at 90% 0,rgba(40,139,188,.24),transparent 15rem),linear-gradient(145deg,#071f3a,#0a486f);color:#fff}.register-workflow>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#173851;background:linear-gradient(145deg,#f4da93,#cc9633)}.register-workflow>span svg{width:21px}.register-workflow>small{display:block;margin-top:14px;color:#efca72;font-size:13px;font-weight:900;text-transform:uppercase}.register-workflow h2{margin:4px 0 13px;color:#fff;font:700 23px/1.12 var(--serif)}.register-workflow ol{margin:0 0 15px;padding:0;display:grid;gap:8px;list-style:none}.register-workflow li{display:grid;grid-template-columns:25px minmax(0,1fr);gap:8px;align-items:center}.register-workflow li>b{width:25px;height:25px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.17);border-radius:8px;color:#efca72;background:rgba(255,255,255,.06);font-size:13px}.register-workflow li>span{color:#c5d7e4;font-size:13px;line-height:1.4}.register-workflow .btn{width:100%;justify-content:center;color:#17344e;background:#efc96c;border-color:#efc96c}
.register-identifier-guide{padding:16px}.register-identifier-guide h2{margin:0 0 10px;color:#173d59;font:700 19px var(--serif)}.register-identifier-guide dl{margin:0}.register-identifier-guide dl>div{padding:9px 0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;border-top:1px solid #e1e8ed}.register-identifier-guide dt{color:#0a669a;font-size:13px;font-weight:900}.register-identifier-guide dd{margin:0;color:#718696;font-size:13px;line-height:1.45}

@media(min-width:1320px){
  .mega-panel-sections{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
}
@media(max-width:980px){
  .public-register-search{grid-template-columns:1fr}.public-register-layout{grid-template-columns:1fr}.public-register-layout>aside{position:static;grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .public-register-form{grid-template-columns:1fr}.public-register-form .btn{width:100%;justify-content:center}.public-register-scope{grid-template-columns:1fr}.public-register-grid{grid-template-columns:1fr}.public-register-layout>aside{grid-template-columns:1fr}.public-register-search{padding:14px}.public-register-search-copy{grid-template-columns:44px minmax(0,1fr)}.public-register-search-copy>span{width:44px;height:44px}.public-register-card{min-height:0}.public-register-layout>main>header h2{font-size:21px}
}

/* Kadrowanie avatara i logo — ustawienia działają na podglądzie bez ingerencji w plik źródłowy. */
.profile-crop-tools{padding:15px;border:1px solid #d8e7ef;border-radius:14px;background:linear-gradient(135deg,#f7fbfd,#fff)}.profile-crop-tools>header{margin-bottom:13px;display:grid;grid-template-columns:36px 1fr auto;gap:9px;align-items:center}.profile-crop-tools>header>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0b70a4;background:#e2f2f8}.profile-crop-tools>header svg{width:18px}.profile-crop-tools b,.profile-crop-tools small{display:block}.profile-crop-tools b{color:#244e69;font-size:13px}.profile-crop-tools small{margin-top:1px;color:#758d9e;font-size:13px}.profile-crop-tools .btn{min-height:35px;padding:0 11px;font-size:13px}.profile-crop-tools>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-crop-tools label{display:grid;grid-template-columns:1fr auto;gap:5px;color:#4f6d82;font-size:13px;font-weight:750}.profile-crop-tools output{color:#0b6595;font-size:13px;font-weight:850}.profile-crop-tools input{grid-column:1/-1;width:100%;accent-color:#0870a8}
.profile-editor-fields>.profile-crop-tools{grid-column:1/-1}.profile-crop-tools{padding:17px}.profile-crop-tools>div{gap:16px}.profile-crop-tools label{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:9px;row-gap:9px}.profile-crop-tools label>span{min-width:0;color:#365a72;font-size:13px;font-weight:850;line-height:1.35}.profile-crop-tools output{justify-self:end;align-self:start;padding:2px 6px;border-radius:6px;color:#075f91;background:#e7f4fa;white-space:nowrap}.profile-crop-tools input{grid-column:1/-1;grid-row:2;width:100%;margin:0;accent-color:#0870a8}

/* Panel redakcyjny: bezpieczne linki zewnętrzne i cytaty z rekordów portalu. */
.editorial-workflow{margin:0 0 16px;padding:13px 17px;display:grid;grid-template-columns:1fr 38px 1fr 38px 1fr;gap:10px;align-items:center;border:1px solid #cddfe9;border-radius:16px;background:linear-gradient(105deg,#f5fbfd,#fff);box-shadow:0 10px 28px rgba(12,54,82,.05)}.editorial-workflow article{min-width:0;display:flex;align-items:center;gap:10px}.editorial-workflow article>span{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;color:#0870a6;background:#e1f2f8}.editorial-workflow article:nth-of-type(2)>span{color:#98691d;background:#fff2cf}.editorial-workflow article:nth-of-type(3)>span{color:#157254;background:#e7f7ef}.editorial-workflow svg{width:19px}.editorial-workflow b,.editorial-workflow small{display:block}.editorial-workflow b{color:#244a65;font-size:13px}.editorial-workflow small{margin-top:2px;color:#738a9b;font-size:13px;line-height:1.35}.editorial-workflow>i{height:1px;background:linear-gradient(90deg,#b5cfdd,#d9e6ed)}
.news-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:16px;align-items:start}.editorial-composer{overflow:hidden;border-color:#c8dce7;box-shadow:0 18px 44px rgba(13,50,75,.08)}.editorial-composer-head{padding:24px 26px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid #dce8ee;background:radial-gradient(circle at 92% 18%,rgba(221,178,80,.2),transparent 12rem),linear-gradient(125deg,#f4fafc,#fff)}.editorial-composer-head h2{margin:3px 0;color:#173c58;font:700 27px var(--serif)}.editorial-composer-head p{max-width:630px;margin:4px 0 0;color:#698296;font-size:13px;line-height:1.55}.editorial-draft-status{padding:7px 10px;flex:0 0 auto;border:1px solid #cfe7da;border-radius:999px;color:#187353;background:#e9f7ef;font-size:13px;font-weight:850}.editorial-composer form{display:grid}.editorial-title-field,.editorial-lead-field{padding:19px 26px 0;display:grid;gap:7px;color:#385b73;font-size:13px;font-weight:850}.editorial-title-field input,.editorial-lead-field textarea,.editorial-meta-fields select,.editorial-meta-fields input{width:100%;border:1px solid #c9dce6;border-radius:11px;color:#1c4764;background:#fff;font:600 14px var(--sans)}.editorial-title-field input{min-height:51px;padding:0 14px;font-size:17px}.editorial-lead-field textarea{min-height:88px;padding:12px;resize:vertical;line-height:1.55}.editorial-title-field input:focus,.editorial-lead-field textarea:focus,.editorial-meta-fields input:focus,.editorial-meta-fields select:focus{border-color:#0b70a7;outline:0;box-shadow:0 0 0 3px rgba(9,111,166,.1)}.editorial-meta-fields{padding:15px 26px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.editorial-meta-fields label{display:grid;gap:7px;color:#385b73;font-size:13px;font-weight:850}.editorial-meta-fields select,.editorial-meta-fields input{min-height:43px;padding:0 11px;font-size:13px}.editorial-text-editor{margin:20px 26px 0;overflow:hidden;border:1px solid #cbdde7;border-radius:14px;background:#fff}.editorial-text-editor>header{min-height:49px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dde8ee;background:#f6fafc}.editorial-text-editor>header>div:first-child{display:flex;align-items:center;gap:7px;color:#31566f;font-size:13px}.editorial-text-editor>header>div:first-child>span{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;color:#0870a7;background:#e4f3f8}.editorial-text-editor>header svg{width:16px}.editorial-editor-tools{display:flex;gap:4px}.editorial-editor-tools button{width:31px;height:31px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;color:#315a75;background:transparent;font:850 14px var(--sans);cursor:pointer}.editorial-editor-tools button:hover,.editorial-editor-tools button:focus-visible{border-color:#a6c9da;color:#fff;background:#0b689c;outline:0}.editorial-content{min-height:390px;padding:20px 21px;color:#274b64;background:#fff;font-size:15px;line-height:1.75;outline:0}.editorial-content:empty::before{content:attr(data-placeholder);color:#8a9cab}.editorial-content:focus{box-shadow:inset 0 0 0 2px rgba(9,111,166,.12)}.editorial-content p{margin:0 0 1em}.editorial-inserted-quote{margin:19px 0;padding:17px 18px;border-left:4px solid #c39130;border-radius:0 12px 12px 0;color:#24465f;background:linear-gradient(90deg,#fff8e8,#fbfdfe)}.editorial-inserted-quote p{margin:0;font:600 16px/1.65 var(--serif)}.editorial-inserted-quote footer{margin-top:12px;padding-top:10px;display:flex;align-items:center;gap:7px;border-top:1px solid #ecdcae;color:#577185;font-size:13px}.editorial-inserted-quote footer span{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;color:#8c641f;background:#fff0c7}.editorial-inserted-quote svg{width:14px}.editorial-inserted-quote cite{font-style:normal}.editorial-inserted-quote a{color:#075f91;font-weight:850}.editorial-composer form>footer{margin-top:20px;padding:17px 26px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #dce8ee;background:#f8fbfc}.editorial-composer form>footer small{max-width:470px;display:flex;align-items:flex-start;gap:7px;color:#6f8798;font-size:13px;line-height:1.45}.editorial-composer form>footer small svg{width:16px;flex:0 0 auto;color:#0a6da1}.editorial-composer form>footer>div{display:flex;gap:7px;flex:0 0 auto}.editorial-tools{display:grid;gap:15px}.editorial-tools>.card{overflow:hidden;border-color:#d1e1e9}.editorial-embeds>header,.editorial-source-search>header,.editorial-source-ledger>header{padding:17px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e0e9ee;background:linear-gradient(115deg,#f6fbfd,#fff)}.editorial-embeds>header>span,.editorial-source-search>header>span,.editorial-source-ledger>header>span{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;color:#fff;background:linear-gradient(145deg,#0c72aa,#07456d)}.editorial-embeds>header svg,.editorial-source-search>header svg,.editorial-source-ledger>header svg{width:19px}.editorial-embeds header small,.editorial-embeds header h2,.editorial-source-search header small,.editorial-source-search header h2,.editorial-source-ledger header small,.editorial-source-ledger header h2{display:block}.editorial-embeds header small,.editorial-source-search header small,.editorial-source-ledger header small{color:#986d20;font-size:13px;font-weight:850;text-transform:uppercase}.editorial-embeds header h2,.editorial-source-search header h2,.editorial-source-ledger header h2{margin:2px 0 0;color:#234863;font:700 19px var(--serif)}.editorial-embeds>p{margin:14px 18px 0;color:#6d8597;font-size:13px;line-height:1.55}.editorial-link-input{margin:13px 18px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.editorial-link-input input{min-width:0;min-height:42px;padding:0 10px;border:1px solid #c9dce6;border-radius:10px;color:#234b66;font:600 13px var(--sans)}.editorial-link-input input:focus{border-color:#0b70a7;outline:0;box-shadow:0 0 0 3px rgba(9,111,166,.1)}.editorial-provider-list{padding:11px 18px;display:flex;flex-wrap:wrap;gap:5px}.editorial-provider-list span{padding:4px 7px;border:1px solid #d6e5ec;border-radius:999px;color:#567388;background:#f5fafc;font-size:13px;font-weight:750}.editorial-embed-list{padding:0 18px 17px;display:grid;gap:7px}.editorial-empty-embed{min-height:53px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px dashed #c5d9e4;border-radius:10px;color:#7890a0;font-size:13px}.editorial-empty-embed svg{width:17px;color:#0a6c9f}.editorial-embed-card{padding:10px;display:grid;grid-template-columns:34px minmax(0,1fr) 30px;gap:8px;align-items:center;border:1px solid #d6e4ea;border-radius:11px;background:#fbfdfe}.editorial-embed-card>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#477ca3}.editorial-embed-card.facebook>span{background:#1877f2}.editorial-embed-card.instagram>span{background:linear-gradient(145deg,#9e2cae,#ee735a)}.editorial-embed-card.youtube>span{background:#d72d28}.editorial-embed-card.linkedin>span{background:#0a66c2}.editorial-embed-card.twitter>span{background:#1d2936}.editorial-embed-card svg{width:16px}.editorial-embed-card small,.editorial-embed-card b,.editorial-embed-card a{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editorial-embed-card small{color:#758c9d;font-size:13px}.editorial-embed-card b{margin:1px 0;color:#254b65;font-size:13px}.editorial-embed-card a{color:#0870a5;font-size:13px;font-weight:800}.editorial-embed-card>button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;color:#7891a1;background:#edf4f7;cursor:pointer}.editorial-embed-card>button:hover{color:#fff;background:#a34949}.editorial-embed-card>button svg{width:15px}.editorial-source-search>label{min-height:43px;margin:14px 17px 9px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #c9dce6;border-radius:10px;background:#fff}.editorial-source-search>label svg{width:17px;color:#0a6da0}.editorial-source-search input{width:100%;min-width:0;border:0;outline:0;color:#244b65;background:transparent;font:600 13px var(--sans)}.editorial-source-types{padding:0 17px 11px;display:flex;gap:5px;overflow:auto}.editorial-source-types button{min-height:31px;padding:0 8px;border:1px solid #d5e3e9;border-radius:8px;color:#567287;background:#f7fafc;font:800 13px var(--sans);white-space:nowrap;cursor:pointer}.editorial-source-types button b{margin-left:4px;color:#0a6b9f}.editorial-source-types button.active{border-color:#0a6e9f;color:#fff;background:#0a679b}.editorial-source-types button.active b{color:#d6f0fa}.editorial-source-results{max-height:600px;overflow:auto;border-top:1px solid #e0eaf0}.editorial-source-row{padding:13px 15px;display:grid;grid-template-columns:35px minmax(0,1fr);gap:9px;border-bottom:1px solid #e5edf1}.editorial-source-row:last-child{border-bottom:0}.editorial-source-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;color:#0870a5;background:#e4f3f8}.editorial-source-icon svg{width:18px}.editorial-source-row small,.editorial-source-row b,.editorial-source-row p{display:block}.editorial-source-row small{overflow:hidden;color:#7a8f9f;font-size:13px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.editorial-source-row b{margin:3px 0;color:#264b65;font-size:13px;line-height:1.35}.editorial-source-row p{display:-webkit-box;max-height:3.9em;margin:3px 0 0;overflow:hidden;color:#60798b;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}.editorial-source-row footer{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:7px}.editorial-source-row footer>a{color:#0a679b;font-size:13px;font-weight:800}.editorial-source-row footer .btn{min-height:31px;padding:0 8px;font-size:13px}.editorial-source-row footer .btn svg{width:14px}.editorial-source-empty{padding:27px 17px;display:grid;justify-items:center;gap:5px;color:#71899a;text-align:center}.editorial-source-empty svg{width:23px;color:#0c6d9f}.editorial-source-empty b{color:#31556d;font-size:13px}.editorial-source-empty p{margin:0;font-size:13px;line-height:1.45}.editorial-source-ledger>header{justify-content:flex-start}.editorial-source-ledger>header>b{width:26px;height:26px;margin-left:auto;display:grid;place-items:center;border-radius:50%;color:#086594;background:#e4f3f8;font-size:13px}.editorial-source-ledger>div{padding:8px 15px 15px}.editorial-source-ledger>div>p{margin:4px 0;color:#71899a;font-size:13px;line-height:1.5}.editorial-source-ledger article{padding:9px 0;display:grid;grid-template-columns:29px minmax(0,1fr);gap:8px;border-bottom:1px solid #e3edf1}.editorial-source-ledger article:last-child{border-bottom:0}.editorial-source-ledger article>span{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;color:#0a6b9f;background:#e4f3f8}.editorial-source-ledger article svg{width:15px}.editorial-source-ledger article small,.editorial-source-ledger article b,.editorial-source-ledger article a{display:block}.editorial-source-ledger article small{color:#758d9d;font-size:13px}.editorial-source-ledger article b{margin:2px 0;color:#2b5068;font-size:13px;line-height:1.35}.editorial-source-ledger article a{color:#0870a6;font-size:13px;font-weight:800}
@media(max-width:1100px){.news-editor-layout{grid-template-columns:minmax(0,1fr) 350px}.editorial-workflow>i{width:18px}}
@media(max-width:920px){.news-editor-layout{grid-template-columns:1fr}.editorial-tools{grid-template-columns:1fr 1fr;align-items:start}.editorial-embeds{grid-column:1/-1}.editorial-source-results{max-height:430px}.editorial-workflow{grid-template-columns:1fr 24px 1fr 24px 1fr}}
@media(max-width:650px){.editorial-workflow{padding:12px;grid-template-columns:1fr;gap:9px}.editorial-workflow>i{display:none}.editorial-workflow article{padding-bottom:8px;border-bottom:1px solid #e1ebf0}.editorial-workflow article:last-child{padding-bottom:0;border-bottom:0}.editorial-composer-head{padding:19px;display:block}.editorial-composer-head h2{font-size:24px}.editorial-draft-status{display:inline-block;margin-top:10px}.editorial-title-field,.editorial-lead-field,.editorial-meta-fields{padding-left:18px;padding-right:18px}.editorial-meta-fields{grid-template-columns:1fr}.editorial-text-editor{margin-left:18px;margin-right:18px}.editorial-content{min-height:310px;padding:16px;font-size:14px}.editorial-composer form>footer{padding:15px 18px;align-items:stretch;flex-direction:column}.editorial-composer form>footer>div{display:grid;grid-template-columns:1fr 1fr}.editorial-composer form>footer .btn{justify-content:center}.editorial-tools{grid-template-columns:1fr}.editorial-embeds{grid-column:auto}.editorial-link-input{grid-template-columns:1fr}.editorial-link-input .btn{justify-content:center}.editorial-source-results{max-height:390px}}

.editorial-media-studio{margin:19px 26px 0;overflow:hidden;border:1px solid #d0e0e8;border-radius:14px;background:#f8fbfc}.editorial-media-studio>header{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #dce8ee;background:#fff}.editorial-media-studio>header>div{display:flex;align-items:center;gap:9px}.editorial-media-studio>header>div>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0870a5;background:#e3f3f8}.editorial-media-studio svg{width:18px}.editorial-media-studio small,.editorial-media-studio h3{display:block}.editorial-media-studio h3{margin:2px 0;color:#294d66;font:700 17px var(--serif)}.editorial-media-studio small{color:#71899a;font-size:13px;line-height:1.4}.editorial-media-grid{padding:14px;display:grid;grid-template-columns:185px minmax(0,1fr);gap:12px}.editorial-hero-upload{min-height:163px;padding:12px;position:relative;display:grid;align-content:end;overflow:hidden;border:1px dashed #9fc3d5;border-radius:12px;color:#31566e;background:linear-gradient(145deg,#eaf6fa,#fdfefe);cursor:pointer}.editorial-hero-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.editorial-hero-upload>span{height:75px;margin-bottom:9px;display:grid;place-items:center;overflow:hidden;border-radius:9px;color:#0b6f9f;background:#d7edf6}.editorial-hero-upload>span svg{width:30px}.editorial-hero-upload>span img{width:100%;height:100%;object-fit:cover}.editorial-hero-upload b{font-size:13px}.editorial-hero-upload small{margin-top:3px}.editorial-hero-upload:hover{border-color:#0a72a8;background:#f4fbfd}.editorial-gallery-box{min-width:0;padding:12px;border:1px solid #dce8ee;border-radius:12px;background:#fff}.editorial-gallery-box-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.editorial-gallery-box-head>div b,.editorial-gallery-box-head>div small{display:block}.editorial-gallery-box-head>div b{color:#2c5169;font-size:13px}.editorial-gallery-box-head>div small{margin-top:2px}.editorial-gallery-box-head .btn{min-height:34px;padding:0 9px}.editorial-gallery-box-head .btn svg{width:15px}.editorial-gallery-box-head input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.editorial-gallery-list{min-height:103px;margin-top:10px;display:flex;align-items:center;gap:7px;overflow:auto}.editorial-gallery-list>span{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;color:#7990a0;font-size:13px}.editorial-gallery-list>span svg{width:17px;color:#0b6d9f}.editorial-gallery-list article{width:105px;position:relative;display:grid;gap:4px;flex:0 0 auto}.editorial-gallery-list img{width:105px;height:77px;display:block;object-fit:cover;border:1px solid #cbdde6;border-radius:9px}.editorial-gallery-list article button{width:25px;height:25px;position:absolute;right:4px;top:4px;display:grid;place-items:center;border:0;border-radius:7px;color:#fff;background:rgba(11,43,64,.76);cursor:pointer}.editorial-gallery-list article button:hover{background:#a84444}.editorial-gallery-list article button svg{width:13px}.editorial-gallery-list article small{overflow:hidden;color:#637d8f;text-overflow:ellipsis;white-space:nowrap}.editorial-embed-card{grid-template-columns:48px minmax(0,1fr) auto}.editorial-embed-card>img{width:48px;height:48px;display:block;object-fit:cover;border-radius:10px}.editorial-embed-card p{display:-webkit-box;max-height:2.8em;margin:3px 0;overflow:hidden;color:#657f91;font-size:13px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.editorial-embed-card aside{display:grid;gap:4px}.editorial-embed-card aside button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;color:#7891a1;background:#edf4f7;cursor:pointer}.editorial-embed-card aside button:hover{color:#fff;background:#0a6a9d}.editorial-embed-card aside button[data-editorial-remove-embed]:hover{background:#a34949}.editorial-embed-card aside svg{width:15px}
@media(min-width:821px){.mega-menu{max-height:calc(100vh - 122px);overflow:auto;background:#f8fbfc}.mega-menu-inner{padding:15px 0 18px}.mega-panel{grid-template-columns:220px minmax(0,1fr);gap:14px}.mega-panel-intro{padding:16px;grid-template-columns:40px minmax(0,1fr)}.mega-panel-intro>span{width:40px;height:40px;border-radius:11px}.mega-panel-intro svg{width:21px}.mega-panel-intro h2{font-size:22px}.mega-panel-section{padding:8px;border-radius:13px}.mega-panel-section>h3{margin:0 3px 4px;padding:3px 4px 7px}.mega-panel-links{gap:2px}.mega-panel-links>a{min-height:52px;padding:8px;grid-template-columns:34px minmax(0,1fr) 16px;gap:8px}.mega-panel-links>a>span{width:34px;height:34px;border-radius:9px}.mega-panel-links>a>span svg{width:17px}.mega-panel-links small{margin-top:2px;font-size:13px;line-height:1.25}}

/* Header refinement */
.site-header{
  position:sticky;
  top:0;
  z-index:90;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(250,252,253,.94));
  box-shadow:0 14px 34px rgba(10,42,68,.08);
  backdrop-filter:blur(24px) saturate(145%);
}

.site-header::before{
  content:'';
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(196,141,37,.32),transparent);
  pointer-events:none;
}

.site-header .topbar{
  height:76px;
  padding:0 max(18px,calc((100vw - 1560px)/2));
  position:relative;
  z-index:2;
  border-bottom:1px solid rgba(215,226,233,.88);
  background:transparent;
  box-shadow:none;
}

.topbar-brand{
  min-width:228px;
  padding:7px 10px 7px 8px;
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid rgba(214,226,233,.9);
  border-radius:16px;
  color:#123651;
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(244,248,251,.88));
  box-shadow:0 10px 24px rgba(10,42,68,.06);
}

.topbar-brand .brand-mark{
  width:46px;
  height:46px;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.6);
  border-radius:14px;
  background:linear-gradient(145deg,#ffe5a9,#c58d2e);
  box-shadow:0 12px 28px rgba(197,140,37,.25);
}

.topbar-brand strong{
  font:700 18px var(--serif);
  letter-spacing:-.015em;
}

.topbar-brand small{
  margin-top:1px;
  color:#7f93a6;
  font-size:12px;
  letter-spacing:.14em;
}

.topbar-brand:hover{
  border-color:#c8d7e1;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(10,42,68,.09);
}

.site-header .global-search{
  max-width:720px;
}

.site-header .global-search label{
  height:46px;
  padding:0 14px;
  border:1px solid #d6e0e8;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#f7f9fb);
  box-shadow:inset 0 1px 0 #fff;
}

.site-header .global-search label:focus-within{
  border-color:#2b74ad;
  background:#fff;
  box-shadow:0 0 0 4px rgba(43,116,173,.1),0 10px 26px rgba(22,58,91,.08);
}

.site-header .global-search input{
  font-size:14px;
}

.site-header .global-search kbd{
  font-size:12px;
  border-radius:7px;
}

.site-header .top-actions{
  flex:0 0 auto;
  gap:7px;
}

.site-header .top-actions .icon-btn{
  width:44px;
  height:44px;
  border-color:#d7e0e8;
  border-radius:13px;
  background:linear-gradient(180deg,#fff,#f8fbfd);
}

.site-header .top-actions .icon-btn:hover{
  border-color:#b9c8d7;
}

.global-dashboard-link{
  min-height:44px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #cfe0ea;
  border-radius:13px;
  color:#0b5f93;
  background:linear-gradient(145deg,#f7fbfe,#eef6fb);
  font-size:13px;
  font-weight:850;
  box-shadow:0 10px 22px rgba(10,42,68,.06);
}

.global-dashboard-link:hover{
  border-color:#a8c5d8;
  color:#084d79;
  transform:translateY(-1px);
}

.global-dashboard-link.active{
  border-color:#0a5e8d;
  color:#fff;
  background:linear-gradient(145deg,#0d6e9f,#07486f);
  box-shadow:0 12px 26px rgba(7,72,111,.2);
}

.global-dashboard-link .ui-icon{
  width:16px;
  height:16px;
}

.account-trigger{
  min-height:44px;
  padding:0 12px 0 8px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #d7e0e8;
  border-radius:13px;
  color:#2b4761;
  background:linear-gradient(180deg,#fff,#f8fbfd);
  box-shadow:0 10px 22px rgba(10,42,68,.05);
}

.account-trigger:hover{
  border-color:#b9c8d7;
  transform:translateY(-1px);
}

.account-trigger .avatar{
  width:38px;
  height:38px;
  box-shadow:0 8px 18px rgba(10,44,85,.15);
}

.account-trigger b{
  font-size:13px;
}

.account-trigger small{
  font-size:12px;
}

.account-trigger i{
  margin-left:1px;
  color:#7e90a0;
  font-style:normal;
}

.mega-nav{
  position:relative;
  z-index:1;
  height:58px;
  padding-top:8px;
  border-bottom:1px solid #d3dee6;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(246,249,251,.98));
}

.mega-nav-inner{
  width:min(1560px,calc(100% - 40px));
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:stretch;
  gap:4px;
}

.mega-nav-item{
  min-width:150px;
  position:relative;
  display:flex;
  align-items:stretch;
  border-bottom:3px solid transparent;
}

.mega-nav-item.current,
.mega-nav-item:has(.mega-nav-trigger.open){
  border-bottom-color:#c99435;
}

.mega-nav-link{
  min-width:0;
  flex:1;
  padding:0 9px 0 15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#45637a;
  font:850 13px var(--sans);
  white-space:nowrap;
}

.mega-nav-link:hover{
  color:#0b527d;
  background:#f2f7fa;
}

.mega-nav-link>span{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #d7e6ee;
  border-radius:9px;
  color:#0c679b;
  background:linear-gradient(145deg,#eef8fc,#e1eef7);
}

.mega-nav-link svg{
  width:17px;
}

.mega-nav-trigger{
  width:34px;
  min-width:34px;
  padding:0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  color:#7f93a6;
  background:transparent;
}

.mega-nav-trigger>i{
  margin:0;
  transition:transform .16s ease;
}

.mega-nav-trigger:hover,
.mega-nav-trigger.open{
  color:#0b527d;
  background:#f2f7fa;
}

.mega-nav-trigger.open>i{
  transform:rotate(180deg);
}

.mega-menu{
  position:absolute;
  left:50%;
  right:auto;
  top:calc(100% + 8px);
  width:min(1560px,calc(100% - 40px));
  transform:translateX(-50%);
  border:1px solid #c9dce7;
  border-radius:18px;
  background:#fff;
  box-shadow:0 20px 48px rgba(9,43,68,.16);
}

.mega-menu-inner{
  width:100%;
  padding:12px;
}

.mega-panel{
  grid-template-columns:198px minmax(0,1fr);
  gap:12px;
}

.mega-panel-intro{
  min-height:100%;
  padding:15px;
  align-content:start;
  border:1px solid #d9e5ec;
  border-radius:15px;
  background:linear-gradient(145deg,#f7fbfd,#e9f4f8);
}

.mega-panel-intro>span{
  width:40px;
  height:40px;
  border-radius:11px;
  background:linear-gradient(145deg,#0d72a9,#08395e);
  color:#fff;
}

.mega-panel-intro h2{
  font-size:22px;
}

.mega-panel-intro p{
  margin-top:6px;
  color:#667c90;
}

.mega-panel-section{
  border:1px solid #e0e8ee;
  border-radius:13px;
  background:#fff;
}

.mega-panel-links>a{
  min-height:50px;
}

.page-head{
  margin-bottom:24px;
  padding:2px 0 6px;
  align-items:flex-end;
  gap:18px;
  border-bottom:1px solid rgba(211,224,232,.74);
}

.page-head-main{
  gap:16px;
}

.page-head-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  background:linear-gradient(145deg,#0d72a9,#08395e);
  box-shadow:0 14px 28px rgba(9,76,118,.18);
}

.page-head-icon .ui-icon{
  width:27px;
  height:27px;
}

.page-head-copy h1{
  margin-top:5px;
  color:#0b2646;
  font-size:clamp(34px,3.2vw,48px);
  line-height:1.02;
  letter-spacing:-.03em;
}

.page-head-copy p{
  max-width:74ch;
  margin-top:10px;
  color:#61748a;
  font-size:15px;
  line-height:1.68;
}

.head-actions{
  gap:10px;
}

.head-actions .btn{
  min-height:45px;
  border-radius:12px;
}

@media(max-width:820px){
  .site-header .topbar{
    height:68px;
    padding:0 10px;
    gap:8px;
  }

  .topbar-brand{
    min-width:auto;
    padding:6px 9px 6px 7px;
  }

  .topbar-brand .brand-mark{
    width:42px;
    height:42px;
  }

  .topbar-brand>span:last-child{
    display:none;
  }

  .site-header .global-search{
    min-width:0;
  }

  .site-header .global-search label{
    padding-inline:10px;
  }

  .site-header .global-search kbd{
    display:none;
  }

  .site-header .top-actions .source-state,
  .site-header .top-actions .user-chip>span:last-child{
    display:none;
  }

  .site-header .top-actions .icon-btn{
    width:40px;
    height:40px;
  }

  .mega-nav{
    height:calc(100dvh - 68px);
    display:none;
    position:fixed;
    z-index:121;
    left:0;
    right:0;
    top:68px;
    bottom:auto;
    border:0;
    background:#f4f8fa;
    overflow:auto;
  }

  .portal.menu-open .mega-nav{
    display:block;
  }

  .mega-nav-inner{
    width:100%;
    height:auto;
    padding:10px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  .mega-nav-item{
    min-width:0;
    border:1px solid #d6e1e8;
    border-radius:11px;
    background:#fff;
  }

  .mega-nav-link{
    min-height:46px;
    padding:7px 6px 7px 9px;
    justify-content:flex-start;
  }

  .mega-nav-trigger{
    width:38px;
    min-width:38px;
    padding:0 8px;
    border-left:1px solid #e1e9ee;
    border-radius:0 10px 10px 0;
  }

  .mega-nav-item.current,
  .mega-nav-item:has(.mega-nav-trigger.open){
    border-color:#0a527e;
    background:#0a527e;
  }

  .mega-nav-item.current .mega-nav-link,
  .mega-nav-item:has(.mega-nav-trigger.open) .mega-nav-link{
    color:#fff;
  }

  .mega-nav-item.current .mega-nav-link>span,
  .mega-nav-item:has(.mega-nav-trigger.open) .mega-nav-link>span{
    color:#0a527e;
    background:#fff;
  }

  .mega-nav-item.current .mega-nav-trigger,
  .mega-nav-item:has(.mega-nav-trigger.open) .mega-nav-trigger{
    border-left-color:rgba(255,255,255,.2);
    color:#fff;
    background:transparent;
  }

  .mega-menu{
    position:static;
    transform:none;
    width:100%;
    border:0;
    background:transparent;
    box-shadow:none;
  }

  .mega-menu-inner{
    padding:0 10px 20px;
  }

  .mega-panel{
    grid-template-columns:1fr;
    gap:8px;
  }

  .mega-panel-intro{
    padding:15px;
  }

  .mega-panel-links>a{
    min-height:58px;
  }
}
@media(max-width:650px){.editorial-media-studio{margin-left:18px;margin-right:18px}.editorial-media-studio>header{align-items:flex-start;flex-direction:column}.editorial-media-grid{grid-template-columns:1fr}.editorial-hero-upload{min-height:145px}.editorial-gallery-box-head{align-items:flex-start;flex-direction:column}.editorial-gallery-box-head .btn{width:100%;justify-content:center}}

/* Zwarte menu desktopowe: jedna karta zamiast pełnoekranowej zasłony. */
@media(min-width:821px){.mega-menu{width:min(1560px,calc(100% - 40px));left:50%;right:auto;top:calc(100% + 8px);transform:translateX(-50%);max-height:calc(100vh - 122px);overflow:auto;border:1px solid #c9dce7;border-radius:18px;background:#fff;box-shadow:0 20px 48px rgba(9,43,68,.16);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.mega-menu-inner{width:100%;padding:12px}.mega-panel{grid-template-columns:198px minmax(0,1fr);gap:12px}.mega-panel-intro{min-height:100%;padding:15px;align-content:start;background:linear-gradient(145deg,#f7fbfd,#e9f4f8)}.mega-panel-intro p{margin-top:6px}.mega-panel-sections{gap:9px}.mega-panel-section{box-shadow:none}.mega-panel-links>a{min-height:50px}.mega-panel-links small{font-size:13px}}
@media(min-width:1250px){.mega-panel-sections{grid-template-columns:repeat(5,minmax(0,1fr))}.mega-panel-section{padding:8px}.mega-panel-links>a{grid-template-columns:32px minmax(0,1fr) 14px;gap:7px;padding:8px}.mega-panel-links>a>span{width:32px;height:32px}.mega-panel-links>a>span svg{width:16px}.mega-panel-links>a>i svg{width:14px}.mega-panel-links b{font-size:13px}.mega-panel-links small{font-size:13px;line-height:1.23}}

/* Długie sekcje (np. Sejm) dostają pełniejszy oddech i dwa tory nawigacji. */
@media(min-width:821px){.mega-panel-sections:has(.mega-panel-section.wide){grid-template-columns:repeat(4,minmax(0,1fr))}.mega-panel-section.wide{grid-column:span 2}.mega-panel-section.wide .mega-panel-links{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px}.mega-panel-section.wide .mega-panel-links>a{min-height:58px;grid-template-columns:32px minmax(0,1fr) 14px}.mega-panel-section.wide .mega-panel-links>a>span{width:32px;height:32px}.mega-panel-section.wide .mega-panel-links>a>span svg{width:16px}.mega-panel-section.wide .mega-panel-links>a>i svg{width:14px}}
@media(max-width:820px){.mega-panel-section.wide{grid-column:auto}.mega-panel-section.wide .mega-panel-links{grid-template-columns:1fr}}

/* Prawo i Sejm: trzy równorzędne obszary zamiast układu z samotną kartą w drugim rzędzie. */
@media(min-width:1100px){#mega-panel-1 .mega-panel-sections{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}#mega-panel-1 .mega-panel-section,#mega-panel-1 .mega-panel-section.wide{grid-column:auto;display:flex;flex-direction:column}#mega-panel-1 .mega-panel-links{flex:1}#mega-panel-1 .mega-panel-section:nth-child(1) .mega-panel-links{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px}#mega-panel-1 .mega-panel-section:nth-child(2) .mega-panel-links{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px}#mega-panel-1 .mega-panel-section:nth-child(3) .mega-panel-links{grid-template-columns:1fr}}
@media(min-width:1180px){#mega-panel-2 .mega-panel-sections{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}#mega-panel-2 .mega-panel-section,#mega-panel-2 .mega-panel-section.wide{grid-column:auto;display:flex;flex-direction:column}#mega-panel-2 .mega-panel-links{flex:1}#mega-panel-2 .mega-panel-section.wide .mega-panel-links{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px}}

/* Lokalne elementy bocznej nawigacji są kartami widoku, nie kotwicami sekcji. */
.module-rail>nav button[data-workspace-tab]{width:100%;min-height:0;padding:0 10px;display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid transparent;border-radius:9px;color:#aebfd1;background:transparent;font:750 13px var(--sans);text-align:left;cursor:pointer;transition:color .18s ease,background .18s ease,border-color .18s ease}.module-rail>nav button[data-workspace-tab]:hover{color:#fff;background:rgba(255,255,255,.06)}.module-rail>nav button[data-workspace-tab].active{color:#fff;border-color:rgba(238,198,112,.16);background:linear-gradient(90deg,rgba(202,147,43,.22),rgba(255,255,255,.05));box-shadow:inset 3px 0 #e1ae4b}.module-rail>nav button[data-workspace-tab]:focus-visible{outline:2px solid #f0ca76;outline-offset:-2px}.module-rail>nav button[data-workspace-tab] i{width:27px;height:27px;display:grid;place-items:center;color:#e4bd66;font-style:normal}.module-rail>nav button[data-workspace-tab] i .ui-icon{width:18px;height:18px}.module-rail>nav button[data-workspace-tab] span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:820px){.module-rail>nav button[data-workspace-tab]{padding:0;grid-template-columns:1fr;place-items:center}.module-rail>nav button[data-workspace-tab] span{display:none}.module-rail>nav button[data-workspace-tab] i{width:29px;height:29px}}

body[data-page="sejm"] .sejm-record-links span{display:inline-flex;align-items:center;gap:4px}.sejm-record-links span .ui-icon{width:13px;height:13px;flex:0 0 auto;color:var(--record-accent)}
@media(max-width:560px){.profile-crop-tools>header{grid-template-columns:36px 1fr}.profile-crop-tools>header .btn{grid-column:1/-1;width:100%}.profile-crop-tools>div{grid-template-columns:1fr}}

.booking-progress{padding:14px 20px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #dce7ed;background:#fff}.booking-progress span{display:inline-flex;align-items:center;gap:5px;color:#8ba0af;font-size:13px;font-weight:800}.booking-progress span::first-letter{width:20px;height:20px;display:inline-grid;place-items:center;border-radius:50%;color:#597487;background:#edf2f5}.booking-progress span.active{color:#135e8b}.booking-progress span.active::first-letter{color:#fff;background:#0b679d}.booking-progress i{width:30px;height:1px;background:#d7e3e9}.booking-slot-picker{grid-column:1/-1;padding:13px;border:1px solid #d8e7ee;border-radius:12px;background:#f7fbfd}.booking-slot-picker>b{display:block;margin-bottom:9px;color:#284f69;font-size:13px}.booking-slot-picker>div{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.booking-slot-picker button{padding:10px;border:1px solid #cddfe8;border-radius:10px;color:#315a74;background:#fff;text-align:left;cursor:pointer;transition:.16s}.booking-slot-picker button.active,.booking-slot-picker button:hover{border-color:#1680ae;background:#eaf7fb;box-shadow:0 5px 14px rgba(8,104,155,.1)}.booking-slot-picker strong,.booking-slot-picker small{display:block}.booking-slot-picker strong{font-size:13px}.booking-slot-picker small{margin-top:3px;color:#668196;font-size:13px}.booking-slot-picker p{margin:0;color:#6e8597;font-size:13px}
.booking-slot-picker{padding:15px;background:linear-gradient(145deg,#f4fafc,#fff)}.booking-slot-picker>header{margin-bottom:11px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.booking-slot-picker>header b,.booking-slot-picker>header small{display:block}.booking-slot-picker>header b{color:#214b67;font-size:14px}.booking-slot-picker>header small{margin-top:3px;color:#718899;font-size:13px}.booking-slot-picker>header>span{padding:5px 8px;border-radius:999px;color:#127253;background:#e5f6ed;font-size:13px;font-weight:850;white-space:nowrap}.booking-slot-filters{margin-bottom:10px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.booking-slot-filters label{display:grid;gap:4px;color:#5d788b;font-size:13px;font-weight:800}.booking-slot-filters select{width:100%;min-height:36px;padding:0 8px;border:1px solid #c9dbe5;border-radius:9px;color:#294e68;background:#fff;font:700 13px var(--sans)}.booking-slot-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.booking-slot-list button{min-height:67px;padding:10px!important}.booking-slot-list p{grid-column:1/-1;padding:12px;border:1px dashed #c6d8e1;border-radius:10px;background:#fff;text-align:center}.booking-slot-more{width:100%;min-height:38px;margin-top:10px;justify-content:center;color:#0b679c!important;background:#fff!important}.booking-slot-more[hidden]{display:none}
@media(max-width:700px){.booking-progress{padding:12px;gap:5px}.booking-progress b{display:none}.booking-progress i{width:18px}.booking-slot-picker>div{grid-template-columns:1fr}.booking-slot-picker{padding:11px}}

.owner-calendar .lawyer-calendar-grid.month article{cursor:copy}.owner-calendar .lawyer-calendar-grid.month article:hover{border-color:#1180b4;background:#eef9fc;box-shadow:0 5px 14px rgba(8,104,155,.1)}.owner-calendar .lawyer-calendar-grid.month article:hover::after{content:"+ Dodaj wydarzenie";display:block;margin-top:5px;color:#0870a6;font-size:13px;font-weight:850}.owner-calendar .lawyer-calendar-grid.month article:has([data-booking-start]):hover::after{display:none}.lawyer-map{background:#e8f1f5!important}.lawyer-map iframe{width:100%;height:100%;display:block;border:0;filter:saturate(.86) contrast(.96)}.lawyer-map>span{position:absolute;z-index:2;left:12px;bottom:12px;padding:8px 10px;border:1px solid rgba(255,255,255,.82);border-radius:9px;color:#204b68;background:rgba(255,255,255,.92);box-shadow:0 7px 20px rgba(8,47,75,.16)}.lawyer-map>span b,.lawyer-map>span small{position:static;display:block}.lawyer-map>span b{color:#204b68;font-size:13px}.lawyer-map>span small{margin-top:2px;color:#47718a;font-size:13px}.lawyer-calendar-upcoming{padding:13px 16px;display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px;align-items:center;border-bottom:1px solid #dce8ee;background:#f8fbfc}.lawyer-calendar-upcoming>b{display:flex;align-items:center;gap:7px;color:#30556e;font-size:13px}.lawyer-calendar-upcoming>b svg{width:17px;color:#bd8830}.lawyer-calendar-upcoming>div{display:flex;gap:7px;overflow:auto}.lawyer-calendar-upcoming button{min-width:170px;padding:8px 10px;border:1px solid #cae0e9;border-radius:9px;color:#244f6a;background:#fff;text-align:left;cursor:pointer}.lawyer-calendar-upcoming button:hover{border-color:#0a70a6;background:#edf8fb}.lawyer-calendar-upcoming strong,.lawyer-calendar-upcoming small{display:block;font-size:13px}.lawyer-calendar-upcoming small{margin-top:2px;color:#6d8799}.lawyer-calendar-upcoming>div>span{color:#71899a;font-size:13px}.lawyer-contact button{border:1px solid #cbdce6;border-radius:10px;color:#294e68;background:#fff;font-size:13px;font-weight:800}.lawyer-contact button:hover{border-color:#0b6f9f;color:#0b638f;background:#f1f9fc}
.lawyer-calendar-finder{padding:16px;border-bottom:1px solid #dce8ee;background:linear-gradient(135deg,#f1f8fb,#fff)}.lawyer-calendar-finder form{display:grid;grid-template-columns:minmax(190px,1.35fr) repeat(3,minmax(125px,.72fr)) auto;gap:9px;align-items:end}.lawyer-calendar-finder form>div{min-width:0;padding:2px 5px 4px;display:grid;grid-template-columns:25px 1fr;column-gap:7px;align-items:center}.lawyer-calendar-finder form>div>span{grid-row:1/3;color:#0a72a7}.lawyer-calendar-finder form>div svg{width:19px}.lawyer-calendar-finder form b,.lawyer-calendar-finder form small{display:block}.lawyer-calendar-finder form b{color:#214b68;font-size:14px}.lawyer-calendar-finder form small{color:#70899a;font-size:13px;line-height:1.35}.lawyer-calendar-finder label{display:grid;gap:4px;color:#5f7b8e;font-size:13px;font-weight:800}.lawyer-calendar-finder select,.lawyer-calendar-finder input{width:100%;min-height:39px;padding:0 9px;border:1px solid #cbdde7;border-radius:9px;color:#284e67;background:#fff;font:700 13px var(--sans)}.lawyer-calendar-finder button{min-height:39px;padding:0 11px;border:1px solid #cbdce6;border-radius:9px;color:#3a5c71;background:#fff;font-size:13px;font-weight:850;cursor:pointer}.lawyer-calendar-finder button:hover{border-color:#0c73a6;color:#075c8a;background:#eef8fc}.lawyer-calendar-found{margin-top:13px;padding-top:13px;border-top:1px dashed #cfdfe7}.lawyer-calendar-found>b{display:block;margin-bottom:8px;color:#345a72;font-size:13px}.lawyer-calendar-found>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.lawyer-calendar-found button{min-width:0;padding:9px;display:grid;grid-template-columns:minmax(0,1fr) 15px;column-gap:6px;text-align:left}.lawyer-calendar-found button strong,.lawyer-calendar-found button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lawyer-calendar-found button strong{color:#24516d;font-size:13px}.lawyer-calendar-found button small{margin-top:3px;color:#6f8798;font-size:13px}.lawyer-calendar-found button svg{width:15px;grid-column:2;grid-row:1/3;margin:auto;color:#0970a5}.lawyer-calendar-found p{margin:0;color:#72899a;font-size:13px}
/* Pełniejszy widok szybkiej komunikacji: nazwy, załączniki i edytor pozostają czytelne. */
.global-chat-dock{width:560px}.global-chat-window{height:min(500px,calc(100vh - 84px));grid-template-rows:62px minmax(0,1fr);border-color:#c5d9e5;border-radius:20px 20px 0 0;box-shadow:0 -22px 58px rgba(8,39,69,.25)}.global-chat-window>header{padding:10px 13px;grid-template-columns:36px 40px minmax(0,1fr) repeat(3,34px);gap:9px}.global-chat-window>header button,.global-chat-window>header a{width:34px;height:34px;border-radius:10px}.global-chat-window>header .avatar{width:38px;height:38px}.global-chat-window>header b{color:#153a58;font-size:15px}.global-chat-window>header small{margin-top:2px;font-size:13px}.global-chat-body{grid-template-columns:172px minmax(0,1fr)}.global-chat-conversations{padding:9px;gap:6px;background:linear-gradient(180deg,#f2f7fa,#f8fafb)}.global-chat-conversations button{min-height:58px;padding:8px;grid-template-columns:35px minmax(0,1fr);gap:8px;border-radius:11px}.global-chat-conversations .avatar{width:34px;height:34px}.global-chat-conversations b{color:#234963;font-size:13px}.global-chat-conversations small{margin-top:3px;font-size:13px}.global-chat-messages{padding:17px 18px;background:linear-gradient(180deg,#f2f7fa,#fff 68%)}.global-chat-messages .message{max-width:92%;grid-template-columns:30px minmax(0,1fr);gap:8px}.global-chat-messages .message.mine{grid-template-columns:minmax(0,1fr)}.global-chat-messages .message-bubble{width:100%;max-width:none;padding:12px 13px;border-radius:15px;font-size:14px;line-height:1.55}.global-chat-messages .message-attachment{min-width:0;margin-top:10px;padding:10px;grid-template-columns:28px minmax(0,1fr) 16px;gap:8px;border-radius:11px}.global-chat-messages .message-attachment b{overflow-wrap:anywhere;word-break:normal;font-size:13px;line-height:1.35}.global-chat-messages .message-attachment small{font-size:13px}.global-chat-compose{min-height:60px;padding:10px 12px;grid-template-columns:36px 36px minmax(0,1fr) 40px;gap:7px;background:#f8fbfc}.global-chat-compose>button,.global-chat-attach{width:36px;height:38px;border-radius:11px}.global-chat-compose textarea{min-height:38px;padding:9px 12px;border-radius:13px;background:#fff;font-size:13px}.global-chat-compose .global-chat-send{width:40px;height:40px;border-radius:12px;box-shadow:0 7px 15px rgba(9,103,157,.18)}
@media(max-width:700px){.lawyer-calendar-upcoming{grid-template-columns:1fr}.lawyer-calendar-upcoming>div{padding-bottom:2px}.lawyer-map{height:210px}.lawyer-calendar-finder{padding:13px}.lawyer-calendar-finder form{grid-template-columns:1fr 1fr}.lawyer-calendar-finder form>div{grid-column:1/-1}.lawyer-calendar-finder form>button{grid-column:1/-1}.lawyer-calendar-found>div{grid-template-columns:1fr 1fr}.global-chat-dock{width:auto}.global-chat-window{height:calc(100dvh - 58px)}.global-chat-messages{padding:13px}.global-chat-messages .message{max-width:96%}}
@media(max-width:430px){.lawyer-calendar-finder form{grid-template-columns:1fr}.lawyer-calendar-found>div{grid-template-columns:1fr}.global-chat-body{grid-template-columns:1fr}.global-chat-conversations{display:none}.global-chat-dock.show-conversations .global-chat-conversations{display:grid}.global-chat-messages .message-bubble{font-size:13px}}

/* Domyślny ekran komunikatora: najpierw nawigacja po rozmowach, potem wątek. */
.global-chat-search{min-height:38px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #cadce7;border-radius:10px;color:#5c7a90;background:#fff}.global-chat-search svg{width:16px;color:#0a6c9f}.global-chat-search input{width:100%;min-width:0;border:0;outline:0;color:#284d66;background:transparent;font:700 13px var(--sans)}.global-chat-search:focus-within{border-color:#0b70a5;box-shadow:0 0 0 3px rgba(12,112,165,.12)}.global-chat-conversations>p{margin:0;padding:13px 6px;color:#748a9b;font-size:13px;text-align:center}.global-chat-thread-filter,.chat-thread-filter{min-height:46px;padding:6px 11px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #dbe6ed;color:#0a6d9f;background:#f4f9fb}.global-chat-thread-filter[hidden],.chat-thread-filter[hidden]{display:none}.global-chat-thread-filter svg,.chat-thread-filter svg{width:17px}.global-chat-thread-filter input,.chat-thread-filter input{width:100%;min-width:0;padding:7px 0;border:0;outline:0;color:#274b64;background:transparent;font:700 13px var(--sans)}.global-chat-thread-filter button,.chat-thread-filter button{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:8px;color:#547087;background:#e1edf3;font-size:18px;cursor:pointer}.global-chat-thread-filter button:hover,.chat-thread-filter button:hover{color:#fff;background:#0b6d9f}
.global-chat-dock.messenger-inbox .global-chat-body{display:block;background:linear-gradient(180deg,#f2f7fa,#fff)}.global-chat-dock.messenger-inbox .global-chat-conversations{height:100%;padding:13px;display:grid;grid-template-columns:1fr;align-content:start;gap:7px;border-right:0;background:transparent}.global-chat-dock.messenger-inbox .global-chat-conversations::before{content:"Rozmowy";padding:3px 4px 7px;color:#87611c;font-size:13px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.global-chat-dock.messenger-inbox .global-chat-conversations button{min-height:68px;padding:10px;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;border:1px solid #dbe6ed;border-radius:13px;background:#fff;box-shadow:0 6px 16px rgba(14,53,79,.04)}.global-chat-dock.messenger-inbox .global-chat-conversations button:hover,.global-chat-dock.messenger-inbox .global-chat-conversations button:focus-visible{border-color:#87b9d2;background:#f3faff;outline:0}.global-chat-dock.messenger-inbox .global-chat-conversations .avatar{width:42px;height:42px;font-size:13px}.global-chat-dock.messenger-inbox .global-chat-conversations b{font-size:14px}.global-chat-dock.messenger-inbox .global-chat-conversations small{max-width:330px;font-size:13px}.global-chat-dock.messenger-inbox .global-chat-conversations em{min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#0b6ea6;font-size:13px;font-style:normal;font-weight:850}.global-chat-dock.messenger-inbox .global-chat-thread{display:none}.global-chat-dock.messenger-inbox .global-chat-window>header .avatar{color:#0b679f;background:#e8f4f9}.global-chat-dock.messenger-inbox .global-chat-window>header .avatar svg{width:20px}.global-chat-dock.messenger-inbox .global-chat-window>header b{font-size:16px}
body[data-page="chat"] .chat-panel:has(.chat-thread-filter:not([hidden])){grid-template-rows:72px auto auto minmax(0,1fr) auto}
@media(max-width:700px){.global-chat-window>header{padding:8px;grid-template-columns:34px 34px minmax(0,1fr) repeat(3,30px);gap:5px}.global-chat-window>header button,.global-chat-window>header a{width:30px;height:30px}.global-chat-window>header .avatar{width:34px;height:34px}.global-chat-window>header b{font-size:13px}.global-chat-dock.messenger-inbox .global-chat-conversations{display:grid;inset:auto;position:static}.global-chat-dock.messenger-inbox .global-chat-conversations button{min-height:64px}.global-chat-dock.messenger-inbox .global-chat-conversations small{max-width:calc(100vw - 140px)}}

/* Profile prawnika, mapa lokalizacji oraz kalendarz rezerwacji. */
.pro-heading-icon{width:34px;height:34px;margin-right:9px;display:inline-grid;vertical-align:middle;place-items:center;border:1px solid #cce0e9;border-radius:10px;color:#0871a8;background:linear-gradient(145deg,#edf8fc,#e2f1f7)}.pro-heading-icon svg{width:18px}.card-head h2:has(.pro-heading-icon),.card-head h3:has(.pro-heading-icon),.forum-topic-list>header h2:has(.pro-heading-icon),.section-title h2:has(.pro-heading-icon){display:flex;align-items:center;min-height:34px}.pro-action-icon{width:18px;height:18px;display:inline-grid;flex:0 0 auto;place-items:center}.pro-action-icon svg{width:17px}.btn .pro-action-icon{margin-right:2px}.btn.primary .pro-action-icon{color:currentColor}.pro-field-icon{width:21px;height:21px;display:inline-grid;flex:0 0 auto;place-items:center;border-radius:6px;color:#0b6fa4;background:#e7f4f9}.pro-field-icon svg{width:14px}.filters label>span:has(.pro-field-icon){display:flex;align-items:center;gap:6px}.card,.forum-topic,.conversation,.lawyer-card,.document-library-card{border-color:#d6e3ea}.card:hover{border-color:#bed4e0}.head-actions .btn,.pro-create-actions .btn,.lawyer-calendar-head-actions .btn{box-shadow:0 7px 18px rgba(11,72,109,.07)}.btn:not(.icon-btn){gap:8px}.btn.primary{box-shadow:0 8px 20px rgba(7,72,113,.17)}
@media(max-width:700px){.pro-heading-icon{width:30px;height:30px;margin-right:7px;border-radius:9px}.pro-heading-icon svg{width:16px}.pro-field-icon{width:19px;height:19px}.btn .pro-action-icon svg{width:16px}}
.message-load-earlier{width:100%;min-height:34px;margin:0 0 12px;padding:0 11px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #b9d1de;border-radius:10px;color:#0c679b;background:#f4fafc;font-size:13px;font-weight:850;cursor:pointer}.message-load-earlier:hover,.message-load-earlier:focus-visible{border-style:solid;border-color:#0c75aa;color:#064f78;background:#eaf6fa;outline:0}.global-chat-messages .message-load-earlier{margin-bottom:14px}
/* Korekta proporcji szybkiego komunikatora: nie rozciąga się niepotrzebnie na szerokim telefonie/tablecie. */
.global-chat-dock{right:18px}.global-chat-body{grid-template-columns:205px minmax(0,1fr)}.global-chat-conversations button{min-width:0}.global-chat-conversations b,.global-chat-conversations small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-chat-messages{padding:16px 15px}.global-chat-messages .message{max-width:80%;margin-bottom:14px}.global-chat-messages .message.mine{margin-left:auto}.global-chat-messages .message-bubble{padding:13px 14px;border-radius:16px;font-size:13px;box-shadow:0 4px 12px rgba(16,54,80,.045)}.global-chat-messages .message>div>small{margin-top:6px;display:flex;align-items:center;gap:6px;color:#7890a0}.global-chat-messages .message>div>small b,.global-chat-messages .message>div>small time{font-size:13px}.global-chat-messages .message.mine>div>small{justify-content:flex-end}.global-chat-messages .message-avatar{width:32px;height:32px}.global-chat-compose{padding:9px 10px;background:#fff}.global-chat-compose textarea{min-height:40px;border-color:#c5dce9;box-shadow:inset 0 1px 2px rgba(17,73,107,.04)}.global-chat-compose textarea:focus{border-color:#0874aa;box-shadow:0 0 0 3px rgba(8,116,170,.12)}
@media(min-width:561px) and (max-width:700px){.global-chat-dock{right:12px;left:auto;width:min(560px,calc(100vw - 24px))}.global-chat-window{height:min(470px,calc(100vh - 74px))}.global-chat-body{grid-template-columns:190px minmax(0,1fr)}.global-chat-window>header{grid-template-columns:34px 34px minmax(0,1fr) repeat(3,30px)}.global-chat-messages .message{max-width:84%}}
.lawyer-profile-hero{padding:26px;display:grid;grid-template-columns:92px minmax(0,1fr) 245px;gap:20px;align-items:center;border:1px solid #cbdde7;border-radius:20px;background:radial-gradient(circle at 92% 8%,rgba(227,187,94,.24),transparent 14rem),linear-gradient(135deg,#f5fafc,#fff);box-shadow:0 18px 44px rgba(15,52,77,.09)}.lawyer-profile-avatar{width:92px;height:92px;position:relative;display:grid;place-items:center;border:4px solid #fff;border-radius:25px;color:#fff;background:linear-gradient(145deg,#0c75ab,#073c62);box-shadow:0 12px 25px rgba(7,60,98,.18);font:700 31px var(--serif)}.lawyer-profile-avatar i{width:27px;height:27px;position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;color:#fff;background:#1d956f}.lawyer-profile-avatar svg{width:14px}.lawyer-profile-hero h1{margin:4px 0;color:#143956;font:700 33px/1.08 var(--serif)}.lawyer-profile-hero p{margin:0;color:#657f91;font-size:14px}.lawyer-profile-hero aside{padding:16px;border:1px solid #d7e6ed;border-radius:15px;background:#fff}.lawyer-profile-hero aside>*{display:block}.lawyer-profile-hero aside small{color:#967020;font-size:13px;font-weight:850;text-transform:uppercase}.lawyer-profile-hero aside b{margin:5px 0;color:#17435f;font:700 20px var(--serif)}.lawyer-profile-hero aside span{color:#6a8395;font-size:13px}.lawyer-profile-hero aside .btn{width:100%;margin-top:12px;justify-content:center}.lawyer-profile-stats{margin:15px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.lawyer-profile-stats article{padding:15px;display:grid;grid-template-columns:35px 1fr;column-gap:10px;border:1px solid #d8e5ec;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(16,54,80,.05)}.lawyer-profile-stats span{width:35px;height:35px;display:grid;place-items:center;grid-row:1/3;border-radius:10px;color:#086da2;background:#e4f2f8}.lawyer-profile-stats svg{width:18px}.lawyer-profile-stats b{color:#1c4865;font:700 22px var(--serif)}.lawyer-profile-stats small{color:#758b9c;font-size:13px}.lawyer-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:15px;align-items:start}.lawyer-profile-layout>main{display:grid;gap:15px}.lawyer-profile-layout>aside{display:grid;gap:15px}.lawyer-bio{padding:21px}.lawyer-bio header{display:flex;align-items:center;gap:11px}.lawyer-bio header>span{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;color:#0871a8;background:#e4f3f8}.lawyer-bio header svg{width:21px}.lawyer-bio h2{margin:2px 0;color:#193f5c;font:700 22px var(--serif)}.lawyer-bio>p{margin:16px 0;color:#536e82;font-size:14px;line-height:1.7}.lawyer-profile-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.lawyer-profile-facts article{padding:11px;border:1px solid #dfe9ee;border-radius:10px;background:#f8fbfc}.lawyer-profile-facts small,.lawyer-profile-facts b{display:block}.lawyer-profile-facts small{color:#738a9b;font-size:13px}.lawyer-profile-facts b{margin-top:4px;color:#294e68;font-size:13px}.lawyer-location{overflow:hidden}.lawyer-location>header{padding:17px;display:flex;align-items:start;justify-content:space-between}.lawyer-location h2{margin:3px 0 0;color:#1a425e;font:700 22px var(--serif)}.lawyer-location>header>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0870a6;background:#e3f2f8}.lawyer-location>header svg{width:18px}.lawyer-map{height:190px;position:relative;display:block;overflow:hidden;color:#174c6d;background:linear-gradient(30deg,transparent 45%,rgba(79,151,181,.17) 46% 48%,transparent 49%),linear-gradient(150deg,transparent 45%,rgba(79,151,181,.18) 46% 48%,transparent 49%),linear-gradient(90deg,#eaf4ed,#dcedf4)}.lawyer-map::before,.lawyer-map::after{content:"";position:absolute;border:2px solid rgba(73,137,165,.22);border-radius:50%;transform:rotate(-18deg)}.lawyer-map::before{width:260px;height:100px;left:30px;top:42px}.lawyer-map::after{width:180px;height:70px;right:-22px;bottom:4px}.lawyer-map i{width:27px;height:27px;position:absolute;z-index:2;border:5px solid #fff;border-radius:50% 50% 50% 0;background:#c78d30;box-shadow:0 5px 12px rgba(71,51,17,.25);transform:rotate(-45deg)}.lawyer-map i::after{content:"";width:7px;height:7px;position:absolute;left:5px;top:5px;border-radius:50%;background:#fff}.lawyer-map b,.lawyer-map small{position:absolute;z-index:2;left:15px;display:block}.lawyer-map b{bottom:34px;color:#1e4b68;font-size:13px}.lawyer-map small{bottom:15px;color:#436d87;font-size:13px}.lawyer-location-address{padding:15px;display:grid;grid-template-columns:34px 1fr;gap:9px;border-top:1px solid #dce7ec}.lawyer-location-address>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#0870a7;background:#e5f2f8}.lawyer-location-address svg{width:17px}.lawyer-location-address b,.lawyer-location-address small{display:block}.lawyer-location-address b{color:#31566f;font-size:13px}.lawyer-location-address small{margin-top:3px;color:#758d9e;font-size:13px;line-height:1.45}.lawyer-contact{padding:18px}.lawyer-contact h2{margin:0 0 11px;color:#1a425e;font:700 20px var(--serif)}.lawyer-contact button{width:100%;margin-top:7px;display:flex;align-items:center;gap:8px;justify-content:center}.lawyer-contact button svg{width:17px}.lawyer-contact small{display:block;margin-top:12px;color:#748b9b;font-size:13px;line-height:1.5}.lawyer-calendar{overflow:hidden}.lawyer-calendar>header{padding:19px 21px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid #dce7ed}.lawyer-calendar h2{margin:3px 0 5px;color:#1a405d;font:700 22px var(--serif)}.lawyer-calendar header p{max-width:620px;margin:0;color:#718899;font-size:13px;line-height:1.5}.lawyer-calendar-head-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.lawyer-calendar-toolbar{padding:11px 15px;display:grid;grid-template-columns:34px minmax(150px,1fr) 34px 1fr repeat(4,auto);gap:6px;align-items:center;border-bottom:1px solid #e1eaef;background:#f7fafc}.lawyer-calendar-toolbar button{min-height:34px;padding:0 10px;border:1px solid #d4e1e8;border-radius:9px;color:#42657b;background:#fff;font-size:13px;font-weight:800;cursor:pointer}.lawyer-calendar-toolbar button.active{border-color:#0a679d;color:#fff;background:#0b659a}.lawyer-calendar-toolbar>b{color:#244b67;font-size:13px;text-transform:capitalize}.lawyer-calendar-grid{padding:15px;min-height:255px}.lawyer-calendar-grid.month{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.lawyer-calendar-grid.month>b{padding:5px;color:#718799;text-align:center;font-size:13px}.lawyer-calendar-grid.month article{min-height:82px;padding:7px;border:1px solid #e0e9ee;border-radius:10px;background:#fff}.lawyer-calendar-grid.month article.available{border-color:#b8d8c9;background:#f8fcfa}.lawyer-calendar-grid.month article>small{display:block;color:#5c778c;font-size:13px;font-weight:850}.lawyer-calendar-grid button{cursor:pointer}.lawyer-calendar-grid.month article button,.lawyer-calendar-grid.day button,.lawyer-calendar-grid.week article button{width:100%;margin-top:5px;padding:5px;border:0;border-radius:7px;color:#135f89;background:#e6f4fa;text-align:left}.lawyer-calendar-grid button b,.lawyer-calendar-grid button small{display:block;font-size:13px}.lawyer-calendar-grid button small{margin-top:1px;color:#47738d}.lawyer-calendar-grid.year{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.lawyer-calendar-grid.year button{min-height:90px;padding:12px;border:1px solid #d9e6ed;border-radius:12px;color:#214c68;background:linear-gradient(145deg,#fff,#f4f9fb);text-align:left}.lawyer-calendar-grid.year small,.lawyer-calendar-grid.year b,.lawyer-calendar-grid.year span{display:block}.lawyer-calendar-grid.year small{color:#72899b;font-size:13px}.lawyer-calendar-grid.year b{margin:5px 0;color:#0b6599;font:700 23px var(--serif)}.lawyer-calendar-grid.year span{color:#618095;font-size:13px}.lawyer-calendar-grid.week{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.lawyer-calendar-grid.week article{min-height:160px;padding:8px;border:1px solid #dde8ed;border-radius:11px}.lawyer-calendar-grid.week article header{padding:0 0 7px;border-bottom:1px solid #e3edf1}.lawyer-calendar-grid.week article header>*{display:block}.lawyer-calendar-grid.week article header small{color:#7890a0;font-size:13px}.lawyer-calendar-grid.week article header b{color:#254e69;font-size:16px}.lawyer-calendar-grid.week article>span{display:block;margin-top:12px;color:#9aaab5;text-align:center}.lawyer-calendar-grid.day{display:grid;gap:8px}.lawyer-calendar-grid.day button{padding:12px;border:1px solid #b8d8c9;border-radius:10px;background:#f0faf5;text-align:left}.lawyer-calendar-grid.day>p{color:#718799;font-size:13px}.lawyer-calendar>footer{padding:13px 20px;display:flex;align-items:center;gap:13px;border-top:1px solid #dce7ed;color:#607c90;background:#f8fbfc}.lawyer-calendar>footer>span{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:750}.lawyer-calendar>footer svg{width:15px;color:#0b709f}.lawyer-calendar>footer .btn{margin-left:auto}.booking-modal{width:min(670px,100%)}.booking-form>header,.availability-manager>header{padding:19px;display:grid;grid-template-columns:44px 1fr auto;gap:11px;align-items:center;border-bottom:1px solid #dce7ed;background:linear-gradient(135deg,#f4fafc,#fff)}.booking-form>header>span,.availability-manager>header>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#09699e}.booking-form>header svg,.availability-manager>header svg{width:22px}.booking-form h3,.availability-manager h3{margin:2px 0;color:#183f5b;font:700 21px var(--serif)}.booking-form header small,.availability-manager header small{color:#986d20;font-size:13px;font-weight:850}.booking-form header p,.availability-manager header p{margin:1px 0 0;color:#718899;font-size:13px}.booking-form header em{padding:6px 9px;border-radius:999px;color:#146e53;background:#e6f6ee;font-size:13px;font-style:normal;font-weight:850}.booking-form>section,.availability-manager>section{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.booking-form label,.availability-manager label{display:grid;gap:6px;color:#45637a;font-size:13px;font-weight:850}.booking-form label.wide{grid-column:1/-1}.booking-form input,.booking-form select,.booking-form textarea,.availability-manager input,.availability-manager select{min-height:43px;padding:0 11px;border:1px solid #cbdce6;border-radius:10px;color:#1d4561;background:#fff;font-size:13px}.booking-form textarea{min-height:94px;padding:10px;resize:vertical}.booking-form footer,.availability-manager footer{padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #dfe9ee;background:#f8fbfc}.booking-form footer small,.availability-manager footer small{color:#6f8798;font-size:13px;line-height:1.45}.availability-manager-list{margin:0 20px 20px;padding:12px;display:grid;gap:7px;border:1px solid #dce8ee;border-radius:11px;background:#f8fbfc}.availability-manager-list>b{color:#31566f;font-size:13px}.availability-manager-list span{display:flex;align-items:center;gap:6px;color:#607c90;font-size:13px}.availability-manager-list svg{width:14px;color:#1d946e}
@media(max-width:1050px){.lawyer-profile-hero{grid-template-columns:76px minmax(0,1fr)}.lawyer-profile-hero aside{grid-column:1/-1}.lawyer-profile-layout{grid-template-columns:1fr}.lawyer-profile-layout>aside{grid-template-columns:1fr 1fr}.lawyer-calendar-grid.week{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.lawyer-profile-hero{padding:18px;grid-template-columns:64px minmax(0,1fr);gap:13px}.lawyer-profile-avatar{width:64px;height:64px;border-radius:19px;font-size:22px}.lawyer-profile-hero h1{font-size:25px}.lawyer-profile-stats{grid-template-columns:1fr 1fr}.lawyer-profile-layout>aside{grid-template-columns:1fr}.lawyer-profile-facts{grid-template-columns:1fr}.lawyer-calendar>header{padding:16px;display:block}.lawyer-calendar-head-actions{margin-top:12px;justify-content:flex-start}.lawyer-calendar-toolbar{grid-template-columns:34px 1fr 34px;gap:6px}.lawyer-calendar-toolbar>span{display:none}.lawyer-calendar-toolbar [data-calendar-view]{grid-row:2}.lawyer-calendar-grid{padding:10px}.lawyer-calendar-grid.month article{min-height:65px;padding:5px}.lawyer-calendar-grid.month article button{padding:3px;font-size:0}.lawyer-calendar-grid.month article button b{font-size:0}.lawyer-calendar-grid.month article button small{font-size:0}.lawyer-calendar-grid.month article button::after{content:"•";font-size:18px;color:#0d6e9e}.lawyer-calendar-grid.year{grid-template-columns:repeat(2,1fr)}.lawyer-calendar-grid.week{grid-template-columns:repeat(2,1fr)}.lawyer-calendar>footer{align-items:flex-start;flex-wrap:wrap}.lawyer-calendar>footer .btn{width:100%;margin-left:0;justify-content:center}.booking-form>section,.availability-manager>section{padding:16px;grid-template-columns:1fr}.booking-form footer,.availability-manager footer{align-items:stretch;flex-direction:column}.booking-form footer .btn,.availability-manager footer .btn{width:100%;justify-content:center}}
/* Dashboard: header przyklejony do górnej krawędzi i odporny na nadpisanie. */
body[data-page="dashboard"] .portal{
  display:block;
  min-height:100vh;
}

body[data-page="dashboard"] .site-header{
  position:sticky!important;
  top:0!important;
  z-index:1200!important;
}

body[data-page="dashboard"] .site-header .topbar{
  top:0!important;
}

body[data-page="dashboard"] .portal-top-navigation>.shell{
  padding-top:0!important;
}

body[data-page="dashboard"] .sidebar-left,
body[data-page="dashboard"] .sidebar-right{
  display:none!important;
}

body[data-page="dashboard"] .shell{
  width:100%;
  min-width:0;
}

body[data-page="dashboard"] .content{
  width:min(1560px,100%);
  margin:0 auto;
}

/* Globalnie dla portalu: nagłówek przy samej górze, bez pustego pasa nad nim. */
body:not([data-page="landing"]) .portal-top-navigation>.shell{
  padding-top:0!important;
}

body:not([data-page="landing"]) .site-header{
  position:sticky!important;
  top:0!important;
  z-index:1200!important;
}

body:not([data-page="landing"]) .site-header .topbar{
  top:0!important;
}

/* Wspólny header pozostaje przy górnej krawędzi na każdej podstronie portalu. */
body:not([data-page="landing"]) .site-header{
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
}

body:not([data-page="landing"]) .site-header .topbar{
  position:relative!important;
  top:0!important;
}

/* Nazwy głównych działów są przyciskami otwierającymi mega menu. */
.mega-nav-link{
  border:0;
  background:transparent;
  cursor:pointer;
}

.mega-nav-link:hover,
.mega-nav-link.open{
  color:#0b527d;
  background:#f0f6f9;
}

.mega-nav-item:has(.mega-nav-link.open){
  border-bottom-color:#c99435;
}

/* Mega menu dopasowuje liczbę kolumn do realnej szerokości okna. */
@media(min-width:821px){
  #global-mega-navigation .mega-menu{
    width:min(1680px,calc(100vw - clamp(24px,4vw,64px)));
    max-height:calc(100dvh - 150px);
    overflow-x:hidden;
    overflow-y:auto;
  }

  #global-mega-navigation .mega-menu-inner{
    padding:clamp(10px,1vw,16px);
  }

  #global-mega-navigation .mega-panel{
    grid-template-columns:clamp(180px,13vw,225px) minmax(0,1fr);
    gap:clamp(10px,1vw,16px);
  }

  #global-mega-navigation .mega-panel-sections{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));
    gap:clamp(9px,.8vw,14px);
    align-items:stretch;
  }

  #global-mega-navigation .mega-panel-section,
  #global-mega-navigation .mega-panel-section.wide{
    grid-column:auto;
    min-width:0;
  }

  #global-mega-navigation .mega-panel-section .mega-panel-links,
  #global-mega-navigation .mega-panel-section.wide .mega-panel-links{
    grid-template-columns:1fr!important;
  }

  #global-mega-navigation .mega-panel-links>a{
    grid-template-columns:34px minmax(0,1fr) 16px;
    gap:9px;
  }

  #global-mega-navigation .mega-panel-links b,
  #global-mega-navigation .mega-panel-links small{
    min-width:0;
    word-break:normal;
    overflow-wrap:break-word;
  }
}

@media(min-width:821px) and (max-height:800px){
  #global-mega-navigation .mega-menu{
    max-height:calc(100dvh - 146px);
  }

  #global-mega-navigation .mega-panel-intro,
  #global-mega-navigation .mega-panel-section{
    padding:12px;
  }

  #global-mega-navigation .mega-panel-links>a{
    min-height:48px;
    padding:8px;
  }
}

/* Centrum PRO i symulator rozpraw - dane i stan pochodzą z MySQL. */
.pro-platform-root,
.court-game-root{
  --pro-navy:#082f50;
  --pro-navy-deep:#051f36;
  --pro-blue:#0b6b9f;
  --pro-gold:#d7a33d;
  --pro-ink:#15354f;
  --pro-muted:#70869a;
  --pro-line:#d8e3eb;
  --pro-soft:#eef5f8;
  position:relative;
  min-height:420px;
  color:var(--pro-ink);
}

.pro-loading{
  min-height:360px;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:10px;
  border:1px solid var(--pro-line);
  border-radius:28px;
  background:linear-gradient(145deg,#fff 0%,#f0f6f9 100%);
  text-align:center;
}

.pro-loading>span,
.pro-busy>span{
  width:34px;
  height:34px;
  border:3px solid #d5e4ed;
  border-top-color:var(--pro-blue);
  border-radius:50%;
  animation:pro-spin .8s linear infinite;
}

.pro-loading b{font:700 22px Georgia,serif;color:var(--pro-navy)}
.pro-loading p{margin:0;color:var(--pro-muted)}
@keyframes pro-spin{to{transform:rotate(360deg)}}

.pro-platform-root.is-busy,
.court-game-root.is-busy{pointer-events:none}

.pro-busy{
  position:fixed;
  z-index:2100;
  inset:0;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:12px;
  color:#fff;
  background:rgba(5,31,54,.72);
  backdrop-filter:blur(5px);
}

.pro-alert{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  margin-bottom:16px;
  border:1px solid #e7b6b6;
  border-radius:14px;
  color:#772e2e;
  background:#fff3f3;
}
.pro-alert span{flex:1}
.pro-alert button{border:0;background:transparent;font-size:22px;cursor:pointer;color:inherit}

.pro-commercial-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(280px,.55fr);
  gap:clamp(26px,4vw,70px);
  padding:clamp(32px,5vw,72px);
  border-radius:30px;
  color:#fff;
  background:
    radial-gradient(circle at 8% 10%,rgba(215,163,61,.24),transparent 28%),
    radial-gradient(circle at 86% 70%,rgba(25,132,181,.28),transparent 36%),
    linear-gradient(135deg,var(--pro-navy-deep),var(--pro-navy));
  box-shadow:0 28px 70px rgba(8,47,80,.18);
}
.pro-commercial-hero:after{
  content:"";
  position:absolute;
  right:-70px;
  top:-120px;
  width:330px;
  height:330px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.02);
}
.pro-commercial-hero>div,.pro-commercial-hero>aside{position:relative;z-index:1}
.pro-commercial-hero .eyebrow{color:#f1c971}
.pro-commercial-hero h1{max-width:760px;margin:9px 0 14px;font:700 clamp(38px,4.3vw,68px)/1.02 Georgia,serif;letter-spacing:-.035em}
.pro-commercial-hero p{max-width:780px;margin:0;color:#c8d9e5;font-size:clamp(16px,1.35vw,20px);line-height:1.65}
.pro-hero-actions{display:flex;gap:12px;margin-top:26px}
.pro-commercial-hero .btn{border-color:rgba(255,255,255,.26);color:#fff;background:rgba(255,255,255,.06)}
.pro-commercial-hero .btn.primary{border-color:var(--pro-gold);color:#082f50;background:linear-gradient(135deg,#f1c86f,var(--pro-gold))}
.pro-commercial-hero>aside{align-self:center;padding:24px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(255,255,255,.08);backdrop-filter:blur(12px)}
.pro-commercial-hero>aside>small,.pro-commercial-hero>aside>span{display:block;color:#bcd0df}
.pro-commercial-hero>aside>strong{display:block;margin:7px 0;font:700 31px Georgia,serif}
.pro-commercial-hero>aside>div{display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:end;gap:6px 10px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14)}
.pro-commercial-hero>aside>div b{font-size:24px;color:#f1c971}
.pro-commercial-hero>aside>div small{color:#bcd0df}

.pro-section-nav{
  display:flex;
  gap:8px;
  margin:18px 0;
  padding:9px;
  border:1px solid var(--pro-line);
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 32px rgba(26,67,95,.08);
}
.pro-section-nav a{padding:10px 16px;border-radius:10px;color:var(--pro-ink);font-weight:800;text-decoration:none}
.pro-section-nav a:hover{color:#fff;background:var(--pro-navy)}

.pro-account-section{
  scroll-margin-top:170px;
  margin-top:18px;
  padding:clamp(22px,3vw,38px);
  border:1px solid var(--pro-line);
  border-radius:26px;
  background:#fff;
  box-shadow:0 20px 50px rgba(28,71,100,.08);
}
.pro-account-section>header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}
.pro-account-section>header h2{margin:4px 0 7px;font:700 clamp(28px,2.7vw,42px) Georgia,serif;color:var(--pro-navy)}
.pro-account-section>header p{margin:0;color:var(--pro-muted);font-size:16px}

.pro-profile-layout{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr);gap:20px;align-items:start}
.pro-profile-list{display:grid;gap:12px}
.pro-profile-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--pro-line);border-radius:18px;background:#fbfdfe;transition:.2s ease}
.pro-profile-card.active{border-color:#8dbbd4;background:linear-gradient(135deg,#f5fbfe,#eaf5fa);box-shadow:inset 4px 0 var(--pro-gold)}
.pro-profile-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;color:#fff;background:linear-gradient(145deg,var(--pro-blue),var(--pro-navy));font-weight:900}
.pro-profile-card small{color:#a16c19;text-transform:uppercase;letter-spacing:.09em;font-weight:800}
.pro-profile-card h3{margin:3px 0;font-size:17px;color:var(--pro-navy)}
.pro-profile-card p{margin:0;color:var(--pro-muted)}
.pro-profile-card-state{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid var(--pro-line)}
.pro-profile-card-state span{margin-right:auto;color:var(--pro-blue);font-size:13px;font-weight:800}
.pro-profile-card-state button{border:0;background:transparent;color:var(--pro-navy);font-weight:800;cursor:pointer}

.pro-profile-form{overflow:hidden;border:1px solid var(--pro-line);border-radius:20px;background:#fff;box-shadow:0 18px 40px rgba(29,76,107,.09)}
.pro-profile-form>header{display:flex;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid var(--pro-line);background:linear-gradient(145deg,#fafdff,#edf5f8)}
.pro-profile-form h2{margin:4px 0;font:700 27px Georgia,serif;color:var(--pro-navy)}
.pro-profile-form p{margin:0;color:var(--pro-muted)}
.pro-save-state{align-self:start;padding:8px 11px;border-radius:999px;color:#0c6f55;background:#e9f7f1;font-size:12px;font-weight:900}
.pro-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:22px 24px}
.pro-form-grid label{display:grid;gap:7px;color:var(--pro-ink);font-weight:800}
.pro-form-grid label.wide{grid-column:1/-1}
.pro-form-grid input,.pro-form-grid select,.pro-form-grid textarea,.court-scenario select,.court-document input,.court-document textarea{width:100%;min-width:0;padding:12px 14px;border:1px solid #cbdce7;border-radius:12px;color:var(--pro-ink);background:#fff;font:inherit;outline:0}
.pro-form-grid input:focus,.pro-form-grid select:focus,.pro-form-grid textarea:focus,.court-scenario select:focus,.court-document input:focus,.court-document textarea:focus{border-color:var(--pro-blue);box-shadow:0 0 0 3px rgba(11,107,159,.1)}
.pro-checks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 24px 22px}
.pro-checks label{display:flex;gap:10px;padding:13px;border:1px solid var(--pro-line);border-radius:13px;background:#f8fbfd;cursor:pointer}
.pro-checks input{margin-top:3px;accent-color:var(--pro-blue)}
.pro-checks span{display:grid;gap:2px}.pro-checks small{color:var(--pro-muted);font-weight:500}
.pro-profile-form>footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid var(--pro-line);background:#f8fbfd}

.pro-cycle{display:flex;padding:4px;border:1px solid var(--pro-line);border-radius:13px;background:#f0f5f8}
.pro-cycle button{padding:9px 13px;border:0;border-radius:9px;color:var(--pro-muted);background:transparent;font-weight:800;cursor:pointer}
.pro-cycle button.active{color:#fff;background:var(--pro-navy);box-shadow:0 5px 12px rgba(8,47,80,.2)}
.pro-plan-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
.pro-plan{position:relative;display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid var(--pro-line);border-radius:19px;background:linear-gradient(180deg,#fff,#f9fcfd)}
.pro-plan.featured{border:2px solid var(--pro-blue);box-shadow:0 16px 36px rgba(10,98,145,.15)}
.pro-plan.selected{box-shadow:inset 0 0 0 2px rgba(215,163,61,.7)}
.pro-plan-ribbon{position:absolute;left:16px;top:-12px;padding:5px 9px;border-radius:999px;color:#5b3b02;background:#f4ce78;font-size:11px;font-weight:900}
.pro-plan>small{margin-top:5px;color:#a16c19;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.pro-plan h3{margin:8px 0;font:700 24px Georgia,serif;color:var(--pro-navy)}
.pro-plan p{min-height:90px;margin:0;color:var(--pro-muted);line-height:1.45}
.pro-price{display:flex;align-items:baseline;gap:5px;margin:18px 0 12px}.pro-price b{font-size:27px;color:var(--pro-navy)}.pro-price span{color:var(--pro-muted);font-size:12px}
.pro-plan ul{display:grid;gap:8px;margin:0 0 20px;padding:0;list-style:none}
.pro-plan li{position:relative;padding-left:19px;color:#46647b;font-size:13px;text-transform:capitalize}.pro-plan li:before{content:"✓";position:absolute;left:0;color:#15936e;font-weight:900}
.pro-plan .btn{margin-top:auto;width:100%}

.pro-addon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pro-addon-grid article{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:17px;border:1px solid var(--pro-line);border-radius:17px;background:#fbfdfe}
.pro-addon-grid article>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;color:#0b6190;background:#e7f3f9;font-weight:900}
.pro-addon-grid small{color:#a16c19;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.pro-addon-grid h3{margin:3px 0;color:var(--pro-navy)}
.pro-addon-grid p{margin:0;color:var(--pro-muted)}
.pro-addon-grid article>div:last-child{display:grid;justify-items:end;gap:8px}.pro-addon-grid article>div:last-child b{color:var(--pro-navy)}
.pro-empty{padding:26px;border:1px dashed #b8cfdd;border-radius:17px;text-align:center;background:#f7fbfd}.pro-empty b{font:700 21px Georgia,serif;color:var(--pro-navy)}.pro-empty p{margin:7px 0 0;color:var(--pro-muted)}

.court-catalog-hero{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.6fr);
  gap:30px;
  padding:clamp(30px,4vw,58px);
  border-radius:28px;
  color:#fff;
  background:radial-gradient(circle at 78% 20%,rgba(210,160,57,.27),transparent 30%),linear-gradient(135deg,#092b45,#0b4d74);
  box-shadow:0 28px 68px rgba(8,47,80,.19);
}
.court-catalog-hero .eyebrow{color:#f0c86c}.court-catalog-hero h1{margin:7px 0 12px;font:700 clamp(40px,4.5vw,70px)/1 Georgia,serif;letter-spacing:-.04em}.court-catalog-hero p{max-width:790px;margin:0;color:#cbdce7;font-size:18px;line-height:1.6}
.court-catalog-hero>div:last-child{display:grid;grid-template-columns:auto 1fr;align-content:center;gap:4px 12px;padding:20px;border:1px solid rgba(255,255,255,.17);border-radius:20px;background:rgba(255,255,255,.07)}
.court-catalog-hero>div:last-child span{font:700 30px Georgia,serif;color:#f0c86c}.court-catalog-hero>div:last-child b{align-self:center;color:#d7e3eb}
.court-room-join{display:grid;grid-template-columns:minmax(250px,.62fr) minmax(620px,1.38fr);align-items:end;gap:24px;margin-top:20px;padding:20px 22px;border:1px solid #b9d5e2;border-radius:19px;background:linear-gradient(120deg,#eef8fb,#fff);box-shadow:0 12px 30px rgba(27,71,101,.06)}.court-room-join h2{margin:3px 0 4px;font:700 25px Georgia,serif;color:var(--pro-navy)}.court-room-join p{margin:0;color:var(--pro-muted)}.court-room-join form{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(170px,1fr) minmax(250px,1.35fr) auto;align-items:end;gap:9px}.court-room-join label{display:grid;gap:5px;color:#355972;font-size:12px;font-weight:900}.court-room-join input,.court-room-join select{width:100%;min-width:0;padding:11px 13px;border:1px solid #bfd4e0;border-radius:11px;color:var(--pro-navy);background:#fff;font:inherit;text-transform:none;outline:0}.court-room-join input[name="room_code"]{font-weight:900;letter-spacing:.12em;text-transform:uppercase}.court-room-join select:disabled{color:#7d92a1;background:#f2f6f8}.court-room-join-actions{display:flex;gap:7px}.court-room-preview-result{display:flex;grid-column:1/-1;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d2e2e9;border-radius:11px;color:#567184;background:rgba(255,255,255,.78);font-size:12px}.court-room-preview-result b{color:var(--pro-navy)}.court-room-preview-result span{text-align:right}
.court-catalog-tools{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:20px 0 0;padding:18px 20px;border:1px solid var(--pro-line);border-radius:19px;background:#fff;box-shadow:0 12px 30px rgba(27,71,101,.07)}.court-catalog-tools form{display:grid;grid-template-columns:minmax(260px,1.3fr) minmax(230px,.8fr) auto auto;align-items:end;gap:11px;flex:1}.court-catalog-tools label{display:grid;gap:6px;color:var(--pro-ink);font-size:13px;font-weight:850}.court-catalog-tools input,.court-catalog-tools select{width:100%;min-width:0;padding:12px 14px;border:1px solid #cbdce7;border-radius:12px;color:var(--pro-ink);background:#fff;font:inherit;outline:0}.court-catalog-tools input:focus,.court-catalog-tools select:focus{border-color:var(--pro-blue);box-shadow:0 0 0 3px rgba(11,107,159,.1)}.court-catalog-tools>div{display:grid;justify-items:end;flex:none;padding-bottom:4px}.court-catalog-tools>div b{color:var(--pro-navy);font-size:18px}.court-catalog-tools>div span{color:var(--pro-muted);font-size:12px}
.court-scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.court-scenario{position:relative;display:flex;flex-direction:column;min-width:0;padding:23px;border:1px solid var(--pro-line);border-radius:21px;background:#fff;box-shadow:0 16px 38px rgba(27,71,101,.08)}
.court-scenario:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;border-radius:21px 0 0 21px;background:linear-gradient(var(--pro-gold),#b87b18)}
.court-scenario.locked{filter:saturate(.72);background:#f5f7f8}
.court-scenario header{display:flex;justify-content:space-between;gap:10px}.court-scenario header span{color:#a16c19;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.court-scenario header em{font-style:normal;color:var(--pro-blue);font-weight:800}
.court-scenario h2{margin:11px 0 8px;font:700 28px Georgia,serif;color:var(--pro-navy)}
.court-scenario>p{min-height:76px;margin:0;color:var(--pro-muted);line-height:1.5}
.court-scenario-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.court-scenario-meta label{display:grid;gap:6px;font-size:13px;font-weight:800}.court-scenario-meta label.wide{grid-column:1/-1}.court-scenario-meta select{width:100%;min-width:0;padding:10px}
.court-scenario>.btn{margin-top:auto;width:100%}
.court-catalog-empty{grid-column:1/-1}.court-catalog-pagination{display:flex;justify-content:center;align-items:center;gap:13px;margin:0 0 20px}.court-catalog-pagination>button,.court-catalog-pagination>div button{min-width:42px;padding:10px 13px;border:1px solid #cbdce7;border-radius:11px;color:#33546d;background:#fff;font-weight:850;cursor:pointer}.court-catalog-pagination>div{display:flex;gap:7px}.court-catalog-pagination button:hover:not(:disabled){border-color:#6faac8;background:#eef7fb}.court-catalog-pagination button.active{border-color:var(--pro-navy);color:#fff;background:var(--pro-navy)}.court-catalog-pagination button:disabled{opacity:.42;cursor:not-allowed}
.court-sessions{padding:26px;border:1px solid var(--pro-line);border-radius:23px;background:#fff;box-shadow:0 16px 38px rgba(27,71,101,.07)}
.court-sessions>header h2{margin:4px 0 18px;font:700 30px Georgia,serif;color:var(--pro-navy)}
.court-sessions>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.court-sessions article{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--pro-line);border-radius:15px;background:#f9fcfd}.court-sessions article>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#fff;background:var(--pro-navy);font-weight:900}.court-sessions h3{margin:2px 0;color:var(--pro-navy)}.court-sessions p,.court-sessions small{margin:0;color:var(--pro-muted)}

.court-game-shell{display:grid;gap:16px}
.court-game-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:24px 28px;border-radius:22px;color:#fff;background:linear-gradient(135deg,var(--pro-navy-deep),var(--pro-navy))}
.court-game-top button{margin:0 0 12px;padding:0;border:0;color:#bcd4e3;background:transparent;font-weight:800;cursor:pointer}.court-game-top .eyebrow{display:block;color:#edc46a}.court-game-top h1{margin:4px 0;font:700 36px Georgia,serif}.court-game-top p{margin:0;color:#bfd1df}
.court-score{display:grid;grid-template-columns:auto auto;align-items:end;min-width:130px;padding:14px 18px;border:1px solid rgba(255,255,255,.17);border-radius:16px;background:rgba(255,255,255,.08)}.court-score small{grid-column:1/-1;color:#bcd4e3}.court-score b{font:700 33px Georgia,serif;color:#f1c66b}.court-score span{padding-bottom:4px;color:#bcd4e3}
.court-stage-rail{display:grid;grid-template-columns:repeat(12,1fr);gap:0;margin:0;padding:13px 18px;border:1px solid var(--pro-line);border-radius:17px;background:#fff;list-style:none}
.court-stage-rail li{position:relative;display:grid;justify-items:center;gap:4px}.court-stage-rail li:after{content:"";position:absolute;z-index:0;left:50%;right:-50%;top:13px;height:2px;background:#dce7ee}.court-stage-rail li:last-child:after{display:none}.court-stage-rail span{position:relative;z-index:1;display:grid;place-items:center;width:28px;height:28px;border:2px solid #c7d7e2;border-radius:50%;color:#71889b;background:#fff;font-size:12px;font-weight:900}.court-stage-rail small{font-size:10px;color:#879aa9}.court-stage-rail li.done span{border-color:#168664;color:#fff;background:#168664}.court-stage-rail li.current span{border-color:var(--pro-gold);color:#5c3b00;background:#f6d889;box-shadow:0 0 0 5px rgba(215,163,61,.15)}
.court-game-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.55fr);gap:16px;align-items:start}.court-game-layout>main,.court-game-layout>aside{display:grid;gap:16px}
.courtroom-visual{position:relative;overflow:hidden;min-height:310px;padding:24px;border:1px solid #becfda;border-radius:22px;background:linear-gradient(90deg,rgba(255,255,255,.8),rgba(255,255,255,.56)),repeating-linear-gradient(90deg,#d7c4a0 0,#d7c4a0 36px,#cdb78f 37px,#cdb78f 39px);box-shadow:inset 0 10px 28px rgba(61,45,27,.08)}
.court-bench{display:grid;justify-items:center;width:min(360px,72%);margin:0 auto;padding:17px;border:7px solid #65431f;border-radius:9px 9px 2px 2px;color:#fff;background:linear-gradient(#855b2f,#67431f);box-shadow:0 15px 0 #533416,0 20px 28px rgba(52,32,12,.22)}
.court-bench span,.court-side span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#62400f;background:#e7b953;font-weight:900}.court-bench.active,.court-side.active{outline:4px solid rgba(11,107,159,.36);outline-offset:4px}.court-bench b{margin-top:6px}
.court-floor{display:grid;grid-template-columns:1fr .55fr 1fr;align-items:end;gap:20px;margin-top:70px}.court-side{display:flex;align-items:center;gap:10px;padding:15px;border:5px solid #704b26;border-radius:7px;color:#fff;background:#7f5730;box-shadow:0 9px 0 #543617}.court-center{display:grid;justify-items:center;gap:4px}.court-center i{width:70px;height:48px;border:5px solid #704b26;background:#845c32;box-shadow:0 7px 0 #543617}.court-center small{font-weight:800;color:#60421e}.court-public{display:flex;justify-content:center;align-items:end;gap:14px;margin-top:28px}.court-public span{width:70px;height:10px;border-radius:3px;background:#76502a;box-shadow:0 6px 0 #513315}.court-public small{color:#695030;font-weight:800}
.court-stage-card,.court-case-file,.court-law-panel,.court-document,.court-history,.court-feedback{padding:23px;border:1px solid var(--pro-line);border-radius:20px;background:#fff;box-shadow:0 14px 32px rgba(28,70,99,.07)}
.court-stage-card>header{display:flex;justify-content:space-between;color:#a16c19;text-transform:uppercase;letter-spacing:.07em;font-size:12px;font-weight:900}.court-stage-card h2{margin:10px 0 8px;font:700 34px Georgia,serif;color:var(--pro-navy)}.court-narrative{font-size:17px;line-height:1.62;color:#506b7f}.court-objective{margin:18px 0;padding:15px;border-left:4px solid var(--pro-gold);border-radius:0 12px 12px 0;background:#fff8e9}.court-objective b{color:#8a5a0e}.court-objective p{margin:5px 0 0;color:#654e2e}
.court-choices{display:grid;gap:10px}.court-choices>button{display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;padding:15px;border:1px solid var(--pro-line);border-radius:15px;text-align:left;color:var(--pro-ink);background:#fbfdfe;cursor:pointer;transition:.18s ease}.court-choices>button:hover{transform:translateY(-2px);border-color:#7db3cf;background:#f1f8fb;box-shadow:0 10px 22px rgba(21,91,131,.1)}.court-choices>button>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:var(--pro-navy);font-weight:900}.court-choices b{color:var(--pro-navy)}.court-choices p{margin:5px 0 0;color:var(--pro-muted);line-height:1.45}
.court-case-file h2,.court-law-panel h3,.court-document h3,.court-history h3{margin:4px 0 10px;font:700 24px Georgia,serif;color:var(--pro-navy)}.court-case-file>p,.court-law-panel>p{color:#597185;line-height:1.55}.court-case-file dl{display:grid;gap:8px;margin:16px 0 0}.court-case-file dl div{display:flex;justify-content:space-between;gap:12px;padding-top:8px;border-top:1px solid var(--pro-line)}.court-case-file dt{color:var(--pro-muted)}.court-case-file dd{margin:0;font-weight:800;color:var(--pro-navy)}
.court-law-panel>div{display:grid;gap:5px;margin-top:14px;padding:13px;border-radius:12px;background:#edf6fa}.court-law-panel>div span{color:#536e81;line-height:1.45}
.court-document{display:grid;gap:9px}.court-document input,.court-document textarea{resize:vertical}.court-document .btn{width:100%}
.court-history article{display:grid;grid-template-columns:32px 1fr;gap:9px;padding:9px 0;border-top:1px solid var(--pro-line)}.court-history article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#fff;background:#168664;font-weight:900}.court-history article div{display:grid}.court-history article small{color:#168664}.court-history>p{color:var(--pro-muted)}
.court-feedback{border-color:#a8d5c5;background:#f0faf6}.court-feedback>span{color:#0d7c59;font-weight:900}.court-feedback h3{margin:5px 0;color:#0a5e45}.court-feedback p{margin:0;color:#42695b}
.court-path-context{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(245px,.65fr);gap:14px;margin-bottom:18px;padding:18px;border:1px solid #c7dce8;border-radius:17px;background:linear-gradient(125deg,#edf7fb,#fff)}.court-path-context>div>span{display:inline-flex;margin-bottom:5px;color:#0b719f;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:900}.court-path-context h3{margin:0 0 6px;color:var(--pro-navy);font-size:19px}.court-path-context p{margin:0;color:#526f82;line-height:1.48}.court-path-context aside{padding:13px 15px;border-left:3px solid var(--pro-gold);border-radius:0 11px 11px 0;background:#fff8e9}.court-path-context aside small{color:#996515;text-transform:uppercase;letter-spacing:.06em;font-weight:900}.court-path-context aside p{margin-top:5px;color:#6b5330}
.court-choices em{display:block;margin-top:9px;padding:8px 10px;border-radius:9px;color:#47687d;background:#edf4f7;font-size:12px;font-style:normal;font-weight:750;line-height:1.4}.court-choices>button.selected em{color:#075f88;background:#dceff7}
.court-complete{padding:clamp(34px,6vw,86px);border:1px solid var(--pro-line);border-radius:28px;text-align:center;background:radial-gradient(circle at 50% 0,rgba(215,163,61,.18),transparent 34%),linear-gradient(145deg,#fff,#eef6f9)}.court-complete h2{margin:8px 0;font:700 42px Georgia,serif;color:var(--pro-navy)}.court-complete>strong{display:block;font:700 86px Georgia,serif;color:var(--pro-blue)}.court-complete p{max-width:650px;margin:10px auto 24px;color:var(--pro-muted);font-size:17px}.court-complete>div{display:flex;justify-content:center;gap:10px}

.court-stage-brief{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.65fr);gap:18px;padding:22px 25px;border:1px solid var(--pro-line);border-radius:20px;background:linear-gradient(120deg,#fff,#f3f8fa);box-shadow:0 12px 28px rgba(28,70,99,.06)}
.court-stage-brief>div:first-child>span{color:#a16c19;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:900}.court-stage-brief h2{margin:5px 0 7px;font:700 31px Georgia,serif;color:var(--pro-navy)}.court-stage-brief p{margin:0;color:#587186;line-height:1.55}.court-stage-brief>div:last-child{padding:15px 18px;border-left:4px solid var(--pro-gold);border-radius:0 13px 13px 0;background:#fff7e7}.court-stage-brief>div:last-child small{color:#956313;text-transform:uppercase;letter-spacing:.06em;font-weight:900}.court-stage-brief>div:last-child p{margin-top:5px;color:#654e2e}
.court-stage-brief>div:last-child hr{height:1px;margin:13px 0;border:0;background:#ead5a9}
.court-workspace-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;border:1px solid var(--pro-line);border-radius:18px;background:#fff;box-shadow:0 12px 26px rgba(28,70,99,.06)}
.court-workspace-tabs>button{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:10px;min-width:0;padding:11px 13px;border:1px solid transparent;border-radius:13px;text-align:left;color:#527086;background:#f3f7f9;cursor:pointer;transition:.18s ease}.court-workspace-tabs>button:hover{border-color:#b7cfdd;background:#edf6fa}.court-workspace-tabs>button.active{border-color:#0e6d9d;color:#fff;background:linear-gradient(135deg,#07365d,#0c6b98);box-shadow:0 9px 20px rgba(4,60,97,.2)}.court-workspace-tabs>button>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#0b6795;background:#dceff7;font-weight:900}.court-workspace-tabs>button.active>span{color:#67420b;background:#f1c766}.court-workspace-tabs b,.court-workspace-tabs small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.court-workspace-tabs b{font-size:15px}.court-workspace-tabs small{margin-top:2px;color:inherit;opacity:.78;font-size:11px}
.court-workspace-panel{scroll-margin-top:170px;padding:24px;border:1px solid var(--pro-line);border-radius:21px;background:#fff;box-shadow:0 14px 32px rgba(28,70,99,.07)}.court-workspace-panel[hidden]{display:none!important}.court-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:19px;padding-bottom:17px;border-bottom:1px solid var(--pro-line)}.court-panel-heading h2{margin:4px 0 6px;font:700 29px Georgia,serif;color:var(--pro-navy)}.court-panel-heading p{max-width:720px;margin:0;color:#617a8d;line-height:1.5}.court-panel-heading>.btn{flex:none}
.court-choices>button.selected{border-color:#0d78ab;background:#edf8fc;box-shadow:0 0 0 3px rgba(13,120,171,.12),0 12px 24px rgba(21,91,131,.11);transform:none}.court-choices>button.selected>span{color:#5c3b00;background:#f1c766}.court-choices small{display:block;margin-top:7px;color:#7c92a2;font-weight:800}.court-choices>button.selected small{color:#0b719f}
.court-decision-submit{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;padding:16px 18px;border:1px dashed #c5d5df;border-radius:15px;background:#f7fafb}.court-decision-submit.ready{border-style:solid;border-color:#97c9da;background:#edf8fb}.court-decision-submit div{display:grid;gap:3px}.court-decision-submit small{color:#718899}.court-decision-submit b{color:var(--pro-navy)}.court-decision-submit .btn{flex:none}
.court-evidence-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:17px}.court-evidence-filters button{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--pro-line);border-radius:999px;color:#46657a;background:#f5f8fa;font-weight:800;cursor:pointer}.court-evidence-filters button span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:999px;background:#e3edf3;font-size:12px}.court-evidence-filters button.active{border-color:#0a668f;color:#fff;background:#07517a}.court-evidence-filters button.active span{color:#65400a;background:#f1c96b}
.court-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.court-evidence-card{position:relative;overflow:hidden;display:grid;align-content:start;gap:13px;min-width:0;padding:18px;border:1px solid var(--pro-line);border-radius:17px;background:#fbfdfe;transition:.18s ease}.court-evidence-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#7893a4}.court-evidence-card.stance-supports_claim:before{background:#168664}.court-evidence-card.stance-challenges_claim:before{background:#b84e45}.court-evidence-card.stance-neutral:before{background:#d29a2f}.court-evidence-card.is-filtered{display:none}.court-evidence-card>header{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:10px}.court-evidence-card>header>span{padding:6px 8px;border-radius:8px;color:#fff;background:var(--pro-navy);font-size:11px;font-weight:900}.court-evidence-card>header small{color:#8b692d;text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:900}.court-evidence-card h3{margin:3px 0 0;color:var(--pro-navy);font-size:17px;line-height:1.25}.court-evidence-card>header>strong{color:#0a6c94;font:700 21px Georgia,serif}.court-evidence-card>p{margin:0;color:#526e82;line-height:1.5}.court-reliability{overflow:hidden;height:6px;border-radius:999px;background:#dfe9ef}.court-reliability span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d7a33d,#11805f)}.court-evidence-card details{padding:10px 12px;border-radius:11px;background:#eef4f7}.court-evidence-card summary{color:#31546d;font-weight:800;cursor:pointer}.court-evidence-card details p{margin:8px 0;color:#5d7587;line-height:1.45}.court-evidence-card details small{color:#8b6728;font-weight:800}
.court-evidence-analysis{display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--pro-line)}.court-evidence-analysis label{display:grid;gap:5px}.court-evidence-analysis label>span{color:#385c73;font-size:12px;font-weight:900}.court-evidence-analysis select,.court-evidence-analysis textarea{width:100%;min-width:0;padding:10px 11px;border:1px solid #c8dae5;border-radius:10px;color:var(--pro-ink);background:#fff;font:inherit;outline:0}.court-evidence-analysis textarea{resize:vertical}.court-evidence-analysis select:focus,.court-evidence-analysis textarea:focus{border-color:#0b72a0;box-shadow:0 0 0 3px rgba(11,114,160,.1)}.court-evidence-analysis .btn{width:100%}.court-evidence-analysis .btn.saved{border-color:#a8d5c5;color:#087254;background:#f0faf6}
.court-evidence-card.is-testimony{background:linear-gradient(145deg,#fbfdfe,#f2f8fb)}.court-evidence-card.is-testimony>header>span{background:linear-gradient(135deg,#07517a,#0b78a7)}.court-testimony-text{overflow:auto;max-height:420px;margin:10px 0;padding:14px;border:1px solid #d7e4eb;border-radius:10px;white-space:pre-wrap;color:#38556a;background:#fff;font:14px/1.55 Georgia,serif}
.court-document-state{flex:none;padding:8px 11px;border-radius:999px;color:#146c53;background:#e7f6f0;font-size:12px;font-weight:900}.court-document-editor{display:grid;gap:12px}.court-document-title{display:grid;gap:6px}.court-document-title>span{color:#375a71;font-size:12px;font-weight:900}.court-document-title input{width:100%;padding:12px 14px;border:1px solid #c3d6e2;border-radius:11px;color:var(--pro-navy);background:#fff;font:700 17px Georgia,serif;outline:0}.court-document-title input:focus{border-color:#0b72a0;box-shadow:0 0 0 3px rgba(11,114,160,.1)}
.court-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:8px;border:1px solid #c7d9e4;border-radius:13px 13px 5px 5px;background:#eef4f7}.court-editor-toolbar>span{width:1px;height:25px;margin:0 3px;background:#c4d5df}.court-editor-toolbar button{min-width:35px;height:34px;padding:0 9px;border:1px solid #c3d4df;border-radius:8px;color:#234f6b;background:#fff;font:inherit;font-weight:800;cursor:pointer}.court-editor-toolbar button:hover{border-color:#6fa9c6;color:#075a84;background:#f8fcfe}.court-editor-inserts{display:flex;flex-wrap:wrap;gap:7px}.court-editor-inserts button{padding:7px 10px;border:1px solid #d6b76e;border-radius:999px;color:#80560e;background:#fff8e8;font:inherit;font-size:12px;font-weight:900;cursor:pointer}.court-editor-inserts button:disabled{opacity:.45;cursor:not-allowed}
.court-rich-editor{min-height:390px;max-height:680px;overflow:auto;padding:28px 32px;border:1px solid #bcd1de;border-radius:5px 5px 14px 14px;color:#263e50;background:#fff;box-shadow:inset 0 1px 8px rgba(30,68,93,.05);font:16px/1.7 Georgia,serif;outline:0}.court-rich-editor:focus{border-color:#0b72a0;box-shadow:0 0 0 3px rgba(11,114,160,.1),inset 0 1px 8px rgba(30,68,93,.04)}.court-rich-editor:empty:before{content:attr(data-placeholder);color:#8ba0ae}.court-rich-editor h3{margin:20px 0 8px;color:var(--pro-navy);font-size:20px}.court-rich-editor p{margin:0 0 12px}.court-rich-editor blockquote{margin:14px 0;padding:10px 15px;border-left:4px solid var(--pro-gold);color:#5e4b2d;background:#fff8e8}.court-rich-editor ul,.court-rich-editor ol{padding-left:25px}.court-document-editor>footer{display:flex;justify-content:space-between;align-items:center;gap:16px}.court-document-editor>footer>div{display:flex;gap:15px;color:#738a9a}.court-document-editor>footer span{font-weight:800}.court-document-editor>footer b{color:#0b6b93}
.court-stage-checklist{padding:22px;border:1px solid var(--pro-line);border-radius:20px;background:#fff;box-shadow:0 14px 32px rgba(28,70,99,.07)}.court-stage-checklist h3{margin:4px 0 13px;font:700 23px Georgia,serif;color:var(--pro-navy)}.court-stage-checklist ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.court-stage-checklist li{display:grid;grid-template-columns:29px 1fr;align-items:center;gap:9px;color:#617789}.court-stage-checklist li>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;color:#627b8d;background:#e8eff3;font-size:12px;font-weight:900}.court-stage-checklist li.done{color:#087354;font-weight:800}.court-stage-checklist li.done>span{color:#fff;background:#168664}
.court-witness-grid{display:grid;gap:15px}.court-witness-card{position:relative;overflow:hidden;display:grid;gap:14px;padding:20px;border:1px solid var(--pro-line);border-radius:18px;background:#fbfdfe}.court-witness-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#d39b30}.court-witness-card.stance-supports_claim:before{background:#168664}.court-witness-card.stance-challenges_claim:before{background:#b84e45}.court-witness-card>header{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:12px}.court-witness-card>header>span{display:grid;place-items:center;min-width:50px;height:42px;padding:0 8px;border-radius:11px;color:#fff;background:var(--pro-navy);font-size:12px;font-weight:900}.court-witness-card>header small{color:#9b6818;text-transform:uppercase;letter-spacing:.05em;font-size:10px;font-weight:900}.court-witness-card h3{margin:3px 0;color:var(--pro-navy);font:700 22px Georgia,serif}.court-witness-card header p,.court-witness-card>p{margin:0;color:#60788b}.court-witness-card>header>strong{color:#0b729e;font:700 23px Georgia,serif}.court-witness-card>details{padding:13px 15px;border-radius:13px;background:#eef4f7}.court-witness-card>details summary{color:#284f69;font-weight:900;cursor:pointer}.court-witness-card>details pre{overflow:auto;max-height:360px;padding:16px;border-radius:11px;white-space:pre-wrap;color:#38556a;background:#fff;font:14px/1.55 Georgia,serif}.court-witness-card>details>div{margin-top:10px}.court-witness-card>details p{margin:4px 0;color:#5d7587}.court-witness-card>details ul{margin:6px 0;padding-left:21px;color:#5d7587}.court-witness-question{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:14px;border:1px solid #bfd8e4;border-radius:14px;background:#f1f8fb}.court-witness-question label{display:grid;gap:6px}.court-witness-question label span{color:#325b74;font-size:12px;font-weight:900}.court-witness-question textarea{width:100%;resize:vertical;padding:11px 12px;border:1px solid #bfd2df;border-radius:10px;color:var(--pro-ink);background:#fff;font:inherit}.court-examination-history h4{margin:0 0 8px;color:var(--pro-navy)}.court-examination-history>p{color:var(--pro-muted)}.court-examination-history>article{display:grid;gap:7px;margin-top:9px;padding:12px;border:1px solid #d4e1e8;border-radius:13px;background:#fff}.court-examination-history>article>div{display:grid;grid-template-columns:130px 1fr;gap:10px}.court-examination-history>article>div span{color:#0b6e99;font-weight:900}.court-examination-history p{margin:0;color:#526e82;line-height:1.48}.court-examination-history aside{padding:9px 11px;border-left:3px solid var(--pro-gold);background:#fff8e8}.court-examination-history aside b{color:#8b5c11}.court-examination-history aside p{margin-top:3px;color:#6f5b38;font-size:13px}
.court-witness-prompts,.court-witness-ajax-status{grid-column:1/-1}.court-witness-prompts{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.court-witness-prompts>span{margin-right:3px;color:#6b8292;font-size:11px;font-weight:900}.court-witness-prompts button,.court-examination-history aside button{padding:6px 9px;border:1px solid #bdd4df;border-radius:999px;color:#205570;background:#fff;font-family:inherit;font-size:11px;font-weight:700;line-height:1.25;cursor:pointer;transition:.15s ease}.court-witness-prompts button:hover,.court-examination-history aside button:hover{border-color:#0d79a8;color:#075f89;background:#edf8fc}.court-witness-question.is-answering{border-color:#70b2ca;background:#e9f6fa}.court-witness-ajax-status:empty{display:none}.court-witness-ajax-status{display:flex;align-items:center;gap:8px;min-height:30px;padding:8px 10px;border-radius:9px;color:#587487;background:#fff}.court-witness-ajax-status b,.court-witness-ajax-status span{font-size:12px}.court-witness-ajax-status b{color:#154d69}.court-witness-question.is-answering .court-witness-ajax-status>span:first-child{width:14px;height:14px;border:2px solid #bedce7;border-top-color:#0876a3;border-radius:50%;animation:pro-spin .7s linear infinite}.court-examination-history>[data-witness-list]>p{color:var(--pro-muted)}.court-examination-history>[data-witness-list]>article{display:grid;gap:7px;margin-top:9px;padding:12px;border:1px solid #d4e1e8;border-radius:13px;background:#fff}.court-examination-history>[data-witness-list]>article>div{display:grid;grid-template-columns:130px 1fr;gap:10px}.court-examination-history>[data-witness-list]>article>div span{color:#0b6e99;font-weight:900}.court-examination-history aside button{display:inline-flex;margin-top:9px;text-align:left}
.court-line-summary{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px;padding:18px;border:1px solid #bfd7e3;border-radius:16px;background:linear-gradient(125deg,#edf7fb,#fff)}.court-line-summary span{color:#9b6818;text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:900}.court-line-summary h3{margin:4px 0 6px;font:700 24px Georgia,serif;color:var(--pro-navy)}.court-line-summary p{margin:0;color:#587286;line-height:1.5}.court-line-summary dl{display:grid;gap:9px;margin:0}.court-line-summary dl div{padding:10px 12px;border-radius:11px;background:#fff}.court-line-summary dt{color:#7c92a2;font-size:11px;font-weight:900}.court-line-summary dd{margin:3px 0 0;color:#264d67;font-weight:800;line-height:1.35}.court-source-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:16px}.court-source-columns>section{display:grid;align-content:start;gap:10px}.court-source-columns>section>h3{margin:0 0 3px;color:var(--pro-navy);font:700 22px Georgia,serif}.court-source-card{position:relative;padding:16px;border:1px solid var(--pro-line);border-radius:15px;background:#fbfdfe}.court-source-card>span{color:#9b691a;text-transform:uppercase;letter-spacing:.05em;font-size:10px;font-weight:900}.court-source-card h4{margin:4px 0 7px;color:var(--pro-navy);font-size:17px}.court-source-card p{margin:0;color:#587286;line-height:1.5}.court-source-card ul{margin:9px 0;padding-left:20px;color:#526f82}.court-source-card a{display:inline-flex;margin-top:11px;color:#076a98;font-weight:900;text-decoration:none}.court-source-card.judgment{border-left:4px solid #0d78a8}.court-source-card.statute{border-left:4px solid var(--pro-gold)}
.court-judgment-guidance{margin-top:16px;padding:20px;border:1px solid #d8bb76;border-radius:18px;background:linear-gradient(135deg,#fff9ea 0,#fff 62%);box-shadow:0 12px 28px rgba(99,75,24,.06)}.court-judgment-guidance>header{display:flex;justify-content:space-between;align-items:start;gap:18px;margin-bottom:14px}.court-judgment-guidance h3{margin:4px 0 5px;color:var(--pro-navy);font:700 24px Georgia,serif}.court-judgment-guidance header p{max-width:760px;margin:0;color:#6f7f89;line-height:1.45}.court-judgment-guidance>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.court-judgment-guidance article{display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;padding:13px;border:1px solid #e5dcc5;border-radius:13px;background:rgba(255,255,255,.88)}.court-judgment-guidance article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#fff;background:#aa761c;font-weight:900}.court-judgment-guidance h4{margin:1px 0 5px;color:#1d4661;font-size:15px}.court-judgment-guidance article p{margin:0;color:#5a7181;line-height:1.45}.court-judgment-guidance article small{display:block;margin-top:7px;color:#886321;font-weight:700;line-height:1.35}.court-guidance-empty{grid-column:1/-1;margin:0;color:#728795}.court-source-focus{margin-top:12px;padding:11px 12px;border-radius:11px;background:#eef6f9}.court-source-focus>b{color:#27556e;font-size:12px}.court-source-focus ul{margin-bottom:0}.court-source-empty{padding:18px;border:1px dashed #bdced8;border-radius:15px;color:#61798a;background:#f7fafb}.court-source-empty.official{border-style:solid;border-color:#d8bd7c;background:#fff9eb}.court-source-empty>span{color:#9b691a;font-size:10px;font-weight:900;letter-spacing:.06em}.court-source-empty h4{margin:5px 0 7px;color:var(--pro-navy);font-size:17px}.court-source-empty p{margin:0;line-height:1.5}.court-source-empty a{display:inline-flex;margin-top:11px;color:#076a98;font-weight:900;text-decoration:none}
.court-multiplayer{padding:20px;border:1px solid #b9d7e3;border-radius:20px;background:linear-gradient(145deg,#f0f8fb,#fff);box-shadow:0 14px 32px rgba(28,70,99,.07)}.court-multiplayer>header{display:flex;justify-content:space-between;align-items:start;gap:10px}.court-multiplayer>header p{max-width:360px;margin:4px 0 0;color:#6f8798;font-size:12px;line-height:1.4}.court-multiplayer h3{margin:3px 0;color:var(--pro-navy);font:700 23px Georgia,serif;letter-spacing:.06em}.court-room-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.court-room-actions .btn{min-height:36px;padding:7px 10px;font-size:12px}.court-player-list{display:grid;gap:7px;margin-top:12px}.court-player-list article{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;border:1px solid #d4e3ea;border-radius:12px;background:#fff}.court-player-list article.current{border-color:#76b4cd;background:#edf8fb}.court-player-list article>span{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#fff;background:var(--pro-navy);font-size:11px;font-weight:900}.court-player-list article div{display:grid;min-width:0}.court-player-list article b,.court-player-list article small{overflow:hidden;text-overflow:ellipsis}.court-player-list article small{color:#7890a1}.court-player-list article strong{color:#0a6c94;white-space:nowrap}.court-room-decisions{margin-top:15px}.court-room-decisions h4{margin:0 0 7px;color:var(--pro-navy)}.court-room-decisions>article{display:grid;gap:4px;padding:10px 0;border-top:1px solid #d5e2e9}.court-room-decisions small{color:#8a671f}.court-room-decisions b{color:#294f68}.court-room-decisions p{margin:0;color:#637b8d;font-size:13px;line-height:1.4}.court-room-decisions span{color:#0a7758;font-weight:900}.court-room-decisions>p{color:var(--pro-muted)}

.court-witness-question select{width:100%;min-width:0;padding:11px 38px 11px 12px;border:1px solid #bfd2df;border-radius:10px;color:var(--pro-ink);background:#fff;font:inherit}.court-witness-question select:focus{border-color:#0b72a0;box-shadow:0 0 0 3px rgba(11,114,160,.1);outline:0}.court-witness-question select option:disabled{color:#91a2ad}

@media(max-width:1350px){
  .pro-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .court-game-layout{grid-template-columns:minmax(0,1.2fr) minmax(280px,.65fr)}
  .court-evidence-grid{grid-template-columns:1fr}
}

@media(max-width:1050px){
  .pro-commercial-hero,.court-catalog-hero{grid-template-columns:1fr}
  .pro-commercial-hero>aside{max-width:460px}
  .pro-profile-layout,.court-game-layout{grid-template-columns:1fr}
  .court-stage-brief,.court-path-context{grid-template-columns:1fr}
  .court-scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .court-catalog-tools{align-items:stretch;flex-direction:column}.court-catalog-tools form{width:100%;grid-template-columns:1fr 1fr}.court-catalog-tools>div{justify-items:start}
  .court-room-join,.court-line-summary{grid-template-columns:1fr}
  .court-judgment-guidance>div{grid-template-columns:1fr}
  .court-room-join form{grid-template-columns:1fr 1fr}.court-room-join .court-room-role,.court-room-join-actions{grid-column:auto}
  .pro-addon-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  .pro-commercial-hero,.court-catalog-hero{padding:26px 20px;border-radius:20px}
  .pro-commercial-hero h1,.court-catalog-hero h1{font-size:38px}
  .pro-hero-actions,.pro-account-section>header,.court-game-top{flex-direction:column}
  .pro-section-nav{overflow-x:auto;white-space:nowrap}
  .pro-account-section{padding:18px;border-radius:19px}
  .pro-form-grid,.pro-checks,.pro-plan-grid,.court-scenario-grid,.court-sessions>div{grid-template-columns:1fr}
  .court-catalog-tools form{grid-template-columns:1fr}.court-catalog-tools form .btn{width:100%}.court-catalog-pagination{align-items:stretch}.court-catalog-pagination>div{display:none}.court-catalog-pagination>button{flex:1}
  .pro-form-grid label.wide{grid-column:auto}
  .pro-addon-grid article{grid-template-columns:44px 1fr}.pro-addon-grid article>div:last-child{grid-column:1/-1;grid-template-columns:1fr auto;align-items:center;justify-items:start}.pro-addon-grid article>div:last-child .btn{justify-self:end}
  .court-scenario>p,.pro-plan p{min-height:0}
  .court-stage-rail{overflow-x:auto;grid-template-columns:repeat(12,42px);justify-content:start}
  .court-workspace-tabs{grid-template-columns:repeat(5,170px);overflow-x:auto;justify-content:start}
  .court-game-top h1{font-size:30px}
  .court-score{align-self:stretch}
  .court-floor{grid-template-columns:1fr;gap:16px;margin-top:55px}.court-center{display:none}.courtroom-visual{min-height:430px}.court-public{margin-top:34px}
  .court-complete>div{flex-direction:column}
  .court-panel-heading,.court-decision-submit,.court-document-editor>footer{flex-direction:column;align-items:stretch}.court-panel-heading>.btn,.court-decision-submit .btn,.court-document-editor>footer .btn{width:100%}
  .court-workspace-panel{padding:17px}.court-rich-editor{min-height:330px;padding:21px 18px}.court-editor-toolbar>span{display:none}.court-document-editor>footer>div{justify-content:space-between}
  .court-room-join form,.court-source-columns,.court-witness-question{grid-template-columns:1fr}.court-room-join .court-room-role,.court-room-join-actions{grid-column:1}.court-room-join-actions{display:grid;grid-template-columns:1fr 1fr}.court-room-join form .btn,.court-witness-question>.btn{width:100%}.court-room-preview-result{align-items:flex-start;flex-direction:column}.court-room-preview-result span{text-align:left}.court-multiplayer>header,.court-judgment-guidance>header{flex-direction:column}.court-judgment-guidance>header .btn{width:100%}.court-room-actions{justify-content:flex-start}.court-examination-history>article>div,.court-examination-history>[data-witness-list]>article>div{grid-template-columns:1fr}
}

/* Seven primary departments stay readable on tablets and smaller laptops. */
@media(min-width:821px) and (max-width:1180px){
  .mega-nav-inner{width:calc(100% - 20px);gap:1px}
  .mega-nav-item{min-width:0;flex:1 1 0}
  .mega-nav-link{min-width:0;gap:4px;padding:0 4px;font-size:10.5px}
  .mega-nav-link>span{display:none}
  .mega-nav-link>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mega-nav-trigger{width:24px;min-width:24px;padding:0 4px}
}

/* Simple department navigation: no dropdowns, every item opens its landing page. */
.department-top-nav{height:60px;border-bottom:1px solid #d4e0e7;background:linear-gradient(180deg,#fff,#f6f9fb)}
.department-top-nav-inner{width:min(1840px,calc(100% - 32px));height:100%;margin:0 auto;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;align-items:stretch}
.department-top-link{min-width:0;padding:12px 8px;position:relative;display:flex;align-items:center;justify-content:center;gap:7px;color:#45637a;font-size:12px;font-weight:850;white-space:nowrap;transition:.16s ease}
.department-top-link::after{content:"";height:3px;position:absolute;left:12px;right:12px;bottom:0;border-radius:3px 3px 0 0;background:transparent}
.department-top-link>span{width:30px;height:30px;flex:0 0 auto;display:grid;place-items:center;border:1px solid #d5e5ed;border-radius:9px;color:#0b6c9f;background:linear-gradient(145deg,#eef8fc,#e2f0f6)}
.department-top-link svg{width:17px}.department-top-link:hover{color:#0b527d;background:#f0f6f9}.department-top-link.current{color:#0b527d;background:#f4f8fa}.department-top-link.current::after{background:#c99435}

.department-workspace{width:min(1920px,100%);min-width:0;margin:0 auto;display:grid;grid-template-columns:258px minmax(0,1fr);align-items:start}
.department-workspace>.content{width:100%;min-width:0;margin:0}
.department-side-nav{max-height:calc(100dvh - 146px);margin:18px 0 28px 18px;padding:16px 12px;position:sticky;top:136px;overflow:auto;border:1px solid #ccdae3;border-radius:20px;background:linear-gradient(180deg,#0a2943,#071d33);box-shadow:0 18px 45px rgba(8,39,63,.13);scrollbar-width:thin;scrollbar-color:#55738a transparent}
.department-side-nav>header{padding:4px 5px 15px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;border-bottom:1px solid rgba(255,255,255,.1)}
.department-side-nav>header>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#17334a;background:linear-gradient(145deg,#f3d482,#c8912d)}.department-side-nav>header svg{width:21px}
.department-side-nav>header small,.department-side-nav>header h2,.department-side-nav>header p{display:block}.department-side-nav>header small{color:#d5ad5c;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.department-side-nav>header h2{margin:2px 0;color:#fff;font:650 21px var(--serif);line-height:1.05}.department-side-nav>header p{grid-column:1/-1;margin:8px 0 0;color:#9fb3c4;font-size:10px;line-height:1.5}
.department-side-home{margin:12px 0 7px;padding:10px;display:grid;grid-template-columns:29px minmax(0,1fr);gap:9px;align-items:center;border:1px solid rgba(255,255,255,.09);border-radius:11px;color:#d9e5ed;background:rgba(255,255,255,.045)}.department-side-home>svg{width:18px;color:#edc260}.department-side-home b,.department-side-home small{display:block}.department-side-home b{font-size:12px}.department-side-home small{margin-top:2px;color:#91a8ba;font-size:9px}.department-side-home:hover,.department-side-home.active{border-color:rgba(232,186,91,.35);color:#fff;background:rgba(213,161,62,.14)}
.department-side-scroll{display:grid;gap:10px}.department-side-group h3{margin:12px 8px 5px;color:#7f9ab0;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.department-side-group nav{display:grid;gap:3px}.department-side-group a{min-height:38px;padding:7px 8px;display:grid;grid-template-columns:27px minmax(0,1fr) auto;gap:7px;align-items:center;border:1px solid transparent;border-radius:9px;color:#adbfce;font-size:11px;font-weight:750}.department-side-group a>span{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;color:#dfb75f;background:rgba(255,255,255,.055)}.department-side-group a svg{width:15px}.department-side-group a b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.department-side-group a em{min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#b34d4a;font-size:9px;font-style:normal}.department-side-group a:hover{color:#fff;background:rgba(255,255,255,.06)}.department-side-group a.active{border-color:rgba(234,190,95,.22);color:#fff;background:linear-gradient(90deg,rgba(204,150,48,.24),rgba(255,255,255,.05));box-shadow:inset 3px 0 #e1ad48}
.department-workspace:has(.module-rail){grid-template-columns:minmax(0,1fr)}.department-workspace:has(.module-rail)>.department-side-nav{display:none}

@media(min-width:821px) and (max-width:1380px){.department-top-nav-inner{width:calc(100% - 18px);gap:1px}.department-top-link{padding:12px 4px;gap:4px;font-size:10px}.department-top-link>span{display:none}}
@media(max-width:1180px){.department-workspace{grid-template-columns:1fr}.department-side-nav{max-height:none;margin:14px 16px 0;padding:11px;position:static;overflow:visible;border-radius:16px}.department-side-nav>header{display:none}.department-side-home{margin:0 0 8px}.department-side-scroll{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:3px}.department-side-group{display:flex;flex:0 0 auto;align-items:center}.department-side-group h3{display:none}.department-side-group nav{display:flex;gap:5px}.department-side-group a{min-width:max-content}.department-side-group a b{overflow:visible}.department-workspace:has(.module-rail)>.department-side-nav{display:none}}
@media(max-width:820px){.department-top-nav{height:calc(100dvh - 68px);display:none;position:fixed;z-index:121;inset:68px 0 auto;background:#f3f7f9;overflow:auto}.portal.menu-open .department-top-nav{display:block}.department-top-nav-inner{width:100%;height:auto;padding:10px;grid-template-columns:1fr;gap:6px}.department-top-link{min-height:52px;padding:7px 10px;justify-content:flex-start;border:1px solid #d2dfe7;border-radius:11px;background:#fff;font-size:13px}.department-top-link::after{display:none}.department-top-link>span{display:grid}.department-top-link.current{border-color:#0b5f8e;color:#fff;background:#0a527e}.department-top-link.current>span{color:#0a527e;background:#fff}.department-side-nav{margin:10px 10px 0}.department-workspace>.content{padding-top:20px}}

/* Shared filter headers keep title, description and result count separated. */
.filter-panel-title{min-width:0;gap:10px}
.filter-panel-title>span{min-width:0;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.filter-panel-title b{flex:0 0 auto}
.filter-panel-title small{min-width:0;line-height:1.45}
.filter-result-count{margin-left:8px;flex:0 0 auto;white-space:nowrap}
@media(max-width:700px){.filter-panel-title>span{display:grid;gap:2px}.filter-result-count{margin-left:0}}

/* Judge profile workspace */
.judge-profile-tabs{position:sticky;top:var(--header-height,0);z-index:18;display:flex;gap:8px;margin:18px 0 22px;padding:8px;border:1px solid var(--line,#d6e2eb);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 16px 38px rgba(8,43,70,.1);backdrop-filter:blur(16px)}
.judge-profile-tab{appearance:none;display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:10px 18px;border:1px solid transparent;border-radius:12px;background:transparent;color:#365672;font:inherit;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;white-space:nowrap}
.judge-profile-tab>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf5fb;color:#0875ae}
.judge-profile-tab svg{width:17px;height:17px}.judge-profile-tab:hover{background:#f4f8fb;color:#082f50}.judge-profile-tab:focus-visible{outline:3px solid rgba(12,119,174,.22);outline-offset:2px}
.judge-profile-tab.active{background:#07365e;color:#fff;box-shadow:0 10px 22px rgba(4,49,84,.2)}
.judge-profile-tab.active>span{background:#e7bc58;color:#082f50}.judge-profile-workspace{min-height:320px}
.judge-profile-panel{display:grid;gap:22px;animation:judge-panel-in .24s ease both}.judge-profile-panel[hidden]{display:none!important}.judge-profile-panel>.grid,.judge-profile-panel>.card{margin-top:0;margin-bottom:0}
.judge-profile-panel:focus{outline:none}.judge-profile-panel:focus-visible{outline:3px solid rgba(12,119,174,.18);outline-offset:6px;border-radius:18px}
@keyframes judge-panel-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media (max-width:980px){.judge-profile-tabs{position:relative;top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.judge-profile-tab{white-space:normal;text-align:left;justify-content:flex-start}.judge-profile-tab:last-child:nth-child(odd){grid-column:1/-1}}
@media (max-width:560px){.judge-profile-tabs{grid-template-columns:1fr;padding:6px;border-radius:14px}.judge-profile-tab:last-child:nth-child(odd){grid-column:auto}.judge-profile-tab{min-height:46px;padding:8px 12px}.judge-profile-workspace{min-height:0}}

/* Compact department navigation on laptops: wrap instead of forcing a scrollbar. */
@media (min-width:821px) and (max-width:1180px){
  .department-side-nav{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px;align-items:stretch;margin:14px 16px 0;padding:10px 12px;border-radius:18px}
  .department-side-home{height:100%;min-height:54px;margin:0;padding:10px 12px;align-content:center;border-color:rgba(255,255,255,.12)}
  .department-side-scroll{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0;overflow:visible}
  .department-side-group{display:contents}
  .department-side-group nav{display:contents}
  .department-side-group a{width:100%;min-width:0;min-height:44px;padding:7px 9px}
  .department-side-group a b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (min-width:821px) and (max-width:940px){
  .department-side-nav{grid-template-columns:150px minmax(0,1fr)}
  .department-side-scroll{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Judge profile: one editorial workspace instead of a wall of cards. */
body[data-page="judge"] .content{max-width:1500px}
body[data-page="judge"] .judge-hero{margin-bottom:0;padding:34px 38px;border:0;border-radius:22px 22px 0 0;background:radial-gradient(circle at 88% 12%,rgba(225,180,76,.18),transparent 25rem),linear-gradient(125deg,#082d4d,#0b5279);box-shadow:0 22px 55px rgba(7,38,62,.13)}
body[data-page="judge"] .judge-hero h1,body[data-page="judge"] .judge-hero p,body[data-page="judge"] .judge-hero .eyebrow{color:#fff}
body[data-page="judge"] .judge-hero p{color:#c8dbe7}
body[data-page="judge"] .judge-summary{margin:0 0 28px;padding:0 28px;display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid #d7e3ea;border-top:0;border-radius:0 0 22px 22px;background:#fff;box-shadow:0 18px 45px rgba(13,51,77,.08)}
body[data-page="judge"] .judge-summary>.card{min-height:116px;margin:0;padding:25px 28px;border:0;border-right:1px solid #e0e8ed;border-radius:0;background:transparent;box-shadow:none}
body[data-page="judge"] .judge-summary>.card:last-child{border-right:0}
body[data-page="judge"] .judge-summary>.card b{font-size:30px}
body[data-page="judge"] .judge-analysis-grid{margin:0;padding:34px 0;gap:0;border-top:1px solid #d6e1e8}
body[data-page="judge"] .judge-analysis-grid>.card{padding:4px 38px;border:0;border-radius:0;background:transparent;box-shadow:none}
body[data-page="judge"] .judge-analysis-grid>.card+ .card{border-left:1px solid #d6e1e8}
body[data-page="judge"] .judge-analysis-grid .card-head{padding-bottom:18px;border-bottom:1px solid #e1e9ee}
body[data-page="judge"] .judge-analysis-grid .card-body{padding:20px 0 0}
body[data-page="judge"] .judge-career,body[data-page="judge"] .judge-linked-judgments,body[data-page="judge"] #judge-assets{margin:0;padding:38px;border:0;border-top:1px solid #d6e1e8;border-radius:0;background:#fff;box-shadow:none}
body[data-page="judge"] .judge-linked-judgments{margin-bottom:30px;border-bottom:1px solid #d6e1e8;border-radius:0 0 22px 22px}
body[data-page="judge"] .judge-corpus-row{border-left:0;border-right:0;border-radius:0;box-shadow:none}
body[data-page="judge"] .judge-period-list>a,body[data-page="judge"] .judge-documents>a{border-radius:8px;background:#f8fafb;box-shadow:none}
@media(max-width:900px){body[data-page="judge"] .judge-hero{padding:26px 22px}body[data-page="judge"] .judge-summary{padding:0;grid-template-columns:1fr}body[data-page="judge"] .judge-summary>.card{min-height:auto;border-right:0;border-bottom:1px solid #e0e8ed}body[data-page="judge"] .judge-summary>.card:last-child{border-bottom:0}body[data-page="judge"] .judge-analysis-grid{grid-template-columns:1fr;gap:28px}body[data-page="judge"] .judge-analysis-grid>.card{padding:4px 22px}body[data-page="judge"] .judge-analysis-grid>.card+ .card{padding-top:28px;border-top:1px solid #d6e1e8;border-left:0}body[data-page="judge"] .judge-career,body[data-page="judge"] .judge-linked-judgments,body[data-page="judge"] #judge-assets{padding:28px 22px}}

body[data-page="judge"] .judge-analysis-controls{margin:30px 0 0;padding:17px 22px;display:grid;grid-template-columns:minmax(230px,1fr) minmax(220px,.75fr) minmax(150px,.42fr) auto;gap:12px;align-items:end;border:1px solid #d5e2e9;border-radius:16px;background:linear-gradient(115deg,#fff,#f5f9fb);box-shadow:0 14px 35px rgba(11,52,78,.07)}
body[data-page="judge"] .judge-analysis-controls>div{display:flex;align-items:center;gap:12px;align-self:center}body[data-page="judge"] .judge-analysis-controls>div>span{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;color:#082f50;background:#e8bc58}body[data-page="judge"] .judge-analysis-controls>div svg{width:21px}body[data-page="judge"] .judge-analysis-controls small,body[data-page="judge"] .judge-analysis-controls b{display:block}body[data-page="judge"] .judge-analysis-controls small{color:#9b6a14;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}body[data-page="judge"] .judge-analysis-controls b{margin-top:2px;color:#123b58;font:700 20px var(--serif)}
body[data-page="judge"] .judge-analysis-controls label{display:grid;gap:5px;color:#557188;font-size:12px;font-weight:850}body[data-page="judge"] .judge-analysis-controls input,body[data-page="judge"] .judge-analysis-controls select{width:100%;height:43px;padding:0 12px;border:1px solid #c8d9e3;border-radius:10px;color:#173f5b;background:#fff;font:700 13px var(--sans)}body[data-page="judge"] .judge-analysis-controls .btn{height:43px}
body[data-page="judge"] #judge-analysis{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);padding-top:24px}
body[data-page="judge"] .judge-bars>div{grid-template-columns:minmax(170px,240px) minmax(100px,1fr) 28px;gap:15px;padding:9px 0}body[data-page="judge"] .judge-bars>div>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.45}body[data-page="judge"] .judge-bars>div[hidden]{display:none}
body[data-page="judge"] .judge-year-chart{min-height:270px;padding:26px 18px 8px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#e7edf1 50px)}body[data-page="judge"] .judge-year-chart>article{transition:opacity .18s ease,transform .18s ease}body[data-page="judge"] .judge-year-chart>article.muted{opacity:.2}body[data-page="judge"] .judge-year-chart>article.selected{transform:translateY(-5px)}body[data-page="judge"] .judge-year-chart>article.selected i{background:linear-gradient(#dfad43,#9c6810)}
@media(max-width:1050px){body[data-page="judge"] .judge-analysis-controls{grid-template-columns:1fr 1fr}body[data-page="judge"] #judge-analysis{grid-template-columns:1fr}}
@media(max-width:650px){body[data-page="judge"] .judge-analysis-controls{grid-template-columns:1fr;padding:15px}body[data-page="judge"] .judge-bars>div{grid-template-columns:minmax(120px,1fr) minmax(80px,1fr) 24px}}
body[data-page="judge"] .judge-list-pager{min-height:58px;margin-top:18px;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #dbe5eb;color:#70889a;font-size:13px}body[data-page="judge"] .judge-list-pager span b{color:#153f5c}body[data-page="judge"] .judge-list-pager>div{display:flex;gap:7px}body[data-page="judge"] .judge-list-pager button{width:39px;height:36px;border:1px solid #cadbe5;border-radius:9px;color:#0a5f8e;background:#fff;font-size:17px;font-weight:900;cursor:pointer}body[data-page="judge"] .judge-list-pager button:hover:not(:disabled){color:#fff;background:#07547f}body[data-page="judge"] .judge-list-pager button:disabled{opacity:.35;cursor:not-allowed}

/* Design Guardian: shared overflow and responsive navigation safeguards. */
.department-workspace,.department-workspace>*,.department-side-nav>header>div,.department-side-group,.department-side-group nav,.department-side-group a{min-width:0}
.department-side-nav{overflow-x:hidden}
.department-side-nav>header h2,.department-side-nav>header p{max-width:100%;overflow-wrap:anywhere;word-break:normal}
.department-side-group a b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.design-overflow-safe{max-width:100%!important;min-width:0!important}
.design-wrap-safe{white-space:normal!important;overflow-wrap:anywhere!important}
@media(min-width:1181px){.department-workspace{grid-template-columns:286px minmax(0,1fr)}.department-side-nav>header{grid-template-columns:42px minmax(0,1fr)}.department-side-nav>header h2{font-size:20px;line-height:1.12}}
@media(max-width:1180px){.department-side-nav.design-has-overflow .department-side-scroll{overflow:visible;flex-wrap:wrap}.department-side-nav.design-has-overflow .department-side-group,.department-side-nav.design-has-overflow .department-side-group nav{flex-wrap:wrap}}
@media(max-width:820px){.department-side-nav>header h2{font-size:19px}.department-top-link b{white-space:normal}.content,.card,.card-head,.head-actions,form{min-width:0}.head-actions{flex-wrap:wrap}}

/* Premium UI foundation shared by every subpage and popup. */
:root {
  --premium-navy: #082d4d;
  --premium-blue: #0b72a0;
  --premium-gold: #c89635;
  --premium-line: #d8e5ec;
  --premium-surface: #ffffff;
  --premium-soft: #f4f8fb;
  --premium-shadow: 0 18px 55px rgba(7, 43, 72, .10);
}

body { background: radial-gradient(circle at 90% -8%, rgba(204, 159, 62, .08), transparent 28rem), #f3f7fa; }
main.content, #main-content { min-width: 0; }
main.content > header, #main-content > header { position: relative; }

/* Formularze na wszystkich działach: jedna reguła, jeden rytm i pełna szerokość. */
main.content form label, #main-content form label, dialog form label,
.modal form label, [role="dialog"] form label { min-width: 0; }
main.content form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
main.content form select, main.content form textarea,
#main-content form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#main-content form select, #main-content form textarea,
dialog form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
dialog form select, dialog form textarea,
.modal form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal form select, .modal form textarea,
[role="dialog"] form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
[role="dialog"] form select, [role="dialog"] form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #cbdce6;
  border-radius: 11px;
  color: var(--premium-navy);
  background: rgba(255,255,255,.98);
  font: 500 14px/1.45 var(--sans, "Segoe UI", sans-serif);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
main.content form textarea, #main-content form textarea, dialog form textarea,
.modal form textarea, [role="dialog"] form textarea { min-height: 120px; resize: vertical; }
main.content form input:focus, main.content form select:focus, main.content form textarea:focus,
#main-content form input:focus, #main-content form select:focus, #main-content form textarea:focus,
dialog form input:focus, dialog form select:focus, dialog form textarea:focus,
.modal form input:focus, .modal form select:focus, .modal form textarea:focus,
[role="dialog"] form input:focus, [role="dialog"] form select:focus, [role="dialog"] form textarea:focus {
  outline: 0;
  border-color: var(--premium-blue);
  box-shadow: 0 0 0 4px rgba(11,114,160,.11);
  background: #fff;
}
main.content form label > span, #main-content form label > span,
dialog form label > span, .modal form label > span, [role="dialog"] form label > span {
  color: #3b5d74;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

/* Edytor tekstu działa tak samo w OCR, notatkach, dokumentach i panelach. */
[contenteditable="true"], .rich-editor, .text-editor, .editor-surface {
  min-height: 220px;
  padding: 16px;
  border: 1px solid #c7d9e5;
  border-radius: 12px;
  color: var(--premium-navy);
  background: #fff;
  font: 400 15px/1.7 var(--sans, "Segoe UI", sans-serif);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
[contenteditable="true"]:focus, .rich-editor:focus, .text-editor:focus, .editor-surface:focus {
  outline: 0;
  border-color: var(--premium-blue);
  box-shadow: 0 0 0 4px rgba(11,114,160,.11);
}
.editor-toolbar, .rich-editor-toolbar, [data-editor-toolbar] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--premium-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #eef5f8;
}
.editor-toolbar button, .rich-editor-toolbar button, [data-editor-toolbar] button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #c7d9e5;
  border-radius: 8px;
  color: #24516c;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.editor-toolbar button:hover, .rich-editor-toolbar button:hover, [data-editor-toolbar] button:hover { border-color: var(--premium-blue); color: var(--premium-blue); }

/* Popupy: wyraźny nagłówek, wygodny scroll i stopka zawsze widoczna wizualnie. */
dialog, .modal, .modal-panel, [role="dialog"] {
  border-radius: 20px;
}
dialog::backdrop, .modal-backdrop, [data-modal-backdrop] { background: rgba(2, 21, 39, .66); backdrop-filter: blur(8px); }
dialog .modal-header, .modal > header, .modal-panel > header, [role="dialog"] > header {
  background: linear-gradient(135deg, var(--premium-navy), #0b4f78);
  color: #fff;
}
.modal-body, .modal-panel-body, dialog .modal-body { max-height: min(72vh, 720px); overflow: auto; }
.form-actions, .modal-actions, dialog form > footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
button, .btn { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; }
button:hover:not(:disabled), .btn:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled, .btn:disabled { cursor: wait; opacity: .62; }

/* Karty i zakładki mają wspólny kontrast na desktopie i telefonie. */
.card, .panel, .workspace-card, .feature-card { border-color: var(--premium-line); box-shadow: var(--premium-shadow); }
.tabs, [role="tablist"], .section-tabs { gap: 6px; }
.tabs a, .tabs button, [role="tab"], .section-tabs a { border-radius: 10px; }
@media (max-width: 720px) {
  main.content form, #main-content form { min-width: 0; }
  .form-actions, .modal-actions, dialog form > footer { align-items: stretch; flex-direction: column; }
  .form-actions > *, .modal-actions > *, dialog form > footer > * { width: 100%; }
  [contenteditable="true"], .rich-editor, .text-editor, .editor-surface { min-height: 180px; }
}

/* Czytelniejsze powiązania Sejmu: tytuł, identyfikator, data i rodzaj relacji
   są rozdzielone wizualnie, dzięki czemu lista nie wygląda jak powtórzone etykiety. */
body[data-page="sejm-record"] .sejm-connection-board .sejm-related-row {
  min-height: 78px;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  gap: 11px;
  padding: 13px 14px;
}

body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link {
  min-height: 112px;
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d6e3eb;
  border-radius: 16px;
  color: #173b57;
  background: linear-gradient(145deg, #fff, #f7fafc);
  box-shadow: 0 8px 22px rgba(19, 54, 82, .06);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link::after {
  content: "";
  width: 82px;
  height: 82px;
  position: absolute;
  right: -27px;
  bottom: -27px;
  border-radius: 50%;
  background: #eef4f8;
}
body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link:hover {
  transform: translateY(-3px);
  border-color: #9dbdd0;
  box-shadow: 0 17px 35px rgba(17, 65, 96, .13);
}
body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link > span {
  width: 44px;
  height: 44px;
  z-index: 1;
  display: grid;
  grid-row: 1 / span 3;
  place-items: center;
  border-radius: 12px;
  color: #173e5d;
  background: linear-gradient(145deg, #f5d78e, #d19b35);
}
body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link > span svg { width: 22px; height: 22px; }
body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link small { z-index: 1; color: #6b8094; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link b { z-index: 1; color: #123955; font: 700 30px/1 var(--serif); }
body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link i { z-index: 1; align-self: end; color: #0a679c; font-size: 11px; font-style: normal; font-weight: 850; }
@media (max-width: 620px) {
  body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link { min-height: 98px; }
  body[data-page="sejm"] .sejm-stats-grid .sejm-stat-link i { display: none; }
}
body[data-page="sejm-record"] .sejm-connection-board .sejm-related-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0ea;
  border-radius: 10px;
  color: #0c6ea7;
  background: #edf6fa;
}
body[data-page="sejm-record"] .sejm-connection-board .sejm-related-icon svg { width: 18px; height: 18px; }
body[data-page="sejm-record"] .sejm-connection-board .sejm-related-copy { gap: 5px; }
body[data-page="sejm-record"] .sejm-connection-board .sejm-related-copy b {
  overflow: hidden;
  color: #123c5d;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page="sejm-record"] .sejm-connection-board .sejm-related-copy small {
  overflow: visible;
  color: #657f95;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}
body[data-page="sejm-record"] .sejm-connection-board .sejm-related-row > strong {
  color: #0b72a0;
  font-size: 18px;
  font-weight: 500;
}
@media (max-width: 620px) {
  body[data-page="sejm-record"] .sejm-connection-board .sejm-related-copy b { white-space: normal; }
  body[data-page="sejm-record"] .sejm-connection-board .sejm-related-row { min-height: 88px; }
}

.judge-career>.judge-linked-source-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.judge-career>.judge-linked-source-list{grid-template-columns:1fr}}
 .judgment-result-card.progressive-pending{max-height:0;padding-top:0;padding-bottom:0;overflow:hidden;opacity:0;transform:translateY(10px);border-bottom-color:transparent}.judgment-progressive-loader{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;color:#71859a;font-size:12px;font-weight:800}.judgment-progressive-loader i{width:15px;height:15px;border:2px solid #c9d6e1;border-top-color:#176ba9;border-radius:50%;animation:loading-spin .7s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}
.import-center-page{display:grid;gap:22px;padding-bottom:42px}.import-center-toolbar{padding:22px 24px;display:flex;align-items:end;gap:16px;flex-wrap:wrap}.import-center-toolbar>div{flex:1 1 480px}.import-center-toolbar h2{margin:4px 0 6px;color:#173552;font-family:"Newsreader",Georgia,serif;font-size:28px}.import-center-toolbar p,.import-center-section-head p{max-width:760px;margin:0;color:#6c8095;line-height:1.55}.import-term-field{width:140px;display:grid;gap:7px}.import-term-field span{color:#526a80;font-size:12px;font-weight:800;text-transform:uppercase}.import-term-field select{min-height:44px;padding:0 12px;border:1px solid #cddbe7;border-radius:10px;color:#173552;background:#fff;font-weight:800}.import-center-notice{min-height:52px;padding:14px 18px;display:flex;align-items:center;gap:10px;border:1px solid #dbe5ed;border-radius:14px;color:#35526d;background:#f8fbfd}.import-spinner{width:15px;height:15px;border:2px solid #bed0df;border-top-color:#1778ae;border-radius:50%;animation:import-spin .8s linear infinite}@keyframes import-spin{to{transform:rotate(360deg)}}.import-notice-ok,.import-notice-error{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#168460}.import-notice-error{background:#b44d4d}.import-notice-ok .ui-icon,.import-notice-error .ui-icon{width:14px;height:14px}.import-center-section{padding:24px;border:1px solid #d8e3eb;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(18,43,68,.05)}.import-center-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.import-center-section-head h2{margin:4px 0 6px;color:#173552;font-family:"Newsreader",Georgia,serif;font-size:30px}.import-center-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.import-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.import-resource-card{padding:16px;border:1px solid #dbe5ed;border-radius:14px;background:#fbfcfd}.import-resource-card-top{display:grid;grid-template-columns:40px 1fr auto;gap:11px;align-items:center}.import-card-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:#fff;background:#0a3158}.import-card-icon .ui-icon{width:19px;height:19px}.import-resource-card h3{margin:2px 0 0;color:#173f65;font-size:16px}.import-resource-count{color:#176f52;font-size:23px}.import-resource-meta{padding:13px 0;display:flex;justify-content:space-between;gap:10px;color:#70869b;font-size:12px;border-bottom:1px solid #e5ebf0}.import-resource-meta span:last-child{color:#9a6d20;font-weight:800}.import-resource-buttons{padding-top:12px;display:flex;gap:8px}.import-resource-buttons .btn{min-height:34px;padding:0 11px;font-size:12px}.import-judgments-section{background:linear-gradient(145deg,#fff,#f7fbfd)}.import-judgment-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.import-judgment-kpis article{padding:16px;border:1px solid #dbe5ed;border-radius:13px;background:#fff}.import-judgment-kpis small,.import-judgment-kpis b,.import-judgment-kpis span{display:block}.import-judgment-kpis small{color:#72879b;font-size:12px}.import-judgment-kpis b{margin:5px 0;color:#173f65;font-family:"Newsreader",Georgia,serif;font-size:28px}.import-judgment-kpis span{color:#6a8398;font-size:12px}.import-run-line{margin-top:14px;padding:13px 15px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-radius:11px;color:#546d84;background:#f4f8fa;font-size:13px}.import-error-line{margin-top:12px;padding:12px 14px;border-radius:9px;color:#9a3636;background:#fff0f0;font-size:13px}.import-link-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.import-link-card{padding:17px;display:grid;grid-template-columns:28px 1fr 16px;gap:11px;align-items:center;border:1px solid #dbe5ed;border-radius:13px;color:#173f65;background:#fbfcfd}.import-link-card>.ui-icon:first-child{color:#1a76a9}.import-link-card>.ui-icon:last-child{color:#7890a4}.import-link-card b,.import-link-card small{display:block}.import-link-card b{font-size:14px}.import-link-card small{margin-top:4px;color:#72879b;line-height:1.45}.import-link-card:hover{border-color:#c99535;background:#fff}.import-center-footnote{margin:0;color:#73869a;font-size:12px;text-align:center}.landing-api-strip .api-record-grid{width:min(100%,1280px)}
@media(max-width:900px){.import-center-section-head{display:grid}.import-resource-grid,.import-link-grid{grid-template-columns:1fr}.import-judgment-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.import-center-toolbar,.import-center-section{padding:16px}.import-center-toolbar .btn{width:100%}.import-center-actions{justify-content:flex-start}.import-center-actions .btn{flex:1}.import-judgment-kpis{grid-template-columns:1fr}.import-resource-card-top{grid-template-columns:36px 1fr}.import-resource-count{grid-column:2}.import-resource-buttons .btn{flex:1}}
.krs-import-section{background:linear-gradient(145deg,#fffdf8,#f7fbfd)}.krs-import-section .badge{align-self:flex-start}.krs-import-form{display:grid;grid-template-columns:minmax(220px,1fr) 220px minmax(360px,1.6fr);align-items:end;gap:13px;padding:18px;border:1px solid #e1e8ed;border-radius:14px;background:#fff}.krs-import-form label{display:grid;gap:7px}.krs-import-form label>span{color:#526a80;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.krs-import-form input,.krs-import-form select{width:100%;min-height:44px;padding:0 12px;border:1px solid #cddbe7;border-radius:10px;color:#173552;background:#fff;font:inherit}.krs-import-form input:focus,.krs-import-form select:focus{outline:3px solid rgba(24,123,174,.14);border-color:#1979ad}.krs-import-actions{display:flex;gap:8px;flex-wrap:wrap}.krs-import-actions .btn{min-height:44px;flex:1;white-space:nowrap}.krs-import-status{margin-top:12px;padding:13px 15px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-radius:11px;color:#526b82;background:#f4f8fa;font-size:13px}.krs-import-note{margin-top:10px;color:#72879b;font-size:12px;line-height:1.5}@media(max-width:980px){.krs-import-form{grid-template-columns:1fr 1fr}.krs-import-actions{grid-column:1/-1}}@media(max-width:560px){.krs-import-form{display:block;padding:14px}.krs-import-form label+label{margin-top:12px}.krs-import-actions{display:grid;grid-template-columns:1fr;margin-top:12px}.krs-import-status{align-items:flex-start}.krs-import-section .badge{justify-self:start}}
.krs-batch-section{background:linear-gradient(145deg,#f7fbfd,#fff)}.krs-batch-form{display:grid;grid-template-columns:1.3fr .65fr .9fr;gap:13px;align-items:end;padding:18px;border:1px solid #dbe5ed;border-radius:14px;background:#fff}.krs-batch-form>label{display:grid;gap:7px}.krs-batch-form>label>span,.krs-batch-targets legend{color:#526a80;font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.krs-batch-form select,.krs-batch-form input,.krs-batch-form textarea{width:100%;padding:10px 12px;border:1px solid #cddbe7;border-radius:10px;color:#173552;background:#fff;font:inherit}.krs-batch-form select,.krs-batch-form input{min-height:44px}.krs-batch-form textarea{min-height:130px;resize:vertical;line-height:1.5}.krs-batch-numbers-field{grid-column:1 / span 2}.krs-batch-targets{min-height:130px;margin:0;padding:12px 14px;display:flex;align-content:center;align-items:center;gap:15px;flex-wrap:wrap;border:1px solid #dbe5ed;border-radius:10px}.krs-batch-targets legend{padding:0 5px}.krs-batch-targets label{display:inline-flex;align-items:center;gap:6px;color:#294b67;font-size:13px;font-weight:800}.krs-batch-targets input{width:17px;height:17px;min-height:0;accent-color:#1476a8}.krs-batch-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.krs-batch-actions .btn{min-height:42px}.krs-batch-status{margin-top:12px;padding:13px 15px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-radius:11px;color:#526b82;background:#f4f8fa;font-size:13px}.krs-batch-progress{margin-top:12px;padding:14px 15px;border:1px solid #e0e8ee;border-radius:11px;background:#fff}.krs-batch-progress-head{display:flex;justify-content:space-between;gap:12px;color:#587088;font-size:12px}.krs-batch-progress-head b{color:#173f65}.krs-batch-progress-track{height:10px;margin-top:10px;overflow:hidden;border-radius:999px;background:#e8eff4}.krs-batch-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1478aa,#1b9a76);transition:width .25s ease}@media(max-width:820px){.krs-batch-form{grid-template-columns:1fr 1fr}.krs-batch-numbers-field{grid-column:1/-1}.krs-batch-targets{grid-column:1/-1;min-height:auto}}@media(max-width:560px){.krs-batch-form{display:block;padding:14px}.krs-batch-form>label+label,.krs-batch-numbers-field,.krs-batch-targets,.krs-batch-actions{margin-top:12px}.krs-batch-actions{display:grid}.krs-batch-actions .btn{width:100%}.krs-batch-progress-head{display:grid}}
/* Kalendarz konsultacji: samodzielny obszar roboczy */
.calendar-workspace-hero{margin-bottom:14px;padding:24px 26px;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.75fr);gap:28px;align-items:end;border:1px solid #ccdde7;border-radius:20px;background:radial-gradient(circle at 88% 10%,rgba(224,178,73,.2),transparent 16rem),linear-gradient(135deg,#f4fafc,#fff);box-shadow:0 16px 38px rgba(15,52,77,.07)}
.calendar-workspace-hero h2{margin:5px 0;color:#123b59;font:700 30px/1.12 var(--serif)}.calendar-workspace-hero p{max-width:700px;margin:0;color:#657f91;line-height:1.6}.calendar-workspace-hero form{display:grid;grid-template-columns:1.3fr 1fr auto;gap:9px;align-items:end}.calendar-workspace-hero label{display:grid;gap:6px;color:#506f83;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.calendar-workspace-hero select{width:100%;min-height:43px;padding:0 36px 0 11px;border:1px solid #c9dbe5;border-radius:10px;color:#214b67;background:#fff;font:700 13px var(--sans)}
.calendar-context-note{margin:-4px 0 14px;padding:10px 14px;display:flex;align-items:center;gap:8px;border:1px solid #ead7a7;border-radius:10px;color:#77571d;background:#fff9e9;font-size:13px}.calendar-context-note svg{width:17px}.calendar-kpis{margin-bottom:14px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.calendar-kpis article{min-width:0;padding:14px 16px;display:grid;grid-template-columns:39px minmax(0,1fr);gap:11px;align-items:center;border:1px solid #d6e4eb;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(15,52,77,.045)}.calendar-kpis article>span{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;color:#0870a6;background:#e5f3f8}.calendar-kpis svg{width:19px}.calendar-kpis small,.calendar-kpis b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-kpis small{color:#778e9f;font-size:12px}.calendar-kpis b{margin-top:3px;color:#214b67;font-size:15px}
.calendar-workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}.calendar-workspace-layout>main{min-width:0}.calendar-agenda{position:sticky;top:168px;overflow:hidden}.calendar-agenda>header{padding:19px;border-bottom:1px solid #dce7ed}.calendar-agenda h2{margin:3px 0;color:#173e5b;font:700 22px var(--serif)}.calendar-agenda header p{margin:0;color:#758b9b;font-size:13px}.calendar-agenda>div{padding:7px 15px}.calendar-agenda-row{padding:11px 0;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #e3ebef}.calendar-agenda-row:last-child{border-bottom:0}.calendar-agenda-row time{width:42px;height:45px;display:grid;place-content:center;text-align:center;border-radius:10px;color:#0a689b;background:#e8f4f8}.calendar-agenda-row time b{font-size:16px}.calendar-agenda-row time small{font-size:10px;text-transform:uppercase}.calendar-agenda-row>div b,.calendar-agenda-row>div small{display:block}.calendar-agenda-row>div b{color:#244d68;font-size:13px}.calendar-agenda-row>div small{margin-top:3px;color:#7890a0;font-size:11px}.calendar-agenda>footer{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:7px;border-top:1px solid #dce7ed;background:#f8fbfc}.calendar-agenda>footer .btn{justify-content:center;padding-inline:9px}
@media(max-width:1150px){.calendar-workspace-hero{grid-template-columns:1fr}.calendar-workspace-layout{grid-template-columns:1fr}.calendar-agenda{position:static}.calendar-agenda>div{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.calendar-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.calendar-workspace-hero{padding:18px}.calendar-workspace-hero h2{font-size:25px}.calendar-workspace-hero form{grid-template-columns:1fr}.calendar-kpis{grid-template-columns:1fr}.calendar-agenda>div{display:block}.calendar-agenda>footer{grid-template-columns:1fr}}
/* Globalna warstwa QA interfejsu */
html,body{max-width:100%;overflow-x:clip}.site-shell,.shell,.content,.card,.card-body,.grid>*{min-width:0}.page-head-main,.page-head-copy,.head-actions{min-width:0}.head-actions{align-items:center}.head-actions>.btn{max-width:100%}
input,select,textarea,button{max-width:100%}textarea{overflow-wrap:anywhere}.card h1,.card h2,.card h3,.card p,.list-row span{overflow-wrap:anywhere}.list-row{min-width:0}.list-row>span{min-width:0}
dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.modal-card,.dialog-card{max-width:100%;min-width:0}.modal-card form footer,.dialog-card form footer{flex-wrap:wrap}
@media(max-width:820px){.page-head{align-items:stretch;flex-direction:column}.head-actions{width:100%}.head-actions>.btn{flex:1 1 auto;justify-content:center}.grid.two,.grid.three,.grid.four{grid-template-columns:1fr}.filters>*{min-width:0!important;flex:1 1 180px}.content{padding-inline:14px}}
/* Profile audit: keep global navigation inside tablet and mobile viewports. */
@media (max-width:1180px){
  .topbar{min-width:0;gap:10px}
  .topbar>*{min-width:0}
  .topbar .top-actions{flex:0 1 auto;min-width:0;gap:8px}
  .topbar .source-state,.topbar .online-state{display:none!important}
  .topbar-search,.global-search{min-width:180px;max-width:none;flex:1 1 260px}
  .user-chip{max-width:190px}
  .user-chip>span:last-child{min-width:0}
  .user-chip b,.user-chip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-width:680px){
  .department-side-scroll{display:grid!important;grid-template-columns:1fr!important;min-width:0!important;width:100%!important;overflow:visible!important}
  .department-side-group{min-width:0!important;width:100%!important;max-width:100%!important;transform:none!important}
  .department-side-group nav{display:grid!important;grid-template-columns:1fr!important;min-width:0!important}
  .department-side-group a{min-width:0!important;max-width:100%!important;white-space:normal!important}
}
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
a.api-record p {
    max-height: 55px;
    overflow: hidden;
}
svg.icon {
    font-size: 12px;
    width: 20px;
}