/* Scoped to the medical coordinator's unified workspace. */
body #mainApp #content .mw-shell{display:grid;gap:18px;width:100%;min-width:0}
body #mainApp #content .mw-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;flex-wrap:wrap}
body #mainApp #content .mw-heading h2{font-size:20px!important;line-height:1.35;margin:8px 0!important}
body #mainApp #content .mw-heading h3{font-size:16px!important;margin:0!important}
body #mainApp #content .mw-next p{max-width:72ch;font-size:14px;line-height:1.5}
body #mainApp #content .mw-stagebar{padding:14px 16px;background:var(--surface-2,var(--tint-2));border-radius:12px}
body #mainApp #content .mw-local-nav{display:flex;flex-wrap:wrap;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--border)}
body #mainApp #content .mw-work-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px;margin:24px 0}
body #mainApp #content .mw-work-grid>*{min-width:0}
body #mainApp #content .mw-complaints .chart-card{margin:0!important;padding:0!important;background:transparent!important}
body #mainApp #content .mw-request-summary h3{font-size:16px!important;margin:0 0 12px!important}
body #mainApp #content .mw-task-link{display:grid;gap:5px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:left;font:inherit;cursor:pointer}
body #mainApp #content .mw-task-link b{overflow-wrap:anywhere}
body #mainApp #content .mw-status{font-size:12px;color:var(--muted);margin-top:5px}
body #mainApp #content .mw-status.is-review{color:var(--accent-text,var(--accent));font-weight:600}
body #mainApp #content .mw-doc-links{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}
body #mainApp #content .mw-legacy{margin-top:24px;padding:14px 0;border-top:1px solid var(--border)}
body #mainApp #content .mw-legacy>summary,body #mainApp #content .mw-more>summary{color:var(--muted);font-size:13px;cursor:pointer}
body #mainApp #content .mw-more{margin:12px 0}
body #mainApp #content .mw-more .cc-tabs{margin:10px 0!important}
body #mainApp #content .mw-queue-list{margin-top:16px}
body #mainApp #content .mw-client-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--border)}
body #mainApp #content .mw-client-row:last-child{border-bottom:0}
body #mainApp #content .mw-client-row>div{min-width:0;overflow-wrap:anywhere}
body #mainApp #content .mw-client-row>button{flex-shrink:0}
body #mainApp #content .mw-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
body #mainApp #content .mw-schedule{margin:24px 0}
body #mainApp #content .mw-schedule>summary{cursor:pointer;color:var(--muted)}
body #mainApp #content .mw-guide-back{margin:0 0 14px}
body #mainApp #content .mw-shell [hidden]{display:none!important}
body #mainApp #content .mw-shell .cc-flow{margin:0!important;padding:0!important;background:transparent!important}
body #mainApp #content .mw-shell .cc-flow>.cc-section-title{margin-top:16px}
body #mainApp #content .mw-shell .mw-articles .chart-card{margin-top:12px!important}
body #mainApp #content .mw-shell input:focus-visible,body #mainApp #content .mw-shell textarea:focus-visible,body #mainApp #content .mw-shell button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:740px){
 body #mainApp #content .mw-work-grid{grid-template-columns:1fr;gap:22px}
 body #mainApp #content .mw-client-row{align-items:start;flex-wrap:wrap;gap:12px}
 body #mainApp #content .mw-heading{gap:12px}
 body #mainApp #content .mw-shell{gap:14px}
 body #mainApp #content .mw-shell .role-assignment-form{grid-template-columns:1fr!important}
 body #mainApp #content .mw-shell input,body #mainApp #content .mw-shell textarea,body #mainApp #content .mw-shell select{font-size:16px!important}
}

body #mainApp #content .mw-compat-nav{display:none!important}

/* Moved work panels must shrink inside the grid, including their native file controls. */
body #mainApp #content .mw-shell>[data-mw-panel],
body #mainApp #content .mw-unified .cc-groups,
body #mainApp #content .mw-unified .cc-group,
body #mainApp #content .mw-shell :is([data-mw-files],[data-mw-chat],[data-mw-flow],[data-mw-requests],.cc-file-visibility,.team-doc-upload,.team-doc-card,.team-doc-grid,.team-doc-group,.cf-body,.sw-panel){min-width:0;max-width:100%;box-sizing:border-box}
body #mainApp #content .mw-pane-head{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:12px;margin:0 0 16px}
body #mainApp #content .mw-pane-head>.mini-btn{align-self:flex-start}
body #mainApp #content .mw-shell [data-mw-files] .modal-hint{font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere}
body #mainApp #content .mw-shell [data-mw-files] h3{font-size:16px!important;line-height:1.4!important;margin:20px 0 12px!important}
body #mainApp #content .mw-shell .team-doc-name{overflow-wrap:anywhere;white-space:normal}
body #mainApp #content .mw-shell .team-doc-actions{display:flex;flex-wrap:wrap;gap:8px}
body #mainApp #content .mw-shell .team-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body #mainApp #content .mw-shell .team-doc-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
body #mainApp #content .mw-shell .team-doc-upload input[type=file]{min-width:0;width:100%;max-width:100%;font-size:14px;box-sizing:border-box}
body #mainApp #content .mw-shell .team-doc-selected{overflow-wrap:anywhere;white-space:normal;font-size:12px}
body #mainApp #content .mw-shell .team-doc-upload>button{grid-column:1/-1;justify-self:start}
body #mainApp #content .mw-shell .table-wrap{max-width:100%;overflow-x:auto}
body #mainApp #content .mw-shell [data-mw-chat] .cc-chat{margin:0!important}
body #mainApp #content .mw-shell [data-mw-chat] .chart-sub{font-size:13px!important;line-height:1.5!important}
body #mainApp #content .mw-guide-back{margin:0 0 16px}
body #mainApp #content .mw-shell :is(.mw-local-nav,.mw-stagebar) [aria-pressed=true]{background:var(--accent)!important;color:var(--accent-ink,var(--on-accent,#242424))!important;-webkit-text-fill-color:var(--accent-ink,var(--on-accent,#242424))!important;opacity:1!important}
@media(max-width:740px){
 body #mainApp #content .mw-stagebar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px!important}
 body #mainApp #content .mw-stagebar>.modal-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:0!important}
 body #mainApp #content .mw-stagebar>.modal-controls>.mini-btn{width:100%;min-width:0;min-height:44px;padding:10px 8px!important;margin:0!important;font-size:13px!important;white-space:normal}
 body #mainApp #content .mw-local-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body #mainApp #content .mw-local-nav>.mini-btn{min-width:0;width:100%;padding:10px 8px!important;font-size:13px!important;white-space:normal}
 body #mainApp #content .mw-shell .team-doc-grid,body #mainApp #content .mw-shell .team-doc-upload{grid-template-columns:minmax(0,1fr)}
 body #mainApp #content .mw-shell .team-doc-upload>button{width:100%;justify-self:stretch}
 body #mainApp #content .mw-shell .team-doc-upload input[type=file]{font-size:16px!important}
 body #mainApp #content .mw-shell .cc-file-visibility{padding:14px!important}
}

.mw-shell .mw-complaint-brief p{margin:8px 0 16px;line-height:1.5}
.mw-shell .mw-complaint-full>summary,.mw-shell .mw-documents>summary{cursor:pointer;padding:12px 0;font-weight:600}
.mw-shell .mw-complaint-full[open]{padding-bottom:16px}
.mw-shell .mw-documents{margin-top:20px}
.mw-shell .mw-legacy{margin-top:16px}
.mw-shell .mw-next h2{margin-top:0}

body #mainApp #content .mw-work-grid{margin:16px 0;gap:16px}
body #mainApp #content .mw-complaint-brief h3{margin:0 0 8px!important;font-size:16px!important}
body #mainApp #content .mw-complaint-brief p{margin:0 0 10px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-line}
body #mainApp #content .mw-complaint-note{margin:10px 0}
body #mainApp #content .mw-complaint-note small{display:block;margin-bottom:4px;color:var(--text);font-size:12px;font-weight:600}
body #mainApp #content .mw-complaint-full>summary{padding:10px 0;font-size:14px}
body #mainApp #content .mw-complaint-full .mg-complaint-list{padding-left:20px;margin:8px 0 12px}
body #mainApp #content .mw-complaint-full .mg-complaint-source p{margin:8px 0 12px;line-height:1.45}
body #mainApp #content .mw-complaint-full .mg-complaint-edit{margin-top:12px}
body #mainApp #content .mw-complaint-full textarea{box-sizing:border-box;width:100%;margin:8px 0 10px;padding:12px!important}
body #mainApp #content .mw-documents{margin-top:8px}


