/* Calm, readable workspace; scoped overrides preserve the existing domain UI. */
:root{--ws-accent:var(--v);--ws-soft:var(--accent-soft);--ws-muted:var(--m);--r:14px;--sh:0 2px 5px #17233b04}
body{font-size:16px;line-height:1.5;background:var(--bg)}
html[data-theme=dark]{--ws-soft:color-mix(in srgb,var(--v) 14%,var(--p));--ws-muted:var(--m)}
html[data-theme=dark] body{background:var(--bg)}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9e8be4!important;outline-offset:3px}
button{transition:background .15s,border-color .15s,box-shadow .15s}
.main{padding:0 32px 36px!important;min-width:0!important}
.institution-topbar{position:relative!important;inset:auto!important;width:auto!important;margin:0 -32px 0!important;padding:16px 32px!important;min-height:82px!important;border-radius:0!important;box-shadow:none!important;border-bottom:1px solid var(--l)!important;gap:20px!important}
.office-name,.current-user-name{font-size:14px!important}.current-user-role{font-size:12px!important}
.office-logo-fallback,.office-logo-fallback img{width:40px!important;height:40px!important;border-radius:11px!important}
.institution-brand{min-width:0!important}.institution-user{margin-left:auto;flex-shrink:0}
.side{padding:24px 16px!important;background:var(--side-accent)!important}
.side .brand{padding-bottom:24px!important}.side .group{margin-top:30px!important}.side h6{font-size:10px!important;letter-spacing:.11em!important}
.side .nav button{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px!important;font-size:14px!important;border-radius:9px!important;position:relative}
.side .nav button.active{background:#6150ac40!important;color:#fff!important}.side .nav button.active::before{content:'';position:absolute;left:-16px;top:13px;bottom:13px;width:3px;background:#ac96ff;border-radius:3px}
.nav-icon svg{display:block;width:20px;height:20px}.nav-label{white-space:normal!important}
.ws-nav-count{background:#9e8add26;color:#ddd2ff;border-radius:5px;padding:0 6px;font-size:11px;margin-left:auto}.ws-nav-count:empty{display:none}
.side-footer{font-size:12px!important}.side-footer b{font-size:11px!important}
.ws-search-trigger{display:flex;align-items:center;gap:9px;max-width:350px;flex:1;border:1px solid var(--l);border-radius:9px;padding:9px 12px;background:var(--p2);color:var(--ws-muted);font-size:13px;cursor:pointer}
.ws-search-trigger svg{width:18px;height:18px}.ws-search-trigger kbd{margin-left:auto;border:1px solid var(--l);border-radius:4px;padding:0 5px;font:11px/1.7 inherit}
.ws-activity{display:flex;align-items:center;gap:10px;min-width:240px;max-width:300px;padding:8px 11px;border:1px solid color-mix(in srgb,var(--ws-accent) 30%,var(--l));border-radius:10px;background:color-mix(in srgb,var(--ws-accent) 7%,var(--p));color:var(--t);flex:0 1 auto}
.ws-activity[hidden]{display:none!important}.ws-activity-ring{--ws-progress:18%;position:relative;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:conic-gradient(var(--ws-accent) var(--ws-progress),color-mix(in srgb,var(--ws-accent) 13%,var(--p3)) 0)}.ws-activity-ring::after{content:'';position:absolute;inset:4px;border-radius:50%;background:var(--p)}
.ws-activity-ring.indeterminate{background:conic-gradient(from 30deg,transparent 0 30%,var(--ws-accent) 44% 74%,transparent 88%);animation:wsActivitySpin .95s linear infinite}.ws-activity.complete .ws-activity-ring{background:conic-gradient(#2f967c 100%,transparent 0)}.ws-activity.complete{border-color:color-mix(in srgb,#2f967c 35%,var(--l));background:color-mix(in srgb,#2f967c 8%,var(--p))}
.ws-activity-copy{display:block;min-width:0}.ws-activity-copy strong,.ws-activity-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-activity-copy strong{font-size:13px;line-height:1.35;font-weight:650}.ws-activity-copy small{font-size:11px;line-height:1.35;color:var(--ws-muted);margin-top:2px}@keyframes wsActivitySpin{to{transform:rotate(360deg)}}
#pageTop{margin:26px 0 24px!important;padding:0!important;min-height:0!important;gap:14px!important}
#pageTop h1{font-size:27px!important;font-weight:650!important;line-height:1.2!important;letter-spacing:-.6px!important}#pageTop p{font-family:inherit!important;font-size:14px!important;color:var(--ws-muted)!important;margin-top:7px!important}
.primary,.ghost{font-size:14px!important;min-height:40px!important;border-radius:8px!important;padding:10px 14px!important;line-height:1.3!important;box-shadow:none!important}
.primary{background:var(--ws-accent)!important}.primary:hover{filter:brightness(1.1)}.ghost:hover{background:var(--p3)!important}
.hint,.subline,.original-file-hint,.data-section h4,.smallmono,.field label{font-size:12px!important;line-height:1.6!important;color:var(--ws-muted)!important}
.row,.data-pair,.reason,.bubble,.knowledge-summary,.tab,.tabbody{font-size:14px!important;line-height:1.55!important}
.tag,.processing-badge{font-size:11px!important}.card{box-shadow:0 2px 5px #17233b04!important;border-radius:13px!important}
.field input,.field select,.field textarea{font-size:16px!important}
#wsBreadcrumb:empty,#wsSubnav:empty{display:none}#wsBreadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:20px;font-size:13px;color:var(--ws-muted)}#wsBreadcrumb button{font-size:13px;background:none;border:0;color:var(--ws-accent);cursor:pointer}
#wsSubnav{display:flex;gap:8px;overflow:auto;margin:-5px 0 22px;border-bottom:1px solid var(--l)}#wsSubnav button{white-space:nowrap;border:0;background:none;padding:12px 14px;color:var(--ws-muted);cursor:pointer;font-size:14px}#wsSubnav .selected{color:var(--ws-accent);box-shadow:inset 0 -2px var(--ws-accent)}
#dash>.welcome-hero,#dash>.stats{display:none!important}.ws-welcome{margin:0 0 24px}.ws-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--ws-accent)}.ws-welcome h2{font-size:30px;font-weight:600;letter-spacing:-.9px;line-height:1.3;margin:8px 0}.ws-welcome p{font-size:14px;color:var(--ws-muted);margin:0}
.ws-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.ws-metric{display:flex;flex-direction:column;text-align:left;gap:6px;padding:18px 20px;background:var(--p);border:1px solid var(--l);border-radius:12px;cursor:pointer;color:var(--t)}.ws-metric:hover{border-color:#b9abd9;box-shadow:0 3px 12px #6150ac0a}.ws-metric span{font-size:13px;font-weight:600}.ws-metric strong{font-size:32px;line-height:1.3;letter-spacing:-1px}.ws-metric small{font-size:12px;color:var(--ws-muted)}.ws-metric.review strong{color:#b87b24}.ws-metric.done strong{color:#25806b}
.ws-priority{display:flex;justify-content:space-between;align-items:center;padding:26px 30px;background:var(--ws-soft);border:1px solid #aa96d72b;border-radius:14px;margin-bottom:28px;gap:20px}.ws-priority h2{font-size:23px;letter-spacing:-.5px;margin:7px 0;font-weight:600}.ws-priority p{font-size:14px;max-width:560px;margin:0 0 18px;color:var(--ws-muted)}.ws-priority .primary{display:inline-flex;align-items:center;gap:14px}.ws-priority button svg{width:18px;height:18px}.ws-priority-mark{width:88px;height:88px;display:grid;place-items:center;border:1px solid #b7a2e249;border-radius:22px;background:#ffffff30;color:#9683cb;transform:rotate(-7deg);flex-shrink:0}.ws-priority-mark svg{width:44px;height:44px}
.ws-home-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(265px,1fr);gap:20px;align-items:start}.ws-section-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--l);gap:12px}.ws-section-head h3{font-size:16px;font-weight:650;margin:0}.ws-text-button{border:0;background:none;color:var(--ws-accent);font-size:12px;cursor:pointer;white-space:nowrap}
.ws-document-row{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(90px,.32fr) 146px 18px;gap:14px;align-items:center;border:0;border-bottom:1px solid var(--l);background:transparent;width:100%;text-align:left;padding:18px 20px;color:var(--t);cursor:pointer;min-width:0}.ws-document-row:last-child{border-bottom:0}.ws-document-row:hover{background:var(--p2)}.ws-file-icon{width:40px;height:44px;border:1px solid var(--l);background:var(--p2);display:grid;place-items:center;border-radius:8px;color:#82769f}.ws-file-icon svg{width:21px;height:21px}.ws-file-icon.video{color:#397f88;background:#4887920a}.ws-file-info{min-width:0}.ws-file-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}.ws-file-info>span{display:block;font-size:12px;color:var(--ws-muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-file-info i{font-style:normal;color:#9a9faa;padding:0 3px}.ws-doc-time{display:block;font-size:11px;color:var(--ws-muted);margin-top:5px;white-space:nowrap}.ws-doc-kind{font-size:12px;color:var(--ws-muted);overflow-wrap:anywhere}.ws-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;padding:5px 8px;border-radius:6px;justify-self:start;color:var(--ws-muted);background:var(--p3)}.ws-status i{width:5px;height:5px;background:currentColor;border-radius:50%;flex:none}.ws-status.review{background:#bc811014;color:#a37424}.ws-status.done{background:#22897212;color:#28806c}.ws-row-arrow svg{width:17px;height:17px;color:#9992ac}.ws-recent-card .ws-document-row{grid-template-columns:36px minmax(0,1fr) 112px;gap:10px;padding:16px}.ws-recent-card .ws-doc-kind,.ws-recent-card .ws-row-arrow{display:none}.ws-recent-card .ws-file-info strong{font-size:13px}
.ws-case-link{display:flex;align-items:center;gap:12px;width:100%;text-align:left;color:var(--t);border:0;border-bottom:1px solid var(--l);background:transparent;cursor:pointer;padding:18px;font-size:14px}.ws-case-link:last-child{border-bottom:0}.ws-case-link:hover{background:var(--p2)}.ws-case-link>span:not(.ws-case-avatar){min-width:0;flex:1}.ws-case-link strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-case-link small{display:block;font-size:12px;color:var(--ws-muted);margin-top:4px}.ws-case-link svg{width:16px;height:16px;flex:none;color:#9992ac}.ws-case-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--ws-soft);color:var(--ws-accent);font-size:11px;flex:none}
.ws-empty{text-align:center;padding:40px 24px;color:var(--ws-muted)}.ws-empty>svg{width:32px;height:32px;color:#9d91b6}.ws-empty h3{font-size:16px;color:var(--t);margin:12px 0 6px;font-weight:600}.ws-empty p{font-size:13px;line-height:1.6;max-width:380px;margin:0 auto 18px}.ws-empty a{display:inline-block;text-decoration:none}
.ws-filters{display:flex;gap:4px;padding:8px 14px 0;overflow:auto;border-bottom:1px solid var(--l)}.ws-filters button{background:none;border:0;color:var(--ws-muted);padding:13px 12px;font-size:13px;white-space:nowrap;cursor:pointer}.ws-filters button.selected{color:var(--ws-accent);box-shadow:inset 0 -2px var(--ws-accent);font-weight:650}.ws-filters span{font-size:11px;border-radius:4px;padding:2px 5px;background:var(--ws-soft)}#docs .toolbar{padding:16px 20px;align-items:center}#docSearch{font-size:14px;max-width:480px;padding:11px 13px;background:var(--p);min-width:0}.ws-filter-toggle{margin-left:8px;padding:10px 13px!important;white-space:nowrap}.ws-result-count{font-size:12px;color:var(--ws-muted);margin-left:auto;white-space:nowrap}.ws-doc-advanced-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:0 20px 16px;border-bottom:1px solid var(--l);background:var(--p2)}.ws-filter-field{display:grid;gap:5px;min-width:150px}.ws-filter-field label{font-size:11px;color:var(--ws-muted)}.ws-filter-field select,.ws-filter-field input{font:inherit;font-size:12px;min-height:36px;padding:8px 10px;border:1px solid var(--l);border-radius:7px;background:var(--p);color:var(--t)}.ws-filter-clear{min-height:36px;padding:8px 12px!important}.ws-doc-trace{font-size:11px;color:var(--ws-muted);margin-top:5px}
.doc-layout{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr)!important;gap:18px!important}.doc-layout>.card{min-width:0!important}.doc-head{flex-direction:column!important;gap:16px!important}.doc-head h2{font-size:23px!important;overflow-wrap:anywhere}.doc-head-actions{justify-content:flex-start!important}.doc-head-actions .primary{order:-1}.viewer-card{min-height:0!important}.viewer{height:calc(100vh - 260px)!important;min-height:420px!important}.viewer-top{align-items:flex-start;flex-wrap:wrap;gap:12px}.viewer-actions{display:flex;flex-wrap:wrap;gap:6px}.viewer-actions .ghost{font-size:12px!important;min-height:34px!important;padding:8px 10px!important}.tabbody{max-height:calc(100vh - 220px)!important}.tabs .tab{font-size:12px!important}.ws-video-wrap{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;background:#11131b}.ws-video-wrap video{width:100%;max-height:85%;min-height:180px}.ws-video-help{font-size:12px;color:#c5c9d2;padding:18px}.ws-video-help a{color:#c4b8ff}.ws-highlight{outline:3px solid #9e8be4;outline-offset:4px}
.case-detail-grid{grid-template-columns:minmax(0,1fr) minmax(260px,310px)!important}.case-detail-grid>div{min-width:0}.client-detail-grid{grid-template-columns:minmax(0,1fr) minmax(240px,310px)!important}.client-detail-grid>div{min-width:0}.case-file-name,.doc-row-title{font-size:14px!important}.case-toolbar,.case-header-actions{flex-wrap:wrap!important}.case-title{overflow-wrap:anywhere}
.ws-dialog{border:1px solid var(--l);border-radius:16px;padding:22px;width:min(620px,calc(100% - 32px));max-height:80vh;background:var(--p);color:var(--t);box-shadow:0 24px 90px #12182740}.ws-dialog::backdrop{background:#11182780;backdrop-filter:blur(3px)}.ws-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.ws-dialog header h2{font-size:20px;margin:0}.ws-dialog header label{font-weight:650}.ws-dialog>p{font-size:14px;color:var(--ws-muted)}#wsSearchInput{width:100%;padding:14px;font-size:16px;color:var(--t);background:var(--p2);border:1px solid var(--l);border-radius:9px}.ws-search-results{max-height:55vh;overflow:auto}.ws-search-results h3{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ws-muted);margin:22px 8px 6px}.ws-search-result{display:flex;gap:12px;align-items:center;width:100%;background:none;border:0;border-radius:8px;padding:12px 8px;color:var(--t);text-align:left;cursor:pointer}.ws-search-result:hover{background:var(--ws-soft)}.ws-search-result svg{width:20px;height:20px;flex:none;color:#8c80a9}.ws-search-result span{flex:1;min-width:0}.ws-search-result strong{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-search-result small{font-size:12px;color:var(--ws-muted)}#wsUploadProgress{font-size:13px;padding-top:8px;overflow-wrap:anywhere}
.ws-category-settings{margin-top:14px}.ws-category-rows{margin-top:10px}.ws-category-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--l)}.ws-category-row:last-child{border-bottom:0}.ws-category-row.inactive{opacity:.62}.ws-category-mark{width:8px;height:8px;border-radius:3px;background:var(--ws-accent)}.ws-category-row.inactive .ws-category-mark{background:var(--ws-muted)}.ws-category-row strong{display:block;font-size:14px;font-weight:650}.ws-category-row small{display:block;font-size:12px;color:var(--ws-muted);margin-top:2px}.ws-category-actions{display:flex;align-items:center;gap:7px}.ws-category-actions .ghost{min-height:34px!important;padding:7px 10px!important;font-size:12px!important}.ws-category-required{font-size:11px;color:var(--ws-muted);padding:6px 8px}.ws-category-select{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.ws-category-select select{min-width:0}.ws-category-select .ghost{white-space:nowrap}.ws-new-category{margin-top:10px;padding:12px;border:1px solid color-mix(in srgb,var(--ws-accent) 30%,var(--l));border-radius:10px;background:var(--ws-soft)}.ws-new-category[hidden]{display:none}.ws-new-category label{display:block;margin-bottom:6px;font-size:12px;color:var(--ws-muted)}
@media(min-width:1101px){.app:not(.side-collapsed){grid-template-columns:228px minmax(0,1fr)!important}}
@media(max-width:1250px){.ws-home-grid{grid-template-columns:minmax(0,1fr)}.ws-home-grid>section:last-child #wsCases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ws-metric{padding:16px}.ws-search-trigger kbd{display:none}.ws-activity{min-width:205px}.ws-activity-copy small{display:none}}
@media(max-width:1000px){.main{padding:0 20px 24px!important}.institution-topbar{margin:0 -20px!important;padding:14px 20px!important}.ws-search-trigger span{display:none}.ws-search-trigger{flex:0;padding:10px}.ws-activity{min-width:0;max-width:220px}.doc-layout,.case-detail-grid,.client-detail-grid{grid-template-columns:minmax(0,1fr)!important}.doc-layout .tabbody{max-height:none!important}.ws-welcome h2{font-size:26px}.ws-document-row{grid-template-columns:36px minmax(0,1fr) 120px;gap:10px}.ws-doc-kind,.ws-row-arrow{display:none}.ws-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-toolbar{grid-template-columns:1fr 1fr!important}}
@media(max-width:640px){.main{padding:0 14px 24px!important}.institution-topbar{margin:0 -14px!important;padding:12px 14px!important;gap:10px!important}.institution-user{gap:5px!important}.current-user-name,.current-user-role{display:none!important}.office-name{font-size:12px!important;max-width:140px}.office-logo-fallback{display:none!important}.ws-activity{padding:5px;border-color:transparent;background:transparent}.ws-activity-copy{display:none}.ws-activity-ring{width:28px;height:28px;flex-basis:28px}#pageTop{align-items:flex-start;flex-direction:column;margin:22px 0!important}#pageTop h1{font-size:24px!important}#topActions{width:100%;flex-wrap:wrap}#topActions button{flex:1;font-size:12px!important}.ws-welcome h2{font-size:24px}.ws-priority{padding:22px}.ws-priority-mark{display:none}.ws-priority h2{font-size:21px}.ws-metrics{gap:10px}.ws-metric{padding:14px}.ws-metric span{font-size:12px}.ws-metric small{font-size:11px}.ws-metric strong{font-size:28px}.ws-home-grid>section:last-child #wsCases{grid-template-columns:1fr}.ws-document-row,.ws-recent-card .ws-document-row{grid-template-columns:32px minmax(0,1fr);padding:14px 12px}.ws-status{grid-column:2}.ws-file-icon{width:32px;height:38px;grid-row:span 2}.ws-file-info strong{font-size:13px}.ws-section-head{padding:16px}.ws-result-count{display:none}.ws-filters{padding-left:4px}.ws-filters button{padding:12px 10px}.doc-head h2{font-size:19px!important}.doc-head-actions{gap:6px}.doc-head-actions .ghost,.doc-head-actions .primary{font-size:12px!important;padding:9px 11px!important}.viewer{min-height:320px!important;height:55vh!important}.training{grid-template-columns:1fr!important}.knowledge-toolbar{grid-template-columns:1fr!important}.settings-grid{grid-template-columns:1fr!important}.modalbox{max-height:90vh;overflow:auto}}
.ws-metric,.ws-status{margin:0}
#caseDocuments .ws-document-row{grid-template-columns:36px minmax(0,1fr) 116px;gap:10px;padding:16px 0}
#caseDocuments .ws-doc-kind,#caseDocuments .ws-row-arrow{display:none}
#caseDocumentsPanel #pipelineSummary{display:none}
@media(max-width:640px){#caseDocuments .ws-document-row{grid-template-columns:32px minmax(0,1fr)}}
#appRoot[style*="display: none"],#appRoot[style*="display:none"]{display:none!important}
/* Complete-page viewing is the default; enlargement is an explicit action. */
#documentDetail .doc-layout{grid-template-columns:minmax(0,1fr)!important;align-items:start}
#documentDetail .viewer-card{min-height:0!important}
#docViewer{display:flex!important;align-items:center;justify-content:center;height:68vh!important;height:68dvh!important;min-height:280px!important;overflow:hidden!important;min-width:0;background:var(--p2)!important}
#docViewer>img{display:block!important;flex:0 1 auto!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;object-fit:contain!important;object-position:center!important;margin:0!important;transform:none!important;background:var(--p2)!important}
#docViewer>iframe{display:block;width:100%!important;height:100%!important;min-height:0!important;border:0}
#docViewer.ws-image-zoom{display:block!important;overflow:auto!important}
#docViewer.ws-image-zoom>img{width:100%!important;height:auto!important;max-height:none!important}
.ws-analysis-details{border:1px solid var(--l);border-radius:12px;background:var(--p)}
.ws-analysis-details>summary{cursor:pointer;padding:16px;font-size:14px;color:var(--m)}
.ws-analysis-details>.card{border:0!important;box-shadow:none!important}
.ws-analysis-details .tabbody{max-height:none}
.ws-advanced-actions{position:relative;align-self:start;border:1px solid var(--l);border-radius:8px;padding:10px 12px;background:var(--p);font-size:14px}
.ws-advanced-actions summary{cursor:pointer;min-height:20px}.ws-advanced-actions[open]{display:flex;flex-direction:column;gap:8px}.ws-advanced-actions[open]>button{display:block;margin-top:8px}
#dash .ws-eyebrow,#dash .ws-priority-mark{display:none}
.side .nav button.active{background:color-mix(in srgb,var(--v) 25%,transparent)!important}
.side .nav button.active::before{background:var(--v2)}
.ws-nav-count{background:color-mix(in srgb,var(--v) 25%,transparent);color:#fff}
.ws-file-icon,.ws-row-arrow svg,.ws-case-link svg{color:var(--ws-accent)}
.ws-metric:hover{border-color:var(--v)}
html[data-density=compact] .ws-document-row{padding-top:10px!important;padding-bottom:10px!important;min-height:48px}
html[data-density=compact] .ws-case-link{padding-top:10px;padding-bottom:10px;min-height:48px}
html[data-density=compact] .ws-metric{padding:12px 16px}
@media(min-width:1101px){
 .app:not(.side-collapsed){--side-w:228px}
 .app:not(.side-collapsed) .side{width:228px!important}
 .app.side-collapsed{--side-w:72px;grid-template-columns:72px minmax(0,1fr)!important}
 .app.side-collapsed .side{width:72px!important;padding:24px 8px!important;overflow-x:hidden}
 .app.side-collapsed .side>.brand{justify-content:center!important;padding:0 0 18px!important;width:100%;gap:0!important}
 .app.side-collapsed .side-toggle{display:none!important}
 .app.side-collapsed .side .nav button{width:48px!important;min-width:0!important;height:48px!important;padding:0!important;margin:0 auto!important;justify-content:center!important;gap:0!important}
 .app.side-collapsed .nav-icon{width:20px;flex:0 0 20px}
 .app.side-collapsed .nav-label,.app.side-collapsed .brand-copy{display:none!important}
 .app.side-collapsed .ws-nav-count{position:absolute;top:1px;right:0;margin:0;padding:0 3px;font-size:9px;line-height:14px;max-width:26px;overflow:hidden}
 .app.side-collapsed .side .nav button.active::before{left:-8px}
}
@media(max-width:640px){#documentDetail .viewer-top{align-items:flex-start;gap:12px;flex-direction:column}.viewer-actions{flex-wrap:wrap}.ws-advanced-actions{max-width:100%}}
@media(max-width:640px){.ws-category-row{grid-template-columns:10px minmax(0,1fr)}.ws-category-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}.ws-category-select{grid-template-columns:1fr}.ws-category-select .ghost{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.ws-activity-ring.indeterminate{animation:none;background:conic-gradient(var(--ws-accent) 28%,color-mix(in srgb,var(--ws-accent) 13%,var(--p3)) 0)}}
