/* Touch layouts shared by intake and treatment; no patient data is cached. */
.voice-field{display:flex;align-items:stretch;gap:6px;min-width:0;width:100%}.voice-field>input,.voice-field>textarea{flex:1;min-width:0;width:0}.voice-button{flex:0 0 44px;min-height:44px;padding:6px;color:#147e73;background:#edf7f3;border:1px solid #c8ded7;border-radius:8px;font:inherit;font-size:13px;cursor:pointer;touch-action:manipulation}.voice-button:disabled{display:none}.voice-controls{display:flex;gap:8px;flex-wrap:wrap}.voice-upload{margin-top:16px}.voice-upload input{max-width:100%}#voice-status{min-height:24px;color:#147e73}#voice-dialog textarea{min-height:100px}.mobile-bar,.assistant-toggle{display:none}.assistant-shell{min-width:0}.voice-field input{margin-top:0}.weight-field .voice-field{max-width:180px}dialog{max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}button,input,textarea,select{touch-action:manipulation}input,textarea,select{scroll-margin-block:90px}audio{max-width:100%}.mobile-nav .sidebar{position:static;width:100%;height:auto;min-height:65vh;padding:16px 0;border:0}.mobile-nav{width:380px;max-width:calc(100vw - 24px);padding:16px}.mobile-nav .patient-list{max-height:45dvh;overflow:auto}.drawer-close{float:right}#voice-dialog{z-index:10}.voice-field:focus-within .voice-button{border-color:#147e73}
@media(max-width:1100px){
 #app>main{margin-left:0;min-width:0}.mobile-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:20;padding:8px 16px;padding-top:max(8px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #d7e4df}.mobile-bar button{min-height:44px}.topbar{height:auto;min-height:44px;padding:10px 20px}.connection{display:none}#workspace{padding:20px 24px 100px}.workspace-grid{grid-template-columns:minmax(0,1fr)}.assistant-shell{grid-row:1}.assistant-toggle{display:block;width:100%;min-height:44px}.assistant-shell:not(.assistant-open)>.assistant-panel{display:none}.assistant-shell.assistant-open>.assistant-panel{margin-top:12px}.patient-header{flex-wrap:wrap;gap:16px}.visit-controls{flex-wrap:wrap;max-width:100%}.visit-controls select{max-width:100%}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid>*{min-width:0}input,textarea,select{font-size:16px!important}button{min-height:44px}.card,.measure-row,.course-panel{min-width:0;overflow-wrap:anywhere}.work-title{gap:12px;flex-wrap:wrap}.treatment-page .patient-header{margin:20px 24px}.course-panel{margin:16px 24px}.patient-title{flex-wrap:wrap}.mobile-nav .sidebar-footer{margin-top:20px}.image-tools{flex-wrap:wrap}.image-stage{max-width:100%}.actions{flex-wrap:wrap}
}
@media(max-width:599px){
 #workspace{padding:16px 12px calc(112px + env(safe-area-inset-bottom))}.topbar{padding:10px 14px;font-size:12px}.mobile-bar{padding-inline:max(12px,env(safe-area-inset-left))}.mobile-bar strong{font-size:14px}.patient-header{align-items:flex-start;display:block}.patient-header h1{font-size:24px}.visit-controls{margin-top:12px;display:flex;gap:8px}.visit-controls>*,.visit-controls label{width:100%;min-width:0}.work-title h2{font-size:20px}.work-title>.actions{position:fixed;bottom:0;left:0;right:0;z-index:25;display:flex;justify-content:flex-end;gap:6px;background:#fff;border-top:1px solid #d7e4df;padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom));box-shadow:0 -4px 18px #173c3310}.actions>button{padding:10px;font-size:14px;flex:1;white-space:normal}.form-grid,.form-grid.three{grid-template-columns:minmax(0,1fr)}.steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.steps button{min-width:0;padding:12px 8px}.steps small{display:none}.card{padding:18px 14px}.card-head,.module-head{flex-wrap:wrap;gap:10px}.weight-field{flex-wrap:wrap}.weight-field .voice-field{max-width:100%}.measure-row{padding:12px 10px}.treatment-page .patient-header{margin:16px 12px}.course-panel{margin:12px;padding:16px}.course-stats{flex-wrap:wrap}.course-stats>*{min-width:0}.image-dialog{padding:12px}.dialog-head h2{font-size:20px}dialog{padding:18px 14px;width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box}.login-panel{padding:24px 16px}.empty-workspace{padding:35px 16px}.empty-features{flex-wrap:wrap}.patient-list{min-width:0}.file-row strong{overflow-wrap:anywhere}.image-stage img{max-height:60dvh}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:1100px){.assessment-item .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search{font-size:16px!important}}
@media(max-width:599px){.assessment-item .form-grid{grid-template-columns:minmax(0,1fr)}}
/* Field dictation stays in place, without a recording dialog. */
.voice-field{flex-wrap:wrap}.voice-inline-status{flex:0 0 100%;font-size:12px;line-height:1.5;color:#147e73}.voice-inline-status:empty{display:none}.voice-button[aria-pressed="true"]{background:#147e73;color:white}.voice-field>input,.voice-field>textarea{flex-basis:calc(100% - 54px)}
.flow-notice{padding:14px 16px;margin:12px 0;border-left:4px solid #147e73;border-radius:8px;background:#edf7f3;color:#163e38;font-size:14px;line-height:1.65}.flow-notice p{margin:6px 0}.flow-notice ul{padding-left:20px;margin:8px 0}.patient-entry{display:flex;align-items:center;gap:4px}.patient-entry .patient-card{flex:1;min-width:0}.patient-delete{border:0;background:transparent;color:#147e73;padding:10px 6px;min-height:44px;cursor:pointer}.danger{color:#147e73!important}.trash-row{padding:16px 0;border-bottom:1px solid #d7e4df}.trash-row p{font-size:13px;color:#5c756e}.ai-progress{padding:16px;border:1px solid #83bdb0;background:#e7f5ef;color:#174c42;border-radius:10px;line-height:1.6;margin:14px 0}.ai-progress[data-phase="working"]{border-left:5px solid #147e73}.audio-extract{margin-top:12px!important;font-weight:700!important;min-height:48px}.file-row small{display:block}
#report-dialog{width:min(960px,96vw)}.report-table-wrap{overflow-x:auto}.report-table{width:100%;border-collapse:collapse;font-size:14px}.report-table th,.report-table td{padding:12px 8px;border-bottom:1px solid #dce6e2;text-align:left;vertical-align:top}.report-table small,[data-target-key]~small{display:block;color:#52736b}#course-action-fields label small{display:block;color:#52736b;margin:8px 0}.form-error{color:#a43c30;white-space:pre-wrap}#report-content h3{margin-top:28px}#course-current-recovery{font-size:16px;font-weight:600}
@media print{body:has(#report-dialog[open])>*:not(#report-dialog){display:none!important}#report-dialog[open]{position:static!important;display:block!important;max-height:none!important;width:100%;max-width:none;border:0;overflow:visible}#report-dialog::backdrop{display:none}#report-dialog .dialog-head,#report-form,#report-print{display:none!important}.report-table-wrap{overflow:visible}.report-table tr{break-inside:avoid}}

button.delete-action,button.patient-delete{color:var(--primary,#147e73)!important;font-family:inherit;font-size:13px!important;font-weight:400!important;background:transparent;border:0;padding:8px 10px;min-height:44px;white-space:nowrap;cursor:pointer}
.visit-picker{position:relative;min-width:280px;margin:0;color:#234a44;font:inherit}.visit-picker summary{list-style:none;padding:13px 16px;border:1px solid #cbded8;border-radius:10px;background:white;cursor:pointer;font:inherit;display:flex;gap:10px;justify-content:space-between;align-items:center}.visit-picker summary::-webkit-details-marker{display:none}.visit-picker summary:after{content:'⌄';color:#147e73}.visit-picker[open] summary:after{content:'⌃'}.visit-options{margin-top:6px;padding:4px;background:white;border:1px solid #cbded8;border-radius:10px;max-height:320px;overflow-y:auto}.visit-option-row{display:flex;align-items:center;border-bottom:1px solid #e5eeea}.visit-option-row:last-child{border-bottom:0}.visit-option-row.selected{background:#eaf5f1;border-radius:6px}.visit-option{flex:1;min-width:0;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;padding:12px 10px;font-family:inherit;font-size:inherit;font-weight:400;color:inherit;line-height:1.5;cursor:pointer}.visit-check{color:#147e73}.visit-controls .visit-picker{font-size:15px;font-weight:400}@media(max-width:760px){.visit-controls .visit-picker{width:100%;min-width:0;font-size:16px}.visit-option-row button.delete-action{width:auto!important;flex:0 0 auto}}