body #mainApp #content .mw-complaints>.mg-complaint-edit{margin:12px 0 8px}
body #mainApp #content .mw-complaints>.mg-complaint-edit>summary{cursor:pointer;display:list-item;min-height:44px;box-sizing:border-box;padding:12px 0;font-weight:600;font-size:14px}
body #mainApp #content .mw-complaints>.mg-complaint-edit textarea{box-sizing:border-box;width:100%;margin:8px 0 12px;padding:12px!important}
body #mainApp #content .mw-complaints [data-mg-complaint-save]{min-height:44px}
body #mainApp #content .mw-complaints [data-mg-complaint-message]:empty{display:none}
body #mainApp #content .mw-complaint-note small.modal-hint{font-weight:400}

body #mainApp #content .detail-page.mw-unified{gap:16px!important}
body #mainApp #content .detail-page.mw-unified .cc-head{padding:0!important;margin:0!important;gap:8px}
body #mainApp #content .mw-unified .cc-groups,body #mainApp #content .mw-unified .cc-group{margin:0!important;gap:16px!important}
body #mainApp #content .mw-unified .mw-shell{gap:16px!important;margin:0!important}
body #mainApp #content .mw-unified .mw-stagebar,body #mainApp #content .mw-unified .mw-next{padding:16px!important;margin:0!important}
body #mainApp #content .mw-unified .mw-local-nav{padding:0!important;margin:0!important;gap:8px!important;border:0}
body #mainApp #content .mw-unified .mw-heading,body #mainApp #content .mw-unified .modal-controls{gap:8px!important}
body #mainApp #content .mw-unified .mw-next>.modal-controls{margin:12px 0 0!important}
body #mainApp #content .mw-unified .mw-next .badge{margin:0!important}
body #mainApp #content .mw-unified .mw-work-grid{margin:16px 0 0!important;gap:16px!important}
body #mainApp #content .mw-complaint-entry{margin:16px 0}
body #mainApp #content .mw-complaint-entry label{display:block;font-size:14px;font-weight:600}
body #mainApp #content .mw-complaint-entry textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0!important;padding:12px!important;line-height:1.45;font-weight:400}
body #mainApp #content .mw-complaint-entry [data-mg-complaint-save]{margin:0!important;min-height:44px}
body #mainApp #content .mw-complaint-full>summary{padding:8px 0!important}

body #mainApp #content .mw-complaint-brief{color:var(--text,#f5f5f5)}
body #mainApp #content .mw-complaint-brief h3{font-size:18px!important;margin:0 0 12px!important}
body #mainApp #content .mw-symptom-list{list-style:none;margin:0!important;padding:0!important;display:grid;gap:0}
body #mainApp #content .mw-symptom-list li{padding:10px 0!important;margin:0!important;border-bottom:1px solid var(--border);font-size:17px!important;line-height:1.5!important;font-weight:600;overflow-wrap:anywhere}
body #mainApp #content .mw-complaint-note{padding:12px 0!important;margin:0!important;border-bottom:1px solid var(--border)}
body #mainApp #content .mw-complaint-note>small:first-child{font-size:12px!important;line-height:1.4!important;font-weight:400!important;margin:0 0 6px!important}
body #mainApp #content .mw-complaint-note>p{font-size:17px!important;line-height:1.55!important;font-weight:600!important;margin:0 0 6px!important;white-space:pre-wrap}
body #mainApp #content .mw-complaint-note>.mw-complaint-author{display:block;font-size:12px!important;line-height:1.45!important;font-weight:400!important;margin:0!important;overflow-wrap:anywhere}
body #mainApp #content .mw-complaint-full .mg-kicker{display:block;font-size:12px!important;line-height:1.45!important;margin:8px 0!important}
body #mainApp #content .mw-complaint-full .mg-complaint-list{list-style:none;padding:0!important;margin:0!important}
body #mainApp #content .mw-complaint-full .mg-complaint-list li{font-size:15px!important;font-weight:400!important;line-height:1.6!important;margin:0 0 12px!important;white-space:pre-wrap}

body #mainApp #content .mw-shell [data-mw-files]{display:grid;gap:16px;min-width:0}
body #mainApp #content .mw-shell [data-mw-files]>.chart-card,body #mainApp #content .mw-shell [data-mw-files]>.modal-section{margin:0!important;padding:16px!important;min-width:0}
body #mainApp #content .mw-shell [data-mw-files]>button{justify-self:start;margin:0!important}
body #mainApp #content .mw-shell [data-mw-files] h3{margin:0 0 12px!important;font-size:17px!important}
body #mainApp #content .mw-document{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--border);min-width:0}
body #mainApp #content .mw-document>b{font-size:16px;line-height:1.45;overflow-wrap:anywhere}
body #mainApp #content .mw-document>small{font-size:12px!important}
body #mainApp #content .mw-document .modal-controls{margin:0!important;flex-wrap:wrap}
body #mainApp #content .mw-unclassified,body #mainApp #content .mw-journal-other,body #mainApp #content .mw-consultation{margin-top:16px}
body #mainApp #content .mw-shell :is(.mw-unclassified,.mw-journal-other,.mw-consultation,.mw-record,.mw-record-group)>summary{padding:12px 0;cursor:pointer;font-size:14px;font-weight:600}
body #mainApp #content .mw-journal>.modal-section-title{margin:0 0 12px!important;padding:0!important}
body #mainApp #content .mw-journal .mw-journal-entry{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;margin:0 0 16px!important}
body #mainApp #content .mw-journal-entry :is(select,textarea){width:100%!important;min-width:0!important;max-width:100%;margin:0!important;box-sizing:border-box;font-size:16px!important}
body #mainApp #content .mw-journal-entry textarea{min-height:116px;padding:12px!important;line-height:1.5;resize:vertical}
body #mainApp #content .mw-journal-entry>button{justify-self:start;margin:0!important;min-height:44px}
body #mainApp #content .mw-journal-entry>.modal-hint{margin:0!important;font-size:12px!important;line-height:1.45}
body #mainApp #content .mw-journal-entry>[role=status]:empty{display:none}
body #mainApp #content .mw-journal .journal-row{padding:12px 0!important;margin:0!important;border-bottom:1px solid var(--border)}
body #mainApp #content .mw-journal .journal-head{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:12px!important;line-height:1.5}
body #mainApp #content .mw-journal .journal-head :is(span,b){font-size:12px!important}
body #mainApp #content .mw-journal .journal-text{margin-top:6px;font-size:16px!important;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
body #mainApp #content .mw-record{margin-top:16px}
body #mainApp #content .mw-record .chart-card{padding:0!important;margin:0!important;background:transparent!important}
body #mainApp #content .mw-record>.chart-card>.section-heading{margin:12px 0}
body #mainApp #content .mw-record .role-work-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px!important;margin:0!important}
body #mainApp #content .mw-record-group{min-width:0;grid-column:1/-1}
body #mainApp #content .mw-record-group .assignment-field-help{font-size:12px!important;line-height:1.45}
body #mainApp #content .mw-record-group .modal-hint{font-size:13px!important;line-height:1.5;margin:0 0 12px!important}
body #mainApp #content .mw-record :is(input,select,textarea){box-sizing:border-box;min-width:0;width:100%}

body #mainApp #content .mw-summary-option{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.45;padding:8px 0;cursor:pointer}
body #mainApp #content .mw-summary-option input{flex:0 0 20px;width:20px!important;height:20px;margin:0!important}
body #mainApp #content .mw-summary-meta{margin:0 0 8px;padding:0;min-width:0}
body #mainApp #content .mw-summary-meta>summary{cursor:pointer;padding:8px 0;font-size:13px;font-weight:600}
body #mainApp #content .mw-summary-meta>label{display:grid;gap:8px;font-size:13px}
body #mainApp #content .mw-summary-item{display:flex;align-items:flex-start;gap:8px;margin:12px 0;font-size:13px;line-height:1.45}
body #mainApp #content .mw-summary-item input{flex:0 0 20px;width:20px!important;height:20px;margin:0!important}

body #mainApp #content .mw-stagebar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
body #mainApp #content .mw-client-info{margin:0;padding:0;background:transparent;border:0;min-width:0}
body #mainApp #content .mw-client-info>summary{padding:8px 0;cursor:pointer;font-size:14px;font-weight:600;min-height:36px;box-sizing:border-box}
body #mainApp #content .mw-client-facts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:8px;min-width:0}
body #mainApp #content .mw-client-facts .cc-fact{display:grid;grid-template-columns:minmax(90px,.6fr) minmax(0,1fr);gap:8px;align-items:start;padding:8px 0!important;margin:0!important;background:transparent!important;border-radius:0!important;min-height:0!important}
body #mainApp #content .mw-client-facts .cc-fact>span{font-size:13px!important;line-height:1.45!important}
body #mainApp #content .mw-client-facts .cc-fact>b{font-size:14px!important;line-height:1.45!important;overflow-wrap:anywhere}
body #mainApp #content .mw-client-facts .cc-fact:last-child{border:0}

