:root{--bg:#f6f8f5;--paper:#fff;--ink:#16312e;--muted:#6c7d79;--line:#dce6e2;--green:#0d5f54;--green2:#13897c;--teal:#26a99d;--gold:#b58b42;--gold-soft:#f6efe2;--danger:#a84a42;--warn:#c58a2d;--shadow:0 18px 50px rgba(20,55,50,.08);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Tajawal","Segoe UI",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,textarea{font:inherit}a{text-decoration:none;color:inherit}.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:#fbfcfb;border-left:1px solid var(--line);padding:26px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 7px 24px}.brand-mark{width:42px;height:42px;border:1px solid rgba(181,139,66,.55);border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,var(--green),var(--green2));color:#fff;font-weight:800;box-shadow:inset 0 0 0 4px rgba(255,255,255,.08)}.brand-mark.large{width:58px;height:58px;border-radius:18px;font-size:24px}.brand strong{display:block;font-size:18px}.brand span{display:block;color:var(--muted);font-size:12px;margin-top:2px}.sidebar nav{display:flex;flex-direction:column;gap:7px;margin-top:10px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:14px;color:#536864;font-size:14px;transition:.2s}.sidebar nav a:hover,.sidebar nav a.active{background:#eef5f2;color:var(--green);font-weight:700}.sidebar nav a span{width:22px;text-align:center;font-size:18px}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:17px 8px 0;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.secure-dot{width:8px;height:8px;border-radius:50%;background:#2e9b6e;box-shadow:0 0 0 5px rgba(46,155,110,.1)}.main{min-width:0}.topbar{height:78px;background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:15}.eyebrow{text-transform:none;letter-spacing:.02em;color:var(--green2);font-size:12px;font-weight:800}.eyebrow.light{color:#b9e7df}.page-context{font-weight:700;margin-top:4px}.top-actions{display:flex;align-items:center;gap:12px}.ghost-btn,.outline-btn,.lens-btn{border:1px solid var(--line);background:#fff;border-radius:13px;padding:9px 13px;color:var(--green);cursor:pointer}.ghost-btn span{font-weight:700}.user-chip{display:flex;align-items:center;gap:9px;border-right:1px solid var(--line);padding-right:12px}.avatar{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:800}.user-chip strong,.user-chip span{display:block}.user-chip strong{font-size:13px}.user-chip span{font-size:11px;color:var(--muted)}.logout{font-size:12px;color:var(--muted)}.content{padding:30px 34px 50px;max-width:1680px;margin:auto}.command-palette{position:fixed;inset:0;background:rgba(14,38,34,.25);backdrop-filter:blur(4px);display:none;z-index:100;align-items:flex-start;justify-content:center;padding-top:100px}.command-open .command-palette{display:flex}.command-box{width:min(760px,92vw);background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 25px 90px rgba(0,0,0,.17)}.command-title{font-size:12px;color:var(--muted);margin-bottom:10px}.command-box input{width:100%;border:0;outline:0;background:#f5f8f6;padding:17px;border-radius:14px;font-size:16px}.command-hints{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.command-hints span{background:#eef5f2;padding:7px 10px;border-radius:999px;font-size:12px;color:var(--green)}.hero-dashboard{display:flex;justify-content:space-between;align-items:flex-end;margin:10px 0 24px}.hero-dashboard h1{font-size:34px;margin:8px 0 6px;letter-spacing:-.02em}.hero-dashboard p{margin:0;color:var(--muted)}.hero-badge{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;gap:10px;align-items:center}.hero-badge strong,.hero-badge small{display:block}.hero-badge small{color:var(--muted);margin-top:3px}.pulse{width:10px;height:10px;background:#2d9b6d;border-radius:50%;box-shadow:0 0 0 7px rgba(45,155,109,.12)}.metric-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:20px;margin-bottom:22px;overflow:hidden}.metric-strip>div{padding:19px 22px;border-left:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.metric-strip>div:last-child{border-left:0}.metric-strip span{color:var(--muted);font-size:13px}.metric-strip strong{font-size:28px}.metric-strip .attention{background:linear-gradient(90deg,#fff,#fbf7ee)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.7fr);gap:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 0 rgba(10,50,44,.02)}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 16px}.panel-head h2{margin:4px 0 0;font-size:20px}.segmented{background:#f3f6f4;padding:4px;border-radius:11px}.segmented button{border:0;background:transparent;padding:7px 10px;border-radius:8px;color:var(--muted);cursor:pointer}.segmented .active{background:#fff;color:var(--green);box-shadow:0 2px 8px rgba(0,0,0,.05)}.case-list{padding:0 12px 12px}.case-row{display:grid;grid-template-columns:130px minmax(250px,1fr) 190px 110px 28px;align-items:center;gap:14px;padding:17px 12px;border-top:1px solid #edf1ef;transition:.2s}.case-row:hover{background:#f8fbfa;border-radius:14px;transform:translateX(-2px)}.case-number span,.case-number strong{display:block}.case-number span{font-size:11px;color:var(--muted)}.case-main strong,.case-main span{display:block}.case-main span{font-size:12px;color:var(--muted);margin-top:3px}.case-meta{display:flex;gap:9px;flex-wrap:wrap}.case-meta span{font-size:11px;background:#f3f6f4;padding:6px 8px;border-radius:8px;color:#58706b}.analysis-pill{font-size:12px;color:#287b5e}.analysis-pill i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2c9b6e;margin-left:6px}.row-arrow{color:var(--gold);font-size:20px}.attention-panel{padding-bottom:16px}.attention-item{margin:0 16px 12px;padding:14px;display:flex;gap:12px;background:#fbf8f1;border:1px solid #eee1c8;border-radius:15px}.attention-icon{width:30px;height:30px;border-radius:10px;background:var(--gold-soft);color:#936d2e;display:grid;place-items:center;font-weight:900}.attention-item strong{font-size:12px}.attention-item p{font-size:12px;line-height:1.7;margin:5px 0;color:#5b6865}.attention-item span{font-size:11px;color:var(--green);font-weight:700}.system-status{margin:20px 20px 4px;padding-top:18px;border-top:1px solid var(--line)}.system-status>span,.system-status small{color:var(--muted);font-size:11px}.status-line{display:flex;justify-content:space-between;margin:8px 0}.status-line em{font-style:normal;color:#27805f;font-size:12px}.verify-bar{height:5px;background:#edf2ef;border-radius:10px;overflow:hidden;margin-bottom:8px}.verify-bar i{display:block;height:100%;background:var(--green2)}
.case-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px}.back-link{font-size:12px;color:var(--muted)}.case-title-line{display:flex;align-items:center;gap:13px;margin-top:7px}.case-title-line h1{font-size:30px;margin:0}.case-title-line span{background:#edf5f2;color:var(--green);padding:6px 9px;border-radius:9px;font-size:12px}.case-header p{margin:6px 0 0;color:var(--muted)}.case-actions{display:flex;gap:8px}.lens-btn{background:var(--green);color:#fff;border-color:var(--green)}.case-progress{display:flex;background:#fff;border:1px solid var(--line);border-radius:15px;padding:9px;margin-bottom:18px;overflow:auto}.case-progress span{position:relative;padding:8px 16px 8px 34px;white-space:nowrap;font-size:12px;color:var(--muted)}.case-progress span:after{content:'←';position:absolute;left:7px;color:#b9c8c4}.case-progress span:last-child:after{display:none}.case-progress .done{color:#397968}.case-progress .done:before{content:'✓';margin-left:6px}.case-progress .current{font-weight:800;color:var(--green);background:#eef5f2;border-radius:9px}.workspace-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px}.case-nav{background:#fff;border:1px solid var(--line);border-radius:20px;padding:10px;height:max-content;position:sticky;top:98px}.case-nav button{width:100%;border:0;background:transparent;text-align:right;padding:11px 12px;border-radius:11px;color:#5d6e69;cursor:pointer;font-size:13px;margin-bottom:2px}.case-nav button:hover,.case-nav button.active{background:#edf5f2;color:var(--green);font-weight:800}.case-nav b{font-size:9px;color:#9a7130;background:#f8f0df;border-radius:999px;padding:3px 6px;margin-right:5px}.workspace-content{min-width:0}.workspace-section{display:none}.workspace-section.active{display:block;animation:fadeIn .25s ease}@keyframes fadeIn{from{opacity:.2;transform:translateY(4px)}to{opacity:1;transform:none}}.overview-top,.section-head,.canvas-toolbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.overview-top h2,.section-head h2,.canvas-toolbar h2{margin:5px 0 3px;font-size:23px}.overview-top p{color:var(--muted);font-size:13px;margin:0;max-width:690px;line-height:1.8}.verified-badge{display:flex;align-items:center;gap:8px;background:#edf7f2;border:1px solid #d3e9df;padding:10px 12px;border-radius:13px;color:#287b5e}.verified-badge span{font-size:10px;color:var(--muted)}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.summary-grid article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}.summary-grid article>span{font-size:11px;color:var(--green2);font-weight:800}.summary-grid p{font-size:16px;line-height:1.9;margin:8px 0 12px}.source-pulse{border:0;background:#edf5f2;color:var(--green);padding:7px 9px;border-radius:9px;font-size:11px;cursor:pointer}.intelligence-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.intelligence-row>div{background:#f0f5f2;border-radius:15px;padding:15px 17px;display:flex;justify-content:space-between;align-items:center}.intelligence-row strong{font-size:22px}.intelligence-row span{font-size:11px;color:var(--muted)}.review-alert{background:#fff;border:1px solid #eadfc9;border-right:4px solid var(--gold);border-radius:17px;padding:15px 18px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px}.alert-mark{width:34px;height:34px;border-radius:11px;background:var(--gold-soft);display:grid;place-items:center;color:#926a2a;font-weight:900}.review-alert span{font-size:10px;color:#99763a}.review-alert h3{font-size:15px;margin:2px 0}.review-alert p{margin:0;color:var(--muted);font-size:12px}.review-alert button{border:0;background:var(--green);color:#fff;border-radius:10px;padding:9px 11px;cursor:pointer}.lens-group{background:#fff;border:1px solid var(--line);padding:4px;border-radius:12px}.lens-group button{border:0;background:transparent;padding:8px 10px;border-radius:9px;color:var(--muted);cursor:pointer}.lens-group button.active{background:#edf5f2;color:var(--green);font-weight:800}.judicial-canvas{position:relative;height:620px;background:radial-gradient(circle at 50% 47%,rgba(38,169,157,.08),transparent 28%),linear-gradient(#fff,#fbfcfb);border:1px solid var(--line);border-radius:26px;overflow:hidden}.judicial-canvas:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#b9cbc6 1px,transparent 1px);background-size:28px 28px;opacity:.2}.canvas-lines{position:absolute;inset:0;width:100%;height:100%}.canvas-lines path{fill:none;stroke:#c9d9d4;stroke-width:2;stroke-dasharray:5 6}.canvas-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:180px;min-height:88px;background:rgba(255,255,255,.96);border:1px solid #dce8e4;border-radius:18px;padding:13px 14px;box-shadow:0 14px 35px rgba(20,55,50,.09);transition:.3s}.canvas-node small,.canvas-node strong,.canvas-node span{display:block}.canvas-node small{font-size:10px;color:var(--green2)}.canvas-node strong{font-size:14px;margin:4px 0}.canvas-node span{font-size:11px;color:var(--muted)}.canvas-node i{position:absolute;left:11px;top:11px;color:var(--green2);font-style:normal}.canvas-node.core{width:220px;min-height:112px;background:linear-gradient(145deg,#0e5c52,#127f73);color:#fff;border-color:#1c7e72;box-shadow:0 25px 60px rgba(13,95,84,.22)}.canvas-node.core small,.canvas-node.core span{color:#d8efea}.canvas-node.warning{border-color:#e3c88f}.canvas-node.issue{border-top:3px solid var(--gold)}.canvas-node.dimmed{opacity:.14;filter:blur(.2px);transform:translate(-50%,-50%) scale(.96)}.canvas-footnote{display:flex;gap:10px;margin-top:12px;background:#eef5f2;padding:12px 14px;border-radius:14px;color:#4b645f}.canvas-footnote p{margin:0;font-size:12px;line-height:1.7}.section-head>span{font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--line);padding:8px 10px;border-radius:10px}.document-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.document-card{display:grid;grid-template-columns:42px 1fr auto;gap:13px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px}.doc-no{width:40px;height:48px;border:1px solid #d6e4df;border-radius:10px;display:grid;place-items:center;color:var(--green);font-weight:800;background:#f5f8f6}.document-card small,.document-card span{font-size:10px;color:var(--muted)}.document-card h3{font-size:14px;margin:2px 0}.document-card p{font-size:11px;margin:0;color:#62736f}.timeline{position:relative;padding:12px 0}.timeline:before{content:'';position:absolute;right:124px;top:20px;bottom:20px;width:1px;background:#cddbd6}.timeline-item{display:grid;grid-template-columns:105px 38px 1fr;align-items:center;margin:10px 0}.timeline-date{text-align:left;color:var(--muted);font-size:12px}.timeline-dot{width:12px;height:12px;border-radius:50%;background:var(--green2);justify-self:center;z-index:1;box-shadow:0 0 0 5px var(--bg)}.timeline-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px 15px}.timeline-card h3{font-size:14px;margin:0 0 3px}.timeline-card p{font-size:11px;color:var(--muted);margin:0 0 7px}.issue-list{display:flex;flex-direction:column;gap:12px}.issue-card{display:grid;grid-template-columns:55px 1fr 120px;gap:14px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px}.issue-index{font-size:22px;color:#8fa49f;font-weight:300}.issue-body h3{margin:0 0 11px;font-size:16px}.positions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.positions>div{background:#f7f9f8;border-radius:11px;padding:10px}.positions small{color:var(--green2);font-weight:800}.positions p{font-size:12px;line-height:1.6;margin:4px 0}.issue-status{font-size:11px;color:#9a7130;background:#fbf5e9;height:max-content;padding:7px 8px;border-radius:9px;text-align:center}.evidence-board{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.evidence-board article{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px}.evidence-head{display:flex;justify-content:space-between;gap:10px}.evidence-head span{font-size:10px;color:var(--muted)}.evidence-head b{font-size:9px;padding:4px 6px;border-radius:999px}.evidence-head b.verified{background:#e6f5ed;color:#27765a}.evidence-head b.review{background:#fbf0dc;color:#8d6a31}.evidence-board h3{font-size:13px;margin:10px 0 4px}.evidence-board>article>strong{display:block;font-size:22px;margin-bottom:13px}.contradiction-compare{display:grid;grid-template-columns:1fr 230px 1fr;gap:14px;align-items:stretch}.compare-side{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;text-align:center}.compare-side small{color:var(--muted)}.compare-side strong{display:block;font-size:38px;margin:10px 0 17px}.compare-center{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.radar-ring{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;border:1px solid #e2c281;box-shadow:0 0 0 12px #faf3e5,0 0 0 24px #f8f3e9;color:#a47328;font-size:24px;margin-bottom:28px}.compare-center span{font-weight:800}.compare-center small{color:var(--muted);line-height:1.7;margin-top:6px}.procedure-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.procedure-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;display:flex;gap:12px;align-items:flex-start}.procedure-symbol{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;font-weight:900}.procedure-card.clear .procedure-symbol{background:#e7f6ee;color:#27785a}.procedure-card.review .procedure-symbol{background:#fbf0dc;color:#9b7029}.procedure-card.unknown .procedure-symbol{background:#eef1f0;color:#71817d}.procedure-card h3{margin:1px 0 5px;font-size:14px}.procedure-card p{margin:0;font-size:11px;color:var(--muted);line-height:1.6}.verify-hero{background:linear-gradient(135deg,#0d5f54,#147f73);color:#fff;border-radius:22px;padding:25px;display:flex;justify-content:space-between;align-items:center}.verify-score{display:flex;align-items:center;gap:13px}.verify-score strong{font-size:56px}.verify-score span{font-size:13px;color:#d8eee9;line-height:1.5}.verify-stats{display:flex;gap:12px}.verify-stats>div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:12px 16px;text-align:center}.verify-stats b,.verify-stats span{display:block}.verify-stats b{font-size:20px}.verify-stats span{font-size:9px;color:#d3e9e4;margin-top:3px}.gate-flow{display:flex;align-items:center;gap:9px;margin:16px 0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;overflow:auto}.gate-flow span{background:#f2f6f4;padding:9px 11px;border-radius:10px;font-size:11px;white-space:nowrap}.gate-flow i{font-style:normal;color:#9eb0ab}.gate-flow .pass{background:#e5f5ed;color:#287759;font-weight:800}.gate-note{background:#fbf5e9;border:1px solid #eadbbd;border-radius:13px;padding:12px;font-size:12px;color:#7f673f}.review-room{display:grid;grid-template-columns:190px 1fr 220px;gap:12px}.review-room>aside,.review-stage{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.review-room>aside:first-child{display:flex;flex-direction:column;gap:7px}.review-room>aside:first-child button{border:0;background:#f4f7f5;border-radius:10px;padding:10px;text-align:right;color:#526963}.review-stage h2{margin:6px 0 14px}.review-chain{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.review-chain span{background:#eef5f2;color:var(--green);padding:7px 9px;border-radius:9px;font-size:10px}.review-chain i{font-style:normal;color:#a9b9b5}.review-summary{margin-top:18px;background:#f8faf9;border-radius:14px;padding:14px}.review-summary p{font-size:13px;line-height:1.8;margin-top:0}.judge-actions h3{font-size:14px}.judge-actions button{width:100%;border:1px solid var(--line);background:#fff;padding:9px;border-radius:10px;margin-bottom:7px;color:var(--green);cursor:pointer}.judge-actions .approve{background:var(--green);color:#fff;border-color:var(--green)}.judge-actions textarea{width:100%;min-height:95px;border:1px solid var(--line);border-radius:10px;padding:9px;resize:vertical}.judge-actions small{display:block;color:var(--muted);font-size:9px;margin-top:7px}.source-drawer{position:fixed;left:0;top:0;bottom:0;width:min(430px,92vw);background:#fff;border-right:1px solid var(--line);box-shadow:20px 0 60px rgba(0,0,0,.13);z-index:110;padding:28px;transform:translateX(-105%);transition:.3s}.source-drawer.open{transform:none}.drawer-close{position:absolute;left:15px;top:14px;border:0;background:#f0f3f2;width:32px;height:32px;border-radius:10px;font-size:20px;cursor:pointer}.source-drawer h3{margin-top:7px}.source-drawer>p{color:var(--green);font-weight:700}.source-preview{background:#eef2f0;padding:18px;border-radius:18px}.page-paper{background:#fff;min-height:370px;padding:24px;border-radius:5px;box-shadow:0 10px 25px rgba(0,0,0,.07)}.page-paper span{font-size:10px;color:var(--muted)}.page-paper p{font-size:13px;line-height:1.9;color:#4b5f5a}.page-paper mark{background:#fff0b8;padding:4px}
.login-page{background:#eef2ef}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.18fr .82fr}.login-identity{position:relative;overflow:hidden;background:linear-gradient(145deg,#0b544b 0%,#0d7568 58%,#125a52 100%);color:#fff;padding:55px 65px;display:flex;flex-direction:column}.identity-pattern{position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom left,#000,transparent 80%)}.login-logo{display:flex;gap:13px;align-items:center;z-index:1}.login-logo strong,.login-logo span{display:block}.login-logo strong{font-size:21px}.login-logo span{font-size:12px;color:#cbe5df}.login-copy{margin:auto 0;z-index:1;max-width:650px}.login-copy h1{font-size:54px;line-height:1.18;margin:12px 0 18px;letter-spacing:-.03em}.login-copy h1 em{font-style:normal;color:#e0bd77}.login-copy p{font-size:16px;line-height:1.9;color:#d5e7e3;max-width:560px}.trust-row{display:flex;gap:10px;margin-top:25px;flex-wrap:wrap}.trust-row span{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);padding:8px 10px;border-radius:999px;font-size:11px}.login-panel{display:grid;place-items:center;padding:30px;background:#f8faf8}.login-form{width:min(390px,92%);background:#fff;border:1px solid var(--line);border-radius:25px;padding:30px;box-shadow:var(--shadow)}.seal{width:54px;height:54px;border-radius:17px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:900;margin-bottom:24px}.login-form h2{font-size:24px;margin:0}.login-form>p{color:var(--muted);margin:5px 0 24px}.login-form label,.setup-card label{display:block;font-size:12px;color:#516660;margin-bottom:13px}.login-form input,.setup-card input{width:100%;border:1px solid var(--line);background:#fbfcfb;border-radius:12px;padding:12px;margin-top:6px;outline:0}.login-form input:focus,.setup-card input:focus{border-color:#83b9ae;box-shadow:0 0 0 3px rgba(38,169,157,.09)}.primary-btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--green);color:#fff;border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer}.primary-btn.full{width:100%;margin-top:6px}.login-security{text-align:center;font-size:10px;color:#6c817b;margin-top:14px}.alert{padding:10px 12px;border-radius:10px;font-size:12px;margin:10px 0}.alert.danger{background:#fff0ef;color:#963e37;border:1px solid #f0d0cd}.alert.success{background:#ebf7ef;color:#26704f;border:1px solid #cce7d6}.setup-page{background:#f1f5f2}.setup-wrap{max-width:900px;margin:50px auto;padding:20px}.setup-brand{text-align:center;margin-bottom:20px}.setup-brand .brand-mark{margin:auto}.setup-brand h1{margin:12px 0 4px}.setup-brand p{color:var(--muted)}.setup-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}.setup-card h2{font-size:17px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-top:5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}.form-grid .wide{grid-column:1/-1}.small-note{color:var(--muted);font-size:10px;margin-top:12px}
@media(max-width:1100px){.app-shell{grid-template-columns:80px 1fr}.sidebar{padding:22px 12px}.brand>div:last-child,.sidebar nav a:not(.active){font-size:0}.sidebar nav a{justify-content:center}.sidebar nav a span{font-size:20px}.sidebar-foot span{display:none}.dashboard-grid{grid-template-columns:1fr}.workspace-grid{grid-template-columns:1fr}.case-nav{position:static;display:flex;overflow:auto;gap:4px}.case-nav button{width:auto;white-space:nowrap}.case-row{grid-template-columns:110px 1fr 100px 25px}.case-meta{display:none}.review-room{grid-template-columns:1fr}.review-room>aside:first-child{display:grid;grid-template-columns:repeat(2,1fr)}.procedure-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.topbar{padding:0 16px}.page-context,.user-chip>div:last-child,.ghost-btn span{display:none}.content{padding:20px 14px}.hero-dashboard{align-items:flex-start;gap:15px}.hero-dashboard h1{font-size:26px}.hero-badge{display:none}.metric-strip{grid-template-columns:1fr 1fr}.metric-strip>div:nth-child(2){border-left:0}.metric-strip>div{border-bottom:1px solid var(--line)}.case-row{grid-template-columns:100px 1fr 25px}.analysis-pill{display:none}.summary-grid,.document-grid,.evidence-board,.procedure-grid{grid-template-columns:1fr}.intelligence-row{grid-template-columns:1fr 1fr}.case-header{align-items:flex-start;gap:14px}.case-actions{display:none}.case-progress{display:none}.judicial-canvas{height:700px}.canvas-node{width:150px}.contradiction-compare{grid-template-columns:1fr}.compare-center{padding:24px}.positions{grid-template-columns:1fr}.verify-hero{align-items:flex-start;gap:20px;flex-direction:column}.verify-stats{width:100%}.verify-stats>div{flex:1}.login-shell{grid-template-columns:1fr}.login-identity{min-height:42vh;padding:35px 28px}.login-copy h1{font-size:36px}.login-panel{padding:25px 15px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}}
/* G-Assist V2 — Judicial Canvas signature layer */
.canvas-toolbar.premium{padding:4px 2px 18px}.canvas-toolbar.premium h2{font-size:26px;margin:5px 0}.canvas-toolbar.premium p{margin:0;color:var(--muted);font-size:12px}.canvas-actions{display:flex;gap:8px}.canvas-actions button{border:1px solid var(--line);background:#fff;color:var(--green);padding:9px 12px;border-radius:12px;cursor:pointer}.judicial-lensbar{display:flex;align-items:center;gap:7px;padding:9px;background:#edf3f0;border:1px solid #d9e5e0;border-radius:16px;margin-bottom:12px;overflow:auto}.judicial-lensbar>span{font-size:10px;font-weight:800;color:#6c7d79;padding:0 7px;white-space:nowrap}.judicial-lensbar button{border:0;background:transparent;color:#60736f;padding:8px 11px;border-radius:10px;white-space:nowrap;cursor:pointer;font-size:11px}.judicial-lensbar button.active{background:#fff;color:var(--green);font-weight:800;box-shadow:0 4px 16px rgba(25,70,62,.07)}.canvas-stage{position:relative}.judicial-canvas.v2{height:660px;background:radial-gradient(circle at 50% 48%,rgba(31,151,135,.08),transparent 18%),linear-gradient(rgba(15,95,84,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,95,84,.035) 1px,transparent 1px),#fbfdfc;background-size:auto,34px 34px,34px 34px;border:1px solid #d6e3de;border-radius:26px;overflow:hidden;position:relative}.judicial-canvas.v2:after{content:'';position:absolute;inset:16px;border:1px solid rgba(181,139,66,.18);border-radius:19px;pointer-events:none}.canvas-insight{position:absolute;z-index:7;right:18px;top:18px;background:rgba(255,255,255,.91);backdrop-filter:blur(10px);border:1px solid var(--line);padding:11px 13px;border-radius:14px;box-shadow:0 10px 30px rgba(17,63,55,.06)}.canvas-insight span,.canvas-insight strong,.canvas-insight small{display:block}.canvas-insight span{font-size:8px;color:var(--green2);font-weight:900;letter-spacing:.08em}.canvas-insight strong{font-size:11px;margin:3px 0}.canvas-insight small{font-size:9px;color:var(--muted)}.judicial-canvas.v2 .canvas-node{cursor:pointer;appearance:none;text-align:right}.canvas-node.micro{width:148px;min-height:74px;padding:11px 12px;border-radius:15px}.canvas-node.micro strong{font-size:11px}.canvas-node.micro span{font-size:9px}.canvas-node.issue-node{border-top:2px solid var(--gold);background:rgba(255,255,255,.96)}.canvas-node.evidence-node{border-color:#cfe4de}.canvas-node.contradiction-node{background:#fffaf1;border-color:#ead3a5}.canvas-node.procedure-node{background:#f7fbf9}.canvas-node.legal-node{background:#f6faf8;border-color:#c7ddd6}.canvas-node.core em{font-size:8px;font-style:normal;color:#bfe0d9;margin-top:7px;display:block}.canvas-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.canvas-lines line{stroke:#b9cdc7;stroke-width:1.1;stroke-dasharray:3 4;opacity:.72}.canvas-lines line.hot{stroke:#b58b42;stroke-width:1.7;stroke-dasharray:none;opacity:.9}.canvas-context{position:absolute;left:18px;bottom:18px;width:240px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:16px;padding:13px;z-index:8;box-shadow:0 12px 35px rgba(17,63,55,.07)}.canvas-context h3{font-size:13px;margin:4px 0}.canvas-context p{font-size:10px;line-height:1.6;color:var(--muted);margin:0 0 10px}.context-actions{display:flex;gap:6px}.context-actions button{border:0;background:#eef5f2;color:var(--green);font-size:9px;padding:6px 8px;border-radius:8px;cursor:pointer}.reasoning-trail{display:flex;align-items:center;gap:14px;margin-top:12px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px 15px;overflow:auto}.trail-label{font-size:9px;color:var(--muted);white-space:nowrap}.reasoning-trail>div{display:flex;align-items:center;gap:7px;white-space:nowrap}.reasoning-trail b,.reasoning-trail strong{font-size:10px;padding:6px 8px;background:#f1f6f4;border-radius:8px;color:#46625c}.reasoning-trail strong{background:#0d5f54;color:#fff}.reasoning-trail i{font-style:normal;color:#a2b4af}.judicial-canvas.focus-mode .canvas-node:not(.core):not(.selected){opacity:.1}.canvas-node.selected{box-shadow:0 0 0 3px rgba(181,139,66,.16),0 16px 35px rgba(19,72,63,.12);border-color:var(--gold)!important;z-index:9}.canvas-node.related{opacity:1!important;box-shadow:0 0 0 2px rgba(38,169,157,.10)}
@media(max-width:760px){.judicial-canvas.v2{height:820px}.canvas-context{width:calc(100% - 36px)}.judicial-lensbar{margin-left:-4px;margin-right:-4px}.canvas-insight{display:none}}
/* G-Assist V3 — Interactive Judicial Intelligence Graph */
.judicial-canvas.v3{height:650px;position:relative;overflow:hidden;cursor:grab;background:radial-gradient(circle at 50% 48%,rgba(31,151,135,.075),transparent 20%),linear-gradient(rgba(15,95,84,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(15,95,84,.03) 1px,transparent 1px),#fbfdfc;background-size:auto,32px 32px,32px 32px;border:1px solid #d6e3de;border-radius:26px}.judicial-canvas.v3.dragging{cursor:grabbing}.canvas-world{position:absolute;inset:0;transform-origin:50% 50%;transition:transform .18s ease}.judicial-canvas.dragging .canvas-world{transition:none}.canvas-zoom-indicator{position:absolute;right:18px;bottom:18px;z-index:8;background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:9px;color:var(--muted)}
.canvas-lines line{transition:.2s}.canvas-lines line.secondary{stroke:#d7e2df;opacity:.35}.canvas-lines line.relationship{stroke:#8ebbb2;stroke-width:1.4;stroke-dasharray:0;opacity:.72}.canvas-lines line.hot{stroke:#b58b42;stroke-width:2.3;filter:drop-shadow(0 0 3px rgba(181,139,66,.22));opacity:1}.canvas-lines line.dim{opacity:.06}.canvas-node{will-change:transform,opacity}.canvas-node.path-active{opacity:1!important;filter:none!important;box-shadow:0 0 0 3px rgba(38,169,157,.12),0 18px 38px rgba(19,72,63,.13);z-index:10}.canvas-node.path-origin{border-color:var(--gold)!important;box-shadow:0 0 0 4px rgba(181,139,66,.13),0 18px 38px rgba(19,72,63,.15);z-index:11}.judicial-canvas.path-mode .canvas-node:not(.path-active):not(.path-origin):not(.core){opacity:.09;filter:saturate(.4)}.judicial-canvas.path-mode .canvas-node.core{opacity:.72}.canvas-actions button{min-width:36px}.canvas-actions button:first-child,.canvas-actions button:nth-child(2){font-size:17px;padding:6px 10px}.source-drawer-v3{width:min(500px,94vw)}.source-meta{display:flex;align-items:center;justify-content:space-between;background:#eef7f3;border:1px solid #d4e9df;border-radius:11px;padding:9px 10px;margin:10px 0 14px;font-size:10px}.source-meta span{color:var(--green2);font-weight:900}.source-meta b{color:#2b775d}.paper-lines{display:grid;gap:7px;margin:18px 0}.paper-lines i,.mini-paper i{display:block;height:7px;border-radius:8px;background:linear-gradient(90deg,#e8eeeb 75%,transparent 75%)}.paper-lines i:nth-child(2){width:88%}.paper-lines i:nth-child(3){width:94%}.paper-lines i:nth-child(4){width:70%}.paper-lines.short i:first-child{width:83%}.source-actions-v3{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.source-actions-v3 button{border:1px solid var(--line);background:#fff;color:var(--green);border-radius:11px;padding:10px;cursor:pointer}.source-actions-v3 button:first-child{background:var(--green);color:#fff;border-color:var(--green)}.compare-overlay{position:fixed;inset:0;background:rgba(12,34,31,.42);backdrop-filter:blur(5px);z-index:130;display:none;place-items:center;padding:24px}.compare-overlay.open{display:grid}.compare-modal{width:min(980px,96vw);background:#f8faf9;border:1px solid #dbe6e2;border-radius:24px;padding:20px;box-shadow:0 30px 100px rgba(0,0,0,.2)}.compare-modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:15px}.compare-modal-head h3{margin:4px 0;font-size:21px}.compare-modal-head button{border:0;background:#edf2f0;width:34px;height:34px;border-radius:10px;font-size:20px;cursor:pointer}.source-compare-grid{display:grid;grid-template-columns:1fr 170px 1fr;gap:13px;align-items:stretch}.source-compare-grid article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px}.source-compare-grid article>span{font-size:11px;color:var(--muted)}.source-compare-grid article>strong{display:block;font-size:34px;margin:8px 0 14px}.source-compare-grid article>b{display:inline-block;margin-top:12px;font-size:9px;background:#e9f6ef;color:#287759;padding:5px 8px;border-radius:999px}.mini-paper{background:#f8faf9;border:1px solid #e2e9e6;border-radius:10px;padding:15px;min-height:150px;display:grid;gap:9px}.mini-paper mark{background:#fff0b8;padding:7px;border-radius:5px;font-size:11px}.compare-axis{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.compare-axis em{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#fff8e9;border:1px solid #e2c281;color:#9a6e29;font-size:18px;font-style:normal;font-weight:800;box-shadow:0 0 0 12px rgba(246,239,226,.8)}.compare-axis span{font-size:12px;font-weight:800;margin-top:20px}.compare-axis small{font-size:9px;color:var(--muted);margin-top:5px}.source-drawer.pinned{left:18px;top:96px;bottom:18px;border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 70px rgba(0,0,0,.14)}body.source-pinned .workspace-grid{padding-left:510px}.canvas-context .verify-mini{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:9px;color:#2c765c}.canvas-context .verify-mini:before{content:'✓';width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#e6f5ed;color:#287759;font-weight:900}
@media(max-width:1100px){body.source-pinned .workspace-grid{padding-left:0}.source-drawer.pinned{left:0;top:0;bottom:0;border-radius:0}.source-compare-grid{grid-template-columns:1fr}.compare-axis{padding:10px}.compare-axis em{width:58px;height:58px}.judicial-canvas.v3{height:720px}}

/* ===== G-Assist V4 Simplified Judicial Experience ===== */
.v4-simple{--v4green:#0f5f52;--v4green2:#174f46;--v4mint:#eef7f4;--v4gold:#b89355;--v4ink:#17312c;--v4muted:#71807c;--v4line:#e4ebe8;background:#f7f9f8}.v4-simple .content{max-width:1500px;margin:auto}.v4-sidebar nav a{border-radius:10px}.sidebar-ai{margin:auto 16px 16px;padding:13px;border:1px solid #dfeae6;background:#f5faf8;border-radius:12px;display:flex;gap:9px;align-items:center;position:relative}.sidebar-ai .ai-spark{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--v4green);color:#fff}.sidebar-ai div{display:flex;flex-direction:column}.sidebar-ai b{font-size:11px;color:var(--v4ink)}.sidebar-ai small{font-size:8px;color:var(--v4muted)}.sidebar-ai i{position:absolute;width:7px;height:7px;border-radius:50%;background:#3eae7d;left:12px;top:12px;border:2px solid white}.ai-top-button{border:0;background:var(--v4green);color:#fff;padding:10px 15px;border-radius:10px;font-family:inherit;font-weight:800;cursor:pointer}.ai-top-button span{margin-left:5px;color:#d7b87c}.v4-welcome{display:flex;justify-content:space-between;align-items:center;padding:20px 2px 26px}.v4-welcome h1{font-size:28px;margin:5px 0;color:var(--v4ink)}.v4-welcome p{color:var(--v4muted);font-size:11px}.ai-ready{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--v4line);padding:12px 15px;border-radius:12px;box-shadow:0 8px 24px rgba(28,70,60,.04)}.ai-ready>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--v4mint);color:var(--v4green);font-size:18px}.ai-ready div{display:flex;flex-direction:column}.ai-ready b{font-size:11px;color:var(--v4ink)}.ai-ready small{font-size:8px;color:var(--v4muted);margin-top:2px}.v4-status-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--v4line);border-radius:14px;margin-bottom:18px;overflow:hidden}.v4-status-strip>div{padding:17px 20px;border-left:1px solid var(--v4line);display:flex;align-items:center;justify-content:space-between}.v4-status-strip>div:last-child{border-left:0}.v4-status-strip small{font-size:9px;color:var(--v4muted);font-weight:700}.v4-status-strip strong{font-size:24px;color:var(--v4ink)}.v4-status-strip .needs strong{color:#a8782f}.v4-ai-brief{background:linear-gradient(115deg,#0e5d50,#174f46);border-radius:16px;color:#fff;padding:20px 22px;display:flex;align-items:center;gap:16px;margin-bottom:18px;box-shadow:0 14px 34px rgba(15,95,82,.12)}.brief-icon{width:48px;height:48px;border-radius:13px;background:rgba(255,255,255,.11);display:grid;place-items:center;color:#d8bd88;font-size:21px}.brief-copy{flex:1}.brief-copy span{font-size:9px;color:#b9d6ce}.brief-copy h2{font-size:16px;margin:4px 0 5px}.brief-copy p{font-size:9px;color:#d3e4df;margin:0}.v4-ai-brief button{background:#fff;border:0;color:var(--v4green);border-radius:9px;padding:10px 15px;font-family:inherit;font-weight:800;cursor:pointer}.v4-dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) 330px;gap:18px}.quiet-label{font-size:9px;color:var(--v4muted)}.v4-case-row{grid-template-columns:110px minmax(230px,1fr) 160px 110px 30px}.ai-case-state{display:grid;grid-template-columns:20px 1fr;align-items:center}.ai-case-state>span{color:var(--v4green)}.ai-case-state b{font-size:9px}.ai-case-state small{grid-column:2;font-size:7px;color:var(--v4muted)}.v4-attention-item{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--v4line);color:inherit;text-decoration:none}.attention-no{width:28px;height:28px;border-radius:8px;background:#fff5e5;color:#a8792d;display:grid;place-items:center;font-size:9px;font-weight:900}.v4-attention-item div{flex:1}.v4-attention-item b{font-size:10px}.v4-attention-item p{font-size:9px;line-height:1.8;color:var(--v4muted);margin:4px 0}.v4-attention-item em{font-size:8px;color:var(--v4green);font-style:normal;font-weight:800}.v4-verify{margin-top:18px;background:var(--v4mint);padding:13px;border-radius:11px}.v4-verify div{display:flex;gap:7px;align-items:center}.v4-verify span{color:#2c8064}.v4-verify b{font-size:10px}.v4-verify p{font-size:8px;line-height:1.7;color:var(--v4muted);margin:6px 0 0}
.v4-case-head{display:flex;align-items:flex-end;justify-content:space-between;padding:10px 0 18px}.v4-case-title{display:flex;align-items:center;gap:10px;margin-top:7px}.v4-case-title h1{font-size:27px;color:var(--v4ink);margin:0}.v4-case-title span{background:var(--v4mint);color:var(--v4green);padding:6px 9px;border-radius:7px;font-size:9px;font-weight:800}.v4-case-head p{font-size:10px;color:var(--v4muted);margin:5px 0 0}.case-ai-status{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--v4line);padding:11px 14px;border-radius:12px}.case-ai-status>span{width:34px;height:34px;border-radius:9px;background:var(--v4green);color:#fff;display:grid;place-items:center}.case-ai-status div{display:flex;flex-direction:column}.case-ai-status b{font-size:10px}.case-ai-status small{font-size:8px;color:var(--v4muted);margin-top:2px}.v4-case-tabs{display:flex;gap:3px;background:#fff;border:1px solid var(--v4line);padding:5px;border-radius:12px;margin-bottom:18px;position:sticky;top:72px;z-index:20}.v4-case-tabs button{border:0;background:transparent;padding:10px 16px;border-radius:8px;font-family:inherit;font-size:9px;font-weight:800;color:#60706c;cursor:pointer}.v4-case-tabs button.active{background:var(--v4green);color:#fff}.v4-tab{display:none}.v4-tab.active{display:block}.v4-summary-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.v4-summary-layout>main,.v4-case-aside>div,.v4-tab>.v4-doc-list,.v4-legal-list,.v4-review-list,.v4-draft{background:#fff;border:1px solid var(--v4line);border-radius:15px}.v4-summary-layout>main{padding:22px}.v4-ai-title{display:flex;gap:12px;align-items:flex-start;padding-bottom:17px;border-bottom:1px solid var(--v4line)}.v4-ai-title>span,.v4-section-title>div>span{width:38px;height:38px;border-radius:10px;background:var(--v4mint);color:var(--v4green);display:grid;place-items:center;font-size:17px}.v4-ai-title small,.v4-section-title small{font-size:8px;color:var(--v4green);font-weight:900}.v4-ai-title h2,.v4-section-title h2{font-size:18px;color:var(--v4ink);margin:2px 0 4px}.v4-ai-title p,.v4-section-title p{font-size:9px;color:var(--v4muted);margin:0}.v4-summary-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.v4-summary-cards article{background:#fafcfb;border:1px solid var(--v4line);border-radius:11px;padding:15px}.v4-summary-cards small{font-size:8px;color:var(--v4green);font-weight:900}.v4-summary-cards p{font-size:11px;line-height:2;color:#314540;min-height:48px}.v4-summary-cards button,.insight-actions button,.v4-doc-list button,.v4-evidence-list button,.v4-legal-list button{border:0;background:transparent;color:var(--v4green);font-family:inherit;font-size:8px;font-weight:900;cursor:pointer}.v4-parties{display:grid;grid-template-columns:1fr 70px 1fr;align-items:center;background:#f7f9f8;border-radius:11px;padding:14px;margin-bottom:20px}.v4-parties>span{text-align:center;font-size:8px;color:var(--v4muted)}.v4-parties div{display:flex;flex-direction:column}.v4-parties small{font-size:8px;color:var(--v4muted)}.v4-parties b{font-size:10px;margin:2px 0}.v4-parties p{font-size:8px;color:#61716d;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v4-section-title{display:flex;align-items:center;justify-content:space-between;margin:18px 0 12px}.v4-section-title>div{display:flex;align-items:center;gap:10px}.v4-section-title>span{font-size:8px;color:var(--v4muted)}.v4-section-title>button{border:1px solid var(--v4line);background:#fff;color:var(--v4green);padding:9px 12px;border-radius:8px;font-family:inherit;font-size:8px;font-weight:900;cursor:pointer}.v4-insight{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;border:1px solid #eee5d4;background:#fffdf8;border-radius:11px;padding:13px;margin-top:9px}.insight-index{width:30px;height:30px;border-radius:8px;background:#fff4df;color:#9a6d2a;display:grid;place-items:center;font-size:8px;font-weight:900}.v4-insight small{font-size:7px;color:#9b7a43}.v4-insight h3{font-size:11px;margin:2px 0}.v4-insight p{font-size:9px;color:#596965;margin:0}.insight-actions{display:flex;gap:5px}.insight-actions button{background:#fff;border:1px solid #e7decc;padding:7px 9px;border-radius:7px}.v4-case-aside{display:flex;flex-direction:column;gap:12px}.v4-case-aside>div{padding:16px}.v4-case-aside h3{font-size:11px;margin:0 0 12px}.v4-case-numbers>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v4-case-numbers span{background:#f8faf9;padding:10px;border-radius:9px;font-size:8px;color:var(--v4muted);display:flex;flex-direction:column}.v4-case-numbers b{font-size:19px;color:var(--v4ink)}.v4-ai-questions>span{font-size:9px;font-weight:900;color:var(--v4green);display:block;margin-bottom:9px}.v4-ai-questions button{width:100%;text-align:right;border:0;border-bottom:1px solid var(--v4line);background:transparent;padding:10px 2px;font-family:inherit;font-size:9px;color:#425550;cursor:pointer}.v4-ai-questions button:last-child{border:0}.v4-doc-list{padding:8px 18px}.v4-doc-list article{display:grid;grid-template-columns:44px minmax(200px,1fr) minmax(220px,.8fr) 50px;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--v4line)}.v4-doc-list article:last-child{border:0}.v4-doc-list .doc-no{width:32px;height:32px;border-radius:8px;background:#f3f6f5;display:grid;place-items:center;font-size:8px}.v4-doc-list small{font-size:8px;color:var(--v4muted)}.v4-doc-list h3{font-size:10px;margin:2px 0}.v4-doc-list p{font-size:8px;color:var(--v4muted);margin:0}.doc-ai{background:var(--v4mint);padding:8px 10px;border-radius:8px;display:flex;flex-direction:column}.doc-ai span{font-size:7px;font-weight:900;color:var(--v4green)}.doc-ai small{font-size:7px;line-height:1.5}.v4-simple-compare{display:grid;grid-template-columns:1fr 220px 1fr;gap:10px;background:#fff;border:1px solid var(--v4line);border-radius:15px;padding:18px;margin-bottom:14px}.v4-simple-compare article{background:#f8faf9;border-radius:11px;padding:15px;text-align:center}.v4-simple-compare article small{font-size:8px;color:var(--v4muted)}.v4-simple-compare article strong{font-size:30px;display:block;margin:7px}.v4-simple-compare>div{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.v4-simple-compare>div>span{font-size:18px;color:var(--v4green)}.v4-simple-compare>div>b{font-size:10px;margin:4px}.v4-simple-compare>div>p{font-size:8px;color:var(--v4muted);line-height:1.7}.v4-simple-compare>div>button{border:0;background:var(--v4green);color:#fff;padding:8px 10px;border-radius:8px;font-family:inherit;font-size:8px;cursor:pointer}.v4-evidence-list{background:#fff;border:1px solid var(--v4line);border-radius:15px;padding:8px 18px}.v4-evidence-list article{display:grid;grid-template-columns:1fr 100px 60px;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--v4line)}.v4-evidence-list article:last-child{border:0}.v4-evidence-list small{font-size:7px;color:var(--v4green)}.v4-evidence-list h3{font-size:10px;margin:2px 0}.v4-evidence-list p{font-size:8px;color:var(--v4muted);margin:0}.v4-verified{font-size:8px;color:#2e7d62}.v4-legal-list{padding:8px 18px}.v4-legal-list article{display:grid;grid-template-columns:42px 1fr 70px;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--v4line)}.legal-symbol{width:34px;height:34px;border-radius:9px;background:var(--v4mint);display:grid;place-items:center;color:var(--v4green);font-weight:900}.v4-legal-list small{font-size:7px;color:var(--v4muted)}.v4-legal-list h3{font-size:10px;margin:2px 0}.v4-legal-list p{font-size:8px;color:#61716d;margin:0}.v4-legal-list span{font-size:7px;color:#2f7d62}.v4-empty{padding:30px;text-align:center;color:var(--v4muted);font-size:9px}.v4-review-list{padding:8px 18px}.v4-review-list article{display:grid;grid-template-columns:38px 1fr 210px;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid var(--v4line)}.review-no{width:32px;height:32px;border-radius:8px;background:#f2f6f4;display:grid;place-items:center;font-size:8px}.v4-review-list small{font-size:7px;color:var(--v4green)}.v4-review-list h3{font-size:11px;margin:2px 0 6px}.v4-two-positions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v4-two-positions p{font-size:8px;color:var(--v4muted);margin:0}.v4-review-actions{display:flex;gap:5px;justify-content:flex-end}.v4-review-actions button{border:1px solid var(--v4line);background:#fff;padding:7px 8px;border-radius:7px;font-family:inherit;font-size:8px;cursor:pointer}.v4-review-actions .approve{background:var(--v4green);color:#fff;border-color:var(--v4green)}.v4-procedure{margin-top:12px;background:var(--v4mint);border:1px solid #dcece7;border-radius:12px;padding:13px;display:flex;gap:10px;align-items:center}.v4-procedure>span{font-size:17px;color:var(--v4green)}.v4-procedure div{flex:1}.v4-procedure b{font-size:10px}.v4-procedure p{font-size:8px;color:var(--v4muted);margin:2px 0}.v4-procedure button{border:0;background:#fff;color:var(--v4green);padding:8px 10px;border-radius:7px;font-family:inherit;font-size:8px;font-weight:900}.v4-draft{display:grid;grid-template-columns:170px 1fr;overflow:hidden;min-height:520px}.v4-draft aside{background:#f7f9f8;border-left:1px solid var(--v4line);padding:12px}.v4-draft aside button{display:block;width:100%;border:0;background:transparent;padding:10px;border-radius:7px;text-align:right;font-family:inherit;font-size:9px;color:#667671}.v4-draft aside button.active{background:#fff;color:var(--v4green);font-weight:900}.v4-draft main{padding:18px}.draft-ai-bar{display:flex;align-items:center;gap:7px;background:var(--v4mint);padding:9px;border-radius:9px;margin-bottom:12px}.draft-ai-bar span{font-size:8px;font-weight:900;color:var(--v4green);margin-left:auto}.draft-ai-bar button{border:1px solid #dce8e4;background:#fff;border-radius:7px;padding:6px 8px;font-family:inherit;font-size:7px}.v4-draft textarea{width:100%;min-height:380px;border:1px solid var(--v4line);border-radius:10px;padding:16px;font-family:inherit;line-height:2;resize:vertical}.draft-foot{display:flex;justify-content:space-between;margin-top:8px;font-size:8px;color:var(--v4muted)}.draft-foot span{color:var(--v4green)}
.ai-assistant-panel{position:fixed;left:-410px;top:0;bottom:0;width:390px;background:#fff;z-index:3000;box-shadow:20px 0 70px rgba(0,0,0,.12);transition:.25s;display:flex;flex-direction:column;border-right:1px solid var(--v4line)}.ai-assistant-panel.open{left:0}.ai-panel-head{background:var(--v4green);color:#fff;padding:16px;display:flex;align-items:center;justify-content:space-between}.ai-panel-head>div{display:flex;align-items:center;gap:9px}.ai-panel-head>div>span{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.12);display:grid;place-items:center;color:#dfc28c}.ai-panel-head div div{display:flex;flex-direction:column}.ai-panel-head b{font-size:11px}.ai-panel-head small{font-size:8px;color:#cce1db}.ai-panel-head button{border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer}.ai-panel-body{padding:16px;overflow:auto;flex:1}.ai-welcome{font-size:9px;line-height:1.9;color:var(--v4muted);background:#f7f9f8;padding:12px;border-radius:9px}.ai-quick{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.ai-quick button{border:1px solid var(--v4line);background:#fff;border-radius:999px;padding:7px 9px;font-family:inherit;font-size:7px;color:var(--v4green);cursor:pointer}.ai-message{margin:10px 0;background:var(--v4mint);border-radius:10px;padding:11px}.ai-message.user{background:#f4f5f5}.ai-message span{font-size:7px;color:var(--v4green);font-weight:900}.ai-message p{font-size:9px;line-height:1.8;margin:4px 0;color:#40534e}.ai-input{padding:12px;border-top:1px solid var(--v4line);display:flex;gap:6px}.ai-input input{flex:1;border:1px solid var(--v4line);border-radius:8px;padding:10px;font-family:inherit;font-size:9px}.ai-input button{border:0;background:var(--v4green);color:#fff;border-radius:8px;padding:0 14px;font-family:inherit;font-size:8px;font-weight:900}.v4-simple .source-drawer{z-index:3100}
@media(max-width:1100px){.v4-dashboard-grid,.v4-summary-layout{grid-template-columns:1fr}.v4-status-strip{grid-template-columns:1fr 1fr}.v4-case-tabs{overflow:auto}.v4-simple-compare{grid-template-columns:1fr}.v4-doc-list article{grid-template-columns:38px 1fr 50px}.doc-ai{display:none}.v4-review-list article{grid-template-columns:38px 1fr}.v4-review-actions{grid-column:2;justify-content:flex-start}.v4-case-head{align-items:flex-start;gap:12px;flex-direction:column}.case-ai-status{width:100%}}@media(max-width:760px){.v4-status-strip{grid-template-columns:1fr}.v4-ai-brief{align-items:flex-start;flex-wrap:wrap}.v4-summary-cards{grid-template-columns:1fr}.v4-parties{grid-template-columns:1fr;gap:10px}.v4-parties>span{display:none}.v4-insight{grid-template-columns:32px 1fr}.insight-actions{grid-column:2}.v4-two-positions{grid-template-columns:1fr}.v4-draft{grid-template-columns:1fr}.v4-draft aside{display:flex;overflow:auto;border-left:0;border-bottom:1px solid var(--v4line)}.ai-assistant-panel{width:100%;left:-100%}}

/* ===== G-Assist V5 — Judicial UX Polish ===== */
.v5-welcome{display:flex;justify-content:space-between;align-items:center;padding:16px 2px 20px}.v5-welcome h1{font-size:30px;margin:5px 0 4px;color:var(--v4ink);letter-spacing:-.02em}.v5-welcome p{margin:0;color:var(--v4muted);font-size:10px}.v5-ai-state{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--v4line);padding:9px 12px;border-radius:11px}.v5-ai-state>span{width:31px;height:31px;border-radius:9px;background:var(--v4mint);display:grid;place-items:center;color:var(--v4green)}.v5-ai-state b,.v5-ai-state small{display:block}.v5-ai-state b{font-size:10px}.v5-ai-state small{font-size:7px;color:var(--v4muted);margin-top:2px}.v5-status-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--v4line);border-radius:13px;overflow:hidden;margin-bottom:12px}.v5-status-strip>div{padding:14px 18px;border-left:1px solid var(--v4line);display:flex;align-items:center;justify-content:space-between}.v5-status-strip>div:last-child{border-left:0}.v5-status-strip small{font-size:8px;color:var(--v4muted);font-weight:800}.v5-status-strip strong{font-size:22px}.v5-status-strip .needs strong{color:#a7772f}.v5-ai-brief{display:flex;align-items:center;gap:11px;background:#f1f7f4;border:1px solid #dceae5;border-radius:12px;padding:11px 14px;margin-bottom:16px}.v5-ai-brief-icon{width:34px;height:34px;border-radius:9px;background:var(--v4green);color:#d9bd83;display:grid;place-items:center;flex:0 0 auto}.v5-ai-brief>div:nth-child(2){flex:1;display:flex;flex-direction:column}.v5-ai-brief small{font-size:7px;color:var(--v4green);font-weight:900}.v5-ai-brief b{font-size:10px;margin-top:2px;color:var(--v4ink)}.v5-ai-brief button{border:1px solid #cfe0da;background:#fff;color:var(--v4green);padding:8px 11px;border-radius:8px;font-size:8px;font-weight:900;cursor:pointer}.v5-workspace{background:#fff;border:1px solid var(--v4line);border-radius:15px;padding:18px}.v5-workspace-head{display:flex;align-items:flex-start;justify-content:space-between;padding:0 2px 13px;border-bottom:1px solid var(--v4line)}.v5-workspace-head h2{font-size:20px;margin:3px 0 2px}.v5-workspace-head p{margin:0;font-size:8px;color:var(--v4muted)}.v5-case-cards{display:grid;gap:12px;padding-top:14px}.v5-case-card{border:1px solid var(--v4line);border-radius:13px;overflow:hidden;background:#fff;transition:.2s}.v5-case-card:hover{border-color:#cfded8;box-shadow:0 10px 30px rgba(25,61,53,.05)}.v5-case-card-top{display:grid;grid-template-columns:120px minmax(260px,1fr) 145px;gap:14px;align-items:center;padding:14px 15px;border-bottom:1px solid #eef2f0}.v5-case-id small,.v5-case-id strong{display:block}.v5-case-id small{font-size:7px;color:var(--v4muted)}.v5-case-id strong{font-size:13px;margin-top:2px}.v5-case-type span{font-size:7px;color:var(--v4green);font-weight:900}.v5-case-type h3{font-size:14px;margin:2px 0 0}.v5-case-state{display:flex;align-items:center;gap:8px;justify-content:flex-start}.v5-case-state>span{width:28px;height:28px;border-radius:8px;background:var(--v4mint);color:var(--v4green);display:grid;place-items:center}.v5-case-state b,.v5-case-state small{display:block}.v5-case-state b{font-size:8px}.v5-case-state small{font-size:7px;color:var(--v4muted);margin-top:1px}.v5-case-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:0}.v5-case-summary{padding:16px}.v5-case-summary>small,.v5-case-attention>small{font-size:7px;font-weight:900;color:var(--v4green)}.v5-case-summary p{font-size:10px;line-height:1.9;color:#40524e;margin:6px 0 10px;max-width:850px}.v5-case-meta{display:flex;gap:7px}.v5-case-meta span{font-size:7px;background:#f5f8f7;color:#6b7c77;padding:5px 7px;border-radius:7px}.v5-case-attention{padding:16px;border-right:1px solid #eee4d2;background:#fffdf8}.v5-case-attention h4{font-size:11px;margin:5px 0 4px}.v5-case-attention p{margin:0;font-size:9px;line-height:1.8;color:#5f6d69}.v5-case-attention p span{font-size:7px;color:#927044;margin:0 5px}.v5-case-attention.is-clear{background:#f6fbf8;border-right-color:#dcebe5}.v5-case-actions{display:flex;gap:8px;align-items:center;padding:10px 15px;border-top:1px solid #eef2f0}.v5-case-actions a,.v5-case-actions button{border:1px solid var(--v4line);background:#fff;color:var(--v4green);padding:8px 10px;border-radius:8px;font-family:inherit;font-size:8px;font-weight:900;cursor:pointer}.v5-case-actions .v5-primary{background:var(--v4green);border-color:var(--v4green);color:#fff}.v5-case-actions button{margin-right:auto}.v5-trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.v5-trust-row>div{background:#fff;border:1px solid var(--v4line);border-radius:11px;padding:11px 13px;display:flex;align-items:center;gap:10px}.v5-trust-row>div>span{width:29px;height:29px;border-radius:8px;background:var(--v4mint);display:grid;place-items:center;color:var(--v4green);flex:0 0 auto}.v5-trust-row p{margin:0}.v5-trust-row b,.v5-trust-row small{display:block}.v5-trust-row b{font-size:8px}.v5-trust-row small{font-size:7px;color:var(--v4muted);margin-top:2px;line-height:1.6}

/* reduce repeated AI branding and keep focus on judicial work */
.v4-sidebar .brand strong{font-size:16px}.v4-sidebar .brand span{font-size:10px}.v4-topbar .page-context{font-size:14px}.v4-simple .content{padding-top:22px}.ai-top-button{padding:9px 13px;font-size:11px}.sidebar-foot{margin-top:auto}

@media(max-width:1050px){.v5-case-card-top{grid-template-columns:100px 1fr}.v5-case-state{grid-column:1/-1}.v5-case-body{grid-template-columns:1fr}.v5-case-attention{border-right:0;border-top:1px solid #eee4d2}.v5-trust-row{grid-template-columns:1fr}.v5-status-strip{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.v5-welcome{align-items:flex-start;gap:12px;flex-direction:column}.v5-welcome h1{font-size:24px}.v5-status-strip{grid-template-columns:1fr 1fr}.v5-status-strip>div{padding:12px}.v5-ai-brief{align-items:flex-start}.v5-ai-brief button{margin-right:auto}.v5-case-card-top{grid-template-columns:1fr}.v5-case-actions{flex-wrap:wrap}.v5-case-actions button{margin-right:0}.v5-workspace{padding:12px}}

/* ===== V6 Judicial Identity / Larger Type / Dewan Almazalim Brand ===== */
:root{--v6-green:#0a5d45;--v6-green-dark:#064936;--v6-green-soft:#eef6f2;--v6-gold:#b88a2c;--v6-gold-soft:#fbf4e8;--v6-cream:#fbfaf6;--v6-ink:#17372d;--v6-muted:#73827d;--v6-line:#d9e5df}
body.v6-judicial,body.v6-login-page{font-family:"Tajawal","Segoe UI",Tahoma,Arial,sans-serif;background:var(--v6-cream);color:var(--v6-ink);font-size:16px}
.v6-shell{grid-template-columns:275px 1fr}.v6-sidebar{background:#fff;border-left:1px solid var(--v6-line);padding:20px 18px}.v6-brand{display:flex;flex-direction:column;align-items:center;padding:4px 4px 18px;border-bottom:1px solid #edf2ef}.v6-brand img{width:205px;height:82px;object-fit:contain;display:block}.v6-brand-copy{text-align:center;margin-top:3px}.v6-brand-copy strong{display:block;font-size:19px;color:var(--v6-green-dark)}.v6-brand-copy span{display:block;font-size:13px;color:var(--v6-muted);margin-top:1px}.v6-profile{margin:18px 2px 8px;padding:13px 14px;background:linear-gradient(135deg,var(--v6-green-dark),var(--v6-green));border-radius:16px;color:#fff;display:flex;align-items:center;gap:11px}.v6-profile .avatar{background:#fff;color:var(--v6-green);width:42px;height:42px}.v6-profile strong,.v6-profile span{display:block}.v6-profile strong{font-size:15px}.v6-profile span{font-size:12px;opacity:.78;margin-top:2px}.v6-sidebar nav{gap:8px;margin-top:14px}.v6-sidebar nav a{font-size:16px;padding:13px 14px;border-radius:13px;color:#536b64}.v6-sidebar nav a span{font-size:20px}.v6-sidebar nav a.active,.v6-sidebar nav a:hover{background:var(--v6-green);color:#fff}.v6-sidebar .sidebar-foot{font-size:13px}
.v6-topbar{height:96px;padding:0 36px;background:rgba(255,255,255,.96)}.v6-top-identity{display:flex;align-items:center;gap:16px}.v6-top-identity img{width:210px;height:75px;object-fit:contain}.v6-topbar .eyebrow{font-size:14px;color:var(--v6-gold);font-weight:800}.v6-topbar .page-context{font-size:20px;color:var(--v6-green-dark);font-weight:800;margin-top:1px}.v6-topbar .ai-top-button{font-size:14px;padding:11px 16px;border-radius:11px;background:var(--v6-green);color:#fff;border-color:var(--v6-green)}.v6-topbar .logout{font-size:14px}.v6-judicial .content{padding:34px 38px 55px;max-width:1600px}.v6-judicial .eyebrow{font-size:14px}.v6-welcome{display:flex;justify-content:space-between;align-items:center;padding:20px 4px 24px}.v6-welcome h1{font-size:39px;line-height:1.25;margin:7px 0 5px;color:var(--v6-green-dark);letter-spacing:-.03em}.v6-welcome p{font-size:15px;color:var(--v6-muted);margin:0}.v6-ai-ready{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--v6-line);padding:12px 15px;border-radius:14px;box-shadow:0 8px 25px rgba(17,75,59,.04)}.v6-ai-ready>span{width:38px;height:38px;display:grid;place-items:center;background:var(--v6-green-soft);border-radius:10px;color:var(--v6-green);font-size:19px}.v6-ai-ready b,.v6-ai-ready small{display:block}.v6-ai-ready b{font-size:14px}.v6-ai-ready small{font-size:11px;color:var(--v6-muted);margin-top:2px}
.v6-status-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.v6-status-strip>div{background:#fff;border:1px solid var(--v6-line);border-radius:15px;padding:16px 17px;display:grid;grid-template-columns:46px 1fr auto;grid-template-rows:auto auto;align-items:center;column-gap:12px}.v6-stat-icon{grid-row:1/3;width:46px;height:46px;border-radius:13px;background:var(--v6-green-soft);display:grid;place-items:center;color:var(--v6-green);font-size:21px;font-weight:800}.v6-status-strip small{font-size:13px;color:#536a63;font-weight:700}.v6-status-strip strong{grid-column:3;grid-row:1;font-size:28px;color:var(--v6-green-dark)}.v6-status-strip em{grid-column:2/4;grid-row:2;font-style:normal;font-size:11px;color:var(--v6-muted)}.v6-status-strip .needs{background:linear-gradient(135deg,#fff,#fffaf0)}.v6-status-strip .needs .v6-stat-icon{background:var(--v6-gold-soft);color:var(--v6-gold)}
.v6-featured{background:#fff;border:1px solid var(--v6-line);border-radius:18px;padding:20px;margin-bottom:18px}.v6-featured-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.v6-featured-head h2{font-size:27px;margin:3px 0 0}.v6-ai-ask{border:1px solid #bfd5cc;background:#fff;color:var(--v6-green);padding:10px 14px;border-radius:10px;font-weight:800;cursor:pointer;font-size:13px}.v6-case-focus{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.75fr) 190px;border:1px solid #e3ebe7;border-radius:16px;overflow:hidden}.v6-case-main{padding:23px;display:grid;grid-template-columns:155px 1fr;gap:18px;align-items:start}.v6-case-num small,.v6-case-num strong,.v6-case-num span{display:block}.v6-case-num small{font-size:12px;color:var(--v6-muted)}.v6-case-num strong{font-size:30px;margin:3px 0 7px}.v6-case-num span{font-size:12px;color:var(--v6-green);font-weight:700}.v6-case-title h3{font-size:23px;margin:0 0 7px;color:var(--v6-green-dark)}.v6-case-title p{font-size:15px;line-height:1.9;color:#52665f;margin:0 0 12px}.v6-case-meta{display:flex;gap:7px}.v6-case-meta span{font-size:11px;background:#f4f7f5;padding:6px 8px;border-radius:7px;color:#6e817a}.v6-case-ai{padding:23px;border-right:1px solid #eadfc6;background:#fffdf7}.v6-case-ai>small{font-size:12px;color:var(--v6-green);font-weight:800}.v6-case-ai h4{font-size:22px;color:var(--v6-gold);margin:7px 0 10px}.v6-compare{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.v6-compare span{display:flex;gap:4px;align-items:baseline;font-size:12px}.v6-compare b{font-size:18px}.v6-compare i{font-style:normal;font-size:10px;color:#9a8c6d}.v6-case-ai p{font-size:13px;line-height:1.7;color:#6b6f69;margin:8px 0 0}.v6-case-side{padding:23px 17px;border-right:1px solid #edf1ef;display:flex;flex-direction:column;gap:15px}.v6-case-side small,.v6-case-side strong{display:block}.v6-case-side small{font-size:11px;color:var(--v6-muted)}.v6-case-side strong{font-size:14px;margin-top:3px}.v6-primary{margin-top:auto;background:var(--v6-green);color:#fff;padding:11px 13px;border-radius:9px;text-align:center;font-size:13px;font-weight:800}
.v6-lower-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:18px}.v6-lower-grid .panel{border-radius:16px;box-shadow:none}.v6-lower-grid .panel-head{padding:17px 18px 12px}.v6-lower-grid .panel-head h3{font-size:21px;margin:3px 0 0}.v6-lower-grid .panel-head a{font-size:12px;color:var(--v6-green)}.v6-table-wrap{padding:0 18px 16px;overflow:auto}.v6-table{width:100%;border-collapse:collapse;min-width:650px}.v6-table th{font-size:12px;color:#76847f;text-align:right;padding:10px;border-bottom:1px solid #e8efeb}.v6-table td{font-size:13px;padding:12px 10px;border-bottom:1px solid #edf2ef}.v6-table td:last-child a{color:var(--v6-green);font-weight:800}.v6-status-pill{display:inline-block;background:var(--v6-green-soft);color:var(--v6-green);padding:5px 8px;border-radius:7px;font-size:11px}.v6-quick{padding-bottom:13px}.v6-quick>a,.v6-quick>button{display:block;width:calc(100% - 32px);margin:8px 16px 0;padding:11px 12px;border:1px solid #e0e8e4;border-radius:10px;background:#fff;color:#3d5a51;text-align:right;font-size:13px;font-family:inherit;cursor:pointer}.v6-quick>button{background:var(--v6-green);color:#fff;border-color:var(--v6-green);font-weight:800}.v6-trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.v6-trust-row>div{background:linear-gradient(180deg,#fff,#f8fbf9);border:1px solid var(--v6-line);border-radius:13px;padding:14px;display:flex;align-items:center;gap:11px}.v6-trust-row>div>span{width:38px;height:38px;border-radius:10px;background:var(--v6-green-soft);display:grid;place-items:center;color:var(--v6-green);font-size:19px}.v6-trust-row p{margin:0}.v6-trust-row b,.v6-trust-row small{display:block}.v6-trust-row b{font-size:13px}.v6-trust-row small{font-size:11px;color:var(--v6-muted);margin-top:2px;line-height:1.6}
/* Improve typography across case pages too */
.v6-judicial .case-head h1,.v6-judicial .case-title h1{font-size:34px}.v6-judicial .case-nav button{font-size:14px}.v6-judicial .workspace-section h2,.v6-judicial .workspace-section h3{font-size:20px}.v6-judicial .workspace-section p,.v6-judicial .workspace-section li,.v6-judicial .workspace-section td,.v6-judicial .workspace-section th{font-size:14px}.v6-judicial .v4-case-nav button,.v6-judicial .v4-tab p,.v6-judicial .v4-tab li,.v6-judicial .v4-tab td,.v6-judicial .v4-tab th{font-size:14px}.v6-judicial .v4-tab h2{font-size:25px}.v6-judicial .v4-tab h3{font-size:19px}
/* Login */
.v6-login-page{min-height:100vh;background:#fff}.v6-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(430px,.72fr)}.v6-login-identity{position:relative;overflow:hidden;background:linear-gradient(145deg,#fffdf7,#f2f7f4);padding:55px 70px;display:flex;flex-direction:column;justify-content:center}.v6-login-pattern{position:absolute;inset:0;background-image:radial-gradient(circle at 18% 18%,rgba(184,138,44,.08),transparent 27%),radial-gradient(circle at 75% 78%,rgba(10,93,69,.08),transparent 31%);pointer-events:none}.v6-login-logo{position:relative;width:min(610px,88%);max-height:230px;object-fit:contain;object-position:right center;margin-bottom:34px}.v6-login-copy{position:relative;max-width:650px}.v6-login-copy>span{display:inline-block;color:var(--v6-gold);font-weight:800;font-size:18px;margin-bottom:10px}.v6-login-copy h1{font-size:43px;line-height:1.35;margin:0 0 13px;color:var(--v6-green-dark)}.v6-login-copy p{font-size:17px;line-height:1.9;color:#62756e;max-width:590px;margin:0}.v6-login-values{position:relative;display:flex;gap:11px;flex-wrap:wrap;margin-top:28px}.v6-login-values>div{background:rgba(255,255,255,.75);border:1px solid #dfe8e3;border-radius:11px;padding:9px 12px;display:flex;align-items:center;gap:7px;font-size:13px}.v6-login-values b{color:var(--v6-green);font-size:16px}.v6-login-panel{display:grid;place-items:center;padding:45px;background:#fff}.v6-login-form{width:min(460px,100%);padding:34px 32px;border:1px solid var(--v6-line);border-radius:22px;box-shadow:0 24px 70px rgba(19,69,54,.09)}.v6-login-badge{width:max-content;background:var(--v6-green);color:#fff;padding:8px 12px;border-radius:9px;font-weight:800;font-size:14px;margin-bottom:24px}.v6-login-form .eyebrow{font-size:13px}.v6-login-form h2{font-size:29px;margin:6px 0 4px;color:var(--v6-green-dark)}.v6-login-form>p{margin:0 0 24px;color:var(--v6-muted);font-size:14px}.v6-login-form label{display:block;font-size:14px;font-weight:700;color:#4a6159;margin:15px 0}.v6-login-form input{display:block;width:100%;margin-top:7px;border:1px solid #dbe5e0;background:#fafcfb;border-radius:11px;padding:13px 14px;outline:none;font-size:15px;transition:.2s}.v6-login-form input:focus{border-color:#6aa48f;box-shadow:0 0 0 4px rgba(10,93,69,.07)}.v6-login-submit{width:100%;border:0;border-radius:11px;background:linear-gradient(135deg,var(--v6-green),var(--v6-green-dark));color:#fff;padding:14px 16px;font-family:inherit;font-size:15px;font-weight:800;cursor:pointer;margin-top:8px}.v6-login-security{text-align:center;color:#7b8a85;font-size:12px;margin-top:15px}.v6-login-security span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#29a06d;margin-left:5px}
@media(max-width:1180px){.v6-case-focus{grid-template-columns:1fr 1fr}.v6-case-side{grid-column:1/-1;border-right:0;border-top:1px solid #edf1ef;display:grid;grid-template-columns:1fr 1fr auto;align-items:center}.v6-case-side .v6-primary{margin-top:0}.v6-top-identity img{width:170px}.v6-topbar .page-context{font-size:17px}.v6-status-strip{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.v6-shell{display:block}.v6-sidebar{position:relative;height:auto;border-left:0;border-bottom:1px solid var(--v6-line)}.v6-sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.v6-topbar{position:relative}.v6-login-shell{grid-template-columns:1fr}.v6-login-identity{min-height:auto;padding:38px 30px}.v6-login-logo{width:min(520px,100%);margin-bottom:20px}.v6-login-copy h1{font-size:35px}.v6-login-panel{padding:30px}}
@media(max-width:720px){.v6-topbar{height:auto;padding:14px 18px;align-items:flex-start;gap:12px;flex-direction:column}.v6-top-identity img{width:150px;height:58px}.v6-judicial .content{padding:22px 16px 40px}.v6-welcome{flex-direction:column;align-items:flex-start;gap:13px}.v6-welcome h1{font-size:31px}.v6-status-strip{grid-template-columns:1fr}.v6-case-focus{grid-template-columns:1fr}.v6-case-main{grid-template-columns:1fr}.v6-case-ai,.v6-case-side{border-right:0;border-top:1px solid #edf1ef}.v6-case-side{display:flex}.v6-lower-grid,.v6-trust-row{grid-template-columns:1fr}.v6-featured{padding:14px}.v6-featured-head{align-items:flex-start;gap:10px;flex-direction:column}.v6-login-identity{padding:30px 20px}.v6-login-copy h1{font-size:30px}.v6-login-copy p{font-size:15px}.v6-login-panel{padding:20px}.v6-login-form{padding:28px 22px}}

/* ===== V6.1 navigation + real linked pages ===== */
.v6-page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0 24px}.v6-page-head h1{font-size:38px;margin:6px 0 8px;color:#0b4f40}.v6-page-head p{font-size:17px;color:#6b7a75;margin:0}.v6-add-case{font-size:17px!important;padding:14px 24px!important}
.v6-form-panel,.v6-cases-panel,.v6-search-hero,.v6-source-list{margin-bottom:24px}.v6-case-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px;padding:22px}.v6-case-form label{display:flex;flex-direction:column;gap:8px;font-weight:700;color:#35534a;font-size:15px}.v6-case-form input,.v6-case-form select,.v6-case-form textarea,.v6-search input,.v6-search-hero input{width:100%;border:1px solid #d7e2de;border-radius:12px;background:#fff;padding:13px 14px;font-family:inherit;font-size:16px;outline:none}.v6-case-form input:focus,.v6-case-form select:focus,.v6-case-form textarea:focus,.v6-search input:focus,.v6-search-hero input:focus{border-color:#0d755d;box-shadow:0 0 0 3px rgba(13,117,93,.08)}.v6-case-form .wide{grid-column:1/-1}.v6-form-actions{display:flex!important;flex-direction:row!important;align-items:center;gap:16px!important}.v6-form-actions span{font-weight:500;color:#7b8984}.v6-error{margin:0 22px 8px;padding:12px 16px;border-radius:10px;background:#fff3ee;color:#9a3c25;font-weight:700}.v6-search{display:flex;gap:8px;min-width:360px}.v6-search button{border:0;border-radius:10px;padding:0 18px;background:#0b5d49;color:#fff;font-family:inherit;font-weight:700}.v6-row-open{font-weight:800;color:#0b6c56}.v6-search-hero{padding:24px}.v6-search-hero form{display:flex;gap:12px}.v6-search-hero input{font-size:18px;padding:16px}.v6-source-list article{display:flex;gap:18px;align-items:flex-start;padding:20px 22px;border-top:1px solid #edf1ef}.v6-source-list article h3{margin:3px 0 8px;color:#173f35;font-size:19px}.v6-source-list article p{margin:0 0 8px;color:#61716b;line-height:1.8}.v6-source-list article span{font-size:13px;color:#178168}.v6-knowledge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.v6-knowledge-card{padding:22px;display:flex;align-items:center;gap:15px}.v6-knowledge-card>span{width:46px;height:46px;border-radius:14px;background:#eef7f3;display:grid;place-items:center;color:#0b6c56;font-size:24px}.v6-knowledge-card strong{font-size:30px;color:#0b4f40}.v6-knowledge-card p{margin:0;color:#667770}.sidebar nav a.active{background:#08654f!important;color:#fff!important;font-weight:800}.sidebar nav a:not(.active):hover{background:#f1f7f4;color:#0b5d49}
@media(max-width:900px){.v6-page-head{align-items:flex-start;flex-direction:column}.v6-case-form{grid-template-columns:1fr}.v6-case-form .wide{grid-column:auto}.v6-search{min-width:0;width:100%}.v6-knowledge-grid{grid-template-columns:1fr 1fr}}

/* ===== V6.2 CASE READABILITY — designed for judicial users ===== */
body.v6-judicial .v4-case-head{padding:20px 0 24px;gap:24px}
body.v6-judicial .v4-case-title{gap:14px;margin-top:10px}
body.v6-judicial .v4-case-title h1{font-size:38px!important;line-height:1.35!important}
body.v6-judicial .v4-case-title span{font-size:14px!important;padding:8px 12px}
body.v6-judicial .v4-case-head p{font-size:16px!important;line-height:1.8}
body.v6-judicial .back-link{font-size:14px!important}
body.v6-judicial .case-ai-status{padding:15px 18px;min-width:285px}
body.v6-judicial .case-ai-status>span{width:42px;height:42px;font-size:20px}
body.v6-judicial .case-ai-status b{font-size:15px!important}
body.v6-judicial .case-ai-status small{font-size:13px!important;line-height:1.65}

body.v6-judicial .v4-case-tabs{gap:6px;padding:7px;margin-bottom:24px;top:90px;overflow-x:auto;scrollbar-width:thin}
body.v6-judicial .v4-case-tabs button{font-size:15px!important;padding:13px 18px!important;white-space:nowrap;min-height:46px}

body.v6-judicial .v4-ai-title small,
body.v6-judicial .v4-section-title small{font-size:13px!important}
body.v6-judicial .v4-ai-title h2,
body.v6-judicial .v4-section-title h2{font-size:27px!important;line-height:1.45!important}
body.v6-judicial .v4-ai-title p,
body.v6-judicial .v4-section-title p{font-size:15px!important;line-height:1.8!important}
body.v6-judicial .v4-section-title>span{font-size:13px!important}
body.v6-judicial .v4-section-title>button{font-size:14px!important;padding:11px 15px}

body.v6-judicial .v4-summary-cards small,
body.v6-judicial .v4-parties small,
body.v6-judicial .v4-doc-list small,
body.v6-judicial .v4-evidence-list small,
body.v6-judicial .v4-legal-list small,
body.v6-judicial .v4-review-list small,
body.v6-judicial .v4-simple-compare article small{font-size:13px!important}
body.v6-judicial .v4-summary-cards p{font-size:16px!important;line-height:2!important;min-height:0}
body.v6-judicial .v4-summary-cards button,
body.v6-judicial .insight-actions button,
body.v6-judicial .v4-doc-list button,
body.v6-judicial .v4-evidence-list button,
body.v6-judicial .v4-legal-list button{font-size:13px!important;padding:8px 10px}
body.v6-judicial .v4-parties b{font-size:16px!important}
body.v6-judicial .v4-parties p{font-size:14px!important;white-space:normal;line-height:1.75}
body.v6-judicial .v4-parties>span{font-size:13px!important}

body.v6-judicial .v4-insight{grid-template-columns:46px 1fr auto;padding:17px;gap:16px}
body.v6-judicial .insight-index{width:38px;height:38px;font-size:13px!important}
body.v6-judicial .v4-insight small{font-size:12px!important}
body.v6-judicial .v4-insight h3{font-size:18px!important;line-height:1.5}
body.v6-judicial .v4-insight p{font-size:15px!important;line-height:1.8}

body.v6-judicial .v4-case-aside h3{font-size:18px!important}
body.v6-judicial .v4-case-numbers span{font-size:13px!important;padding:13px}
body.v6-judicial .v4-case-numbers b{font-size:26px!important}
body.v6-judicial .v4-ai-questions>span{font-size:14px!important}
body.v6-judicial .v4-ai-questions button{font-size:14px!important;padding:13px 4px}

body.v6-judicial .v4-doc-list article{grid-template-columns:55px minmax(240px,1fr) minmax(260px,.8fr) 80px;padding:17px 0}
body.v6-judicial .v4-doc-list .doc-no{width:40px;height:40px;font-size:13px!important}
body.v6-judicial .v4-doc-list h3{font-size:17px!important}
body.v6-judicial .v4-doc-list p{font-size:14px!important;line-height:1.7}
body.v6-judicial .doc-ai span{font-size:12px!important}
body.v6-judicial .doc-ai small{font-size:12px!important;line-height:1.7}

body.v6-judicial .v4-simple-compare{grid-template-columns:1fr 280px 1fr;padding:22px;gap:15px}
body.v6-judicial .v4-simple-compare article strong{font-size:38px!important}
body.v6-judicial .v4-simple-compare>div>b{font-size:17px!important}
body.v6-judicial .v4-simple-compare>div>p{font-size:14px!important;line-height:1.8}
body.v6-judicial .v4-simple-compare>div>button{font-size:14px!important;padding:11px 14px}
body.v6-judicial .v4-evidence-list article{grid-template-columns:1fr 140px 90px;padding:16px 0}
body.v6-judicial .v4-evidence-list h3{font-size:17px!important}
body.v6-judicial .v4-evidence-list p{font-size:14px!important;line-height:1.75}
body.v6-judicial .v4-verified{font-size:13px!important}

body.v6-judicial .v4-legal-list article{grid-template-columns:52px 1fr 95px;padding:18px 0}
body.v6-judicial .legal-symbol{width:42px;height:42px;font-size:18px}
body.v6-judicial .v4-legal-list h3{font-size:18px!important}
body.v6-judicial .v4-legal-list p{font-size:14px!important;line-height:1.8}
body.v6-judicial .v4-legal-list span{font-size:12px!important}
body.v6-judicial .v4-empty{font-size:15px!important}

body.v6-judicial .v4-review-list article{grid-template-columns:48px 1fr 275px;padding:19px 0;align-items:start}
body.v6-judicial .review-no{width:40px;height:40px;font-size:13px!important}
body.v6-judicial .v4-review-list h3{font-size:19px!important}
body.v6-judicial .v4-two-positions p{font-size:14px!important;line-height:1.85}
body.v6-judicial .v4-review-actions button{font-size:13px!important;padding:9px 12px}
body.v6-judicial .v4-review-actions button.selected{box-shadow:0 0 0 3px rgba(11,93,73,.10)}
body.v6-judicial .v4-review-list article.review-approved{background:#fbfefc}
body.v6-judicial .v4-review-list article.review-editing h3{outline:2px solid rgba(11,93,73,.18);border-radius:7px;padding:5px}
body.v6-judicial .judicial-inline-note{grid-column:2/-1;width:100%;min-height:90px;border:1px solid #d7e2de;border-radius:10px;padding:12px;font-family:inherit;font-size:14px;line-height:1.8;margin-top:8px}
body.v6-judicial .v4-procedure b{font-size:16px!important}
body.v6-judicial .v4-procedure p{font-size:14px!important;line-height:1.75}
body.v6-judicial .v4-procedure button{font-size:13px!important;padding:10px 13px}

/* Draft workspace: every section is now a real clickable section */
body.v6-judicial .v4-draft{grid-template-columns:220px 1fr;min-height:610px}
body.v6-judicial .v4-draft aside{padding:15px}
body.v6-judicial .v4-draft aside button{font-size:15px!important;padding:13px 14px!important;margin-bottom:4px;cursor:pointer}
body.v6-judicial .v4-draft aside button:hover{background:#eef6f2;color:#0b5d49}
body.v6-judicial .v4-draft aside button.active{background:#fff;color:#0b5d49;box-shadow:0 1px 6px rgba(25,75,61,.07)}
body.v6-judicial .v4-draft main{padding:24px}
body.v6-judicial .draft-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
body.v6-judicial .draft-section-head small{display:block;color:#74847e;font-size:12px}
body.v6-judicial .draft-section-head h3{margin:3px 0 0;font-size:23px!important;color:#173f35}
body.v6-judicial #draftSaveState{font-size:12px;color:#7b8a85;background:#f6f9f7;border-radius:8px;padding:7px 10px}
body.v6-judicial #draftSaveState.saved{color:#0b6c56;background:#edf8f3}
body.v6-judicial .draft-ai-bar{padding:12px;gap:9px;flex-wrap:wrap}
body.v6-judicial .draft-ai-bar span{font-size:13px!important}
body.v6-judicial .draft-ai-bar button{font-size:13px!important;padding:9px 11px!important;cursor:pointer}
body.v6-judicial .draft-ai-bar button:hover{border-color:#a8c9bc;background:#fbfdfc}
body.v6-judicial .draft-ai-bar button.busy{opacity:.65}
body.v6-judicial .v4-draft textarea{min-height:400px;font-size:17px!important;line-height:2.05!important;padding:20px!important;color:#263b35;background:#fff}
body.v6-judicial .draft-tool-result{min-height:0;margin-top:10px;border-radius:9px;font-size:14px;line-height:1.8;color:#50625c}
body.v6-judicial .draft-tool-result:not(:empty){padding:11px 13px;background:#f3f8f5;border:1px solid #dfeae5}
body.v6-judicial .draft-foot{font-size:13px!important;margin-top:12px}

/* Source/AI panels also readable */
body.v6-judicial .source-drawer h3{font-size:22px!important}
body.v6-judicial .source-drawer p,body.v6-judicial .source-drawer small{font-size:14px!important;line-height:1.8}
body.v6-judicial .ai-assistant-panel{font-size:15px}
body.v6-judicial .ai-panel-head b{font-size:16px}
body.v6-judicial .ai-panel-head small{font-size:12px}
body.v6-judicial .ai-welcome,body.v6-judicial .ai-message p{font-size:14px!important;line-height:1.8}
body.v6-judicial .ai-quick button,body.v6-judicial .ai-input input,body.v6-judicial .ai-input button{font-size:14px!important}

@media(max-width:1100px){
 body.v6-judicial .v4-simple-compare{grid-template-columns:1fr}
 body.v6-judicial .v4-review-list article{grid-template-columns:48px 1fr}
 body.v6-judicial .v4-review-actions{grid-column:2}
}
@media(max-width:760px){
 body.v6-judicial .v4-case-title h1{font-size:30px!important}
 body.v6-judicial .v4-case-tabs button{font-size:14px!important}
 body.v6-judicial .v4-draft{grid-template-columns:1fr}
 body.v6-judicial .v4-draft aside{display:flex;gap:5px;overflow:auto;white-space:nowrap}
 body.v6-judicial .v4-draft aside button{min-width:max-content}
}

/* ===== G-Assist V6.3 Draft AI tools — immediate visible feedback ===== */
body.v6-judicial .draft-tool-result{display:none;margin:0 0 12px!important;padding:0!important;border:0!important;background:transparent!important}
body.v6-judicial .draft-tool-result.show{display:block;padding:13px 15px!important;background:#f1f8f5!important;border:1px solid #d6e9e1!important;border-radius:10px!important;color:#24483f!important;font-size:14px!important;line-height:1.9!important}
body.v6-judicial .draft-tool-result.show.verify{background:#eef8f3!important}
body.v6-judicial .draft-tool-result.show.warning{background:#fff8ea!important;border-color:#eadbb5!important}
body.v6-judicial .draft-ai-bar button.tool-active{background:#0b6b55!important;color:#fff!important;border-color:#0b6b55!important}
body.v6-judicial .draft-ai-bar button{transition:.18s ease;min-height:42px}
body.v6-judicial .draft-ai-bar button:active{transform:translateY(1px)}
body.v6-judicial .v4-draft textarea.ai-updated{outline:2px solid #8fc8b5;box-shadow:0 0 0 4px rgba(11,107,85,.08)}
/* G-Assist V6.4 — case document upload */
.case-upload-card{background:#fff;border:1px solid #d9e5e0;border-radius:18px;padding:24px;margin:18px 0 24px;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(420px,1.6fr);gap:24px;align-items:start}.case-upload-copy span{color:#08725d;font-weight:800}.case-upload-copy h3{font-size:24px;margin:8px 0;color:#123f34}.case-upload-copy p{font-size:16px;line-height:1.8;color:#71817b}.case-upload-form{display:grid;gap:12px}.case-dropzone{border:2px dashed #a8c9bf;border-radius:15px;padding:24px;text-align:center;cursor:pointer;background:#f8fbfa;transition:.2s}.case-dropzone:hover{border-color:#08725d;background:#f0f8f5}.case-dropzone strong{display:block;font-size:19px;color:#075f4c;margin-bottom:6px}.case-dropzone span{font-size:14px;color:#788780}.case-dropzone input{display:block;width:100%;margin-top:15px;font-family:inherit}.selected-files{font-size:14px;line-height:1.8;color:#536760;background:#f5f8f7;border-radius:10px;padding:10px 13px}.case-upload-submit{border:0;border-radius:10px;background:#07664f;color:#fff;font-family:inherit;font-size:16px;font-weight:800;padding:13px 18px;cursor:pointer}.case-upload-submit:hover{filter:brightness(.94)}.upload-notice{grid-column:1/-1;border-radius:10px;padding:11px 14px;font-weight:700}.upload-notice.success{background:#edf8f3;color:#09624e}.upload-notice.error{background:#fff2ef;color:#9b382d}@media(max-width:900px){.case-upload-card{grid-template-columns:1fr}.case-dropzone{padding:18px}}
.ai-analysis-launch{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 30px;margin:18px 0 24px;border:1px solid #d7e6df;border-radius:18px;background:#f5faf7}.ai-analysis-launch span{font-weight:800;color:#08765f}.ai-analysis-launch h3{font-size:22px;margin:7px 0;color:#123f34}.ai-analysis-launch p{font-size:15px;line-height:1.9;color:#65766f;max-width:760px}.ai-analysis-launch button{border:0;border-radius:12px;background:#08705a;color:#fff;font-weight:800;font-family:inherit;font-size:16px;padding:15px 22px;cursor:pointer;white-space:nowrap}.ai-analysis-launch button:hover{filter:brightness(.95)}@media(max-width:900px){.ai-analysis-launch{flex-direction:column;align-items:stretch}.ai-analysis-launch button{width:100%}}

/* V6.5.1 — Case tabs active/focus visibility fix */
body.v6-judicial .v4-case-tabs button,
body.v6-judicial .v4-case-tabs button:focus,
body.v6-judicial .v4-case-tabs button:focus-visible{
  color:#4f625c !important;
  background:#fff !important;
  -webkit-text-fill-color:#4f625c !important;
  opacity:1 !important;
  visibility:visible !important;
  text-indent:0 !important;
  outline:none !important;
  box-shadow:none !important;
}
body.v6-judicial .v4-case-tabs button.active,
body.v6-judicial .v4-case-tabs button.active:focus,
body.v6-judicial .v4-case-tabs button.active:focus-visible{
  background:#08654f !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#08654f !important;
  outline:none !important;
  box-shadow:0 4px 12px rgba(8,101,79,.12) !important;
}
body.v6-judicial .v4-case-tabs button:hover:not(.active){
  background:#f1f7f4 !important;
  color:#0b5d49 !important;
  -webkit-text-fill-color:#0b5d49 !important;
}


/* ===== G-Assist V6.5.2 — robust server-side case tabs ===== */
body.v6-judicial .v4-case-tabs.v652-server-tabs{
  display:flex; gap:7px; align-items:center; padding:7px; overflow-x:auto;
}
body.v6-judicial .v4-case-tabs.v652-server-tabs a{
  appearance:none; -webkit-appearance:none; text-decoration:none!important;
  display:flex; align-items:center; justify-content:center; min-height:46px;
  padding:12px 18px; border-radius:9px; border:1px solid transparent!important;
  background:#fff!important; color:#4f625c!important; -webkit-text-fill-color:#4f625c!important;
  font-family:inherit; font-size:15px!important; font-weight:800; line-height:1.35;
  white-space:nowrap; outline:0!important; box-shadow:none!important;
}
body.v6-judicial .v4-case-tabs.v652-server-tabs a:hover{
  background:#f1f7f4!important; color:#0b5d49!important; -webkit-text-fill-color:#0b5d49!important;
}
body.v6-judicial .v4-case-tabs.v652-server-tabs a.active,
body.v6-judicial .v4-case-tabs.v652-server-tabs a.active:hover,
body.v6-judicial .v4-case-tabs.v652-server-tabs a.active:focus,
body.v6-judicial .v4-case-tabs.v652-server-tabs a.active:focus-visible{
  background:#08654f!important; color:#fff!important; -webkit-text-fill-color:#fff!important;
  border-color:#08654f!important; box-shadow:0 4px 12px rgba(8,101,79,.13)!important;
}
body.v6-judicial .v4-case-tabs.v652-server-tabs a:focus,
body.v6-judicial .v4-case-tabs.v652-server-tabs a:focus-visible{
  outline:2px solid rgba(8,101,79,.20)!important; outline-offset:2px!important;
}
@media(max-width:760px){body.v6-judicial .v4-case-tabs.v652-server-tabs a{font-size:14px!important;padding:11px 14px}}

/* G-Assist V6.6 — staged AI analysis */
.staged-ai-analysis{background:#f3faf7;border:1px solid #cfe3dc;border-radius:22px;padding:26px 28px;margin:24px 0 30px;box-shadow:0 10px 28px rgba(17,76,61,.05)}
.staged-ai-intro{display:flex;align-items:center;justify-content:space-between;gap:28px}.staged-ai-intro span{font-weight:800;color:#08755f}.staged-ai-intro h3{font-size:24px;margin:7px 0 8px;color:#173e34}.staged-ai-intro p{margin:0;color:#647770;font-size:16px;line-height:1.9;max-width:790px}.staged-ai-intro button{border:0;border-radius:12px;background:#08715b;color:#fff;padding:15px 22px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}.staged-ai-intro button:disabled{opacity:.55;cursor:wait}
.ai-stage-list{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:26px 0 20px}.ai-stage-list>div{background:#fff;border:1px solid #dce9e4;border-radius:13px;padding:12px 10px;display:flex;align-items:center;gap:8px;color:#70807a;font-size:14px}.ai-stage-list b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#edf4f1;color:#49665d}.ai-stage-list>div.active{border-color:#b68b36;color:#7f5d1d;background:#fffaf1}.ai-stage-list>div.active b{background:#b68b36;color:#fff}.ai-stage-list>div.done{border-color:#9fd1c1;color:#086a55;background:#f7fcfa}.ai-stage-list>div.done b{background:#0d8067;color:#fff}.ai-stage-list>div.error{border-color:#e3aaa3;background:#fff5f3;color:#a84337}
.ai-progress-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.ai-progress-head strong{display:block;font-size:18px;color:#173e34}.ai-progress-head small{display:block;color:#70807a;margin-top:5px;font-size:14px}.ai-progress-head>b{font-size:28px;color:#0b705a}.ai-progress-track{height:12px;background:#deebe6;border-radius:999px;overflow:hidden;margin-top:12px}.ai-progress-fill{display:block;width:0;height:100%;background:linear-gradient(90deg,#0c7e65,#b28b3d);border-radius:999px;transition:width .35s ease}.ai-analysis-error{color:#ad3d32;font-weight:700;margin-top:14px;line-height:1.7}.staged-ai-analysis.running .ai-progress-fill{box-shadow:0 0 0 1px rgba(12,126,101,.08),0 0 20px rgba(12,126,101,.18)}
@media(max-width:900px){.staged-ai-intro{flex-direction:column;align-items:stretch}.ai-stage-list{grid-template-columns:repeat(2,1fr)}}
