:root{--brand:#08786d;--ink:#102d3c;--muted:#4c6269;--wash:#e0f3ef}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f3f8f7;color:var(--ink);font:16px/1.5 system-ui,-apple-system,sans-serif}header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px max(5vw,20px);border-bottom:1px solid #c5ded9}header a{color:var(--ink);text-decoration:none;font-weight:800;font-size:24px}header a span{color:var(--brand)}header>span{font-size:13px;color:var(--muted)}main{max-width:1120px;margin:40px auto;min-height:65vh;padding:0 20px}.card{background:white;border:1px solid #c5ded9;border-radius:28px;padding:30px;margin-bottom:20px}.card:has(#access){max-width:520px;margin:auto}h1{font-size:32px;line-height:1.2;margin:0 0 16px}h2{font-size:23px;margin:0 0 12px}label{display:block;font-weight:600;margin-top:16px}input,textarea,select{display:block;width:100%;border:1px solid #adcfc7;border-radius:16px;padding:14px;color:var(--ink);background:white;font:inherit}textarea{min-height:110px}button,.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:24px;padding:13px 22px;background:var(--brand);color:white;font:600 16px/1.4 system-ui;cursor:pointer;text-decoration:none;min-height:48px}button:disabled{opacity:.6;cursor:wait}form>button{margin-top:22px;width:100%}.link{background:transparent;color:var(--brand);text-decoration:underline;font-weight:500;padding:12px 0}a{color:var(--brand)}:focus-visible{outline:3px solid #008574;outline-offset:3px}.toolbar,.documents{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.toolbar{justify-content:space-between;margin-bottom:24px}.pill{display:inline-block;background:var(--wash);border-radius:30px;padding:7px 12px;font-size:14px;color:#075e55}.test{font-size:12px;color:var(--muted);margin-left:8px}.timeline{padding-left:24px;border-left:3px solid #d6ede7;margin-top:24px}.timeline article{margin-bottom:24px}.timeline p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}time,small{font-size:13px;color:var(--muted)}details{margin-top:24px}summary{cursor:pointer;font-weight:650}.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.case-grid .card{margin:0}.error{color:#9b2e21}footer{padding:28px 20px;text-align:center;background:#0b2433;color:white;font-size:13px}@media(max-width:650px){header>span{display:none}main{margin-top:24px;padding:0 14px}.card{padding:23px;border-radius:24px}h1{font-size:28px}.case-grid{grid-template-columns:1fr}.documents .button{width:100%}}@media(prefers-reduced-motion:no-preference){button,.button{transition:background .2s ease,box-shadow .2s ease}button:hover,.button:hover{box-shadow:0 6px 20px #08786d25}}
/* Shared sign-in, with the Indenize Médicos identity. */
.auth-page{min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 12% 35%,#0e494b 0,transparent 60%),#0b2433;color:#fff}.auth-page header{display:none}.auth-page main{width:100%;max-width:1200px;min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,490px);gap:72px;align-items:center;margin:0 auto;padding:60px 32px}.auth-brand{min-width:0}.brand-lockup{display:flex;align-items:center;gap:18px;text-decoration:none;color:#fff;font-size:clamp(28px,3.2vw,44px);font-weight:800;letter-spacing:-1.6px;line-height:1.15}.brand-lockup img{flex-shrink:0;width:78px;height:78px}.brand-lockup strong{display:inline;color:#91ded1}.auth-brand>p{font-size:21px;line-height:1.6;color:#c2dedb;margin:26px 0 36px}.back-site{color:#b0d8d1;text-decoration:none;font-size:14px}.back-site:hover{text-decoration:underline}.auth-page .auth-card{width:100%;max-width:none;margin:0;background:#fcfefd;color:var(--ink);padding:42px;border-radius:30px;box-shadow:0 24px 70px #0002;border:1px solid #ffffff80}.eyebrow{display:block;color:#086e64;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:2px;margin-bottom:16px}.auth-card h1{font-size:36px;letter-spacing:-1.2px}.auth-card #intro{font-size:15px;color:var(--muted);margin:0 0 28px}.auth-card label{font-size:12px;text-transform:uppercase;letter-spacing:.7px;margin:20px 0 8px}.auth-card input{height:56px;border-radius:13px;border:1px solid #bdd5cf}.auth-card input::placeholder{color:#617579}.password-field{position:relative}.password-field input{padding-right:54px}.password-field button{position:absolute;right:6px;top:6px;width:44px;height:44px;min-height:44px;padding:10px;background:transparent;color:var(--brand);border-radius:10px}.password-field svg{width:24px;height:24px}.password-field button[aria-pressed=true] .eye-slash{display:none}.auth-card #submit{border-radius:13px;height:54px;margin-top:26px;box-shadow:0 8px 20px #08786d20}.auth-card #recover{display:block;width:100%;font-size:13px;text-align:center;text-decoration:none;margin-top:9px}.auth-card #recover:hover{text-decoration:underline}.auth-card #message{font-size:14px;margin:10px 0;overflow-wrap:anywhere}.access-note{font-size:12px;text-align:center;color:var(--muted);border-top:1px solid #dce9e5;padding-top:22px;margin:20px 0 0}.auth-page footer{background:transparent;color:#b6cece;font-size:12px;padding:18px 20px}.auth-page :focus-visible{outline-color:#39aa98}
@media(max-width:1000px){.auth-page main{max-width:540px;display:flex;flex-direction:column;gap:28px;padding:32px 20px;justify-content:center}.auth-brand{width:100%}.brand-lockup{justify-content:center;font-size:28px;letter-spacing:-1px;gap:12px}.brand-lockup strong{display:inline}.brand-lockup img{width:48px;height:48px}.auth-brand>p,.back-site{display:none}.auth-page .auth-card{padding:30px 26px;border-radius:26px}.auth-card h1{font-size:31px}.auth-card #intro{margin-bottom:22px}.auth-page footer{padding-top:0}}@media(max-width:360px){.auth-page main{padding:24px 14px}.auth-page .auth-card{padding:26px 20px}.brand-lockup{font-size:25px}}

.auth-card input[readonly]{background:#edf0f1;color:#66767e;cursor:default;border-color:#d6dfe0;}
.auth-card .password-field.matched input{border-color:#16835b;box-shadow:0 0 0 2px #16835b30;}
#password-match{color:#12653f;font-size:13px;margin:8px 0 0;min-height:0;}#password-match:empty{display:none;}
#confirm-group{margin-top:22px;}.password-field button svg{pointer-events:none;}

.case-unread{border:2px solid #d28a13;background:#fffbf2;box-shadow:0 8px 26px #8b5d0b12;}.new-case-badge{display:inline-block;margin-left:8px;padding:5px 11px;border-radius:20px;background:#ffe3a5;color:#714400;font-size:13px;font-weight:750}.new-case-notice{padding:14px 18px;border:1px solid #ecd19b;border-radius:16px;background:#fff3d7;color:#714400;font-weight:650;margin:0 0 20px;}
/* Post-login structure adapted from ClientPortal / MapDashboard (IndenizeAI). */
.workspace-page{background:#f4f8f7}.workspace-page>header{background:#fff;padding:20px max(4vw,20px)}.workspace-page main{max-width:1400px;padding:0 40px;margin:0 auto 70px;min-height:75vh}.account-bar{display:flex;align-items:center;justify-content:space-between;padding:22px 0;border-bottom:1px solid #d4e3df;gap:16px}.account-bar strong,.account-bar small{display:block}.account-bar strong{font-size:15px}.account-bar small{font-size:12px;margin-top:3px}.account-actions{display:flex;gap:10px}.quiet{background:transparent;color:var(--brand);border:1px solid #bed7d0;gap:8px;font-size:14px;border-radius:14px}.quiet svg,.portal-nav svg,.search-label svg{width:20px;height:20px;flex-shrink:0}.portal-hero{padding:44px 0 34px}.portal-hero h1{font-size:clamp(30px,4vw,46px);letter-spacing:-1.6px;margin:0 0 14px}.portal-hero p{color:var(--muted);margin:0;font-size:17px;max-width:700px}.portal-nav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px}.portal-nav button{background:transparent;color:var(--muted);border:1px solid #cfdfda;border-radius:14px;gap:10px;font-size:14px}.portal-nav button[aria-current=page]{background:var(--brand);color:white;border-color:var(--brand);box-shadow:0 8px 18px #08786d20}.portal-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.portal-metrics button{align-items:flex-start;flex-direction:column;background:white;color:var(--ink);border:1px solid #d3e4de;border-radius:20px;padding:23px;min-width:0;gap:8px;text-align:left}.portal-metrics small{font-size:10px;letter-spacing:1px;color:#496564}.portal-metrics strong{font-size:35px;line-height:1.1;color:var(--brand)}.portal-metrics span{font-size:12px;font-weight:400;color:var(--muted)}.overview-card{background:#fff;border:1px solid #d3e4de;border-radius:24px;padding:28px;overflow-wrap:anywhere}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.section-heading .eyebrow{font-size:10px;margin-bottom:8px}.section-heading h2{font-size:26px;margin:0;letter-spacing:-.6px}.search-toolbar{display:flex;align-items:end;gap:18px;margin-bottom:24px}.search-label{display:flex;align-items:center;gap:10px;flex:1;border:1px solid #c4d9d3;border-radius:13px;padding:0 14px;margin:0;color:#5a7470;min-width:0}.search-label input{border:0;background:transparent;padding:15px 0;font-size:14px;min-width:0}.search-label:focus-within{outline:2px solid #118779;outline-offset:2px}.search-label input:focus{outline:0}.filter-label{font-size:12px;margin:0;min-width:180px}.filter-label select{margin-top:5px;font-size:14px;border-radius:13px}.case-list{display:flex;flex-direction:column;gap:12px}.case-row{display:grid;grid-template-columns:1.15fr 1fr 1.3fr auto;align-items:center;gap:22px;padding:22px 18px;border:1px solid #d8e5e1;border-radius:18px;background:#fcfefd;min-width:0}.case-row h3{font-size:17px;margin:10px 0 4px}.case-row p{margin:7px 0;font-size:14px}.case-row small{font-size:10px;letter-spacing:.3px;display:block}.case-row time{display:block;margin-top:5px;font-size:12px}.case-row .pill{font-size:11px;padding:5px 9px}.case-row .new-case-badge{font-size:11px}.case-row.case-unread{border:1.5px solid #d29635;background:#fffbf1}.case-latest p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#435e5b}.open-case{font-size:13px;padding:12px 16px;gap:10px;border-radius:13px;white-space:nowrap}.new-case-notice{display:flex;justify-content:flex-start;width:100%;font-size:14px;text-align:left;line-height:1.6}.document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.document-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;border:1px solid #d2e4dd;background:#f5faf8;border-radius:18px;padding:22px;text-decoration:none;min-width:0}.document-card svg{width:26px;height:26px}.document-card strong{color:var(--ink);font-size:15px}.document-card span{font-size:13px}.document-card:hover{background:#e5f3ef}.empty-state{text-align:center;padding:44px 20px;color:var(--muted)}.empty-state h3{color:var(--ink)}#more{margin-top:24px}.detail-toolbar{margin-top:20px}.case-facts{display:flex;gap:60px;margin:24px 0}.case-facts strong,.case-facts small{display:block}.case-facts strong{margin:6px 0;font-size:16px}.case-facts small{font-size:11px}.latest-update{padding:24px;border-radius:18px;background:#e5f3ee;margin:26px 0}.latest-update .eyebrow{margin-bottom:8px}.latest-update p{white-space:pre-wrap}.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:36px}.detail-columns .document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-columns h3{font-size:18px}.timeline h3{font-size:16px;margin:8px 0}.timeline article{position:relative}.timeline article:before{content:'';position:absolute;left:-31px;top:3px;width:11px;height:11px;border-radius:50%;background:var(--brand);border:2px solid white}.timeline p{font-size:14px}.timeline .quiet{margin-top:10px;padding:8px 14px;min-height:40px}.update-editor{border-top:1px solid #d2e3dc;padding-top:25px;margin-top:30px}.editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.update-editor form>button{width:auto}.workspace-page #workspace{scroll-margin-top:20px}.case-detail>h2{font-size:30px}
@media(max-width:1000px){.workspace-page main{padding:0 24px}.case-row{grid-template-columns:1.2fr 1fr}.case-row .open-case{justify-self:end}.portal-metrics{gap:10px}.portal-metrics button{padding:18px}.detail-columns{grid-template-columns:1fr}.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.workspace-page main{padding:0 16px}.workspace-page>header{padding:18px 16px}.workspace-page>header a{font-size:21px}.account-bar{align-items:flex-start;gap:10px}.account-actions{gap:6px}.account-actions .quiet{padding:9px;font-size:12px;min-height:42px}.account-actions svg{width:16px}.portal-hero{padding:30px 0 24px}.portal-hero h1{letter-spacing:-1px}.portal-hero p{font-size:15px}.portal-nav{gap:6px}.portal-nav button{padding:10px;font-size:12px;gap:6px;flex:1;min-width:0}.portal-nav svg{width:16px}.portal-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.portal-metrics button{padding:17px 14px}.portal-metrics small{font-size:9px}.portal-metrics strong{font-size:29px}.portal-metrics span{font-size:11px}.overview-card{padding:20px 15px;border-radius:20px}.section-heading h2{font-size:23px}.search-toolbar{flex-direction:column;align-items:stretch;gap:12px}.filter-label{min-width:0}.case-row{grid-template-columns:1fr;gap:12px;padding:18px 15px}.case-row .open-case{justify-self:stretch}.case-row h3{font-size:18px}.document-grid,.detail-columns .document-grid{grid-template-columns:1fr}.case-facts{flex-direction:column;gap:18px}.editor-grid{grid-template-columns:1fr;gap:4px}.latest-update{padding:18px}.case-detail>h2{font-size:25px}.detail-toolbar{gap:10px}.detail-toolbar .pill{font-size:11px}.new-case-notice{padding:15px;font-size:13px}}

.new-case{display:block;text-align:center;background:var(--teal,#08786d);color:white;padding:16px;border-radius:20px;text-decoration:none;font-weight:700}

.monitor-state{background:#e2f4f0;border:1px solid #b6dbd3;border-radius:18px;padding:18px;margin:20px 0}.monitor-state p{margin:8px 0 0}.monitor-source{display:block;color:#0a7369;margin:6px 0;overflow-wrap:anywhere}.timeline p{white-space:pre-wrap;overflow-wrap:anywhere}

.install-app{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#08786d;color:#fff;border:1px solid #70bdb1;border-radius:18px;padding:14px 20px;font:inherit;font-weight:700;cursor:pointer}.install-app[hidden]{display:none!important}.install-app svg{width:22px;height:22px;flex:none}.auth-brand .install-app{display:flex;width:fit-content;max-width:100%;margin:28px 0 24px;align-self:flex-start}.account-actions{flex-wrap:wrap}.account-actions .install-app{font-size:14px;padding:10px 14px}.install-app:hover{background:#065e55}.install-app:focus-visible{outline:3px solid #9bddcf;outline-offset:3px}
/* Case documents and editable legal draft */
.case-tools{margin:24px 0;padding:22px;border:1px solid #c5dfdb;border-radius:22px;background:#f5faf9}.case-tools .button{display:inline-block;padding:12px 18px;border-radius:16px;background:#087e74;color:white;text-decoration:none}.upload-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:10px 0}.upload-row input{flex:1;min-width:180px}.case-tools small,.muted{color:#48636a}.case-tools form{margin-bottom:18px}.document-card small{display:block;line-height:1.5}.petition-dialog{width:min(900px,94vw);max-height:90dvh;border:0;border-radius:24px;padding:24px;overflow:auto;color:#102f3d}.petition-dialog::backdrop{background:#09202dc0}.petition-dialog header{display:flex;justify-content:space-between;align-items:start;gap:16px}.petition-dialog textarea{box-sizing:border-box;width:100%;min-height:350px;font:16px/1.5 Georgia,serif;resize:vertical;margin-top:8px}.petition-dialog details{margin:16px 0}.petition-actions{display:flex;gap:12px;flex-wrap:wrap}.case-detail[aria-busy=true]{opacity:.7}@media(max-width:600px){.petition-dialog{padding:16px}.upload-row{display:block}.upload-row button{margin-top:12px;width:100%}.case-tools{padding:16px}.case-tools .section-heading{display:block}.case-tools .button{margin-bottom:14px}}
/* Compact process workspace, shared visual vocabulary without shared records. */
.workspace-page .portal-hero{padding:30px 0 24px}.workspace-page .portal-hero h1{font-size:36px}.lawyer-metrics button{border-radius:18px;padding:20px}.lawyer-overview{padding:25px}.process-filters{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin-bottom:22px}.process-filters .filter-label{min-width:190px}.priority-key{font-size:12px;color:var(--muted);margin:auto 0 auto auto}.priority-key i{display:inline-block;width:8px;height:8px;background:#bd8220;border-radius:50%;margin-right:6px}.process-column-head,.process-row{display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(120px,.65fr) minmax(220px,1.4fr) minmax(180px,1fr);gap:22px}.process-column-head{padding:12px 20px;font-size:10px;font-weight:750;color:#586e6c;letter-spacing:.8px;border-bottom:1px solid #d5e4df}.process-row{padding:23px 20px;border:1px solid #d8e6e1;border-left:4px solid #55a399;border-radius:15px;background:#fff;margin-top:12px;align-items:start}.process-row.priority-urgent{border-left-color:#c48927}.process-row.priority-low{border-left-color:#98abb1}.process-row.case-unread{background:#fffbf2;border-color:#e3c383}.process-row>div{min-width:0}.process-row h3{margin:9px 0 5px}.case-title-button{background:none;color:var(--ink);font-size:16px;padding:0;min-height:30px;text-align:left;justify-content:start;line-height:1.4}.case-title-button:hover{color:var(--brand);box-shadow:none}.process-row p{font-size:13px;margin:8px 0;line-height:1.55}.process-row .process-number{font-size:12px;font-variant-numeric:tabular-nums}.process-row small{display:block;font-size:11px;color:#56706d;margin-top:5px}.process-row .pill,.process-row .new-case-badge{font-size:10px;padding:4px 9px}.process-system strong{display:block;font-size:12px;margin-top:10px}.field-caption{display:block;color:#55716b;font-size:9px;letter-spacing:.6px;font-weight:750}.process-movement time{display:block;font-size:12px;margin:10px 0 5px}.process-movement p,.process-action>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.process-action .quiet{min-height:36px;font-size:12px;padding:6px 12px;margin-top:12px}.process-deadline-strip{grid-column:1/-1;display:flex;gap:16px;align-items:center;border-top:1px solid #e4eae6;padding-top:12px;color:#8b5c1c;font-size:12px}.process-deadline-strip .quiet{min-height:30px;font-size:11px;padding:5px 10px;margin-left:auto}.folder-grid,.case-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.folder-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:7px;border:1px solid #d0e2db;border-radius:18px;padding:20px;background:#f7fbf9;color:var(--ink);min-width:0}.folder-card svg{width:23px;height:23px;color:var(--brand);margin-bottom:5px}.folder-card strong{font-size:15px}.folder-card span,.folder-card small{font-size:12px;font-weight:400;color:var(--muted)}.folder-card:hover{background:#e7f4ef;border-color:#81bcac}.case-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.case-heading h2{font-size:28px;letter-spacing:-.6px}.case-heading p{font-size:14px;color:var(--muted)}.priority-badge{padding:8px 12px;border-radius:20px;background:#e7f4ef;color:#236c5c;font-size:11px;white-space:nowrap}.priority-badge.priority-urgent{background:#fff2dc;color:#946016}.priority-badge.priority-low{background:#edf0f2;color:#536873}.lawyer-detail .case-facts{gap:30px;justify-content:space-between;border-bottom:1px solid #dce8e3;padding-bottom:22px}.party-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.party-grid>div{border-left:3px solid #c5e5db;padding:4px 15px}.party-grid small,.party-grid strong{display:block}.party-grid small{font-size:10px;letter-spacing:.6px;margin-bottom:7px}.party-grid strong{font-size:14px;white-space:pre-wrap}.case-shortcuts{margin:28px 0}.case-operation-grid,.history-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0}.operation-card{border:1px solid #d6e6df;border-radius:18px;padding:22px;background:#fcfefd}.operation-card h3,.deadlines-section h3{font-size:17px;margin:0}.operation-card p{font-size:14px;white-space:pre-wrap}.operation-card .section-heading{margin-bottom:12px}.operation-card .quiet{padding:6px 12px;min-height:34px;font-size:12px}.operation-card .eyebrow{font-size:9px}.monitor-card{background:#edf7f3}.monitor-card h3{font-size:15px}.monitor-card small{font-size:11px}.deadlines-section{margin:30px 0;border-top:1px solid #dce7e2;border-bottom:1px solid #dce7e2;padding:25px 0}.deadlines-section .eyebrow{font-size:9px;margin-bottom:8px}.deadline-row{display:grid;grid-template-columns:150px 1fr auto;gap:18px;align-items:center;padding:16px;border:1px solid #dce7e1;border-radius:14px;margin-bottom:10px}.deadline-row time{display:block;font-weight:750;color:var(--ink);font-size:15px;margin-bottom:7px}.deadline-row .pill{font-size:10px}.deadline-row h3,.deadline-row h4{font-size:15px;margin:0 0 6px}.deadline-row p{font-size:13px;margin:4px 0}.deadline-row small{display:block;font-size:11px}.deadline-row .quiet{font-size:12px;min-height:36px;padding:8px 12px}.deadline-row.date-passed{border-left:3px solid #b7802d;background:#fffaf1}.history-grid h3{font-size:18px}.history-grid .latest-update{margin:12px 0 25px;padding:18px}.event-file{display:block;font-size:12px;margin:10px 0}.history-grid .timeline{max-height:560px;overflow:auto;padding-right:10px}.workspace-dialog{width:min(960px,94vw);max-height:90dvh;border:1px solid #c8ded6;border-radius:24px;padding:26px;color:var(--ink);overflow:auto;box-shadow:0 24px 90px #092e3540}.workspace-dialog::backdrop{background:#072a36a6;backdrop-filter:blur(3px)}.workspace-dialog header{padding:0 0 20px;border-bottom:1px solid #d8e7e0;gap:20px;align-items:start}.workspace-dialog header .eyebrow{font-size:9px;margin-bottom:8px}.workspace-dialog header h2{margin:0;font-size:24px}.workspace-dialog header button{padding:9px 14px;min-height:38px}.workspace-dialog p{font-size:14px}.workspace-dialog .editor-grid{gap:16px}.workspace-dialog .editor-grid.two{grid-template-columns:1fr 1fr}.workspace-dialog label{font-size:12px}.workspace-dialog input,.workspace-dialog textarea,.workspace-dialog select{font-size:14px;padding:12px;border-radius:12px;margin-top:7px}.workspace-dialog form>button{width:auto}.workspace-dialog [role=status]{color:#8e431c;white-space:pre-wrap}.dialog-intro{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:20px 0}.dialog-intro .button{font-size:13px;min-height:40px;padding:10px 16px}.document-list h3{font-size:12px;color:#55716b;text-transform:uppercase;letter-spacing:.6px;margin:24px 0 8px}.document-line{display:flex;gap:14px;align-items:center;border-bottom:1px solid #e2ece7;padding:15px 0}.document-line>svg{width:22px;height:22px;flex:none;color:var(--brand)}.document-line>div{flex:1;min-width:0}.document-line strong{display:block;font-size:13px;overflow-wrap:anywhere}.document-line small{display:block;font-size:11px;margin-top:4px}.document-line a{display:inline-flex;flex:none;font-size:12px;text-decoration:none;padding:7px 12px;border-radius:10px}.document-line a:hover{background:#e6f4ef}.workspace-dialog details{border-top:1px solid #d7e5de;padding-top:20px}.workspace-dialog summary{font-size:14px}
@media(max-width:1100px){.process-row,.process-column-head{grid-template-columns:1fr .6fr 1.15fr;gap:16px}.process-action{grid-column:1/-1;display:flex;gap:14px;align-items:center;border-top:1px solid #e4ece7;padding-top:12px}.process-action .field-caption{min-width:120px}.process-action>p{flex:1;margin:0}.process-action .quiet{margin-top:0}.process-column-head>span:last-child{display:none}.lawyer-detail .case-facts{flex-wrap:wrap;gap:20px}.case-heading{flex-wrap:wrap}}
@media(max-width:700px){.lawyer-overview{padding:20px 14px}.process-column-head{display:none}.process-row{grid-template-columns:1fr 1fr;padding:18px 14px;gap:18px 12px}.process-identity{grid-column:1/-1}.process-movement{grid-column:1/-1}.process-action{display:block}.process-action>p{margin:10px 0}.process-action .quiet{margin-top:12px}.process-deadline-strip{flex-wrap:wrap;gap:8px}.priority-key{margin:6px 0;font-size:11px}.process-filters{gap:10px}.process-filters .filter-label{min-width:0;flex:1 1 150px}.process-row .process-system{grid-column:1/-1}.folder-grid{grid-template-columns:1fr 1fr}.case-shortcuts{grid-template-columns:1fr;gap:10px}.case-shortcuts .folder-card{display:grid;grid-template-columns:28px 1fr;padding:16px;gap:4px 12px}.case-shortcuts .folder-card svg{grid-row:1/3;margin:0}.case-shortcuts .folder-card span{grid-column:2}.case-operation-grid,.history-grid,.party-grid{grid-template-columns:1fr;gap:16px}.case-heading h2{font-size:23px}.deadline-row{grid-template-columns:1fr;gap:10px}.deadline-row>div:first-child{display:flex;gap:12px;align-items:center}.deadline-row time{margin:0}.deadline-row button{justify-self:start}.workspace-dialog{padding:20px 16px;border-radius:20px}.workspace-dialog .editor-grid,.workspace-dialog .editor-grid.two{grid-template-columns:1fr;gap:2px}.workspace-dialog header h2{font-size:21px}.dialog-intro{align-items:start;flex-direction:column}.document-line{gap:10px}.document-line>svg{display:none}.document-line a{padding:8px}.portal-nav{overflow:auto}.portal-nav button{flex:1 0 auto}.workspace-page .portal-hero h1{font-size:31px}.lawyer-detail .case-facts strong{font-size:14px}}
@media(prefers-reduced-motion:no-preference){.folder-card,.process-row{transition:background .18s,border-color .18s,box-shadow .18s}.folder-card:hover{transform:translateY(-2px)}}

/* Compact expandable process list. */
.case-fold{border:1px solid #d5e4df;border-radius:14px;background:white;overflow:hidden}
.case-fold.case-unread{border-color:#d5ad66;background:#fffcf5}
.case-fold>summary{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(120px,.8fr) minmax(130px,1fr) 26px;align-items:center;gap:16px;padding:18px 20px;cursor:pointer;list-style:none}
.case-fold>summary::-webkit-details-marker{display:none}.case-fold>summary:after{content:none}
.fold-identity strong,.fold-identity small{display:block}.fold-identity strong{font-size:16px}.fold-identity small{font-size:12px;margin-top:5px;color:var(--muted)}
.fold-state{display:flex;gap:6px;flex-wrap:wrap}.fold-counts{font-size:12px;color:var(--muted)}
.fold-symbol{font-size:25px;text-align:center;color:var(--brand)}.fold-symbol:before{content:'+'}.case-fold[open]>summary>.fold-symbol:before{content:'−'}
.case-fold[open]>summary{border-bottom:1px solid #d5e4df;background:#f2f8f6}
.case-fold .process-row{border:0;border-radius:0;background:transparent;grid-template-columns:.8fr 1.4fr 1fr;padding:20px;box-shadow:none}
.case-fold .process-identity{display:none}.fold-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-column:1/-1;border-top:1px solid #e0eae6;padding-top:14px;font-size:12px}
.fold-controls{display:flex;gap:8px;margin-left:auto}.fold-controls .quiet{font-size:12px;padding:8px 12px;min-height:40px}.lawyer-overview .process-column-head{display:none}
@media(max-width:700px){.case-fold>summary{grid-template-columns:1fr 26px;padding:15px;gap:10px}.fold-identity{grid-column:1;grid-row:1}.fold-symbol{grid-column:2;grid-row:1/4}.fold-state,.fold-counts{grid-column:1}.case-fold .process-row{grid-template-columns:1fr;padding:16px}.fold-controls{margin-left:0;flex-wrap:wrap}.fold-tools{align-items:flex-start;flex-wrap:wrap}}

/* Compact, expandable judicial history, matching the office workflow. */
.court-history{border:1px solid #cedbd6;border-radius:12px;background:#fff;margin:24px 0;overflow:hidden}.court-history>summary{display:grid;grid-template-columns:1fr auto 24px;gap:24px;align-items:center;padding:18px 20px;cursor:pointer;list-style:none}.court-history summary::-webkit-details-marker{display:none}.court-history>summary small{display:block;font-size:10px;letter-spacing:1px;color:var(--brand);font-weight:750;margin-bottom:5px}.court-history>summary strong{font-size:17px;font-weight:600}.court-history>summary>span:nth-child(2){font-size:12px;color:var(--muted)}.court-history .fold-symbol:before{content:'+'}.court-history[open]>summary>.fold-symbol:before,.court-event[open]>summary>.fold-symbol:before{content:'−'}.court-history-content{border-top:1px solid #e1e8e4;padding:16px}.history-search{display:flex;align-items:center;gap:12px;margin-bottom:14px}.history-search .search-label{flex:1}.history-search>small{font-size:10px;color:var(--muted)}.history-result{font-size:12px;color:var(--muted);margin:6px 0 12px}.court-history-scroll{max-height:440px;overflow:auto;overscroll-behavior:auto;scrollbar-gutter:stable}.court-event{border-top:1px solid #dce4df;padding:0;margin:0}.court-event>summary{display:grid;grid-template-columns:100px minmax(0,1fr) 90px 20px;gap:14px;align-items:start;padding:17px 4px;cursor:pointer;list-style:none}.court-event time{font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}.court-event time small{display:block;color:var(--brand);font-size:11px;font-weight:700}.court-event-title{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.court-event-count{font-size:11px;text-align:right;color:var(--muted);padding-top:3px}.court-event .fold-symbol{font-size:20px;color:var(--brand);text-align:center}.court-event-body{margin:0 30px 16px 114px;border:1px solid #dce4df;border-radius:10px;padding:15px;background:#fafcfb}.court-event-body p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;margin:0 0 12px}.court-event-body>small{font-size:11px;color:var(--muted)}.court-event-files{display:flex;flex-wrap:wrap;gap:8px}.court-event-files .event-file{display:flex;align-items:center;gap:8px;text-align:left;white-space:normal;border-radius:10px;min-height:36px;padding:8px 12px}.event-file svg{width:16px;height:16px;flex:none}.court-event[hidden]{display:none}.lawyer-detail .history-grid{display:block}.lawyer-detail .history-grid>section{margin-top:24px}.case-latest-compact .latest-update{margin:10px 0;padding:16px 20px}.case-latest-compact p{font-size:14px}.document-preview.workspace-dialog{width:96vw;height:94dvh;max-height:94dvh;padding:16px;display:flex;flex-direction:column}.document-preview:not([open]){display:none}.document-preview header{flex:none;padding:0 0 10px}.document-preview header h2{font-size:16px;overflow-wrap:anywhere}.document-preview header .eyebrow{display:none}.document-preview-body{flex:1;min-height:0;background:#e8ebe9;overflow:auto;text-align:center}.document-preview-body iframe{width:100%;height:100%;border:0;min-height:55vh}.document-preview-body img{max-width:100%;height:auto}.document-preview>[role=status]:empty{display:none}.court-history summary:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
@media(max-width:700px){.court-history>summary{grid-template-columns:1fr auto;gap:10px;padding:16px}.court-history>summary>span:nth-child(2){grid-row:2;font-size:11px}.court-history>summary>.fold-symbol{grid-column:2;grid-row:1/3}.court-history>summary strong{font-size:15px}.history-search{display:block}.history-search>small{display:block;margin-top:8px}.court-history-content{padding:10px}.court-event>summary{grid-template-columns:76px minmax(0,1fr) 20px;gap:8px;padding:15px 2px}.court-event-count{grid-column:2;text-align:left;padding:0}.court-event>summary .fold-symbol{grid-column:3;grid-row:1/3}.court-event-title{font-size:12px}.court-event time{font-size:10px}.court-event-body{margin:0 0 12px;padding:12px}.document-line{flex-wrap:wrap}.document-line>div{flex-basis:70%}.document-line button{font-size:12px;padding:8px 12px;min-height:34px}.document-preview.workspace-dialog{width:100vw;height:96dvh;padding:10px;border-radius:12px}}

.process-row>.court-history{grid-column:1/-1;min-width:0;margin:0;width:100%;box-sizing:border-box}

.case-ai-summary{border:1px solid #c7dfda;border-radius:18px;margin:18px 0;padding:18px}.case-ai-summary>summary{display:flex;justify-content:space-between;cursor:pointer}.analysis-text{white-space:pre-line;line-height:1.65}.event-analysis{border-top:1px solid #dbe7e4;margin-top:18px;padding-top:14px}.case-ai-summary>div{padding-top:14px}

/* Collapsed lawyer rows retain the information needed for daily review. */
.lawyer-overview .process-column-head,.case-fold>summary{grid-template-columns:minmax(190px,1.2fr) minmax(95px,.55fr) minmax(150px,.9fr) minmax(190px,1.35fr) minmax(125px,.75fr) 24px;gap:18px}
.lawyer-overview .process-column-head{display:grid}.process-column-head>span:last-child{display:block}
.case-fold>summary>span{min-width:0}.fold-cnj{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.fold-cnj small{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.copy-process.quiet{padding:3px 7px;min-height:30px;font-size:17px;border-radius:7px;flex-shrink:0}.fold-identity strong{font-size:15px;line-height:1.4}.fold-identity .fold-party{font-size:10px;font-weight:400;line-height:1.4}.fold-system strong,.fold-movement time{display:block;font-size:12px;font-weight:700}.fold-movement small,.fold-action small{display:block;font-size:11px;color:var(--muted);margin-top:6px;line-height:1.4}.fold-action>span:not(.field-caption){font-size:12px;line-height:1.5;white-space:pre-line;display:block;overflow-wrap:anywhere}.fold-status{display:flex;flex-direction:column;align-items:flex-end;gap:7px;text-align:right}.fold-status .pill,.fold-status .new-case-badge{font-size:10px;padding:5px 9px;white-space:normal}.fold-counts:empty{display:none}.fold-counts{font-size:11px;color:#8b5c1c}.case-fold>summary .field-caption{display:none}
@media(max-width:1100px){.lawyer-overview .process-column-head{display:none}.case-fold>summary{grid-template-columns:minmax(180px,1.2fr) minmax(150px,1fr) minmax(130px,.8fr) 24px}.fold-identity{grid-column:1;grid-row:1}.fold-system{grid-column:1;grid-row:2}.fold-movement{grid-column:2;grid-row:1}.fold-action{grid-column:2;grid-row:2}.fold-status{grid-column:3;grid-row:1/3}.case-fold>summary>.fold-symbol{grid-column:4;grid-row:1/3}.case-fold>summary .field-caption{display:block;margin-bottom:5px}}
@media(max-width:700px){.case-fold>summary{grid-template-columns:minmax(0,1fr) 24px;gap:15px;padding:16px}.fold-identity,.fold-system,.fold-movement,.fold-action,.fold-status{grid-column:1;grid-row:auto}.case-fold>summary>.fold-symbol{grid-column:2;grid-row:1}.fold-status{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center}.fold-identity strong{font-size:15px}}

.deferred-document-alert{border:1px solid #edb4b4;border-left:5px solid #b42318;background:#fff2f1;color:#8d201b;padding:18px 22px;border-radius:16px;margin:22px 0}.deferred-document-alert p{color:inherit;margin:8px 0}.deferred-document-alert ul{margin:8px 0;padding-left:22px}.deferred-document-badge{color:#a51d17!important;font-weight:700;background:#fff0ee;border-radius:8px;padding:5px 8px}

.case-lawyer-contact{display:inline-flex;align-items:center;min-height:44px;padding:2px 0;color:var(--brand);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;line-height:1.4}
.case-lawyer-contact:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:3px}

.client-fold>summary{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) minmax(0,.6fr) 16px;align-items:center;gap:12px;cursor:pointer}
.client-fold>summary>.pill{justify-self:end;max-width:100%;overflow-wrap:anywhere}
.client-fold>summary>.fold-symbol{grid-column:4;grid-row:1}
.client-fold .fold-identity{min-width:0;overflow-wrap:anywhere}
/* Expanded client cases share the compact proportions of the lawyer's case list. */
.client-case-body{padding:16px clamp(14px,2vw,24px) 20px;overflow-wrap:anywhere}
.client-case-meta{display:grid;grid-template-columns:minmax(275px,.85fr) minmax(170px,1fr) auto;align-items:start;gap:12px 24px}
.client-case-meta>div>small,.client-case-meta>div>strong{display:block}
.client-case-meta>div>small{font-size:12px;color:var(--muted);line-height:1.4}
.client-case-meta>div>strong{font-size:15px;line-height:1.4;margin:3px 0;color:var(--ink)}
.client-case-meta .case-lawyer-contact{display:inline-flex;min-height:34px;align-items:center;gap:5px;align-self:flex-start;box-sizing:border-box;max-width:100%;margin:7px 0 3px;padding:7px 11px;background:var(--brand);border-radius:9px;border:0;color:#fff;font-size:13px;font-weight:500;text-decoration:none}
.case-lawyer-contact img{height:16px;width:auto;filter:brightness(0) invert(1)}
.client-case-meta .case-lawyer-contact:hover{background:#065e56;text-decoration:none}
.client-case-meta .client-documents{display:inline-flex;align-items:center;align-self:center;justify-self:end;gap:7px;padding:6px 10px;min-height:36px;margin:0;border:1px solid #d6e4df;border-radius:9px;background:white;color:#16423e;font-size:13px;font-weight:600}
.client-documents svg{width:16px;height:16px}
.document-count{padding:2px 5px;border-radius:5px;background:#edf5f2;font-size:11px;font-variant-numeric:tabular-nums}
.client-history{border:1px solid #d8e5e1;border-radius:12px;margin-top:10px}
.client-history h3{padding:11px 15px;margin:0;border-bottom:1px solid #e1ebe7;font-size:15px;line-height:1.3}
.client-history-scroll{max-height:min(34vh,300px);overflow-y:auto;overscroll-behavior-y:auto;scrollbar-gutter:stable;scrollbar-width:thin}
.client-history-scroll:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.client-history .timeline{margin:12px 12px 12px 20px;padding:0 0 0 15px;border-left:1px solid #c6ddd5;overflow:visible;max-height:none}
.client-history .timeline article{margin:0;padding-bottom:14px}
.client-history .timeline article:last-child{padding-bottom:0}
.client-history .timeline article::before{width:7px;height:7px;left:-21px;top:4px}
.client-history .timeline time,.client-history .timeline strong{display:block}
.client-history .timeline time{font-size:12px;color:var(--muted)}
.client-history .timeline p,.client-history .court-event-files{margin:4px 0 0}
@media(min-width:801px){
 .client-case-meta>div:first-child>strong{font-size:13px}
}
@media(max-width:800px){
 .client-case-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
 .client-case-meta>div:first-child{display:contents}
 .client-case-meta>div:first-child>small,.client-case-meta>div:first-child>strong{flex:0 0 100%}
 .client-case-meta .case-lawyer-contact,.client-case-meta .client-documents{order:1;align-self:center;margin:5px 0 0;min-height:36px;padding:5px 8px;gap:4px}
 .client-case-meta .contact-prefix{display:none}
 .client-case-meta .case-lawyer-contact img{height:14px}
 .client-case-meta .client-documents{font-size:12px}
 .client-documents svg{width:14px;height:14px}
 .client-case-meta .client-process{order:2;flex:0 0 100%;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 7px;margin-top:10px}
 .client-case-meta .client-process strong{margin:0;font-size:14px}
 .client-process small:empty{display:none}
 .client-history-scroll{max-height:min(36svh,270px)}
}
@media(max-width:360px){.client-documents .doc-suffix{display:none}}

.client-summary-movement{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.client-summary-movement small,.client-summary-movement strong{display:block}
.client-summary-movement small{font-size:12px;color:var(--muted)}
.client-summary-movement strong{font-size:14px;margin-top:3px;color:var(--ink)}
@media(max-width:700px){
 .client-fold>summary{grid-template-columns:minmax(0,1fr) minmax(0,.95fr) 14px;gap:8px}
 .client-fold>summary>.fold-identity{grid-column:1;grid-row:1}
 .client-fold>summary>.client-summary-movement{grid-column:2;grid-row:1}
 .client-fold>summary>.pill{grid-column:1/3;grid-row:2;justify-self:start}
 .client-fold>summary>.fold-symbol{grid-column:3;grid-row:1}
}
.client-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(145px,100%),1fr));gap:14px;margin:12px 0 20px}
.client-file-tile{display:grid;text-align:left;align-content:start;gap:0;padding:0;overflow:hidden;min-width:0;border:1px solid #d6e4df;border-radius:14px;background:white;color:var(--ink)}
.client-file-tile:hover,.client-file-tile:focus-visible{border-color:var(--brand);box-shadow:0 3px 12px #183d3514}
.file-sheet{width:100%;aspect-ratio:1;display:grid;place-items:center;background:#f0f5f3;border-bottom:1px solid #dce8e4;padding:12px;overflow:hidden}
.file-sheet img,.file-sheet canvas{display:block;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 2px 8px #183d3522}
.sheet-placeholder{display:grid;place-items:center;width:50%;height:75%;background:white;border:1px solid #d6e4df;color:#477168}
.sheet-placeholder svg{width:26px;height:26px}
.tile-info{padding:10px 12px;display:grid;gap:4px;min-width:0}
.tile-info strong{font-size:14px}.tile-info small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.client-case-gallery+.client-case-gallery{margin-top:24px}.gallery-empty{color:var(--muted)}
@media(max-width:520px){.client-file-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}

body.auth-page,body.workspace-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>footer{margin-top:auto;flex:none}
.workspace-page #portal{width:100%}

dialog.workspace-dialog.push-settings {
 width: min(28rem, calc(100vw - 2rem));
 height: auto;
 max-height: 85dvh;
}
.push-settings header { gap: 1rem; align-items: flex-start; }
.push-settings h2 { font-size: clamp(1.25rem, 4vw, 1.5rem); }
.push-settings [role="status"] { color: var(--muted); font-size: .9rem; }
.push-settings [hidden] { display: none; }

.client-history-scroll .court-event { margin:0 0 6px; }
.client-history-scroll .court-event-body { margin-inline:0; }
.client-history-scroll .court-event-title { font-weight:650; }
.client-history-scroll .court-event-body p { margin-bottom:8px; }
.client-history-scroll .court-event-body strong { display:inline; font-size:inherit; }

.document-preview-tools,.document-share-choices{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.document-preview-tools{flex:none;padding:9px 0 0}
.workspace-dialog .document-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-width:38px;min-height:38px;padding:6px 10px;border:1px solid #c7cfce;border-radius:9px;background:white;color:#455455;font:600 14px/1.3 system-ui;text-decoration:none;cursor:pointer}
.document-preview-tools .document-action{width:38px;padding:0}
.workspace-dialog .document-action:hover{background:#f2f5f4;border-color:#929f9c}
.workspace-dialog .document-action:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.document-share-dialog.workspace-dialog{width:min(28rem,94vw);height:auto;max-height:88dvh}
.document-share-choices{justify-content:flex-start}
.document-share-dialog p{overflow-wrap:anywhere}
.document-share-dialog [role=status]:empty{display:none}
@media(pointer:coarse){.workspace-dialog .document-action{min-width:44px;min-height:44px}}

.lawyer-fold>summary{grid-template-columns:minmax(0,.94fr) minmax(0,1.26fr) clamp(9rem,12vw,11.5rem) 24px;gap:18px}
.workspace-page details.lawyer-fold.case-unread{position:relative;border-width:1px}
.workspace-page details.lawyer-fold.case-unread::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#b92b3e;pointer-events:none}
.lawyer-fold .fold-identity .fold-checked{margin-top:5px;font-size:11px;font-weight:450;line-height:1.35;color:var(--muted);font-variant-numeric:tabular-nums}
.lawyer-fold>summary>span{grid-column:auto;grid-row:auto}
.lawyer-fold .fold-brief{display:grid;gap:4px;color:var(--muted);font-size:13px}
.lawyer-fold .fold-brief-long{font-size:12px}
.lawyer-fold .filing-status{display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:100%}
.lawyer-fold .case-estimate{display:flex;justify-content:space-between;align-items:baseline;gap:8px;width:100%;color:var(--muted);font-size:11px;line-height:1.35}
.lawyer-fold .case-estimate strong{font-weight:650;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
@media(min-width:701px){.lawyer-overview:has(.case-estimate) .lawyer-fold>summary{grid-template-columns:minmax(0,.94fr) minmax(0,1.26fr) clamp(11.5rem,16vw,14.5rem) 24px}}
.case-viewed{color:var(--muted);font-size:12px}
@media(max-width:700px){.lawyer-fold>summary{grid-template-columns:minmax(0,1fr) 24px;gap:8px}.lawyer-fold>summary>.fold-symbol{grid-column:2;grid-row:1}.lawyer-fold>summary>.fold-brief,.lawyer-fold>summary>.fold-status{grid-column:1}.lawyer-fold .fold-brief:empty{display:none}}

.lawyer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.lawyer-toolbar h2{margin:0;line-height:1.2;letter-spacing:-.035em;overflow-wrap:normal}
.lawyer-toolbar-actions{display:flex;align-items:center;gap:6px;flex:none}
.lawyer-toolbar-actions button{min-height:44px;white-space:nowrap}
.lawyer-toolbar-actions .lawyer-refresh{display:inline-grid;place-items:center;width:44px;padding:0;border-radius:50%}
.lawyer-refresh svg{width:19px;height:19px}
@media(max-width:700px){
 .lawyer-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:16px}
 .lawyer-toolbar h2{font-size:clamp(1.22rem,5.6vw,1.6rem)}
 .lawyer-toolbar-actions{justify-self:start}
 .lawyer-overview .process-filters,.lawyer-overview .search-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .lawyer-overview .filter-label,.lawyer-overview .search-label,.lawyer-overview select,.lawyer-overview input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 .lawyer-overview .priority-key{margin:0}
 .lawyer-overview .fold-controls{display:flex;gap:8px;flex-wrap:wrap}
 .workspace-page:has(.lawyer-overview,.lawyer-detail) .account-bar{display:grid;gap:12px}
 .workspace-page:has(.lawyer-overview,.lawyer-detail) .account-actions{display:flex;flex-wrap:wrap}
 .workspace-page:has(.lawyer-overview,.lawyer-detail) .account-actions button{white-space:nowrap;min-height:44px}
 .workspace-page:has(.lawyer-overview,.lawyer-detail) .portal-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .lawyer-metrics button{padding:14px;min-width:0}
}

dialog.workspace-dialog.push-settings{
 inset:0;margin:auto;min-height:0;height:fit-content;max-height:calc(100dvh - 32px);
 padding:24px;border:1px solid #c6dcd7;border-radius:22px;box-shadow:0 18px 64px #123d3826;
}
.push-settings header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.push-settings header button{white-space:nowrap;flex-shrink:0}
.push-settings header h2{margin:0;line-height:1.2}
.push-settings p{line-height:1.5}

.case-shortcuts .folder-card strong,.case-shortcuts .folder-card span{min-width:0;word-break:normal;overflow-wrap:normal;hyphens:none;text-wrap:pretty}
@media(max-width:700px){.case-shortcuts .folder-card{grid-template-columns:24px minmax(0,1fr);align-content:center;min-height:72px}.case-shortcuts .folder-card strong,.case-shortcuts .folder-card span{grid-column:2}}
.petition-dialog header{align-items:flex-start;gap:12px}.petition-dialog textarea{width:100%;box-sizing:border-box;line-height:1.55}.petition-dialog .petition-actions{display:flex;flex-wrap:wrap;gap:8px}.petition-dialog [data-reading]{font-size:.9rem;color:var(--muted);margin:12px 0}

.workspace-page button.next-action-text {
 display:block;width:100%;min-width:0;min-height:0;margin:0;padding:0;
 background:transparent;color:inherit;border:0;border-radius:4px;box-shadow:none;
 font:inherit;text-align:start;white-space:pre-line;overflow-wrap:anywhere;
}
.workspace-page button.next-action-text:hover,
.workspace-page button.next-action-text:focus-visible {color:var(--teal,#08786d);text-decoration:underline;text-underline-offset:3px}
.lawyer-fold .fold-brief .next-action-text {
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;
 white-space:normal;overflow:hidden;line-height:1.45;
}

.case-fold .process-row {grid-template-columns:minmax(110px,.64fr) repeat(2,minmax(0,1fr))}
.case-fold .process-action {grid-column:auto;display:block;border:0;padding:0}
.case-fold .process-action .quiet {margin-top:8px}
.movement-summary {display:grid;gap:4px;min-width:0}
.movement-meta {display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap}
.movement-meta strong {font-size:13px}
.movement-meta time,.movement-summary>small {font-size:11px;color:var(--muted);margin:0}
.movement-summary p,.movement-excerpt summary {font-size:13px;line-height:1.45;margin:0;overflow-wrap:anywhere}
.movement-summary .movement-excerpt {margin:0;padding:0}
.movement-excerpt summary {display:flex;align-items:baseline;gap:8px;cursor:pointer;list-style:none}
.movement-excerpt summary::-webkit-details-marker {display:none}
.movement-excerpt summary::after {content:'▾';margin-left:auto;color:var(--brand)}
.movement-excerpt[open] summary::after {content:'▴'}
.movement-excerpt:not([open]) summary span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.movement-excerpt[open] summary span {white-space:pre-line}
.lawyer-detail>.movement-summary {margin:16px 0;padding:10px 14px;border:1px solid #d6e6df;border-radius:12px;grid-template-columns:minmax(140px,auto) minmax(0,1fr);align-items:baseline;column-gap:20px}
.lawyer-fold .fold-status .open-deadline-count {font:inherit;font-size:12px;color:#835614;background:#fff8e9;border:0;padding:4px 8px;min-height:28px;white-space:normal}
.deadline-card-item {padding:12px 0;border-top:1px solid #d6e6df}
.deadline-card-item h3,.deadline-card-item p {margin:0 0 4px}
.deadline-card-item small {color:var(--muted)}
.deadline-card-item dl {display:grid;gap:8px;margin:12px 0}
.deadline-card-item dt {color:var(--muted);font-size:12px}
.deadline-card-item dd {margin:2px 0;white-space:pre-line;overflow-wrap:anywhere}
.deadline-card-item button {display:block;margin-top:10px}
@media(max-width:700px){
 .case-fold .process-row {grid-template-columns:minmax(0,1fr)}
 .lawyer-detail>.movement-summary {grid-template-columns:1fr}
}

.movement-feed article {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;align-items:start;gap:12px 18px;padding:14px 0;border-bottom:1px solid #d6e6df}
.movement-feed h3 {margin:0;font-size:15px}
.movement-feed small {font-size:12px;color:var(--muted)}
.movement-feed .quiet {justify-self:start;min-height:34px;padding:6px 12px;font-size:12px}
@media(max-width:700px){
 .movement-feed article {grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}
 .movement-feed .movement-summary {grid-column:1/-1}
 .movement-feed .quiet {grid-column:2;grid-row:1}
}

.petition-mode{display:flex;gap:6px;margin:16px 0 12px}
.petition-mode button[aria-pressed=true]{color:#fff;background:#08786d}
.petition-dialog .petition-paper{padding:clamp(18px,5vw,62px);background:#fff;border:1px solid #d6e2de;border-radius:8px}
.petition-dialog textarea#petition-text{padding:18px;line-height:1.7}
@media(max-width:560px){.petition-dialog .petition-paper p{text-align:left;text-indent:1.2em}.petition-dialog .petition-paper .signature,.petition-dialog .petition-paper .closing{text-align:center;text-indent:0}}
/* Setup dialog for the editable initial petition. */
dialog.petition-options{width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid #cdded9;border-radius:20px;box-shadow:0 20px 70px #102d3c26}
.petition-options form{display:grid;gap:14px;margin:0}
.petition-options header{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:0 0 12px;align-items:center;gap:0 8px;border-color:#e1eae7}
.petition-options h2{margin:0;font-size:20px;line-height:1.22;letter-spacing:-.03em}
.petition-options header p{grid-column:1/-1;margin:0;font-size:13px;line-height:1.4;color:#52656a;overflow-wrap:anywhere}
.petition-options .petition-dismiss{flex:none;min-height:36px;width:36px;padding:0;border-radius:50%;font:400 22px/1 system-ui}
.petition-options fieldset{border:0;margin:0;padding:0;min-width:0}
.petition-options legend,.petition-options .petition-value>label{padding:0;margin:0 0 6px;font-size:13px;font-weight:650}
.petition-options .petition-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.petition-options .petition-choices label{display:flex;align-items:center;justify-content:center;gap:7px;margin:0;min-height:38px;border:1px solid #cfdfda;border-radius:10px;font-size:13px;cursor:pointer}
.petition-options .petition-choices label:has(:checked){background:#e6f3ef;border-color:#08786d;color:#075e55}
.petition-options input:is([type=radio],[type=checkbox]){appearance:auto;width:15px;height:15px;min-height:0;margin:0;padding:0;accent-color:#08786d}
.petition-options .petition-money{display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #bfd2cd;border-radius:10px}
.petition-money:focus-within{outline:2px solid #08786d;outline-offset:1px}
.petition-money span{font-weight:600;color:#52656a;font-size:13px}
.petition-options .petition-money input{width:100%;min-width:0;min-height:38px;padding:4px 0;border:0;outline:0;font-size:16px;font-variant-numeric:tabular-nums}
.petition-options .petition-value small{display:block;margin-top:4px;color:#52656a;font-size:12px}
.petition-options .petition-checks{display:grid;gap:4px}
.petition-options .petition-waiver{display:grid;grid-template-columns:15px 1fr;align-items:start;gap:9px;margin:0;padding:4px 0;font-size:13px;font-weight:500;line-height:18px;cursor:pointer}
.petition-options .petition-waiver input{margin-top:1.5px}
.petition-options .petition-defendant{margin:0;font-size:13px}
.petition-options button.petition-generate{margin:0;min-height:42px;padding:8px;border-radius:11px;font-size:14px}
@media(max-width:520px),(max-height:600px){dialog.petition-options{padding:16px}.petition-options form{gap:10px}.petition-options header{padding-bottom:9px}}

.petition-dialog .petition-exports{margin:.6rem 0 1.1rem}
dialog.petition-loading{width:min(300px,85vw);margin:auto;padding:16px;background:transparent;border:0;color:#123633;text-align:center;overflow:visible}
.petition-loading::backdrop{background:rgba(245,250,249,.88);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.petition-loading img{display:block;margin:0 auto;border-radius:15px;box-shadow:0 8px 20px #08372f22}
.petition-loading p{margin:12px 0 4px;font-size:14px;font-weight:600}
.petition-loading [role=status]:focus{outline:none}
dialog.petition-loading button{min-height:36px;padding:4px 12px;border:0;background:transparent;color:#08786d;box-shadow:none;font-size:13px;font-weight:600;-webkit-tap-highlight-color:transparent}
dialog.petition-loading button:focus-visible{outline:0;text-decoration:underline;text-underline-offset:.22em}
.petition-dialog [data-petition-pending]{margin:12px 0;padding:12px 16px;border-inline-start:3px solid #aa273a;background:#fff2f2;color:#842434}
.petition-dialog [data-petition-pending] ul{margin:6px 0 0;padding-inline-start:18px}
.petition-paper mark{background:#fff2a8;color:inherit}
@media(prefers-reduced-motion:no-preference){.petition-loading img{animation:petition-pulse 1.4s ease-in-out infinite}@keyframes petition-pulse{50%{transform:scale(.92);opacity:.72}}}

.petition-dialog [data-schools] form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:10px}.petition-dialog [data-schools] label{flex:1 1 15rem;min-width:0}.petition-dialog [data-schools] input{width:100%}

.petition-dialog [data-petition-pending] li{margin:.25rem 0}.petition-dialog [data-petition-pending] li::marker{color:#995019}.petition-dialog [data-petition-pending] li{background:#fff2ac;color:#492e22;padding:2px 5px}

.petition-ledger{overflow-x:auto}.petition-ledger table{width:100%;border-collapse:collapse;font-size:.84rem}.petition-ledger th,.petition-ledger td{padding:.4rem;text-align:right;white-space:nowrap;border-bottom:1px solid #d4e4df}.petition-ledger th:first-child,.petition-ledger td:first-child{text-align:left}

html.has-document-layer { overflow: hidden; overscroll-behavior: none; }
html.has-document-layer body {
 position: fixed;
 top: var(--document-page-top);
 inset-inline: 0;
 width: 100%;
}
dialog.document-collection[open] {
 display: flex;
 flex-direction: column;
 max-height: min(90dvh, calc(100dvh - 24px));
 overflow: hidden;
}
dialog.document-collection > header { flex: none; }
.document-collection-scroll, .document-preview-body {
 min-height: 0;
 overflow-y: auto;
 overscroll-behavior: contain;
}
.document-collection-scroll { flex: 1 1 auto; }
dialog.document-preview { overflow: hidden; }
dialog.document-collection::backdrop, dialog.document-preview::backdrop,
dialog.document-share-dialog::backdrop { touch-action: none; }
.document-page { margin: 0 auto 8px; width: 100%; background: white; }
.document-page canvas { display: block; width: 100%; height: auto; }
.document-page-text {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 overflow: hidden;
 clip-path: inset(50%);
}

.case-split-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.7em;height:1.7em;border-radius:50%;background:#08786d;color:white;font-size:.8em;margin-left:.45em;vertical-align:middle;font-weight:700}.workspace-dialog input[inputmode="decimal"]{font-variant-numeric:tabular-nums}

.pill.filing-pending{background:#fff0f0;color:#a61b29;border:1px solid #edb3b8;font-weight:750}

.case-filing-divider{display:flex;align-items:center;gap:12px;margin:10px 0 2px;color:var(--muted);font-size:12px;font-weight:500;grid-column:1/-1}
.case-filing-divider::before,.case-filing-divider::after{content:"";height:1px;background:#dce8e5;flex:1}