.med-guide-wrap fieldset.mg-plan-fields{border:0;padding:0;margin:0;min-width:0}.med-guide-wrap [data-mgp-message]{min-height:24px;padding-block:8px;overflow-wrap:anywhere}.med-guide-wrap [data-mgp-message]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.med-guide-wrap .mg-plan[aria-busy="true"] [data-mgp-message]{color:var(--accent-text)}.mg-v-map{margin-top:18px}.mg-v-title{display:flex;align-items:flex-start;gap:14px;margin:0 0 20px;padding:18px;background:var(--accent-soft);border-left:0;border-radius:12px}.mg-v-title h4{margin:0 0 6px;font-size:20px;line-height:1.35}.mg-v-title p{margin:0;line-height:1.5}.mg-v-badge{flex:none;padding:8px 13px;background:var(--accent);color:#242424;font-size:22px;font-weight:800;border-radius:10px}.mg-v-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}.mg-v-bases,.mg-v-proof{min-width:0;display:grid;gap:16px}.mg-v-point,.mg-v-evidence,.mg-v-conditions{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;overflow:hidden}.mg-v-point-head{display:grid;gap:8px;background:var(--accent-soft);padding:16px 18px;border-left:0}.mg-v-point-head b{font-size:18px;color:var(--accent-text)}.mg-v-point-head span{line-height:1.5}.mg-v-list{list-style:none;margin:0;padding:0}.mg-v-list>li{margin:0;padding:14px 18px;line-height:1.65;overflow-wrap:anywhere;font-size:15px}.mg-v-list>li+li{border-top:1px solid var(--border)}.mg-v-evidence h4,.mg-v-conditions h4{padding:16px 18px;margin:0;font-size:17px;line-height:1.4}.mg-v-evidence{border-top:0}.mg-v-evidence h4{color:var(--mg-reference-text)}.mg-v-evidence>p,.mg-v-clinical{margin:0;padding:14px 18px;line-height:1.6}.mg-v-clinical{border-top:1px solid var(--border)}.mg-v-clinical summary{cursor:pointer;color:var(--mg-reference-text)}.mg-v-clinical .mg-v-list>li{padding-left:0;padding-right:0}.mg-v-conditions{border-top:0}.mg-v-conditions h4{color:var(--accent-text)}.mg-v-list>.mg-v-exception{border-left:0}.mg-v-other{margin-top:16px;padding:14px 18px;border:1px solid var(--border);border-radius:10px}.mg-v-other summary{cursor:pointer;font-weight:700}.mg-v-other-point{padding-top:14px}.mg-v-other-point p{margin:6px 0 0;line-height:1.6}.mg-v-source-text{margin-top:14px}.mg-v-map .mg-proof-number{font-weight:700}.mg-v-map .mg-proof-source{margin-top:18px;font-size:13px;line-height:1.6}@media(min-width:1600px){.mg-v-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.mg-v-list>li{font-size:16px}}@media(max-width:850px){.mg-v-layout{grid-template-columns:minmax(0,1fr)}.mg-v-title{padding:14px;gap:10px}.mg-v-title h4{font-size:18px}.mg-v-point-head,.mg-v-list>li,.mg-v-evidence h4,.mg-v-conditions h4{padding:13px 14px}.mg-v-badge{font-size:18px}.mg-v-list>li{font-size:15px}}
.mg-v-tests{display:flex;flex-wrap:wrap;gap:8px}.mg-v-tests>span{padding:8px 10px;border:1px solid var(--info-text);border-radius:8px;color:var(--mg-reference-text);line-height:1.45}.mg-v-clinical>b{color:var(--mg-reference-text)}.mg-clinical-filter{display:grid;gap:8px;margin:12px 0;max-width:100%;color:var(--mg-reference-text)}.mg-clinical-filter select{width:100%;min-width:0;max-width:100%;font:inherit;color:inherit;background:var(--surface,#383838);border:1px solid var(--border,#505050);border-radius:10px;padding:12px}.mg-clinical-card[hidden]{display:none}.mg-clinical-context{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px;margin:14px 0}.mg-clinical-card .mg-clinical-v{padding:10px;border-left:0;background:var(--accent-soft);color:var(--text);border-radius:6px}.mg-clinical-card .mg-clinical-v strong{color:var(--mg-condition-text)}.mg-norm-table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--border);border-radius:8px}.mg-norm-table table{border-collapse:collapse;min-width:680px;width:100%;font-size:14px;line-height:1.45}.mg-norm-table caption{text-align:left;padding:10px;font-weight:700}.mg-norm-table th,.mg-norm-table td{padding:8px;border:1px solid var(--border);white-space:normal;vertical-align:top}.mg-norm-table th{background:var(--surface)}.mg-clinical-card{padding:16px;background:var(--surface,#383838);border:1px solid var(--border,#505050);border-radius:12px;min-width:0;overflow-wrap:anywhere}.mg-clinical-card>b{color:var(--mg-reference-text)}.mg-clinical-card p{line-height:1.55;margin:10px 0}.mg-clinical-card strong{color:var(--mg-reference-text)}.mg-v-clinical details{margin-top:14px;line-height:1.6}.mg-v-clinical details>p{line-height:1.6}.mg-v-clinical li{margin:8px 0}.mg-v-tests>span>a{font-size:12px;margin-left:6px;text-decoration:underline}
.med-guide-wrap .mg-proof-map{--mg-reference-text:color-mix(in srgb,var(--info-text) 85%,var(--text) 15%);--mg-condition-text:color-mix(in srgb,var(--accent-text) 85%,var(--text) 15%)}.med-guide-wrap .mg-proof-number{background:var(--accent-soft);color:var(--mg-condition-text);font-weight:700;padding:1px 4px;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.med-guide-wrap .mg-proof-exam{color:var(--mg-reference-text)}.med-guide-wrap .mg-proof-head [role="columnheader"]:nth-child(2){color:var(--mg-reference-text)}.med-guide-wrap .mg-proof-head [role="columnheader"]:nth-child(3){color:var(--mg-condition-text)}.med-guide-wrap .mg-proof-row>div:nth-child(3){background:var(--accent-soft);padding:10px;border-radius:var(--radius,10px)}.med-guide-wrap .mg-proof-rules>div{border-inline-start:0}.med-guide-wrap .mg-proof-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:13px;margin:8px 0 12px}.med-guide-wrap .mg-proof-legend span{padding:5px 9px;border-radius:6px;background:var(--accent-soft);color:var(--mg-condition-text)}.med-guide-wrap .mg-proof-legend span+span{background:var(--info-soft);color:var(--mg-reference-text)}
.med-guide-wrap .mg-complaints{margin-block:16px}
.med-guide-wrap .mg-complaint-source{margin-block:12px}
.med-guide-wrap .mg-complaint-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:8px 0}
.med-guide-wrap .mg-complaint-list li{padding:8px 12px;background:var(--surface-2);border-radius:var(--radius,12px);max-width:100%;overflow-wrap:anywhere}
.med-guide-wrap .mg-complaint-edit{margin-block:14px}
.med-guide-wrap .mg-complaint-edit label{display:block;margin-block:10px}
.med-guide-wrap .mg-complaint-edit textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:88px;padding:12px;font:inherit;font-size:16px;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:var(--radius,12px)}
.med-guide-wrap .mg-proof-directions{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 16px}
.med-guide-wrap .mg-proof-directions button{max-width:100%;white-space:normal;text-align:start;min-height:44px}
.med-guide-wrap .mg-proof-directions button.primary{background:var(--accent);color:#1f1f1f}
.med-guide-wrap .mg-proof-article{min-width:0;overflow-wrap:anywhere}
.med-guide-wrap .mg-proof-article h3{font-size:21px;line-height:1.4;margin:12px 0}
.med-guide-wrap .mg-proof-match{color:var(--text-muted);font-size:14px}
.med-guide-wrap .mg-proof-map{font-size:15px;line-height:1.55}
.med-guide-wrap .mg-proof-map h4{font-size:19px;margin:22px 0 8px}
.med-guide-wrap .mg-proof-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.med-guide-wrap .mg-proof-rules>div{padding:14px;background:var(--surface-2);border-radius:var(--radius,12px)}
.med-guide-wrap .mg-proof-rules p{margin:6px 0 0}
.med-guide-wrap .mg-proof-head,.med-guide-wrap .mg-proof-row{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.25fr);gap:16px;padding:16px 12px}
.med-guide-wrap .mg-proof-head{font-weight:700;background:var(--surface-2);border-radius:var(--radius,12px)}
.med-guide-wrap .mg-proof-row{border-bottom:1px solid var(--border)}
.med-guide-wrap .mg-proof-row>div{min-width:0}
.med-guide-wrap .mg-proof-row p{margin:6px 0 0}
.med-guide-wrap .mg-proof-row small{display:block;color:var(--text-muted);margin-top:8px}
.med-guide-wrap .mg-proof-mobile-label{display:none}
.med-guide-wrap .mg-proof-source{font-size:13px;color:var(--text-muted)}
.med-guide-wrap .mg-proof-source a{color:var(--accent-text,var(--accent));text-decoration:underline}
.med-guide-wrap .mg-proof-records,.med-guide-wrap .mg-proof-original{margin-block:18px}
.med-guide-wrap .mg-proof-original pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px}
@media(max-width:900px){.med-guide-wrap .mg-proof-head{display:none}.med-guide-wrap .mg-proof-row{grid-template-columns:1fr;gap:12px;padding:16px;background:var(--surface-2);border-radius:var(--radius,12px);margin-block:12px}.med-guide-wrap .mg-proof-mobile-label{display:block;font-size:13px;color:var(--text-muted);font-weight:600;margin-bottom:3px}}
@media(max-width:600px){.med-guide-wrap .mg-proof-rules{grid-template-columns:1fr}.med-guide-wrap .mg-proof-article h3{font-size:18px}}
.med-guide-wrap [hidden]{display:none!important}.med-guide-wrap .mg-direction-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}.med-guide-wrap .mg-direction{display:flex;flex-direction:column;gap:8px;text-align:left;padding:18px;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:var(--radius,12px);font:inherit;cursor:pointer;min-width:0}.med-guide-wrap .mg-direction strong{font-size:17px;line-height:1.4}.med-guide-wrap .mg-direction-action{color:var(--accent);margin-top:auto;padding-top:8px}.med-guide-wrap .mg-direction:hover{border-color:var(--accent)}.med-guide-wrap .mg-direction:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.med-guide-wrap .mg-flow-workspace{max-width:none;margin:0}.med-guide-wrap .mg-flow-tabs{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding:12px 0;margin:12px 0}.med-guide-wrap .mg-flow-tabs button{flex:0 0 auto;min-height:44px;white-space:nowrap}.med-guide-wrap .mg-flow-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid var(--border);padding-top:18px;margin-top:20px}.med-guide-wrap .mg-flow-pager{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:14px 0}.med-guide-wrap .mg-flow-pager label{flex:1;min-width:140px;font-size:13px}.med-guide-wrap .mg-flow-pager select{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}.med-guide-wrap .mg-flow-pages .mg-criterion-review:not([data-mgf-visible]),.med-guide-wrap .mg-flow-pages .mg-answer-item:not([data-mgf-visible]){display:none}.med-guide-wrap .mg-flow-reference{border-top:1px solid var(--border);margin-top:20px}.med-guide-wrap .mg-flow-context{margin:8px 0}.med-guide-wrap .mg-extra-search{margin-top:18px}.med-guide-wrap .mg-extra-search>summary{cursor:pointer}.med-guide-wrap #medGuidePlanPanel>summary{cursor:pointer}.med-guide-wrap .mg-flow-workspace h4{margin:12px 0;font-size:18px}.med-guide-wrap .mg-plan{margin-block:16px;overflow-wrap:anywhere}.med-guide-wrap .mg-plan label{display:block;margin-block:12px;font-size:14px}.med-guide-wrap .mg-plan :is(input,textarea,select){box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0!important;min-height:44px;padding:10px;font:inherit;font-size:16px;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius,12px)}.med-guide-wrap .mg-plan textarea{min-height:80px;resize:vertical}.med-guide-wrap .mg-plan :is(input,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.med-guide-wrap .mg-plan button{max-width:100%;white-space:normal}.med-guide-wrap .mg-plan .modal-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.med-guide-wrap .mg-plan-item,.med-guide-wrap .mg-plan-gap{margin-block:14px}.med-guide-wrap .mg-plan-item>summary{overflow-wrap:anywhere}.med-guide-wrap .mg-auto-row,.med-guide-wrap .mg-auto-proposal,.med-guide-wrap .mg-auto-fact{min-width:0;margin-block:16px;overflow-wrap:anywhere}.med-guide-wrap .mg-auto label{display:block;margin-block:10px}.med-guide-wrap .mg-auto select{box-sizing:border-box;width:100%;max-width:100%;min-width:0!important;white-space:normal}.med-guide-wrap .mg-auto button{max-width:100%;white-space:normal}.med-guide-wrap .mg-auto-proposal{padding:14px;background:var(--surface-2);border-radius:var(--radius,12px)}.med-guide-wrap .mg-criterion-review{min-width:0;padding-block:12px;border-bottom:1px solid var(--border)}.med-guide-wrap .mg-criterion-review label{display:block;font-size:14px;margin-block:12px}.med-guide-wrap .mg-criterion-review :is(select,textarea,input){box-sizing:border-box;display:block;width:100%;min-width:0!important;max-width:100%;font:inherit;font-size:16px;min-height:44px;padding:10px;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:var(--radius,12px)}.med-guide-wrap .mg-criterion-review textarea{min-height:80px;resize:vertical}.med-guide-wrap .mg-criterion-review :is(select,textarea,input):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.med-guide-wrap .mg-criteria-form button{white-space:normal;max-width:100%;margin-block:8px}.med-guide-wrap .mg-criteria-form [hidden]{display:none!important}.med-guide-wrap [data-mgc-state="confirmed"]{color:var(--good,#2e9e6b)}.med-guide-wrap [data-mgc-state="conflict"]{color:var(--bad,#dc3545)}.med-guide-wrap [data-mgc-state="missing"],.med-guide-wrap [data-mgc-state="client"]{color:var(--warning,#a86c00)}.med-guide-wrap .mg-answer-item{margin-block:14px}.med-guide-wrap .mg-answer-item label{display:block;font-weight:600;margin-bottom:6px}.med-guide-wrap .mg-answer-item textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:76px;resize:vertical;font:inherit;font-size:16px;padding:10px;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius,12px)}.med-guide-wrap .mg-answer-item textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.med-guide-wrap .mg-answer-form [hidden]{display:none!important}.med-guide-wrap .mg-answer-form button{max-width:100%;white-space:normal;margin-bottom:8px}.med-guide-wrap .mg-facts{white-space:pre-wrap;overflow-wrap:anywhere}.med-guide-wrap .mg-evidence{color:var(--text)}.med-guide-wrap .mg-evidence a{color:var(--accent-text,var(--accent));text-decoration:underline}.med-guide-wrap .mg-card{min-width:0;overflow-wrap:anywhere}.med-guide-wrap .mg-kicker{font-size:13px;color:var(--text-muted);margin-bottom:6px}.med-guide-wrap .mg-section{margin-top:18px}.med-guide-wrap .mg-section h4{font-size:15px;margin:0 0 8px}.med-guide-wrap .mg-section p{margin:6px 0}.med-guide-wrap .mg-list{margin:0;padding-inline-start:20px;display:grid;gap:8px}.med-guide-wrap .mg-criteria{display:grid;gap:10px}.med-guide-wrap .mg-criterion{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding-block:8px;border-bottom:1px solid var(--border)}.med-guide-wrap .mg-status{font-size:12px;color:var(--text-muted);white-space:nowrap}.med-guide-wrap .mg-next{padding:14px;background:var(--surface-2);border-radius:var(--radius,12px)}.med-guide-wrap .mg-next .mini-btn{white-space:normal;max-width:100%}.med-guide-wrap .med-guide-client{max-width:100%;min-width:0!important}.med-guide-wrap .mg-results{align-items:start}@media(max-width:600px){.med-guide-wrap .mg-criterion{grid-template-columns:minmax(0,1fr)}.med-guide-wrap .role-card{padding:16px}.med-guide-wrap .mg-status{white-space:normal}}
      .med-guide-wrap{font-size:15px;line-height:1.55;}
      .med-guide-wrap .view-title{font-size:26px;}
      .med-guide-wrap .view-sub{font-size:15px;line-height:1.55;max-width:900px;}
      .med-guide-wrap .modal-field-label{font-size:14px;font-weight:700;}
      .med-guide-wrap select{font-size:16px;padding:10px 12px;min-height:44px;}
      .med-guide-wrap input[type="search"]{font-size:16px;padding:14px 16px;min-height:48px;border-radius:10px;}
      .med-guide-wrap .mode-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 16px;}
      .med-guide-wrap .mode-tabs .mini-btn{font-size:15px;padding:12px 18px;min-height:46px;border-radius:8px;}
      .med-guide-wrap .cards-grid{display:grid;grid-template-columns:1fr;gap:16px;}
      @media(min-width:960px){.med-guide-wrap .cards-grid{grid-template-columns:1fr 1fr;}}
      .med-guide-wrap .role-card{padding:20px;border-radius:12px;}
      .med-guide-wrap .role-card h3{font-size:18px;margin-bottom:8px;line-height:1.35;}
      .med-guide-wrap table{font-size:14.5px;}
      .med-guide-wrap table th,.med-guide-wrap table td{padding:12px 10px;}
      .med-guide-wrap details summary{font-size:14.5px;padding:10px 0;font-weight:600;}
      .med-guide-wrap .mini-btn[data-med-guide-add]{font-size:15px;padding:12px 16px;min-height:44px;}
    
