/* Shared Clinic / Home controls, focus, and reflow rules. */
:root{--care-ui-line:#d7e1ef;--care-ui-ink:#172d50;--care-ui-muted:#435973;--care-ui-action:#245bdb;--care-ui-radius:16px}
.care-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.care-read-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#eef3ff;border:1px solid var(--care-ui-line);border-radius:var(--care-ui-radius);padding:12px 16px;color:var(--care-ui-muted);font-size:.875rem;line-height:1.7;margin-bottom:16px}
:is(.care-med-dialog,.r61-dialog,.timeline-publish-dialog,.home-access-clinic-dialog,.home-family-dialog){box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(var(--care-visible-height,100dvh) - 24px);border-radius:18px;border-color:var(--care-ui-line);overflow:auto;font-size:1rem}
:is(.care-med-dialog,.r61-dialog,.timeline-publish-dialog,.home-access-clinic-dialog,.home-family-dialog)>header{gap:12px;align-items:flex-start}
:is(.care-med-dialog,.r61-dialog,.timeline-publish-dialog,.home-access-clinic-dialog,.home-family-dialog)>header :is(h2,h3){font-size:1.25rem;line-height:1.5;margin-block:0 8px;overflow-wrap:anywhere}
:is(.care-med-dialog,.r61-dialog,.timeline-publish-dialog,.home-access-clinic-dialog,.home-family-dialog)>header>button{min-width:60px;min-height:44px;flex-shrink:0;white-space:nowrap}
:is(.care-med-dialog,.r61-dialog,.timeline-publish-dialog,.home-access-clinic-dialog,.home-family-dialog) :is(button,input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0;font:inherit;line-height:1.5}
:is(.care-med-dialog,.r61-dialog,.timeline-publish-dialog,.home-access-clinic-dialog,.home-family-dialog) button{min-height:44px;border-radius:12px;white-space:normal;overflow-wrap:anywhere}
:is(.care-med-dialog,.r61-dialog,.timeline-publish-dialog,.home-access-clinic-dialog,.home-family-dialog) :is(button,input,select,summary,textarea):focus-visible,#viewTitle:focus-visible{outline:3px solid #184fd1;outline-offset:3px}
.timeline-publish-dialog [data-publish-footer]{position:sticky;bottom:-20px;z-index:2;padding:14px 0;background:#fff;border-top:1px solid var(--care-ui-line);box-shadow:0 -12px 14px #ffffffed;max-height:48dvh;overflow:auto;overscroll-behavior:contain}.timeline-publish-dialog [data-publish-footer]>b{display:block;line-height:1.7}.timeline-publish-dialog [data-publish-footer] p{font-size:.8125rem;margin-block:6px}.timeline-publish-dialog [data-publish-footer] button{width:100%}.timeline-selected-toggle{display:flex;align-items:center;gap:8px;min-height:44px}
.timeline-publish-dialog [data-publish-list] article[hidden]{display:none!important}
@media(max-width:640px){.care-read-notice .btn{width:100%}.timeline-publish-dialog [data-publish-footer]{bottom:-16px}.home-directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.home-directory-filters label,.timeline-publish-dates label{min-width:0}.home-care-jump,.home-care-inline-actions,.home-material-actions,.home-family-heading{flex-wrap:wrap}.home-care-inline-actions>button,.home-material-actions>button{flex:1 1 140px;min-width:0}.home-primary,.home-secondary{max-width:100%}.home-family-dialog input,.home-directory-filters :is(input,select){font-size:max(1em,16px)}}
@media(max-width:360px){.home-directory-filters{grid-template-columns:1fr}.home-directory-filters label{grid-column:1/-1!important}.timeline-publish-dialog header,.home-access-clinic-dialog header{flex-wrap:wrap}.timeline-publish-selection{flex-direction:column;align-items:stretch}.home-care-jump a{flex-basis:100%}}
@media(max-height:500px){.timeline-publish-dialog [data-publish-footer]{position:static;max-height:none;overflow:visible}.home-family-dialog,.home-access-clinic-dialog,.timeline-publish-dialog{max-height:calc(100dvh - 12px)}}
@media(forced-colors:active){button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid Highlight}.care-read-notice,.timeline-publish-dialog [data-publish-footer]{border:1px solid CanvasText}}

.timeline-publish-dialog [data-publish-footer] button{margin-inline:0}.timeline-publish-dialog [data-publish-footer]{overflow-x:hidden}.timeline-publish-dialog fieldset{min-inline-size:0}.timeline-publish-dialog [data-publish-footer] p{overflow-wrap:anywhere}

.timeline-publish-dialog [data-publish-footer]{padding-inline:4px}

/* Use the same readable feedback box while retaining each screen's status meaning. */
.home-status:not(:empty),.care-read-notice,.timeline-publish-dialog [data-publish-status]:not(:empty){box-sizing:border-box;padding:12px 14px;border:1px solid var(--care-ui-line);border-radius:var(--care-ui-radius);font-size:.875rem;line-height:1.7;background:#eef3ff;color:var(--care-ui-muted);overflow-wrap:anywhere}
.home-status.error,.home-patient-read-state[data-read-state=failed],.home-access-clinic-error{border-color:#e6c3c9;background:#fff1f3;color:#982b3b;border-radius:var(--care-ui-radius);padding:12px 14px;line-height:1.7}
.home-status.ok{border-color:#b7dac9;background:#edf8f2;color:#1d6848}

/* Compact review and explicit material arrivals. */
.timeline-publish-dialog .timeline-publish-lead{font-size:.875rem;margin-block:8px}.timeline-publish-help{font-size:.8125rem;color:var(--care-ui-muted);line-height:1.7}.timeline-publish-help summary,[data-publish-filter-summary]{cursor:pointer;min-height:44px;display:flex;align-items:center;line-height:1.6;overflow-wrap:anywhere}.timeline-publish-help summary::before,[data-publish-filter-summary]::before{content:'▸';margin-right:8px;flex-shrink:0}.timeline-publish-help[open] summary::before,[data-publish-filter-panel][open]>summary::before{content:'▾'}.timeline-publish-dialog [data-publish-filter-panel]{border:1px solid var(--care-ui-line);border-radius:12px;padding:8px 12px;margin-block:10px}.timeline-publish-dialog [data-publish-filter-panel] fieldset{margin:8px 0}.timeline-publish-dialog .timeline-publish-preview-note{font-size:.8125rem;margin-block:6px}.timeline-publish-footer-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;line-height:1.7}.timeline-publish-footer-head strong{overflow-wrap:anywhere}.timeline-publish-dialog [data-publish-footer] .timeline-publish-help summary{min-height:36px}.timeline-publish-dialog [data-publish-footer] .timeline-publish-confirm{margin-block:6px}
#r61-home-materials .home-material-arrival{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;border:1px solid #bdcff4;border-radius:12px;background:#eef4ff;line-height:1.7;font-size:.875rem;color:#254878}#r61-home-materials .home-material-arrival button{font-weight:700;min-height:44px}#r61-home-materials .home-material-arrival[hidden]{display:none!important}.home-material-card:focus-visible{outline:3px solid #184fd1;outline-offset:3px}
@media(max-width:640px){.timeline-publish-dialog [data-publish-preview]>h3{font-size:1.05rem;margin-block:10px 4px}.timeline-publish-dialog .timeline-publish-selection{gap:8px;margin-block:8px}.timeline-publish-dialog [data-publish-filter-summary]{font-size:.875rem}.timeline-publish-dialog [data-publish-footer]{padding-block:10px}.home-material-arrival button{width:100%}}

/* Daily reading hierarchy: shared Clinic/Home */
.care-list-range{font-size:.875rem;color:#415677;line-height:1.6;margin:10px 0;font-variant-numeric:tabular-nums}
.care-loading,.patient-workspace-loading{border:1px solid #dbe4f3;border-radius:14px;background:#f7f9fd;padding:16px;color:#415677;line-height:1.6}
.patient-workspace-more{min-width:0}.patient-workspace-more>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 14px;border:1px solid #dbe4f3;border-radius:12px;color:#17315f;background:#fff;font-weight:700}
.patient-workspace-more>div{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}.patient-workspace-quick{align-items:flex-start}.patient-workspace-quick>.r61-family-count{flex-basis:100%}
.home-care-due:empty{display:none}.home-care-due{border-left:3px solid #245bff;padding-left:12px}.home-care-visit-due{font-weight:700;color:#17315f;background:#f0f4ff;border-radius:10px;padding:12px}
.home-material-header h3,.home-material-topic{overflow-wrap:anywhere}.home-material-header h3{font-size:1.1rem;line-height:1.5}.home-material-topic{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:700;color:#17315f;line-height:1.5}
.home-material-full-title{font-size:.875rem;line-height:1.6;color:#415677}.home-material-full-title summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.home-material-full-title p{white-space:normal;overflow-wrap:anywhere}.home-material-meta{font-size:.875rem!important;line-height:1.7!important;color:#415677!important}
.home-material-controls>.care-list-range{flex-basis:100%}.home-care-dose b,.home-care-patient h3{line-height:1.5}.home-care-dose-amount{color:#17315f}.home-care-state,.home-help{line-height:1.65}
@media(max-width:600px){.patient-workspace-quick>button{flex:1 1 28%;min-width:0;white-space:normal;min-height:48px}.patient-workspace-more{flex-basis:100%}.patient-workspace-more>div>button{flex:1 1 42%;white-space:normal}.home-material-header{gap:6px}.home-material-card{padding:14px!important}.care-list-range{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){.care-skeleton,.patient-workspace-loading span{animation:none!important}}

.home-material-long-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.home-material-controls>button{min-height:44px}.home-material-full-title[open] summary{font-weight:700}
.home-material-controls>input[type=search]{box-sizing:border-box;width:100%;height:48px;min-height:48px;max-height:48px;font-size:16px}
@media(max-width:640px){.patient-workspace-quick.r61-workflow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important}.patient-workspace-quick.r61-workflow-steps>.patient-workspace-more,.patient-workspace-quick.r61-workflow-steps>.r61-family-count{grid-column:1/-1}.patient-workspace-more>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Guardian reminders, visually distinct from hospital medication. */
.home-custom-reminders{border:1px solid var(--care-ui-line);border-radius:18px;background:#fff;padding:16px;margin:16px 0;color:var(--care-ui-ink)}
.home-custom-reminders>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-custom-reminders h3{font-size:1.1rem;margin:6px 0}.home-custom-reminders h4{font-size:1rem;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.home-custom-badge{display:inline-block;border:1px solid #c8ded9;border-radius:7px;background:#f0f8f5;color:#25574b;padding:3px 7px;font-size:.8rem;line-height:1.5}.home-custom-device{background:#f7f9fd;border-radius:12px;padding:12px}.home-custom-device label{display:flex;align-items:center;gap:8px;font-weight:700}.home-custom-device small{display:block;font-size:.8rem;line-height:1.6;color:var(--care-ui-muted);margin-top:5px}
.home-custom-reminders details{margin:10px 0}.home-custom-reminders summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;line-height:1.6}.home-custom-occurrence,.home-custom-plan{border:1px solid var(--care-ui-line);border-radius:12px;padding:12px;margin:10px 0}.home-custom-occurrence p,.home-custom-plan p{font-size:.875rem;line-height:1.7;color:var(--care-ui-muted);margin:5px 0;overflow-wrap:anywhere}.home-custom-occurrence.is-done{background:#f7f9fc}.home-custom-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.home-custom-actions button{min-height:44px}.home-custom-status{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;line-height:1.7}.home-custom-memo{white-space:pre-wrap}.home-custom-pending{border-left:3px solid #245bff;background:#f0f4ff;padding:10px;font-size:.875rem;line-height:1.7}
.home-custom-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-height:calc(var(--care-visible-height,100dvh) - 24px);overflow:auto;border:1px solid var(--care-ui-line);border-radius:18px;padding:20px;color:var(--care-ui-ink);background:white}.home-custom-dialog::backdrop{background:#172d5070}.home-custom-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.home-custom-dialog h2{font-size:1.25rem;margin:0}.home-custom-dialog p{line-height:1.7;overflow-wrap:anywhere}.home-custom-dialog label{display:block;font-weight:650;font-size:.95rem;line-height:1.6;margin:12px 0}.home-custom-dialog input:not([type=checkbox]),.home-custom-dialog select,.home-custom-dialog textarea{box-sizing:border-box;display:block;width:100%;min-height:48px;border:1px solid var(--care-ui-line);border-radius:10px;font:inherit;font-size:16px;color:var(--care-ui-ink);padding:10px;background:white}.home-custom-dialog fieldset{border:1px solid var(--care-ui-line);border-radius:12px;padding:12px;min-width:0;margin:12px 0}.home-custom-dialog [hidden]{display:none!important}.home-custom-dialog footer{position:sticky;bottom:-20px;background:white;border-top:1px solid var(--care-ui-line);padding:12px 0}.home-custom-dialog footer button{width:100%;min-height:48px}.home-custom-time{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px}.home-custom-time label{margin:0}.home-custom-time button{min-height:48px}.home-custom-weekdays{display:flex;flex-wrap:wrap;gap:6px}.home-custom-weekdays label{padding:8px;border:1px solid var(--care-ui-line);border-radius:8px;margin:0;min-height:44px;box-sizing:border-box}.home-custom-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.home-custom-dialog .home-custom-confirm{display:flex;align-items:flex-start;gap:8px}.home-custom-dialog [data-result]{font-weight:700}.home-custom-dialog [data-history] article{border-bottom:1px solid var(--care-ui-line);padding:12px 0}
@media(max-width:480px){.home-custom-reminders{padding:14px}.home-custom-reminders>header{align-items:flex-start;flex-wrap:wrap}.home-custom-dates{grid-template-columns:1fr;gap:0}.home-custom-dialog{padding:16px}.home-custom-dialog footer{bottom:-16px}.home-custom-time{grid-template-columns:1fr 1fr}.home-custom-time button{grid-column:1/-1;justify-self:end}.home-custom-actions>button{flex:1 1 42%;white-space:normal}}
@media(max-height:480px){.home-custom-dialog footer{position:static}}

/* Daily summary and explicit, scoped read/action feedback. */
.home-care-remaining{border:1px solid var(--care-ui-line);border-radius:14px;padding:14px;background:#f7f9fd;margin:12px 0}.home-care-remaining h3{font-size:1rem;line-height:1.6;margin:0 0 8px}.home-care-remaining>div{display:flex;flex-wrap:wrap;gap:8px}.home-care-remaining button{min-height:44px;flex:1 1 150px;line-height:1.5}
.home-custom-device>summary{gap:10px;justify-content:space-between;font-size:.875rem;margin:0;min-height:44px}.home-custom-device>summary>span{flex-shrink:0;color:var(--care-ui-action);font-weight:700}.home-custom-device .is-attention{color:#7b4c00}.home-custom-device .is-ready{color:#1d6848}.home-custom-device:not([open]){padding-block:4px}.home-custom-device[open]>button{margin-top:10px}.home-custom-status:empty{display:none}
.home-reminder-preview{border:1px solid #b9cbed;border-radius:12px;background:#eef4ff;padding:12px;font-size:.875rem;line-height:1.7;color:var(--care-ui-ink);overflow-wrap:anywhere}.home-confirm-context{font-weight:700;white-space:pre-wrap}.home-action-confirm{width:min(460px,calc(100vw - 24px))}.home-action-confirm .home-custom-actions>button{flex:1;white-space:normal}.home-custom-dialog :is(button,input,select,textarea):focus-visible,.home-care-remaining button:focus-visible{outline:3px solid #184fd1;outline-offset:3px}
.care-inbox-region{border:1px solid var(--care-ui-line);border-radius:12px;background:#f7f9fd;padding:12px;margin:8px 0;line-height:1.7}.care-inbox-region p{margin:0 0 8px}.care-inbox-region.is-error{background:#fff5eb;border-color:#e8cba4;color:#744300}.care-inbox-region button{min-height:44px}.home-custom-actions button{font-size:.875rem;line-height:1.5}
@media(max-width:480px){.home-care-remaining{padding:12px}.home-custom-actions>button{flex-basis:100%}.home-action-confirm .home-custom-actions>button{flex:1 1 100%;min-height:48px}.home-custom-reminders>header>button{min-height:44px}}

/* Common app typography; generated print documents retain their own styles. */
@font-face{font-family:'Carestep Pretendard';font-style:normal;font-weight:45 920;font-display:swap;src:url('./pretendard-variable-1.3.9.woff2') format('woff2')}
@media screen{
body,button,input,select,textarea{font-family:'Carestep Pretendard','Noto Sans KR',system-ui,-apple-system,'Segoe UI',sans-serif}
:is(#view-patients,.patient-workspace,.patient-crm-dialog,.timeline-dialog,.care-med-dialog,.r61-dialog,.home-access-clinic-dialog){font-size:1rem;line-height:1.6;color:var(--care-ui-ink)}
:is(.patient-crm-dialog,.timeline-dialog) .field-label,:is(.patient-workspace,.patient-crm-dialog,.timeline-dialog) :is(small,.muted),.patient-search-result-copy :is(span,small),.patient-search-result-side :is(b,span){font-size:.875rem;line-height:1.6;color:var(--care-ui-muted)}
:is(.patient-crm-dialog,.timeline-dialog) :is(input,select,textarea){font-size:1rem;line-height:1.6;border-radius:12px;border-color:var(--care-ui-line)}
:is(.patient-workspace,.patient-crm-dialog,.timeline-dialog,.care-med-dialog,.r61-dialog,.home-access-clinic-dialog) button{min-height:44px;font-size:.875rem;border-radius:12px;white-space:normal;line-height:1.5}
:is(.patient-workspace,.patient-crm-dialog,.timeline-dialog,.care-med-dialog,.r61-dialog) .btn-primary{background:var(--care-ui-action);color:#fff}
:is(.patient-workspace,.patient-crm-dialog,.timeline-dialog,.care-med-dialog,.r61-dialog) .btn-secondary{color:#244a8c;background:#fff;border-color:var(--care-ui-line)}
.patient-workspace,.patient-crm-dialog{border-color:var(--care-ui-line);border-radius:var(--care-ui-radius)}
}
.clinic-home-visibility{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;margin:12px 0;background:#f4f7fc;border:1px solid var(--care-ui-line);border-radius:var(--care-ui-radius)}
.clinic-home-visibility>div{display:flex;flex-direction:column;gap:3px;min-width:0}.clinic-home-visibility span,.clinic-home-visibility small,.clinic-home-visibility p{font-size:.875rem;color:var(--care-ui-muted);line-height:1.6}.clinic-home-visibility b{font-size:1rem;line-height:1.6;overflow-wrap:anywhere}.clinic-home-visibility p{grid-column:1/-1;margin:0;padding-top:8px;border-top:1px solid var(--care-ui-line)}
.clinic-loading-list{padding:16px;border:1px solid var(--care-ui-line);border-radius:var(--care-ui-radius);font-size:1rem;color:var(--care-ui-ink);line-height:1.6}.clinic-loading-list p{font-size:.875rem;color:var(--care-ui-muted);margin:6px 0 12px}.clinic-loading-row{min-height:92px;padding:16px;border:1px solid var(--care-ui-line);border-radius:12px;background:#fff;margin:8px 0}.clinic-loading-row .care-skeleton{display:block;max-width:72%;height:14px;margin:4px 0 12px}.clinic-loading-row .care-skeleton:last-child{max-width:48%}
#patientCrmPagination{min-height:48px}#crmPatientSave[aria-busy=true]{min-width:7rem}
@media(max-width:600px){.clinic-home-visibility{grid-template-columns:1fr 1fr}.clinic-home-visibility>div:first-child{grid-column:1/-1}}

@media screen{
.patient-workspace :is(.patient-workspace-head p,.patient-workspace-kpis span,.patient-workspace-kpis small,.patient-workspace-row span,.patient-workspace-row em,.patient-workspace-section-head span,.patient-workspace-empty,.patient-workspace-fast-record>div:first-child span,.patient-workspace-mobile-context span,.patient-workspace-alert){font-size:.875rem;line-height:1.6;color:var(--care-ui-muted)}
.patient-workspace :is(.patient-workspace-kpis b,.patient-workspace-row b,.patient-workspace-section-head b,.patient-workspace-fast-record>div:first-child b){font-size:1rem;line-height:1.6}
.patient-workspace .patient-workspace-head h4{font-size:1.25rem}.patient-workspace .patient-workspace-fast-buttons b{font-size:.875rem}
.patient-workspace :is(.patient-workspace-row b,.patient-workspace-row span,.patient-workspace-kpis small,.patient-workspace-fast-buttons small){white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}
.patient-workspace .patient-workspace-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.patient-workspace .patient-workspace-quick>.btn{flex:0 1 auto;min-width:7rem;width:auto;padding:10px 14px;word-break:keep-all}.patient-workspace .patient-workspace-more{flex:0 1 auto;min-width:10rem}.patient-workspace .patient-workspace-more summary{font-size:.875rem;min-height:44px;align-content:center;word-break:keep-all}.patient-workspace .patient-workspace-fast-record{align-items:start}.patient-workspace .patient-workspace-fast-buttons{grid-template-columns:repeat(auto-fit,minmax(7rem,1fr))}
.patient-workspace .patient-workspace-head .eyebrow{font-size:.75rem;color:var(--care-ui-muted)}
}
@media(max-width:600px){.patient-workspace .patient-workspace-quick>.btn{flex:1 1 7rem;min-width:0}.patient-workspace .patient-workspace-fast-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-workspace .patient-workspace-quick{position:static;margin-inline:0!important;padding-inline:0}}

/* Shared work and reading hierarchy. Secondary actions retain a quiet outline. */
#workFirstDashboard>.work-first-head{align-items:flex-start;flex-wrap:wrap;gap:12px}
#workFirstDashboard>.work-first-head h3{font-size:1.375rem;line-height:1.4}
#workFirstDashboard>.work-first-head p:not(.eyebrow){font-size:.875rem;line-height:1.65;color:var(--care-ui-muted)}
#workFirstDashboard>.work-first-head .eyebrow{display:none}
#workFirstDashboard .care-inbox{padding:4px 0 12px}
#workFirstDashboard .care-inbox nav{gap:8px;margin:12px 0}
#workFirstDashboard :is(.care-inbox nav button,#refreshWorkFirst,.care-work-more>summary){font:inherit;font-size:.875rem;min-height:44px;line-height:1.5;border-radius:12px;white-space:normal;padding:10px 14px}
#workFirstDashboard .care-inbox nav button{background:#fff;color:#244a8c;border:1px solid var(--care-ui-line)}
#workFirstDashboard .care-inbox nav button[aria-pressed=true]{background:var(--care-ui-action);color:#fff;border-color:var(--care-ui-action)}
#workFirstDashboard .care-task{border-radius:var(--care-ui-radius);box-shadow:none}
#workFirstDashboard .care-task .btn-primary{font-size:.875rem;min-height:44px;border-radius:12px;line-height:1.5}
#workFirstDashboard .care-task-detail summary{font-size:.875rem;min-height:44px;line-height:1.6;align-content:center}
#workFirstDashboard .care-work-more{border-top:1px solid var(--care-ui-line);padding-top:8px}
#workFirstDashboard .care-work-more>summary{padding-inline:0;color:#244a8c;cursor:pointer}
.care-refresh-status{font-size:.875rem;line-height:1.65;color:var(--care-ui-muted);min-height:1.65em;margin:8px 0;overflow-wrap:anywhere}
.care-refresh-status.is-error{color:#854400}
[data-refreshing=true]{cursor:progress}
@media(max-width:600px){#workFirstDashboard>.work-first-head .btn{white-space:normal}#workFirstDashboard .care-inbox nav button{flex:1 1 8rem}}

#workFirstDashboard .care-inbox-region button{background:#fff;color:#244a8c;border:1px solid var(--care-ui-line);border-radius:12px;min-height:44px;font-size:.875rem;padding:10px 14px;line-height:1.5}

/* Expanded Clinic work and delivery results use the shared reading scale. */
#workFirstDashboard .work-first-section-head{flex-wrap:wrap}
#workFirstDashboard .work-first-section-head span,
#workFirstDashboard .work-first-kpi span,
#workFirstDashboard .work-first-kpi small,
#workFirstDashboard .work-first-when b,
#workFirstDashboard .work-first-when span,
#workFirstDashboard .work-first-main span,
#workFirstDashboard .work-first-main small,
#workFirstDashboard .work-recent-patient span,
#workFirstDashboard .work-recent-patient em{font-size:.875rem;line-height:1.55;color:#52647d}
#workFirstDashboard .work-first-main b,
#workFirstDashboard .work-recent-patient b{font-size:1rem;line-height:1.5;color:#142b4a;word-break:keep-all;overflow-wrap:anywhere}
#workFirstDashboard .work-first-row{grid-template-columns:112px minmax(0,1fr);gap:12px;padding:14px}
#workFirstDashboard .work-first-actions{grid-column:2;justify-content:flex-end;flex-wrap:wrap;min-width:0}
#workFirstDashboard .work-first-actions .btn,
#workFirstDashboard .work-first-actions select{font-size:.875rem;min-height:44px;line-height:1.4;white-space:normal}
#workFirstDashboard .work-first-kpis{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
#workFirstDashboard .work-recent-patient{flex-wrap:wrap;min-width:0}
#workFirstDashboard .work-recent-patient>span{min-width:0}
.care-result-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.care-result-metric{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1px solid #d5e1f2;border-radius:14px;background:#f6f9ff;color:#142b4a;min-width:0;text-align:left;cursor:pointer}
.care-result-metric span{font-size:.875rem;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.care-result-metric strong{font-size:1.375rem;line-height:1.3}
.care-result-metric.is-attention{background:#fff8eb;border-color:#ead4a6;color:#805000}
.care-result-metric:focus-visible{outline:3px solid #2458dc;outline-offset:3px}
.care-result-breakdown{margin:12px 0;padding:12px;border:1px solid #d5e1f2;border-radius:12px}
.care-result-breakdown summary{cursor:pointer;min-height:32px;font-size:1rem}
.care-result-breakdown>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px}
.care-result-breakdown p{font-size:.875rem;margin:4px 0;line-height:1.55}
@media(max-width:600px){
 #workFirstDashboard .work-first-row{grid-template-columns:minmax(0,1fr)}
 #workFirstDashboard .work-first-when{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
 #workFirstDashboard .work-first-actions{grid-column:1;justify-content:flex-start}
 .care-result-summary{grid-template-columns:minmax(0,1fr)}
 .care-result-metric{flex-direction:row;justify-content:space-between;align-items:center}
 .care-result-metric strong{flex-shrink:0}
}

/* Staff permissions */
.saas-member .member-permissions,.saas-member>.member-permission-note{grid-column:1/-1;width:100%;box-sizing:border-box}.member-permissions{border-top:1px solid #dce5f5;margin-top:8px;padding-top:12px;font-size:14px;line-height:1.6}.member-permissions summary{cursor:pointer;font-weight:700;color:#17305b;min-height:44px;display:list-item;align-content:center}.member-permission-mode{display:grid;gap:6px;max-width:360px;font-weight:700}.member-permission-mode select{font:inherit;min-height:44px}.member-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.member-permission-grid label{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;border:1px solid #dce5f5;border-radius:10px;background:#f7f9fd;cursor:pointer;word-break:keep-all;overflow-wrap:anywhere}.member-permission-grid input{width:18px;height:18px;flex:0 0 auto;accent-color:#2858ff}.member-permission-note{font-size:13px;line-height:1.65;color:#526581}.member-permission-grid label:has(input:checked){background:#eef3ff;border-color:#acc1ff}.member-permission-grid label:has(input:disabled){cursor:default}@media(max-width:600px){.member-permission-grid{grid-template-columns:1fr}.saas-member{min-width:0}.member-permission-mode{max-width:none}}

#saasMemberList .saas-member{font-size:14px;line-height:1.6}#saasMemberList .saas-member b{font-size:14px}#saasMemberList .saas-member small{font-size:12px;line-height:1.6;overflow-wrap:anywhere}#saasMemberList .saas-member select{font-size:14px;min-height:44px}#saasMemberList .member-permissions summary{font-size:14px}

/* Staff permission guide uses the same labels as the permission editor. */
#account .permission-guide{color:var(--care-ui-ink);font-size:14px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
#account .permission-guide h3{font-size:17px;line-height:1.5;margin:0}
#account .permission-guide-head p{font-size:14px;line-height:1.7;color:var(--care-ui-muted);margin:6px 0 0}
.permission-guide-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.permission-guide-modes>div{padding:14px 16px;border:1px solid var(--care-ui-line);border-radius:12px;background:#f7f9fd;min-width:0}
.permission-guide-modes dt{font-weight:800;color:var(--care-ui-ink);margin:0 0 6px}
.permission-guide-modes dd{margin:0;color:var(--care-ui-muted)}
.permission-guide-owner{padding:12px 14px;border-radius:12px;background:#eef3ff;margin:0 0 16px}
.permission-guide-catalog{border:1px solid var(--care-ui-line);border-radius:12px;padding:0 16px}
.permission-guide-catalog summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:800;list-style-position:inside}
.permission-guide-catalog summary:focus-visible{outline:3px solid var(--care-ui-action);outline-offset:3px;border-radius:6px}
.permission-guide-count{display:inline-block;background:#eef3ff;color:#214fbd;border-radius:999px;padding:1px 9px;font-size:12px;margin-left:6px;vertical-align:middle}
.permission-guide-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 0 12px}
.permission-guide-group{border:1px solid var(--care-ui-line);border-radius:10px;padding:12px 14px;min-width:0;background:#fff}
#account .permission-guide-group h4{font-size:14px;line-height:1.6;margin:0 0 6px;color:var(--care-ui-ink)}
.permission-guide-group ul{padding-left:18px;margin:0;color:var(--care-ui-muted)}
.permission-guide-group li+li{margin-top:4px}
.permission-guide-dependencies{margin:0 0 14px;color:var(--care-ui-muted)}
.permission-guide-foot{border-top:1px solid var(--care-ui-line);margin-top:16px;padding-top:12px;color:var(--care-ui-muted);font-size:13px;line-height:1.7}
.permission-guide-foot p{margin:0}.permission-guide-foot p+p{margin-top:8px}
@media(max-width:700px){.permission-guide-modes,.permission-guide-groups{grid-template-columns:1fr}.permission-guide-modes{gap:8px}.permission-guide-catalog{padding-inline:12px}}

/* Identify each guardian response independently of the selected patient. */
.survey-identity{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:6px;min-width:0;color:var(--care-ui-ink);font-size:14px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
.survey-identity strong{font-size:15px;line-height:1.6;font-weight:800}
.survey-main .survey-identity>span,.message-failure-main .survey-identity>span{font-size:14px;line-height:1.6;color:var(--care-ui-muted)}
.survey-identity.survey-identity-missing{font-size:13px;color:#765714}
.survey-main .survey-identity .survey-inactive,.message-failure-main .survey-identity .survey-inactive{font-size:12px;border-radius:999px;padding:2px 8px;background:#edf0f5;color:#526581}
#guardianSurveyList .survey-row{grid-template-columns:112px minmax(0,1fr) auto;gap:14px;padding:14px;align-items:start}
#guardianSurveyList .survey-main{min-width:0}
#guardianSurveyList .survey-main>.survey-journey{font-size:13px;line-height:1.65;color:var(--care-ui-muted)}
#guardianSurveyList .survey-main>span,#guardianSurveyList .survey-comment{font-size:12px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
#guardianSurveyList .survey-when,#guardianSurveyList .survey-when b{font-size:12px;line-height:1.65}
#guardianSurveyList .survey-badge{font-size:12px;line-height:1.5}
#guardianSurveyList .survey-actions .btn{font-size:13px;min-height:44px}
@media(max-width:700px){#guardianSurveyList .survey-row{grid-template-columns:minmax(0,1fr);gap:8px}#guardianSurveyList .survey-when{display:flex;flex-wrap:wrap;gap:4px 10px}#guardianSurveyList .survey-actions{justify-content:flex-start}.survey-identity{gap:4px 10px}}

/* Consistent settings, patient context and readable administrative text. */
.r61-settings-dialog{width:min(860px,calc(100vw - 24px));padding:0;overflow:hidden}
.r61-settings-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(var(--care-visible-height,100dvh) - 24px)}
.r61-settings-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--care-ui-line)}
.r61-settings-dialog>header h2{margin:0}
.r61-settings-dialog .r61-dialog-body{padding:16px 20px;overflow:auto;overscroll-behavior:contain;min-height:0}
.r61-settings-group{padding:16px;margin:0 0 14px;border:1px solid var(--care-ui-line);border-radius:14px;background:#fff;min-width:0}
.r61-settings-group h3,.r61-settings-group>summary{font-size:1.125rem;line-height:1.5;margin:0 0 12px;font-weight:700;word-break:keep-all;overflow-wrap:anywhere}
.r61-settings-group>summary{cursor:pointer;min-height:44px;align-content:center;margin:0}
.r61-settings-group[open]>summary{margin-bottom:12px}
.r61-settings-group p,.r61-settings-footer p{font-size:.875rem;line-height:1.65;color:var(--care-ui-muted);margin:10px 0;word-break:keep-all;overflow-wrap:anywhere}
.r61-settings-group .r61-settings-check{display:flex;align-items:flex-start;gap:10px;font-size:1rem;line-height:1.6;padding:8px 0;margin:0;min-height:44px;box-sizing:border-box;word-break:keep-all;overflow-wrap:anywhere}
.r61-settings-check input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:3px 0;accent-color:var(--care-ui-action)}
.r61-settings-group .r61-settings-field{display:grid;gap:6px;font-size:.875rem;line-height:1.6;margin:14px 0;color:var(--care-ui-ink);word-break:keep-all;overflow-wrap:anywhere}
.r61-settings-field :is(input,select){width:100%;min-height:44px;border:1px solid var(--care-ui-line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--care-ui-ink);font-size:1rem}
.r61-settings-group>button{margin:4px 6px 4px 0;min-height:44px}
.r61-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid var(--care-ui-line);background:#fff;z-index:2}
.r61-settings-footer p{flex:1;margin:0;min-width:0}
.r61-settings-footer .r61-settings-save{flex:0 0 auto;min-width:7rem;background:var(--care-ui-action);color:#fff;border-color:var(--care-ui-action)}
.r61-settings-dialog[data-save-state=dirty] .r61-settings-footer{background:#f2f6ff}
.r61-settings-dialog[data-save-state=error] .r61-settings-footer p{color:#85451a}
.r61-settings-dialog[data-save-state=saved] .r61-settings-footer p{color:#176341}
.r61-settings-loading{min-height:8rem;align-content:center;font-size:1rem}
#r61-patient-context{display:grid;grid-template-columns:minmax(12rem,1fr) auto auto auto auto;gap:2px 10px;position:sticky;top:8px;padding:10px 14px;box-shadow:0 2px 8px #1732570a}
#r61-patient-context>strong{grid-column:1;grid-row:1;font-size:1rem;line-height:1.5;min-width:0;overflow-wrap:anywhere;word-break:keep-all}
#r61-patient-context>span{grid-column:1;grid-row:2;font-size:.875rem;line-height:1.5;min-width:0;overflow-wrap:anywhere}
#r61-patient-context .r61-context-create{grid-column:2;grid-row:1/3}
#r61-patient-context .r61-context-history{grid-column:3;grid-row:1/3}
#r61-patient-context .r61-context-change{grid-column:4;grid-row:1/3}
#r61-patient-context .r61-context-details{grid-column:5;grid-row:1/3;align-self:center;min-width:0}
#r61-patient-context .r61-context-details>summary{min-height:44px;align-content:center;font-size:.875rem;cursor:pointer;word-break:keep-all}
#r61-patient-context .r61-context-details[open]{grid-column:1/-1;grid-row:3}
#r61-patient-context .r61-context-details[open] .r61-context-topic{font-size:.875rem;line-height:1.6;font-weight:400;padding:4px 0 2px}
#r61-patient-context[data-ready=false]{grid-template-columns:minmax(0,1fr) auto;position:relative;top:auto}
#r61-patient-context[data-ready=false] .r61-context-change{grid-column:2;background:var(--care-ui-action);border-color:var(--care-ui-action);color:#fff}
#r61-patient-context[data-ready=false] :is(.r61-context-create,.r61-context-history,.r61-context-details){display:none}
#r61-patient-context .btn{font-size:.875rem;min-height:44px;padding:8px 12px;white-space:normal;word-break:keep-all}
#saasMemberList .saas-member small,.member-permission-note,.permission-guide-foot,.permission-guide-count,#guardianSurveyList .survey-main>.survey-journey,#guardianSurveyList .survey-main>span,#guardianSurveyList .survey-comment,#guardianSurveyList .survey-when,#guardianSurveyList .survey-when b,.survey-identity.survey-identity-missing{font-size:.875rem;line-height:1.65;color:var(--care-ui-muted)}
#guardianSurveyList .survey-main .survey-inactive{font-size:.875rem}
#r65-manual-controls p,#subscriptionBanner .subtext{font-size:.875rem;line-height:1.65}
@media(max-width:900px){#r61-patient-context{grid-template-columns:minmax(0,1fr) auto auto auto}#r61-patient-context .r61-context-details{grid-column:1/-1;grid-row:3}}
@media(max-width:700px){
 #r61-patient-context{position:relative;top:auto;grid-template-columns:minmax(0,1fr) auto;padding:10px 12px}
 #r61-patient-context>strong{grid-column:1;grid-row:1}#r61-patient-context>span{grid-column:1;grid-row:2}
 #r61-patient-context .r61-context-change{grid-column:2;grid-row:1/3}
 #r61-patient-context .r61-context-details{grid-column:1/-1;grid-row:3}
 #r61-patient-context :is(.r61-context-create,.r61-context-history){display:none}
 #r61-patient-context:has(.r61-context-details[open]) .r61-context-create{display:block;grid-column:1;grid-row:4}
 #r61-patient-context:has(.r61-context-details[open]) .r61-context-history{display:block;grid-column:2;grid-row:4}
 .r61-settings-dialog>header{padding:14px}.r61-settings-dialog .r61-dialog-body{padding:12px}.r61-settings-group{padding:12px}.r61-settings-footer{padding:12px;flex-wrap:wrap}.r61-settings-footer p{flex-basis:100%}.r61-settings-footer .r61-settings-save{width:100%}
}

/* Keep operational diagnostics readable without changing patient workflows. */
.care-deployment-schema{margin-top:10px;max-width:100%;font-size:.875rem;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}.care-deployment-schema summary{cursor:pointer;min-height:44px;align-content:center}.care-deployment-schema p{margin:8px 0}.care-deployment-schema li{margin:4px 0}

.care-deployment-status>div{min-width:0}.care-deployment-status>div>b{font-size:1rem;line-height:1.5}.care-deployment-status>div>span{font-size:.875rem;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}.care-deployment-status>.btn{min-height:44px}
