/* Shared touch refinements; keep desktop and headset styles untouched. */
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 #946c2c;outline-offset:3px}
button{min-height:44px}button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #9d752d!important;background:#fff2d2!important;color:#46320c!important}
#mobileAppNotice{position:fixed;z-index:65000;bottom:calc(78px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:620px;margin:auto;padding:14px 16px;display:flex;align-items:center;gap:12px;border:1px solid #d9c7a8;border-radius:16px;background:#fffaf0;color:#3c3022;box-shadow:0 8px 32px #30211224;font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}#mobileAppNotice p{margin:0;flex:1}#mobileAppNotice button{flex-shrink:0;border:1px solid #d9c7a8;border-radius:10px;background:#fff;color:#6e4b17;padding:8px 12px;min-height:44px}
#importDialog progress{width:100%;height:12px;accent-color:#9b702b}#importDialog p{line-height:1.65}#importStatus{overflow-wrap:anywhere}
.case-buttons button{min-height:44px}.case-card h3{overflow-wrap:anywhere}.case-card p{line-height:1.65}.case-card .case-size{font-size:12px;color:#736757}.button-row{gap:12px!important}.filters{row-gap:10px!important}
html body #rail .rowline,html body #rail .subrow{flex-wrap:wrap}html body #rail .rowline>*{min-width:0;max-width:100%}html body #rail label{line-height:1.5}html body #rail button{margin-block:3px!important}
#mobileBottom button[aria-pressed=true]{font-weight:750}#mobileClinicalTools small{display:block;font-weight:400;line-height:1.5;margin-top:5px}
html body #rail .toggle,html body .triInspector .toggle{width:64px!important;min-width:64px!important;height:44px!important;min-height:44px!important;padding:0!important;border:1px solid #c8cbd1!important;border-radius:24px!important;background:#e5e5eb!important;box-shadow:none!important}
html body #rail .toggle::after,html body .triInspector .toggle::after{width:34px!important;height:34px!important;top:4px!important;left:4px!important;background:#85878f!important;transform:none!important}
html body #rail .toggle[aria-pressed=true],html body .triInspector .toggle[aria-pressed=true]{background:#f0dca5!important;border-color:#b58d38!important}
html body #rail .toggle[aria-pressed=true]::after,html body .triInspector .toggle[aria-pressed=true]::after{transform:translateX(20px)!important;background:#8a641f!important}
@media(max-width:520px){#mobileAppNotice{flex-wrap:wrap}#mobileAppNotice p{flex-basis:75%}.case-buttons{gap:8px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