body #mainApp #content .mw-inline-guide{margin:16px 0!important;min-width:0}
body #mainApp #content .mw-inline-guide>h3{margin:0 0 8px!important}
body #mainApp #content .mw-guide-search{display:flex;align-items:end;gap:8px;margin:16px 0}
body #mainApp #content .mw-guide-search label{display:grid;gap:6px;flex:1;min-width:0;font-size:14px}
body #mainApp #content .mw-guide-search input{width:100%;min-width:0;box-sizing:border-box;font-size:16px}
body #mainApp #content .mw-inline-guide .mg-proof-directions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:8px}
body #mainApp #content .mw-inline-guide .mg-proof-directions button{white-space:normal;text-align:left;overflow-wrap:anywhere;line-height:1.4}
body #mainApp #content .mw-inline-guide .mg-proof-match{font-size:13px;line-height:1.5}
body #mainApp #content .mw-inline-guide pre{white-space:pre-wrap;overflow-wrap:anywhere}
body #mainApp #content .mw-inline-guide [hidden]{display:none!important}
body #mainApp #content .mw-inline-guide :is(input,textarea,select){max-width:100%;box-sizing:border-box}
body #mainApp #content .mw-inline-guide .mg-proof-article{min-width:0}
body #mainApp #content .mw-articles>summary{padding:12px 0;cursor:pointer}

