.modal-backdrop:has(.chart-view){padding:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.modal:has(.chart-view),.modal.glass:has(.chart-view){width:100vw;max-width:none;height:100dvh;max-height:100dvh;padding:0;margin:0;overflow:auto;border:0;border-radius:0;background:#f6f8f7;box-shadow:none}
.modal:has(.chart-view) .modal-close{position:fixed;top:25px;right:clamp(18px,4vw,54px);z-index:30;width:40px;height:40px;border:1px solid #dce7e1;border-radius:12px;background:#fff;color:#304d44}
.chart-view{min-height:100%;font-family:'Instrument Sans',sans-serif;font-size:15px;line-height:1.5;color:#16382e}
.chart-header{background:#fff;border-bottom:1px solid #e2eae5;padding:36px clamp(24px,5vw,72px) 30px}
.chart-header-inner{display:flex;align-items:center;gap:22px;max-width:1350px;margin:auto;padding-right:55px}
.chart-monogram{display:grid;place-items:center;flex:none;width:70px;height:70px;border-radius:20px;background:#e6f0e9;color:#2b6b4d;font-family:'Instrument Serif',Georgia,serif;font-size:38px}
.chart-identity{min-width:0}.chart-identity .eyebrow{margin:0 0 6px;color:#4e7a68}.chart-identity h2{font-size:clamp(30px,4vw,44px);line-height:1.12;letter-spacing:-.01em;margin:0 0 8px}.chart-identity p{margin:0;color:#536e5f;font-size:14px}.chart-identity p span{margin:0 6px}
.chart-identity-facts{display:flex;flex-wrap:wrap;gap:7px 16px;align-items:center;color:#405f4e;font-size:13px;font-weight:650}.chart-identity-facts a{color:#246747;text-decoration:underline;text-underline-offset:3px}.chart-identity>small{display:block;margin-top:7px;color:#71857a;font-size:11px}
.chart-alert{margin-left:auto;padding:9px 13px;border-radius:30px;background:#fff3df;color:#855b1e;font-size:12px;font-weight:750;white-space:nowrap}
.chart-tabs{position:sticky;top:0;z-index:20;display:flex;gap:3px;overflow-x:auto;padding:0 max(24px,calc((100vw - 1350px)/2));background:#fff;border-bottom:1px solid #e1eae5;scrollbar-width:thin}
.chart-tabs button{flex:none;border:0;border-bottom:3px solid transparent;background:transparent;padding:18px 17px 15px;color:#536f5f;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.chart-tabs button:hover{color:#1d5b3e;background:#f5f9f6}.chart-tabs button[aria-selected=true]{color:#1d6544;border-bottom-color:#2d7a55}.chart-tabs button:focus-visible{outline:2px solid #2d7a55;outline-offset:-5px}
.chart-content{max-width:1350px;margin:0 auto;padding:38px clamp(24px,5vw,72px) 80px}
.chart-global-error:empty{display:none}.chart-global-error:not(:empty){padding:13px 16px;background:#fff0ed;border:1px solid #eecdc6;border-radius:10px;margin-bottom:18px;font-size:13px}
.chart-tab-panel[hidden]{display:none!important}.chart-section-heading{margin-bottom:25px}.chart-section-heading .eyebrow{margin-bottom:7px}.chart-section-heading h3{font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:clamp(30px,4vw,40px);letter-spacing:-.015em;margin:0 0 7px;line-height:1.14}.chart-section-heading p:last-child{font-size:15px;color:#516d5d;margin:0}
.chart-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.chart-panel{min-width:0;min-height:0;max-height:none;overflow:visible;padding:26px;border:1px solid #e1eae3;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,69,49,.04)}
.chart-panel h4{margin:0 0 14px;font-size:18px;color:#1c3e30}.chart-stat-card{display:flex;flex-direction:column;gap:8px;min-height:155px}.chart-stat-card span{font-size:13px;color:#587164;font-weight:700}.chart-stat-card strong{font-family:'Instrument Serif',Georgia,serif;font-size:31px;font-weight:400;color:#183c2b}.chart-stat-card small{color:#5f7467;font-size:14px}
.chart-inline-link{align-self:flex-start;border:0;border-bottom:1px solid currentColor;border-radius:0;background:transparent;padding:0 0 2px;color:#246747;font-size:14px;font-weight:750;cursor:pointer}.chart-inline-link:hover{color:#164b31}.chart-inline-link span{margin-left:4px}.chart-quick-action{align-self:flex-start;margin-top:8px}
.chart-item{padding:18px 0;border-top:1px solid #e8eee9}.chart-item:first-of-type{border-top:0}.chart-item strong{font-size:15px;color:#253f32;line-height:1.35}.chart-item small{font-size:13px;color:#607669;margin-top:5px}.chart-item p{font-size:14px;line-height:1.55}.chart-item details{margin-top:12px}.chart-item details summary{cursor:pointer;color:#2e694a;font-size:14px;font-weight:700}.chart-item details p{margin:12px 0 0}.chart-item a{display:inline-block;margin-top:10px;color:#246747;font-size:14px;font-weight:700}.chart-note{font-size:15px;line-height:1.65;color:#41564a}
.chart-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.chart-list-row>div:first-child{min-width:0}.chart-list-row .button{height:38px}.chart-empty{margin:10px 0;color:#72847a;font-size:14px}.chart-two-column{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.8fr);gap:18px;align-items:start}.chart-two-column .form-stack{margin-top:0;gap:17px}.chart-two-column textarea{width:100%;min-height:145px;resize:vertical;border:1px solid #dce7e8;border-radius:10px;padding:12px;font:inherit;font-size:14px}.chart-two-column input[type=file]{height:auto;padding:10px}.chart-two-column .button{justify-self:start}.chart-file{font-size:14px;color:#246747}
.chart-placeholder{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 24px;border:1px dashed #cbdcd0;border-radius:18px;background:#fff}.chart-placeholder-icon{display:grid;place-items:center;width:58px;height:58px;margin-bottom:17px;border-radius:17px;background:#eaf2ec;color:#327657;font-family:'Instrument Serif',Georgia,serif;font-size:27px}.chart-placeholder h4{font-size:20px;margin:0 0 8px}.chart-placeholder p{max-width:440px;margin:0;color:#5c7465;font-size:15px;line-height:1.6}
@media(max-width:780px){.chart-overview-grid,.chart-two-column{grid-template-columns:1fr}.chart-header{padding:24px 20px}.chart-header-inner{gap:13px;padding-right:38px}.chart-monogram{width:55px;height:55px;border-radius:14px;font-size:30px}.chart-alert{display:none}.chart-content{padding:28px 20px 60px}.chart-tabs{padding:0 12px}.chart-tabs button{padding:15px 12px 12px}.chart-list-row{align-items:flex-start;flex-direction:column}.chart-panel{padding:20px}.modal:has(.chart-view) .modal-close{top:19px;right:16px}}
.chart-allergy-notice{margin:0 0 18px;padding:12px 14px;border-radius:9px;background:#fff7e9;color:#694e25;font-size:14px}.chart-item small{display:block}.chart-panel #chart-allergy-form{margin-top:20px;padding-top:20px;border-top:1px solid #e1eae3}.chart-panel #chart-allergy-form input,.chart-panel #chart-allergy-form select{width:100%}
.chart-allergy-reports{grid-column:1/-1}.chart-allergy-reports>p{margin:0;color:#516d5d}.chart-allergy-reports .chart-item p{margin:5px 0;white-space:pre-wrap}
.modal-backdrop:has(.mobile-note-editor){padding:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.modal:has(.mobile-note-editor),.modal.glass:has(.mobile-note-editor){width:100vw;max-width:none;height:100dvh;max-height:100dvh;padding:0;margin:0;overflow:auto;border:0;border-radius:0;background:#f6f8f7;box-shadow:none}
.modal:has(.mobile-note-editor) .modal-close{position:fixed;top:22px;right:22px;z-index:40;width:38px;height:38px;border:1px solid #dce7e1;border-radius:10px;background:#fff;color:#304d44}
.mobile-note-editor{min-height:100%;font-family:'Instrument Sans',sans-serif;font-size:15px;line-height:1.5;color:#18392e}
.mobile-note-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 82px 22px 42px;background:#fff;border-bottom:1px solid #dfe8e2;box-shadow:0 2px 12px #163b2710}
.mobile-note-header .eyebrow{margin:0 0 5px;color:#518268}.mobile-note-header h2{font-family:'Instrument Serif',Georgia,serif;font-size:clamp(26px,3vw,34px);font-weight:400;letter-spacing:-.02em;line-height:1.1;margin:0}.mobile-note-header p:last-child{font-size:13px;color:#60766a;margin:5px 0 0}
.mobile-note-header-actions{display:flex;align-items:center;gap:10px;flex:none}.mobile-note-progress{font-size:12px;font-weight:700;color:#587366;margin-right:12px}.mobile-note-header-actions .button{height:40px}
.mobile-note-layout{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);min-height:calc(100dvh - 96px)}
.mobile-note-sidebar{background:#f0f5f1;border-right:1px solid #dfe8e2;padding:25px 12px 40px 22px}.mobile-note-sidebar-title{display:flex;justify-content:space-between;padding:0 15px 13px;color:#5e7968;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.mobile-note-sidebar-title span{letter-spacing:0}
.mobile-note-tabs{display:grid;gap:3px;max-height:calc(100dvh - 174px);overflow:auto;scrollbar-width:thin}.mobile-note-tabs button{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:#4d685a;text-align:left;font-size:13px;font-weight:650;line-height:1.25;cursor:pointer}.mobile-note-tabs button:hover{background:#e4eee6}.mobile-note-tabs button.active{background:#d9e9dd;color:#174e31}.mobile-note-tabs button:focus-visible{outline:2px solid #26704b;outline-offset:-2px}.mobile-note-tab-number{color:#829c8b;font-size:11px;font-weight:800}.mobile-note-tab-done{width:7px;height:7px;margin-left:auto;border-radius:50%;flex:none}.mobile-note-tabs button.has-answer{font-weight:750}.mobile-note-tabs button.has-answer .mobile-note-tab-done{background:#d8942f}.mobile-note-tabs button.is-ready{font-weight:800}.mobile-note-tabs button.is-ready .mobile-note-tab-done{background:#319764}
.mobile-note-main{width:100%;max-width:1120px;margin:0 auto;padding:34px clamp(24px,4vw,60px) 60px;min-width:0}.mobile-note-section-header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.mobile-note-section-counter{color:#58866c;font-size:11px;font-weight:800;letter-spacing:.12em}.mobile-note-section-header h3{font-family:'Instrument Serif',Georgia,serif;font-size:clamp(29px,3vw,38px);font-weight:400;line-height:1.1;margin:7px 0 0}.mobile-note-section-header .form-error{min-height:0;font-size:13px;font-weight:700}.mobile-note-section-header .form-error:empty{display:none}
.mobile-note-section{min-height:330px;padding:28px clamp(20px,3vw,42px);background:#fff;border:1px solid #dfe9e2;border-radius:16px;box-shadow:0 8px 30px #173a2710;overflow-x:auto;color:#273e32}.mobile-note-section>div>h3:first-child{display:none}.mobile-note-section .section-element{margin:12px 0}.mobile-note-section h3,.mobile-note-section h4{font-size:18px;color:#214c34;margin:20px 0 10px}.mobile-note-section h4 small{display:block;font-size:12px;color:#718678;font-weight:400}.mobile-note-section label{display:block;margin:5px 0;color:#304d3a;font-size:14px;font-weight:600;line-height:1.5}.mobile-note-section label:has(input[type=checkbox]),.mobile-note-section label:has(input[type=radio]){display:flex;align-items:flex-start;gap:10px;padding:8px 9px;border-radius:8px;cursor:pointer}.mobile-note-section label:has(input[type=checkbox]):hover,.mobile-note-section label:has(input[type=radio]):hover{background:#f2f7f3}.mobile-note-section input[type=checkbox],.mobile-note-section input[type=radio]{width:18px;height:18px;flex:none;margin:1px 0 0;padding:0;accent-color:#27764d}.mobile-note-section input[type=text],.mobile-note-section textarea,.mobile-note-section select{display:block;width:100%;max-width:100%;min-height:42px;padding:10px 12px;border:1px solid #cddcd1;border-radius:8px;background:#fbfdfb;color:#243c2f;font:inherit;font-size:14px}.mobile-note-section textarea{min-height:115px;resize:vertical;line-height:1.55}.mobile-note-section input:focus,.mobile-note-section textarea:focus,.mobile-note-section select:focus{outline:2px solid #b7dbc3;outline-offset:1px;border-color:#4b9567}.mobile-note-section table{border-collapse:collapse;width:100%;min-width:560px;margin:15px 0}.mobile-note-section th,.mobile-note-section td{border:1px solid #dfe9e2;padding:10px;vertical-align:middle;font-size:13px}.mobile-note-section th{background:#f4f8f4;color:#3b6348}.mobile-note-section td input[type=text]{min-width:100px}.mobile-note-section td input[type=radio],.mobile-note-section td input[type=checkbox]{margin:auto}.mobile-note-empty{display:grid;place-items:center;text-align:center;color:#617769}.mobile-note-empty p{max-width:500px}.mobile-note-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 0}.mobile-note-actions>div{display:flex;gap:9px}.mobile-note-actions button:disabled{opacity:.45;cursor:default}
@media(max-width:850px){.mobile-note-header{position:relative;padding:20px 62px 18px 22px;align-items:flex-start;flex-direction:column;gap:14px}.mobile-note-header-actions{flex-wrap:wrap}.mobile-note-progress{width:100%}.mobile-note-layout{display:block}.mobile-note-sidebar{padding:9px 16px;border-right:0;border-bottom:1px solid #dfe8e2}.mobile-note-sidebar-title{display:none}.mobile-note-tabs{display:flex;max-height:none;overflow:auto;gap:5px}.mobile-note-tabs button{width:auto;min-height:36px;flex:none;white-space:nowrap;padding:8px 12px}.mobile-note-tab-done{margin-left:0}.mobile-note-main{padding:24px 18px 40px}.modal:has(.mobile-note-editor) .modal-close{top:17px;right:16px}.mobile-note-section{padding:20px 16px}.mobile-note-actions{flex-wrap:wrap}}
.modal-backdrop.mobile-note-fullscreen{padding:0;display:block;backdrop-filter:none;-webkit-backdrop-filter:none}
.mobile-note-fullscreen .modal,.mobile-note-fullscreen .modal.glass{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:auto;background:#f5f7f4;box-shadow:none}
.mobile-note-fullscreen #modal-content{min-height:100%;width:100%}
.mobile-note-fullscreen .modal-close{position:fixed;right:24px;top:20px;z-index:50;width:42px;height:42px;background:#edf3ee;border:1px solid #cddfd0}
.mobile-note-editor{background:#f5f7f4;color:#1b3429}
.mobile-note-header{padding:23px 88px 22px 40px;box-shadow:none;border-bottom:1px solid #dbe6db}
.mobile-note-header h2{font-family:'Instrument Sans',sans-serif;font-weight:750;font-size:clamp(25px,2.5vw,34px);letter-spacing:-.035em}
.mobile-note-layout{grid-template-columns:260px minmax(0,1fr)}
.mobile-note-sidebar{background:#f8faf7;padding:26px 12px 40px 18px}
.mobile-note-tabs button{min-height:45px;border-radius:7px;font-size:13px}
.mobile-note-tabs button.active{background:#e2efe3;box-shadow:inset 3px 0 #24764b}
.mobile-note-main{max-width:1200px;padding-top:29px}
.mobile-note-section{border-radius:11px;box-shadow:0 2px 10px #173a2708;padding:28px clamp(22px,3vw,40px)}
.mobile-note-section .section-element{margin:15px 0}
.mobile-note-section .worksheet{margin:24px 0;padding:20px;border:1px solid #d9e4dc;border-radius:10px;background:#f8fbf8}
.mobile-note-section .worksheet h4{margin:0 0 6px;font-size:15px}
.mobile-note-section .worksheet h4 small{line-height:1.45}
.mobile-note-section .worksheet-collapsable-area{margin-top:17px}
.mobile-note-section .mobile-note-worksheet-toggle,.mobile-note-section .mobile-note-clear-worksheet,.mobile-note-section .mobile-note-generate-narrative{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:34px;padding:7px 12px;margin:8px 8px 0 0;border:1px solid #c9dbce;border-radius:7px;background:#fff;color:#25593a;font-size:12px;font-weight:750;cursor:pointer}
.mobile-note-section .mobile-note-generate-narrative{background:#e5f2e8}
.mobile-note-section .mobile-note-worksheet-toggle:hover,.mobile-note-section .mobile-note-clear-worksheet:hover,.mobile-note-section .mobile-note-generate-narrative:hover{background:#ddefe1}
.mobile-note-section .worksheet-collapsable-area[hidden]{display:none}
.mobile-note-section .mobile-note-vitals{margin:22px 0;padding:18px;border:1px solid #d9e4dc;border-radius:10px;background:#f8fbf8}
.mobile-note-section .mobile-note-vitals h4{margin-top:0}
.mobile-note-section .mobile-note-vitals input[type=text]{min-width:75px}
.mobile-note-section label:has(input[type=checkbox]),.mobile-note-section label:has(input[type=radio]){font-weight:500}
.mobile-note-section input[type=text],.mobile-note-section textarea,.mobile-note-section select{background:#fff}
.mobile-note-section textarea{min-height:124px}
.psych-note-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:13px 0 18px}.psych-note-shortcuts .eyebrow{width:100%;margin:0}.psych-note-shortcuts .button{height:36px}.chart-medication-caution{padding:11px 13px;border-radius:10px;background:#f2f7f4;color:#455c50;font-size:13px;line-height:1.5}#chart-dosespot-summary h5{margin:20px 0 8px;color:#315d47;font-size:13px}
.psych-note-required{font-size:11px;color:#a34439;margin-left:7px;font-weight:700}
.chart-lab-steps{padding-left:21px;color:#425a4a;font-size:13px;line-height:1.7}.chart-lab-steps li{margin-bottom:6px}#chart-lab-document-form small{color:#667b6b;line-height:1.5}
.mobile-note-section table{min-width:640px}
@media(max-width:850px){.mobile-note-fullscreen .modal-close{top:16px;right:15px}.mobile-note-header{padding:18px 64px 17px 20px}.mobile-note-layout{display:block}.mobile-note-sidebar{padding:9px 12px}.mobile-note-main{padding:23px 14px 50px}.mobile-note-section{padding:20px 16px}.mobile-note-section .worksheet{padding:16px}.mobile-note-header-actions .button{height:38px}}
.mobile-note-review{display:grid;gap:14px}
.mobile-note-review-intro{padding:17px 20px;border:1px solid #cfe3d3;border-radius:10px;background:#edf7ef;color:#315d3d}
.mobile-note-review-intro p{margin:0;font-size:14px;font-weight:650}
.mobile-note-review-section{padding:19px 22px;border:1px solid #dfe9e2;border-radius:10px;background:#fff}
.mobile-note-review-heading,.mobile-note-review-heading>div{display:flex;align-items:center;gap:12px}
.mobile-note-review-heading{justify-content:space-between;gap:18px}
.mobile-note-review-heading h4{margin:0;font-size:17px;color:#214633}
.mobile-note-review-number{color:#5e9070;font-size:12px;font-weight:800}
.mobile-note-review-jump{width:auto;height:auto;padding:7px 11px;border:1px solid #caddcf;border-radius:7px;background:#f3f8f4;color:#236341;font-size:12px;font-weight:750;white-space:nowrap}
.mobile-note-review-jump:hover{background:#e4f1e7}
.mobile-note-review-section dl{display:grid;gap:0;margin:15px 0 0}
.mobile-note-review-answer{padding:12px 0;border-top:1px solid #e9eee9}
.mobile-note-review-answer dt{font-size:12px;font-weight:750;color:#506b57}
.mobile-note-review-answer dd{margin:5px 0 0;color:#243b2d;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.mobile-note-review-worksheet{margin-left:8px;padding:3px 6px;border-radius:5px;background:#edf2ee;color:#6b806d;font-size:10px;font-weight:700}
.mobile-note-review-unanswered{margin:12px 0 0;color:#778b7a;font-size:13px}
@media(max-width:600px){.mobile-note-review-section{padding:16px}.mobile-note-review-heading{align-items:flex-start}.mobile-note-review-heading>div{align-items:flex-start}}
.secure-thread{max-height:420px;overflow-y:auto;display:grid;gap:10px;margin:16px 0;padding:10px}.secure-message{max-width:85%;padding:12px 16px;border:1px solid #dce7e4;border-radius:14px;background:#fff;overflow-wrap:anywhere}.secure-message.clinician{justify-self:end;background:#e7f2eb}.secure-message small{display:block;color:#536970}.secure-message p{white-space:pre-wrap;margin:8px 0}.secure-message a{color:#214f73;text-decoration:underline}
.mobile-note-section td label input[type=checkbox],.mobile-note-section td label input[type=radio]{margin:1px 0 0}
