.appointment-subnav{display:flex;gap:.4rem;flex-wrap:wrap;margin:1rem 0 1.25rem}
.appointment-subnav .button{flex:1 1 auto;max-width:14rem;border-radius:9px}
.treatment-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.treatment-card{background:#fff;border:1px solid #d4ddd4;border-radius:14px;padding:1.5rem;min-width:0}
.treatment-card>h2{font-size:1.4rem;padding-bottom:1rem;border-bottom:1px solid #d4ddd4}
.treatment-card>section{padding:1rem 0}.treatment-card>section+section{border-top:1px solid #d4ddd4}
.care-price{font-size:1.3rem;font-weight:600;margin:.6rem 0;color:#254a3e}
.treatment-card .button{margin-top:.5rem}.treatment-card .small{margin:.5rem 0}
.next-visit-summary{background:#edf3ee;border-radius:12px;padding:1.2rem;margin:0 0 1.2rem}
.next-visit-summary h2{font-size:1.1rem;margin:0 0 .5rem}.next-visit-card p{margin:.35rem 0}.next-visit-card h3{margin:.5rem 0}
.care-appointment-card,.care-history-row{padding:1rem 0;border-bottom:1px solid #d4ddd4}
.care-appointment-card h3,.care-history-row h3{font-size:1rem;margin:0 0 .4rem}
.care-history-filters{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.care-history-filters .button{min-height:44px;max-width:100%;white-space:normal}
.care-history-filters [aria-pressed="true"]{text-decoration:none}
.care-flow-progress{padding:.8rem 1rem;background:#edf3ee;border-left:3px solid #8e762f;border-radius:6px;font-size:.9rem}
.followup-questionnaire{max-width:48rem;background:#fff;border:1px solid #d4ddd4;border-radius:14px;padding:1.5rem}
.followup-questionnaire progress{width:100%;accent-color:#24503f;height:.6rem}
.followup-step{margin-top:1.4rem}.followup-step h2{font-size:1.3rem}
.followup-step fieldset{border:0;padding:0;margin:1.4rem 0;min-width:0}
.followup-step legend{font-weight:600;line-height:1.5;margin-bottom:.6rem}
.followup-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.followup-option{display:flex;align-items:center;justify-content:flex-start;gap:.55rem;padding:.7rem .8rem;background:#f4f6f2;border:1px solid #d4ddd4;border-radius:8px;min-height:44px;cursor:pointer}
.followup-option:has(input:checked){background:#e6efe7;border-color:#24503f}.followup-option:has(input:focus-visible){outline:3px solid #755611;outline-offset:2px}
.followup-option input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#24503f}
.current-state-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem}
.current-state-options .followup-option{flex-direction:column;text-align:center;justify-content:center;font-size:.8rem;padding:.6rem .3rem}
.state-face{font-size:1.6rem}.followup-step textarea,.followup-step input[type=number]{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #8fa493;padding:.75rem;border-radius:6px;font:inherit;background:#fff}
.followup-step input[type=number]{max-width:12rem}.followup-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin-top:1.5rem}
.followup-history-section{padding:.8rem 0;border-bottom:1px solid #d4ddd4}.followup-history-section h3{font-size:1.05rem}.followup-history-section dt{font-weight:600;margin-top:.7rem}.followup-history-section dd{margin:.3rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
[hidden]{display:none!important}
@media(max-width:650px){.treatment-cards{grid-template-columns:1fr}.treatment-card,.followup-questionnaire{padding:1rem}.followup-options{grid-template-columns:1fr}.appointment-subnav{gap:.3rem}.appointment-subnav .button{padding:.6rem .55rem;font-size:.85rem;min-width:0;flex:1 1 0}.current-state-options{grid-template-columns:repeat(5,minmax(0,1fr))}.followup-actions .button{flex:1 1 auto}.next-visit-summary{padding:1rem}.care-flow-progress{font-size:.85rem}}

/* Patient Portal action system. Natural height prevents flex/grid row stretching. */
.portal-workspace .button,.portal-workspace .text-button,.wizard-actions .button,.payment-method-actions .button{display:inline-flex;align-items:center;justify-content:center;text-align:center;align-self:start;height:auto;min-height:44px;max-width:100%;padding:.65rem 1rem;border-radius:10px;font-family:inherit;font-weight:600;font-size:.875rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere;flex-grow:0}
.portal-workspace .text-button{background:transparent;text-decoration:underline;min-height:44px}
.portal-workspace .button:focus-visible,.portal-workspace .text-button:focus-visible{outline:3px solid #755611;outline-offset:3px}
.portal-workspace .button:disabled{opacity:.6;cursor:not-allowed}
.appointment-row-actions{display:flex;align-items:flex-start;justify-content:flex-start;gap:.5rem;flex-wrap:wrap;align-self:start}
.appointment-row-actions .appointment-action{flex:0 1 auto;align-self:start;min-height:44px;height:auto;max-width:100%;margin:0}
#payment-method-required{color:#b4232b;font-weight:400;margin:1.25rem 0 0}
.saved-card-actions{margin-top:1rem}
@media(max-width:600px){.appointment-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:.7rem!important;min-height:0!important}.appointment-row-actions{width:100%}.portal-workspace .button{padding:.65rem .8rem}.appointment-row-actions .appointment-action{flex:0 1 auto;min-height:44px;height:auto!important;border-radius:10px!important}.portal-workspace{min-width:0}.portal-workspace .account-card{min-width:0}}
.portal-app-shell .portal-workspace .button{border-radius:10px!important;align-self:start;align-items:center;justify-content:center;height:auto;min-height:44px;line-height:1.35}
.portal-app-shell .portal-workspace .appointment-subnav .button{flex:1 1 auto;min-width:6rem;max-width:14rem;overflow-wrap:normal}
.followup-step h2,.followup-step fieldset{scroll-margin-top:110px}
.care-policy{margin-top:1.25rem;padding:.8rem 0;border-top:1px solid #d4ddd4}.care-policy>summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:600}
@media(max-width:650px){.portal-app-shell .portal-workspace .appointment-subnav .button{flex:1 1 0;min-width:0;padding:8px .4rem;font-size:.82rem;overflow-wrap:normal;box-sizing:border-box;min-height:50px;line-height:1.25}.appointment-subnav{width:100%}}

.submitted-followup-actions{display:flex;flex-direction:column;gap:.75rem}.submitted-followup-actions>.button{width:100%}

/* October 10: status imagery and reachable, separate Account services. */
.membership-seal{display:block;width:6rem;height:auto;object-fit:contain;margin:0 0 1rem;background:transparent}
.membership-seal[hidden]{display:none!important}
.account-profile-intro{position:relative;min-height:7rem;padding-right:8rem}
.account-profile-intro .membership-seal{position:absolute;right:0;top:0;width:9.75rem;max-width:32%}
.account-requests{max-width:54rem}.account-requests .account-card{margin-bottom:1.5rem}
.account-requests-links{display:flex;gap:.75rem;flex-wrap:wrap}
.telehealth-location-confirm:not([hidden]){display:flex!important;align-items:center!important;gap:.65rem;line-height:1.5}
.telehealth-location-confirm input[type=checkbox]{flex:0 0 auto;margin:0!important;align-self:center}
.appointment-location-action{align-self:flex-start;margin:0 0 1rem}
.appointment-credit-option .buy-more-credits{min-height:44px;padding:.4rem .65rem;font-size:.875rem;font-weight:500}
.credit-return-status{color:#9c302a;font-weight:600;margin:.5rem 0;flex-basis:100%}
@media(max-width:480px){.account-profile-intro{padding-right:8.25rem;min-height:8rem}.account-profile-intro .membership-seal{width:7.5rem;max-width:34%}}

.care-plan-purchase h2,.care-plan-purchase iframe,[data-followup-reviewed]{scroll-margin-top:calc(var(--portal-header-height,100px) + 1rem)}
.appointment-credit-option{flex-wrap:wrap}.credit-return-status{width:100%}

/* October 12: consistent section labels and local validation. */
[data-portal-view]>.section-intro>.eyebrow,.account-requests>.eyebrow{color:#805b2a}.field-error{color:#9c382d}.care-plan-total-savings{font-weight:400}.account-profile-intro{padding-right:11rem;min-height:10rem}
@media(max-width:480px){.account-profile-intro{padding-right:8.25rem;min-height:8rem}}

.case-list-row,.case-comment{border-top:1px solid #d5dfd5;padding:1.1rem 0}.case-description,.case-comment p{white-space:pre-wrap;overflow-wrap:anywhere}.patient-case-detail>button{margin:0 .6rem .75rem 0}.patient-case-detail textarea{width:100%;min-height:7rem}.booked-intake-context{padding:1rem;margin-bottom:1rem;border:1px solid #d5dfd5;border-radius:12px;background:#eff5ee}

.portal-workspace .eyebrow{color:#805b2a}

.account-requests .account-card{padding:1.25rem;border:1px solid #d5dfd5;border-radius:12px;background:#fff;margin:1rem 0}.account-requests label{display:block;margin:1rem 0}.account-requests h2{margin-top:1.5rem}.support-cases-table{width:100%;border-collapse:collapse;margin:1rem 0;table-layout:fixed}.support-cases-table th,.support-cases-table td{text-align:left;padding:.65rem;border-bottom:1px solid #d5dfd5;overflow-wrap:anywhere}.support-cases-table th{font-size:.8rem}.support-cases-table .compact-case-action{padding:.3rem .55rem;min-height:44px;font-size:.8rem;margin:0;white-space:normal}.patient-case-detail{scroll-margin-top:6rem}@media(max-width:650px){.support-cases-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.support-cases-table,.support-cases-table tbody,.support-cases-table tr,.support-cases-table td{display:block;width:100%}.support-cases-table tr{border:1px solid #d5dfd5;border-radius:9px;margin:.75rem 0;padding:.5rem}.support-cases-table td{border:0;padding:.25rem;display:grid;grid-template-columns:6.5rem minmax(0,1fr);gap:.5rem}.support-cases-table td:before{content:attr(data-label);font-weight:600;font-size:.8rem}.support-cases-table button{justify-self:start}}

.credit-package .care-plan-total-savings{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:.35rem .7rem;border:1px solid #b3c7b7;border-radius:999px;background:#e8f1e7;color:#173d32;font-size:1rem;font-weight:700;line-height:1.35;margin:.5rem 0;white-space:normal}

/* The missing-account message is readable error text within the existing dialog. */
.patient-login-dialog #patient-account-missing{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#963e32;font-size:1rem;font-weight:400;line-height:1.6;margin:18px 0 22px}