body #mainApp #content .mw-journey{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:16px 0 24px}
body #mainApp #content .mw-journey button{display:flex;flex-direction:column;align-items:center;justify-content:start;gap:6px;padding:8px 2px!important;min-width:0;border-radius:12px!important;white-space:normal;line-height:1.3}
body #mainApp #content .mw-journey button>span{font-size:16px;font-weight:700}
body #mainApp #content .mw-journey button>b{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
body #mainApp #content .mw-shell [data-mw-panel]>h2{margin:0 0 8px!important;font-size:20px!important;line-height:1.3}
body #mainApp #content .mw-shell [data-mw-panel]>.modal-hint{margin:0 0 16px!important}
body #mainApp #content .mw-shell .mw-complaint-brief>h3{display:none}
body #mainApp #content .mw-shell .mw-step-action{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 16px}
body #mainApp #content .mw-shell .mw-analysis{margin:16px 0;padding:0;border-bottom:1px solid var(--border)}
body #mainApp #content .mw-shell :is(.mw-analysis,.mw-proof-details)>summary{padding:12px 0;cursor:pointer;font-weight:600;font-size:15px}
body #mainApp #content .mw-shell .mw-document-form{display:grid;gap:16px;margin:16px 0;padding:0;min-width:0;background:none;border:0}
body #mainApp #content .mw-shell .mw-document-form .sd-field{display:grid;gap:6px;margin:0;padding:0;min-width:0}
body #mainApp #content .mw-shell .mw-document-form .sd-field>span{font-size:15px;line-height:1.4;font-weight:600}
body #mainApp #content .mw-shell .mw-document-form .sd-field>textarea{width:100%;min-width:0;box-sizing:border-box;min-height:100px;margin:0!important;padding:12px!important;font-size:16px!important;line-height:1.5!important;resize:vertical}
body #mainApp #content .mw-shell .mw-document-form .sd-actions-bar{position:static!important;display:flex;flex-wrap:wrap;gap:8px;padding:12px 0!important;margin:0;box-shadow:none;background:none}
body #mainApp #content .mw-shell .mw-document-form .sd-actions-bar .sd-actions-note{width:100%;font-size:12px;line-height:1.5}
body #mainApp #content .mw-shell .mw-document-form .sd-hint{font-size:12px!important;line-height:1.5!important;margin:0!important}
body #mainApp #content .mw-shell[data-active-pane=review] .rw-new-task,body #mainApp #content .mw-shell[data-active-pane=requests] .task-result{display:none!important}
body #mainApp #content .mw-shell [data-mw-requests]>.rw-in-card>section,body #mainApp #content .mw-shell [data-mw-review]>.rw-in-card>section{padding:0!important;margin:16px 0!important;background:none}
body #mainApp #content .mw-shell .mw-support{border-top:1px solid var(--border);padding-top:16px;margin-top:24px}
body #mainApp #content .mw-shell .mw-document-ready{padding:12px 0;color:var(--good-text,var(--text));line-height:1.5}
body #mainApp #content .mw-shell .mw-handover{margin:24px 0}

body #mainApp #content .mw-unified .cc-head{padding:0!important;margin:0 0 12px!important;gap:8px!important}
body #mainApp #content .mw-unified .cc-head .ios-case-avatar{display:none!important}
body #mainApp #content .mw-unified .cc-head-top{gap:6px!important;margin:0!important}
body #mainApp #content .mw-unified .cc-client-meta{margin:0!important}
body #mainApp #content .mw-shell .mw-stagebar{padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;gap:8px!important}
body #mainApp #content .mw-shell .mw-stagebar>div:first-child>b{display:none}
body #mainApp #content .mw-shell .mw-stagebar .mw-client-info{margin:0!important}
body #mainApp #content .mw-shell .mw-stagebar .modal-controls{margin:0!important}
body #mainApp #content .mw-shell .mw-journey{margin:16px 0!important}
body #mainApp #content .mw-shell .mw-journey b{overflow-wrap:normal;word-break:normal;hyphens:none}
body #mainApp #content .mw-shell .mw-field-help>summary{padding:6px 0;font-size:12px;color:var(--text-muted);cursor:pointer}
body #mainApp #content .mw-shell .mw-field-help .sd-hint{display:block;padding:6px 0}

body #mainApp #content .mw-shell[data-active-pane=files] .mw-support{display:none}
body #mainApp #content .mw-shell .mw-plan{margin:16px 0}
body #mainApp #content .mw-shell .mw-plan>summary{padding:12px 0;cursor:pointer;font-size:15px;font-weight:600}
body #mainApp #content .mw-shell .mw-plan>div{margin:12px 0}
@media(max-width:860px){body.ios-preview-active.ios-editing:not(.ios-keyboard-open):has(.mw-shell)>.ios-bottom{display:flex!important}}

body #mainApp #content .mw-shell[data-active-pane=review] .role-task-list>.modal-hint{display:none}

/* The shared mobile card style must not indent the inline medical editor. */
body #mainApp #content .mw-shell .stages-edit.mw-document-form{width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:16px 0!important;padding:0!important;border:0!important;background:transparent!important}

body #mainApp #content .mw-shell [data-mw-panel=requests]{padding:0!important;min-width:0}
body #mainApp #content .mw-shell [data-mw-panel=requests]>h2{margin:0 0 8px!important}
body #mainApp #content .mw-shell [data-mw-panel=requests]>.modal-hint{margin:0 0 24px!important}
body #mainApp #content .mw-shell .mw-plan{padding:0!important;margin:0 0 24px!important;background:none!important}
body #mainApp #content .mw-shell .mw-plan h3,body #mainApp #content .mw-shell .mw-requests-title{margin:0 0 8px!important}
body #mainApp #content .mw-shell .mw-plan>.modal-hint{margin:0 0 12px!important}
body #mainApp #content .mw-shell .mw-plan-item{margin:0 0 12px!important;padding:16px!important;border:1px solid var(--border,#454545);border-radius:12px;box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
body #mainApp #content .mw-shell .mw-plan-item>p{margin:0 0 12px!important;line-height:1.5}
body #mainApp #content .mw-shell [data-mw-requests] .rw-new-task{padding:0!important;margin:12px 0!important;background:none!important}
body #mainApp #content .mw-shell [data-mw-requests] .rw-new-task>summary{padding:0!important;list-style:none}
body #mainApp #content .mw-shell [data-mw-requests] .rw-new-task>summary::-webkit-details-marker{display:none}
body #mainApp #content .mw-shell .mw-step-action{margin:24px 0!important}

/* Status and current location are distinct: completion stays green. */
body #mainApp #content .mw-shell .mw-journey [data-mw-pane]{background:#343434!important;color:#c9c9c9!important;border:2px solid transparent!important;box-shadow:none!important}
body #mainApp #content .mw-shell .mw-journey [aria-current=step]{border-color:#ffca42!important}
body #mainApp #content .mw-shell .mw-journey .is-complete{background:#203d30!important;color:#a4e5bd!important}
body #mainApp #content .mw-shell .mw-journey .is-complete[aria-current=step]{border-color:#91dcae!important}
body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .rw-new-task{background:transparent!important;padding:0!important;margin:12px 0!important;border:0!important;box-shadow:none!important;width:100%!important;box-sizing:border-box!important}
body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .rw-new-task>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:44px!important;padding:12px 16px!important;margin:0!important;box-sizing:border-box!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.4!important;list-style:none!important}
body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .rw-new-task>summary::before{display:none!important}
body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .rw-new-task:not([open])~*{margin-top:16px!important}

