/* Second density pass: compact desktop, readable labels and stable touch targets. */
@media(min-width:1000px) and (pointer:fine){
 html[data-themis-theme]{--th-font:13px;--th-control:30px;--th-gap:8px}
 .themis-workstation #content{font-size:13px;padding:12px}
 .themis-workstation #content h1{font-size:20px}
 .themis-workstation #content h2{font-size:15px;margin-bottom:8px}
 .themis-workstation #content h3{font-size:13px;margin-bottom:6px}
 .themis-workstation #content :is(.panel,.card,.stat){padding:10px}
 .themis-workstation #content :is(button,.button),.themis-workstation .topbar :is(button,.button),.themis-workstation #modal :is(button,.button){min-height:30px;padding:5px 8px;font-size:12px}
 .themis-workstation :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea){font-size:13px!important;padding:5px 7px;min-height:30px}
 .themis-workstation #content label{font-size:12px;margin-bottom:6px}
 .themis-workstation #content :is(small,.muted){font-size:12px}
 .themis-workstation #content :is(td,th){padding:6px 7px}
 .themis-workstation #content table{font-size:12px}
 .themis-workstation #content .page-head{margin-bottom:10px}
 .themis-workstation #content .home-action1216{min-height:56px}
 .themis-workstation #content .home-metric1216{min-height:78px;padding:10px}
 .themis-workstation #content .home-metric1216 strong{font-size:25px;margin:4px 0}
 .themis-workstation #call-form .alarm-stage{padding:10px;margin-bottom:10px}
 .themis-workstation #call-form .alarm-stage>h2{font-size:15px}
 .themis-workstation #engagement-slots1221 .engagement-row1223{height:40px;min-height:40px;max-height:40px}
 .themis-workstation #simple-navigation :is(button,summary){font-size:12px;min-height:30px;padding:5px 7px}
}
.v3-icon{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v3-action-icon{display:inline-flex;align-items:center;vertical-align:middle;margin-right:6px;pointer-events:none}
.nav-icon .v3-icon{width:19px;height:19px}
.v3-nav-group{margin:5px 0!important;padding:0!important;border:1px solid var(--th-line)!important;border-radius:5px;overflow:hidden}
.v3-nav-heading{display:flex;align-items:stretch;background:var(--th-surface)}
.themis-workstation #simple-navigation .v3-nav-heading>[data-v3-go]{flex:1;min-width:0;width:auto;white-space:normal;text-transform:none;font-weight:700}
.themis-workstation #simple-navigation .v3-nav-heading>[data-v3-expand]{flex:0 0 30px;min-width:30px;width:30px;padding:4px}
.v3-nav-group>[id]{padding:2px 4px}
.v3-kpis{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}
.v3-kpis strong{font-size:22px;margin-right:5px;font-variant-numeric:tabular-nums}
.v3-home-links{margin-top:12px}
.v3-home-links button{background:var(--th-surface);border:1px solid var(--th-line);text-align:left;display:flex;align-items:center;gap:10px;min-height:54px}
.v3-mobile-gate{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.v3-mobile-gate.closed{border-left:4px solid #ef7389!important}
.v3-mobile-gate p{margin:4px 0}
.v3-mobile-gate [role=switch]{min-width:210px}
.v3-document-preview{display:block;width:100%;padding:0!important;background:var(--th-input)!important;border:1px solid var(--th-line);border-radius:4px}
.v3-document-preview .document-preview{height:140px;min-height:140px;max-width:100%;margin:0}
.document-tile53>strong,.document-tile53>small{display:block;margin-top:7px}
.document-tile53>.row{margin-top:8px}
.themis-workstation #modal.v3-document-modal{width:min(1100px,96vw)}
.v3-document-frame{width:100%;height:65dvh;border:1px solid var(--th-line);background:white;color-scheme:light}
.v3-permissions{margin-top:12px}
.v3-permissions .access-matrix-scroll{overflow:auto;max-width:100%}
.v3-permissions .access-matrix label{display:flex;gap:6px;align-items:center;white-space:nowrap}
.v3-permissions .access-matrix input{width:16px;height:16px;margin:0}
.themis-mobile-blocked body>*:not(#v3-mobile-closure):not(script):not(style){display:none!important}
.v3-mobile-closure{max-width:560px;margin:10vh auto;padding:24px;border:1px solid var(--th-line,#56677b);border-radius:6px;background:var(--th-surface,#182430);color:var(--th-text,#e6edf5)}
.v3-mobile-closure h1{font-size:23px}
.v3-mobile-closure button{min-height:44px}
@media(max-width:999px),(pointer:coarse){
 .v3-nav-heading [data-v3-expand]{min-width:44px!important;width:44px!important;min-height:44px!important}
 .v3-permissions .access-matrix label{min-height:44px}
 .v3-permissions .access-matrix input{width:22px;height:22px}
 .v3-mobile-gate{flex-wrap:wrap}
}
@media(max-width:600px){.v3-mobile-gate [role=switch]{width:100%;min-width:0}.v3-mobile-closure{margin:20px 12px}.v3-kpis{gap:10px}.v3-home-links{grid-template-columns:minmax(0,1fr)}}
#v3-preview-body{min-height:240px;max-height:70dvh;overflow:auto;overscroll-behavior:contain}
.v3-pdf-tools{position:sticky;top:0;background:var(--th-surface);padding:6px 0;justify-content:space-between}
.v3-pdf-page{text-align:center;background:#54606a;padding:8px}
.v3-pdf-page canvas{max-width:100%;height:auto;background:white}
.v3-preview-image{display:block;max-width:100%;height:auto;margin:auto}
.v3-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--th-input);padding:12px;font:inherit}
.v3-home-links .nav-icon,.v3-document-preview .v3-icon{color:var(--th-accent)!important}
.themis-workstation .document-tile53{background:var(--th-surface);color:var(--th-text);border-color:var(--th-line);border-radius:5px}
.themis-workstation .document-tile53>small{color:var(--th-muted)}
.sidebar.icons-only431 .v3-nav-heading [data-v3-expand]{display:none!important}
@media(min-width:1200px) and (pointer:fine){
 .v3-permissions .access-matrix td{min-width:190px}
 .v3-permissions .access-matrix td label{display:inline-flex;width:calc(50% - 5px);min-height:26px;margin:1px 0;white-space:normal;vertical-align:top;line-height:1.25}
}
