/* Staff interface only. Keep permissions and semantic status colours authoritative. */
:root{--workspace-heading:#173b5d;--workspace-muted:#4a637d;--workspace-border:#dbe4ec}
h1,h2,h3{color:var(--workspace-heading);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.sidebar-content>h1{font-size:26px;letter-spacing:-.35px;margin:0 0 22px}
.panel>h2{font-size:18px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid #e8edf3}
aside h2{font-size:13px;font-weight:600;letter-spacing:.1px;text-transform:none;color:var(--workspace-muted)}
form{width:100%;max-width:680px;padding:20px;gap:16px 20px;border-color:var(--workspace-border);border-radius:8px}
form>label{font-size:13px;font-weight:600;color:#334f68;line-height:1.5;min-width:0;margin:0}
input,select,textarea{min-width:0;max-width:100%;border:1px solid #bccbd9;border-radius:6px;color:#193b56;background:#fff;line-height:1.5}
input:not([type=checkbox]):not([type=radio]),select{min-height:40px}
textarea{min-height:112px;padding:10px 12px}
input:focus,select:focus,textarea:focus{outline:3px solid #28679f25;outline-offset:1px;border-color:#28679f}
input[type=checkbox],input[type=radio]{accent-color:#1f4e79;flex-shrink:0}
button{font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere;max-width:100%;border-radius:6px}
button.secondary{border-color:var(--workspace-border)}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #28679f80;outline-offset:3px}
form>button{justify-self:start;margin:2px 0 0}
summary{font-weight:600;color:var(--workspace-heading);line-height:1.5;overflow-wrap:anywhere}
.matter-tools,.office-actions,.workspace-toolbar{row-gap:10px}
.workspace-toolbar{flex-wrap:wrap}
.workspace-row,.document,.finding{min-width:0}
dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--workspace-border);border-radius:10px;padding:24px}
dialog h2{margin:0 0 14px}
dialog form{max-width:100%;margin:0;padding:0;border:0}
@media(max-width:1100px),(any-pointer:coarse){
 input:not([type=checkbox]):not([type=radio]),select{min-height:44px!important;font-size:16px}
 button:not(.sidebar-backdrop),details>summary{min-height:44px}
}
@media(max-width:900px){form{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .sidebar-content>h1{font-size:23px;margin-bottom:18px}
 .panel>h2{font-size:18px}
 form{padding:16px;gap:16px}
 form>button{max-width:100%;justify-self:stretch}
 dialog{padding:18px}
 .workspace-toolbar>button{align-self:flex-start}
}
@media(max-width:480px){
 .matter-tools{gap:8px 12px}
 .office-actions{display:flex;flex-direction:column;align-items:stretch}
 .office-actions>button{width:100%;margin:0}
}