body #mainApp #content .mw-shell .mw-complaint-source-card,body #mainApp #content .mw-shell .mw-complaint-note{padding:16px!important;margin:0 0 12px!important;border:1px solid #454545!important;border-radius:12px!important;background:#2d2d2d!important;box-sizing:border-box;min-width:0}
body #mainApp #content .mw-shell .mw-complaint-source-card h4{margin:0 0 12px!important;color:#bcbcbc!important;font-size:13px!important;font-weight:500!important}
body #mainApp #content .mw-shell .mw-symptom-list{display:grid!important;gap:8px!important;list-style:none!important;margin:0!important;padding:0!important}
body #mainApp #content .mw-shell .mw-symptom-list li{margin:0!important;padding:0 0 8px!important;line-height:1.5!important;font-weight:500!important;border-bottom:1px solid #454545}
body #mainApp #content .mw-shell .mw-symptom-list li:last-child{padding-bottom:0!important;border-bottom:0}
body #mainApp #content .mw-shell .mw-complaint-note{border-left:0!important}
body #mainApp #content .mw-shell .mw-complaint-note>small:first-child{display:block!important;color:#b9cce0!important;font-size:13px!important;font-weight:600!important;margin:0 0 8px!important}
body #mainApp #content .mw-shell .mw-complaint-note>p{margin:0!important;font-size:15px!important;line-height:1.55!important;font-weight:400!important;white-space:pre-wrap;overflow-wrap:anywhere}
body #mainApp #content .mw-shell .mw-complaint-note .mw-complaint-author{display:block!important;margin-top:12px!important;color:#a8a8a8!important;font-size:12px!important;line-height:1.4!important;font-weight:400!important}
body #mainApp #content .mw-shell .mw-complaint-entry{margin:24px 0!important;padding:0!important}

/* Navigation has one consistent zone, separate from data-changing actions. */
body #mainApp #content .mw-shell .mw-step-action{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;box-sizing:border-box!important;margin:32px 0 0!important;padding:20px 0 0!important;border-top:1px solid #454545!important;background:transparent!important}
body #mainApp #content .mw-shell .mw-step-action>.mini-btn{background:transparent!important;color:#d5d5d5!important;border:1px solid #666!important;box-shadow:none!important;min-height:44px!important;padding:10px 14px!important;line-height:1.4!important;width:auto!important;max-width:100%!important;white-space:normal!important;text-align:center!important;box-sizing:border-box!important}
body #mainApp #content .mw-shell .mw-step-action>.mini-btn:last-child{margin-inline-start:auto!important}
body #mainApp #content .mw-shell .mw-step-action>.mini-btn:hover{background:#343434!important}
body #mainApp #content .mw-shell .mw-document-form .sd-actions-bar{gap:12px!important;margin:24px 0 0!important;padding:0!important}
body #mainApp #content .mw-shell .mw-document-form .sd-actions-bar .sd-actions-note{margin:0!important;line-height:1.5!important}
body #mainApp #content .mw-shell [data-mw-panel=review]>.modal-controls{margin:24px 0 0!important;gap:12px!important}
body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .rw-in-card{background:transparent!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}
body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .rw-new-task{background:transparent!important;border:0!important;box-shadow:none!important}

body #mainApp #content .mw-shell .mw-step-action{border:0!important;padding-top:12px!important}
body #mainApp #content .mw-shell .mw-step-action>.mini-btn{border:0!important;background:#343434!important;box-shadow:none!important}

body #mainApp #content .mw-shell .mg-proof-directions>[data-mgproof-open]{display:block!important;text-align:start!important;justify-content:flex-start!important;padding:12px 16px!important;line-height:1.45!important;white-space:normal!important;height:auto!important;min-height:44px!important;overflow-wrap:anywhere!important}

