/* Shared reading and interaction tokens. No document/authentication rules. */
:root{--ux-text:#f3f8f5;--ux-secondary:#bdcdd0;--ux-surface:#0b2025;--ux-border:#66877c;--ux-focus:#a3f0bd;--ux-nav-height:78px}
body:not(.docarms-public){font-size:1rem;line-height:1.5;color:var(--ux-text)}
body:not(.docarms-public) :is(p,label,.input,input,select,textarea,.btn,.pro-btn,.add-choice){font-size:1rem;line-height:1.5}
body:not(.docarms-public) :is(.small,small,.muted,.shell-note,.contextline,.docmeta,.detail-key,.detail-value,.status,.badge,.filterbtn,.sc-muted,.pro-muted){font-size:.875rem;line-height:1.5}
body:not(.docarms-public) .ux-readable-secondary{font-size:.875rem!important;line-height:1.5!important}
body:not(.docarms-public) :is(.muted,.shell-note,.contextline,.detail-key,.pro-muted,.sc-muted){color:var(--ux-secondary)}
html body:not(.docarms-public) :is(#app,#login) .ux-surface.ux-surface{background:rgba(8,25,29,.94)!important;border-color:var(--ux-border)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
body:not(.docarms-public) .appview{animation:none!important}
html body:not(.docarms-public) .modalback :is(.modal,.pro-modal-panel){background:#0b2025!important;border-color:var(--ux-border)!important}
body:not(.docarms-public) :is(h1,h2,h3,h4){line-height:1.25;overflow-wrap:anywhere}
body:not(.docarms-public) :is(.view-title,.modalhead h3){font-size:1.5rem!important}
body:not(.docarms-public) :is(.document-action-group h4,.smart-fill-title,.pro-panel-title h3){font-size:1rem!important}
html body:not(.docarms-public) :is(button,.btn,.pro-btn,summary,select,input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not(.native),textarea){min-height:44px!important;min-width:44px!important}
html body:not(.docarms-public) :is(.btn,.pro-btn,.filterbtn){font-size:1rem;padding:10px 14px;white-space:normal;overflow-wrap:anywhere}
body:not(.docarms-public) :is(.btn,.pro-btn):not(.primary):not(.danger):not(.ghost){background:#173b36;color:#f3f8f5;border-color:var(--ux-border)}
body:not(.docarms-public) :is(.btn.ghost,.pro-btn.ghost){color:#f3f8f5}
body:not(.docarms-public) :is(.btn.danger,.pro-btn.danger){background:#3b2026;color:#ffd0c9;border-color:#c47d77}
body:not(.docarms-public) :is(.input,input,select,textarea){font-size:1rem!important;max-width:100%;box-sizing:border-box}
body:not(.docarms-public) :is(input[type=file]){padding:8px;border:1px solid var(--ux-border);border-radius:12px;width:100%;color:var(--ux-text)}
body:not(.docarms-public) input[type=file]::file-selector-button{min-height:44px;margin-right:8px;padding:8px 12px;border:1px solid var(--ux-border);border-radius:8px;background:#173b36;color:#f3f8f5;font:inherit;cursor:pointer}
body:not(.docarms-public) :is(.checkrow,label:has(>input[type=checkbox]),label:has(>input[type=radio])){min-height:44px;display:flex;align-items:center;gap:10px;padding:6px 0;font-size:1rem}
body:not(.docarms-public) :is(input[type=checkbox],input[type=radio]){flex:none;width:22px;height:22px;accent-color:var(--green)}
body:not(.docarms-public) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--ux-focus)!important;outline-offset:3px}
body:not(.docarms-public) .ux-feedback{font-size:.875rem!important;line-height:1.5!important;overflow-wrap:anywhere}
body:not(.docarms-public) .ux-feedback[data-ux-state=error]{color:#ffd0c9!important;border-left:4px solid #ffb4ae;padding:10px 12px;background:#3b2026;border-radius:8px}
.ux-field-label{display:block;margin:8px 0 4px}.ux-required{font-size:.875rem;color:var(--ux-secondary)}
.ux-field-help{font-size:.875rem!important;line-height:1.5;color:var(--ux-secondary);margin:6px 0 12px;overflow-wrap:anywhere}
.ux-home-add{margin:12px 0 6px;width:100%;min-height:48px!important}
body:not(.docarms-public) .password-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
body:not(.docarms-public) .password-wrap .input{padding-right:12px;min-width:0}
body:not(.docarms-public) .password-toggle{position:static;width:auto;height:auto;padding:8px 12px;font-size:.875rem;background:#173b36;color:#f3f8f5;border:1px solid var(--ux-border)}
body:not(.docarms-public) #docarmsFloatingPdf.is-minimized{height:72px!important;min-height:72px}
body:not(.docarms-public) :is(.pro-count,.navbadge,.holder-parent-count,.holder-tech-count,.weapon-doc-group-count,.destination-group-count){font-size:.875rem!important}
.ux-skip-link{position:fixed;left:12px;top:12px;z-index:9999;transform:translateY(-180%);background:#173b36;color:white;padding:12px;border:2px solid var(--ux-focus);border-radius:10px}
.ux-skip-link:focus{transform:none}
body.docarms-public .ux-skip-link{display:none}
body:not(.docarms-public) :is(.doctitle,.weapon-doc-group-title,.holder-parent-title,.pro-client-name,.pro-document-title){font-size:1rem!important}
html body:not(.docarms-public) #bottomnav .navbtn{font-size:.875rem!important}
body:not(.docarms-public) :is(.sectionhead,.modalhead){flex-wrap:wrap;gap:12px}
body:not(.docarms-public) :is(.sectionhead,.modalhead)>:first-child{min-width:0}
html body:not(.docarms-public) .ux-dialog-header{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:start;gap:12px;position:sticky;top:0;z-index:4;background:#0b2025;padding:4px 0 12px;margin:0 0 8px}
html body:not(.docarms-public) .ux-dialog-header>:first-child{min-width:0;overflow-wrap:anywhere;margin-top:0}
html body:not(.docarms-public) .ux-close{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:12px!important;display:grid;place-items:center;justify-self:end;align-self:start;flex:none}
html body:not(.docarms-public) .ux-close svg{width:24px;height:24px;pointer-events:none;stroke:currentColor;fill:none}
html body:not(.docarms-public) .ux-dialog-header{box-shadow:0 -24px 0 #0b2025}
html body:not(.docarms-public) #view-home [data-unified-share] .staticon>svg{display:block!important;width:24px;height:24px;fill:none;stroke:currentColor}
html body:not(.docarms-public) #view-home [data-unified-share] .staticon::before{display:none!important}
html body:not(.docarms-public) :is(.filterbar,.pro-filter-row){flex-wrap:wrap;overflow:visible}
html body:not(.docarms-public) :is(.filterbtn,.pro-filter){flex:0 0 auto;white-space:nowrap;overflow-wrap:normal}
html body:not(.docarms-public) .pro-tabs{display:flex;flex-wrap:wrap;overflow:visible;gap:8px}
html body:not(.docarms-public) .pro-tab{flex:1 0 auto;font-size:1rem;padding:10px 14px;white-space:normal;overflow-wrap:normal}
body:not(.docarms-public) :is(.detail-kv,.pro-detail-line){overflow-wrap:anywhere}
body:not(.docarms-public) :is(.modal,.pro-modal-panel){overscroll-behavior:contain;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto}
body.ux-dialog-open #helpInboxButton{display:none!important}
/* Equivalent actions share one presentation; existing handlers and routes remain. */
html body:not(.docarms-public) .ux-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;overflow-wrap:normal;max-width:100%;flex:0 1 auto}
html body:not(.docarms-public) .ux-action svg{flex:none;width:20px;height:20px;pointer-events:none}
html body:not(.docarms-public) .ux-action span{overflow-wrap:normal;white-space:normal;word-break:normal}
html body:not(.docarms-public) .detail-back.ux-action{width:auto;min-width:44px;padding:8px 12px;margin-bottom:12px}
html body:not(.docarms-public) #helpInboxButton{width:max-content!important;max-width:calc(100vw - 24px);min-width:44px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal;flex-wrap:nowrap;padding:10px 12px!important;line-height:1.5}
html body:not(.docarms-public) #helpInboxButton::before{flex:none}
html body:not(.docarms-public) .wrap{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
html body:not(.docarms-public) :is(.holder-parent-head,.weapon-doc-group-head){flex-wrap:wrap}
html body:not(.docarms-public) :is(.holder-parent-side,.weapon-doc-group-head .count){max-width:100%;overflow-wrap:anywhere}
html body:not(.docarms-public) .document-section-label{flex-wrap:wrap;gap:8px}
@media(max-width:899px){
 html body:not(.docarms-public) #bottomnav{background:#071b20!important;gap:2px;padding:6px 4px calc(8px + env(safe-area-inset-bottom));grid-template-columns:repeat(5,minmax(0,1fr))}
 html body:not(.docarms-public) #bottomnav .navbtn{font-size:.875rem!important;line-height:1.25;min-height:64px!important;padding:5px 2px;white-space:normal;color:#bdcdd0;justify-content:center}
 html body:not(.docarms-public) #bottomnav .navbtn.active{color:#a3f0bd}
 html body:not(.docarms-public) #bottomnav .navbtn>span:last-child{white-space:normal;font-size:inherit;overflow-wrap:anywhere;hyphens:auto}
 html body:not(.docarms-public) #bottomnav:has(>#professionalNavAccess:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}
 html body:not(.docarms-public) .wrap{padding-bottom:calc(var(--ux-nav-height) + 88px + env(safe-area-inset-bottom))}
 html body:not(.docarms-public) #helpInboxButton{top:auto!important;bottom:calc(var(--ux-nav-height) - var(--ux-help-height, 48px) - 8px)!important;right:max(12px,env(safe-area-inset-right))!important;z-index:49!important;min-height:44px;font-size:.875rem}
 html body.ux-help-visible:not(.docarms-public) #bottomnav{padding-top:calc(var(--ux-help-height, 48px) + 16px)!important}
 html body:not(.docarms-public) :is(#pwaUpdate,.pro-toast){bottom:calc(var(--ux-nav-height) + 12px)!important}
 body:not(.docarms-public) .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){:root{--ux-nav-height:146px}html body:not(.docarms-public) #bottomnav{grid-template-columns:repeat(3,minmax(0,1fr))!important}body:not(.docarms-public) .grid{grid-template-columns:minmax(0,1fr)}body:not(.docarms-public) .detail-kv{grid-template-columns:minmax(0,1fr)!important;gap:4px}}
@media(min-width:650px) and (max-width:899px){html body:not(.docarms-public) #bottomnav:has(>#professionalNavAccess:not([hidden])){grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Public entry keeps its layout and commercial content, with readable secondary copy. */
body.docarms-public .public-landing :is(p,li){font-size:1rem;line-height:1.6}
body.docarms-public .public-landing :is(small,.ml-trial,.ml-overline,.ml-preview-tag,.ml-footer-label,.ml-preview-item,.ml-preview-item strong,.ml-preview-state){font-size:.875rem;line-height:1.5}
body.docarms-public .public-landing :is(.ml-nav a,.ml-primary,.ml-pro-cta,.ml-footer a){min-height:44px;display:inline-flex;align-items:center}
body.docarms-public .ml-preview-item>span:first-child{min-width:0;overflow-wrap:anywhere}