body #mainApp #content .mw-shell .mw-plan-item{background:#303030!important;border:0!important;padding:16px!important;margin:0 0 16px!important}
body #mainApp #content .mw-shell .mw-plan-item h4{font-size:12px!important;color:#bcbcbc!important;margin:0 0 8px!important;font-weight:400!important}
body #mainApp #content .mw-shell .mw-plan-item [data-mw-plan]{display:flex!important;width:100%!important;justify-content:center!important;white-space:normal!important;min-height:44px!important;box-sizing:border-box!important}
body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .rw-new-task>summary{background:#343434!important;color:#d5d5d5!important;font-weight:500!important}
body #mainApp #content .mw-shell [data-mw-requests] .rw-in-card,body #mainApp #content .mw-shell [data-mw-requests] .rw-new-task{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}

body.ios-preview-active #mainApp #content .mw-shell [data-mw-requests] .mw-request-content,body #mainApp #content .mw-shell [data-mw-requests] .mw-request-content{background:transparent!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important}

body #mainApp #content .mw-shell #workTaskInstructions{min-height:120px!important;max-height:none!important;overflow-y:hidden!important;resize:none!important;box-sizing:border-box!important;line-height:1.5!important}

body #mainApp #content .mw-shell #workTaskInstructions{height:220px!important;min-height:220px!important;max-height:220px!important;overflow-y:auto!important;resize:none!important;overflow-anchor:none}
body #mainApp #content .mw-shell #workTaskInstructions.mw-text-expanded{height:420px!important;min-height:420px!important;max-height:420px!important}

body #mainApp #content .mw-shell .mw-complaint-source-card,body #mainApp #content .mw-shell .mw-complaint-note,body #mainApp #content .mw-shell .mw-symptom-list li{border:0!important;box-shadow:none!important;outline:0}

body #mainApp #content .mw-shell .rw-new-task .role-assignment-form{display:grid!important;gap:20px!important;padding:16px 0 0!important;margin:0!important;min-width:0!important;box-sizing:border-box!important}
body #mainApp #content .mw-shell .rw-new-task .role-assignment-form label:not(.check-line){display:grid!important;gap:8px!important;margin:0!important;min-width:0!important}
body #mainApp #content .mw-shell .rw-new-task .role-assignment-form label>span{margin:0!important;line-height:1.4!important}
body #mainApp #content .mw-shell .mw-request-context{display:grid!important;gap:20px!important;margin:4px 0 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body #mainApp #content .mw-shell .mw-request-context>h3{margin:0!important;font-size:14px!important}
body #mainApp #content .mw-shell .mw-request-context>.modal-hint{margin:-12px 0 0!important;line-height:1.5!important}
body #mainApp #content .mw-shell .rw-new-task .role-assignment-form .check-line{margin:0!important;padding:4px 0!important}

body #mainApp #content .mw-shell .rw-new-task .role-assignment-form{padding:16px!important;margin:16px 0 0!important;width:100%!important;box-sizing:border-box!important}

body #mainApp #content .mw-shell .role-assignment-card:has([data-med-request]){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important;padding:16px!important;min-width:0!important}
body #mainApp #content .mw-shell .role-assignment-card>[data-med-request]{width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important}
body #mainApp #content .mw-shell [data-med-request]>summary{display:block!important;text-align:start!important;padding:0!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere}
body #mainApp #content .mw-shell [data-med-request]>summary>b{display:block!important;margin-bottom:8px!important}
body #mainApp #content .mw-shell .role-assignment-card:has([data-med-request])>.modal-controls{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important;margin:0!important;width:100%!important}
body #mainApp #content .mw-shell .role-assignment-card:has([data-med-request])>.modal-controls>.mini-btn{width:auto!important;margin:0!important;flex:0 1 auto!important}

body #mainApp #content .mw-shell .mw-plan-item,body #mainApp #content .mw-shell .mw-complaint-source-card,body #mainApp #content .mw-shell .mw-complaint-note,body #mainApp #content .mw-shell .role-assignment-card:has([data-med-request]){border-radius:var(--mobile-card-radius,24px)!important}

body #mainApp #content .mw-shell .mrs-source-editor{margin:16px 0 0!important;padding:0!important;background:transparent!important;border:0!important}
body #mainApp #content .mw-shell .mrs-source-editor>summary{padding:8px 0!important;font-size:13px!important;color:var(--text-muted,#aaa)}
body #mainApp #content .mw-shell .mrs-source-editor>label{display:grid!important;gap:8px!important;margin:16px 0!important;min-width:0!important}
body #mainApp #content .mw-shell .mrs-source-editor select{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
body #mainApp #content .mw-shell .mw-plan-item [data-mrs-prepare],body #mainApp #content .mw-shell .mw-plan-item [data-mrs-save]{display:block!important;width:100%!important;white-space:normal!important;box-sizing:border-box!important;min-height:44px!important}
body #mainApp #content .mw-shell [data-mrs-status]:empty{display:none}
body #mainApp #content .mw-shell [data-mrs-status]{margin:12px 0 0!important;line-height:1.5!important}
body #mainApp #content .mw-shell [data-mrs-origin]{margin:0!important;line-height:1.5!important;overflow-wrap:anywhere}

body #mainApp #content .mw-shell [data-mrs-origin],body #mainApp #content .mw-shell [data-mrs-origin] a{color:#bcbcbc!important}

/* Partial planning is distinct from completed requests. */
body #mainApp #content .mw-shell .mw-journey .is-partial{background:#61491f!important;color:#ffda83!important}
body #mainApp #content .mw-shell .mw-journey .is-partial[aria-current=step]{border-color:#ffca42!important}
body #mainApp #content .mw-shell .mw-journey small{font-size:10px;line-height:1.3;white-space:normal}
body #mainApp #content .mw-shell [data-mrs-exclude]{margin-top:12px!important}
body #mainApp #content .mw-shell .mrs-excluded{margin:16px 0;line-height:1.5}

/* Keep review cards compact and use the same radius hierarchy on both layouts. */
body #mainApp #content .mw-shell .role-assignment-card:has([data-med-request]){gap:12px!important;border-radius:var(--mobile-card-radius,var(--crm-radius-card,14px))!important;opacity:1!important}
body #mainApp #content .mw-shell [data-med-request] .role-assignment-meta{display:flex!important;flex-direction:column!important;gap:10px!important;margin:10px 0 0!important;min-width:0}
body #mainApp #content .mw-shell [data-med-request] .role-assignment-meta>p{margin:0!important;padding:0!important;line-height:1.45!important}
body #mainApp #content .mw-shell [data-med-request] .role-assignment-instructions{margin:0!important;padding:0!important;white-space:pre-line!important}
body #mainApp #content .mw-shell [data-med-request] :is(.task-file,.exam-ai-draft,.task-result){margin:0!important;padding:12px!important;border-radius:var(--mobile-inner-radius,var(--crm-radius-inset,10px))!important;min-width:0;box-sizing:border-box}
body #mainApp #content .mw-shell [data-med-request] .task-file{gap:8px!important}
body #mainApp #content .mw-shell [data-med-request] .task-file>.muted{margin:0!important;line-height:1.4}
body #mainApp #content .mw-shell [data-med-request] .task-result{display:grid!important;gap:12px!important}
body #mainApp #content .mw-shell [data-med-request] .task-result>label{display:grid!important;gap:8px!important;margin:0!important}
body #mainApp #content .mw-shell [data-med-request] .task-result>label>span{margin:0!important}
body #mainApp #content .mw-shell [data-med-request] textarea{margin:0!important;border-radius:var(--mobile-control-radius,var(--crm-radius-field,14px))!important}
body #mainApp #content .mw-shell [data-med-request] .task-result-act{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:8px!important;margin:0!important}
body #mainApp #content .mw-shell [data-med-request] .task-result-why{margin:0!important;line-height:1.45!important}
body #mainApp #content .mw-shell [data-med-request] .mini-btn{border-radius:var(--mobile-control-radius,var(--crm-radius-control,8px))!important}
body #mainApp #content .mw-shell [data-med-request] .large-text-toggle{margin:0!important;justify-self:start}

/* Use the CRM's existing mobile and desktop tokens, including action buttons. */
body #mainApp #content .mw-shell :is(.mw-complaint-source-card,.mw-complaint-note,.mw-plan-item,.role-assignment-card){border-radius:var(--mobile-card-radius,var(--crm-radius-card,14px))!important}
body #mainApp #content .mw-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:var(--mobile-control-radius,var(--crm-radius-field,14px))!important}
body #mainApp #content .mw-shell .mini-btn{border-radius:var(--mobile-control-radius,var(--crm-radius-control,8px))!important}
body #mainApp #content .mw-shell .mw-journey{margin:12px 0 16px!important}
body #mainApp #content .mw-shell .mw-journey button{height:56px!important;min-height:56px!important;box-sizing:border-box;justify-content:center!important;gap:4px!important;padding:8px 2px!important}
body #mainApp #content .mw-shell .mw-journey button>span{font-size:14px!important;line-height:1.2!important}
body #mainApp #content .mw-shell .mw-journey button>b{font-size:11px!important;line-height:1.2!important}

/* Step readiness keeps its color when selected. Selection uses the existing border. */
body #mainApp #content .mw-shell .mw-journey button,body #mainApp #content .mw-shell .mw-journey button :is(span,b){opacity:1!important;filter:none!important}
body #mainApp #content .mw-shell .mw-journey button :is(span,b){color:inherit!important}

body #mainApp #content .mw-shell [data-mw-panel=review]>.mw-step-action{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;gap:8px!important}
body #mainApp #content .mw-shell [data-mw-panel=review]>.mw-step-action>.mini-btn{width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;white-space:normal!important;justify-self:start}
body #mainApp #content .mw-shell [data-mw-panel=review]>.mw-step-action>.mini-btn:last-child{justify-self:end}

.mw-shell .mw-record>h2{font-size:20px;line-height:1.3;margin:24px 0 12px;font-weight:700;color:var(--text)}
.mw-shell .mw-record-group>h3{font-size:16px;line-height:1.4;margin:0 0 8px;font-weight:700}

body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-stagebar>.modal-controls{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:auto!important;justify-content:flex-start!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-stagebar>.modal-controls>.mini-btn{flex:0 1 auto!important;width:auto!important;min-height:40px!important;padding:8px 12px!important;font-size:12px!important;line-height:1.4!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-files-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:16px!important;margin:0 0 16px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-files-head>h2{margin:0!important;font-size:18px!important;line-height:1.4!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-files-head>.mini-btn{width:auto!important;min-height:40px!important;padding:8px 12px!important;font-size:12px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-documents .mw-document{display:grid;gap:8px;min-width:0;padding:16px 0;margin:0;border-bottom:1px solid var(--border,#454545);overflow-wrap:anywhere}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-documents .mw-document:last-child{border-bottom:0;padding-bottom:0}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-document>.mw-document-title{font-size:15px!important;font-weight:700!important;line-height:1.45!important;color:var(--text)!important;margin:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-document>.mw-document-filename{font-size:12px!important;font-weight:400!important;line-height:1.4!important;color:var(--text-muted)!important;margin:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-document>.modal-controls{margin:0!important;gap:8px!important;flex-wrap:wrap!important}

body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about]{display:grid!important;gap:16px!important;min-width:0}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about]>:is(.modal-section,.chart-card){margin:0!important;padding:16px!important;background:var(--surface)!important;border:0!important;border-radius:var(--mobile-card-radius,var(--crm-radius-card,14px))!important;min-width:0;box-sizing:border-box}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] :is(.chart-title,.modal-section-title){font-size:16px!important;line-height:1.45!important;margin:0 0 12px!important;padding:0!important;font-weight:700!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .modal-hint{font-size:13px!important;line-height:1.5!important;margin:10px 0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .anketa-why{font-size:13px!important;line-height:1.5!important;margin:12px 0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .declined-strip{margin:12px 0 0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .declined-strip>summary{font-size:14px!important;line-height:1.45!important;padding:12px 0!important;margin:0!important;background:none!important;border-radius:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .declined-list{margin:0!important;padding:0!important;background:none!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-groups{display:block!important;padding:0!important;margin:0!important;background:none!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-section{margin:0!important;padding:12px 0!important;border:0!important;border-bottom:1px solid var(--border,#454545)!important;background:none!important;border-radius:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-section>summary{font-size:14px!important;line-height:1.45!important;font-weight:700!important;padding:0!important;margin:0!important;background:none!important;border-radius:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-fields{display:grid!important;gap:16px!important;padding:16px 0 0!important;margin:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-fields>div{display:grid!important;gap:8px!important;margin:0!important;min-width:0}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-fields .modal-field-label{display:block!important;font-size:13px!important;line-height:1.45!important;color:var(--text)!important;margin:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-fields :is(input,textarea){display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:12px!important;font:inherit!important;font-size:16px!important;line-height:1.5!important;color:var(--text)!important;background:var(--surface-2)!important;border:0!important;box-shadow:none!important;border-radius:var(--mobile-control-radius,var(--crm-radius-field,14px))!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-fields input{min-height:44px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-fields textarea{min-height:112px!important;resize:vertical!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .premed-summary{margin:0!important;overflow-wrap:anywhere}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .premed-chips{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:12px 0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .modal-controls{margin:16px 0 0!important;gap:8px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .mw-legacy{margin:0!important;padding:0!important;background:none!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .mw-legacy>summary{padding:12px 0!important}

body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-fields :is(#anketa_currentComplaints,textarea){min-height:112px!important;height:auto!important;padding:12px!important}

body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .modal-section-title{padding-right:28px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] .workspace-med-section>summary{min-height:0!important;height:auto!important}

body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-record-summary{padding:16px!important;margin:0 0 12px!important;background:var(--surface)!important;border-radius:var(--mobile-card-radius,var(--crm-radius-card,14px))!important;min-width:0}
body #mainApp #content .mw-shell .mw-record-saved{margin:0 0 16px!important;color:var(--good,#91d7ad);font-weight:700;font-size:14px}
body #mainApp #content .mw-shell .mw-record-summary dl{display:grid;gap:14px;margin:0!important}
body #mainApp #content .mw-shell .mw-record-summary dl>div{min-width:0}
body #mainApp #content .mw-shell .mw-record-summary dt{font-size:12px;line-height:1.4;color:var(--text-muted);margin:0 0 4px!important}
body #mainApp #content .mw-shell .mw-record-summary dd{font-size:15px;line-height:1.5;margin:0!important;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
body #mainApp #content .mw-shell .mw-record-edit{margin:0!important}
body #mainApp #content .mw-shell .mw-record-edit>summary{width:fit-content!important;margin:0 0 12px!important}

body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-overview{margin:0 0 16px!important;padding:0!important;min-width:0}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-overview .cc-stages-cap{margin:0 0 10px!important;font-size:11px!important;line-height:1.4!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-overview .cc-stages{margin:0!important;display:grid!important;gap:12px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-facts{display:grid!important;gap:12px!important;margin:12px 0 0!important;padding:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-facts>.cc-fact{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;align-items:start!important;gap:12px!important;margin:0!important;padding:0!important;min-height:0!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-facts>.cc-fact>:is(span,b){margin:0!important;padding:0!important;font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-info{margin:0 0 12px!important;padding:0!important}

body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-groups{display:grid!important;gap:12px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-section{margin:0!important;padding:16px!important;background:var(--surface)!important;border:0!important;border-radius:var(--mobile-card-radius,var(--crm-radius-card,14px))!important;min-width:0}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-section>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:0!important;margin:0!important;list-style:none!important;cursor:pointer}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-section>summary::-webkit-details-marker{display:none}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-section>summary::after{content:"+"!important;position:static!important;font-size:20px!important;color:var(--accent)!important;transform:none!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-section[open]>summary::after{content:"−"!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-section>summary>b{font-size:14px!important;line-height:1.4!important;flex:1;min-width:0}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-section>summary>small{font-size:12px!important;white-space:nowrap!important;color:var(--text-muted)!important;font-weight:400!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-fields{padding-top:16px!important;gap:16px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-fields .modal-field-label{font-size:14px!important;line-height:1.4!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout] .workspace-med-fields input::placeholder,.workspace-med-fields textarea::placeholder{font-size:13px!important}
body:is(body,.ios-preview-active) #mainApp #content .mw-shell [data-mw-about] [data-medical-intake-layout]>.modal-controls{margin-top:16px!important}

/* Desktop medical work uses document proportions instead of mobile full-width actions. */
@media(min-width:861px){
 html body #mainApp #content>.detail-page.mw-unified{max-width:1120px!important}
 html body #mainApp #content .mw-shell{gap:16px}
 html body #mainApp #content .mw-unified .cc-head h1{font-size:24px!important;line-height:1.3!important}
 html body #mainApp #content .mw-unified .modal-head{margin-bottom:12px!important}
 html body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-overview{margin:0!important;max-width:800px}
 html body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-client-overview .cc-stages{gap:8px!important}
 html body #mainApp #content .mw-shell .cc-stage{grid-template-columns:36px minmax(140px,260px) minmax(0,1fr);gap:12px}
 html body #mainApp #content .mw-shell .mw-stagebar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:0!important;margin:0!important}
 html body:is(body,.ios-preview-active) #mainApp #content .mw-shell .mw-stagebar .mw-client-info{width:auto!important;margin:0!important;flex:1;min-width:0}
 html body #mainApp #content .mw-shell .mw-stagebar>.modal-controls{width:auto!important;flex:none;gap:8px!important}
 html body #mainApp #content .mw-shell .mw-journey{width:100%;max-width:800px;gap:8px;margin:0 0 4px!important}
 html body #mainApp #content .mw-shell .mw-journey button{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;height:auto!important;min-height:40px!important;padding:8px 12px!important}
 html body #mainApp #content .mw-shell .mw-journey button>span{font-size:14px}
 html body #mainApp #content .mw-shell .mw-journey button>b{font-size:12px!important}
 html body #mainApp #content .mw-shell [data-mw-panel]>h2{font-size:20px!important;line-height:1.3!important;margin:0 0 8px!important}
 html body #mainApp #content .mw-shell [data-mw-panel]>.modal-hint{font-size:13px!important;line-height:1.5!important;margin:0 0 16px!important;max-width:90ch}
 html body #mainApp #content .mw-shell .mw-plan{margin:0 0 20px!important}
 html body #mainApp #content .mw-shell .mw-plan-item{padding:16px!important;margin:0 0 12px!important}
 html body #mainApp #content .mw-shell .mw-plan-item>p{font-size:14px;max-width:88ch;margin-bottom:10px!important}
 html body #mainApp #content .mw-shell .mw-plan-item>.modal-hint{font-size:13px!important}
 html body #mainApp #content .mw-shell .mw-plan-item :is([data-mrs-prepare],[data-mrs-save],[data-mw-plan]),
 html body #mainApp #content .mw-shell .mw-plan-item>[data-mrs-exclude]{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;min-height:34px!important;padding:8px 12px!important;margin:0 8px 0 0!important}
 html body #mainApp #content .mw-shell .mrs-source-editor{margin-top:12px!important}
 html body #mainApp #content .mw-shell .mw-step-action{margin:20px 0 0!important;padding-top:12px!important}
 html body #mainApp #content .mw-shell .mw-step-action>.mini-btn{min-height:34px!important;padding:8px 12px!important}
 html body #mainApp #content .mw-shell .role-assignment-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 html body #mainApp #content .mw-shell .role-assignment-form>.wide{grid-column:1/-1}
 html body #mainApp #content .mw-shell .role-assignment-form>button.wide{width:auto!important;justify-self:start;min-height:34px!important}
 html body #mainApp #content .mw-shell .mw-record-summary dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
 html body #mainApp #content .mw-shell .mw-record-summary dd{font-size:14px}
 html body #mainApp #content .mw-shell .mw-readiness{max-width:800px}
}

@media(min-width:861px){
 html body #mainApp #content .mw-shell [data-mw-requests] .rw-new-task>summary{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;width:fit-content!important;max-width:100%;box-sizing:border-box!important;
  min-height:34px!important;height:auto!important;padding:8px 12px!important;
  line-height:1.4!important;white-space:normal!important;list-style:none!important;
 }
 html body #mainApp #content .mw-shell [data-mw-requests] .rw-new-task>summary::before{
  display:inline-block!important;flex:0 0 12px;width:12px;text-align:center;font-size:16px;line-height:1;
 }
}

/* Files and saved findings remain visible when request metadata is collapsed. */
body #mainApp #content .mw-shell .mw-review-content{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px;min-width:0}
body #mainApp #content .mw-shell .mw-review-content>.task-file{margin:0!important;border-radius:var(--mobile-inner-radius,var(--crm-radius-inset,10px))!important}
body #mainApp #content .mw-shell .mw-review-saved p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:6px 0 0!important}
body #mainApp #content .mw-shell .mw-review-editor>summary{display:inline-flex;align-items:center;min-height:34px;padding:8px 12px!important;cursor:pointer;list-style:none}
body #mainApp #content .mw-shell .mw-review-editor>summary::-webkit-details-marker{display:none}
body #mainApp #content .mw-shell .mw-review-editor .task-result{border-radius:var(--mobile-inner-radius,var(--crm-radius-inset,10px))!important}

/* One rhythm for the request heading, AI preparation and request cards. */
body #mainApp #content .mw-shell [data-mw-panel="requests"]{min-width:0}
body #mainApp #content .mw-shell [data-mw-panel="requests"]>h2{margin:0 0 10px!important}
body #mainApp #content .mw-shell [data-mw-panel="requests"]>.modal-hint{margin:0 0 20px!important;line-height:1.5}
body #mainApp #content .mw-shell [data-mrs-plan]{display:grid;gap:12px;min-width:0;margin:0 0 24px}
body #mainApp #content .mw-shell [data-mrs-plan]>:is(h3,p){margin:0!important;line-height:1.5}
body #mainApp #content .mw-shell [data-mrs-plan]>[data-mrs-ai-plan]{justify-self:start;margin:0!important;max-width:100%;white-space:normal;line-height:1.35}
body #mainApp #content .mw-shell [data-mrs-plan]>[data-mrs-ai-status]{margin:0 0 8px!important;font-size:13px;line-height:1.5}
body #mainApp #content .mw-shell .mw-plan-item{display:grid;gap:12px;padding:16px!important;min-width:0}
body #mainApp #content .mw-shell .mw-plan-item>:is(h4,p,button,details){margin:0!important}
body #mainApp #content .mw-shell .mw-plan-item>h4{font-size:12px;font-weight:500;color:var(--muted)}
body #mainApp #content .mw-shell .mw-plan-item>p:not(.modal-hint){font-weight:600;line-height:1.45}
body #mainApp #content .mw-shell .mw-plan-item>[data-mrs-exclude]{justify-self:start}
@media(max-width:600px){body #mainApp #content .mw-shell [data-mrs-plan]>[data-mrs-ai-plan]{justify-self:stretch;width:100%;min-height:44px}}

/* Review findings and verdict belong to one document workspace. */
.mw-review-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}.mw-review-columns>:is(.exam-ai-draft,.task-result){min-width:0;margin:0!important}@media(min-width:1000px){.mw-review-columns:has(>.exam-ai-draft){grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
