@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/portal-assets/red-hat-display-latin-v1.woff2?v=39d2ddd13759cf61') format('woff2');
}
@font-face {
  font-family: "Fortify Code Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/portal-assets/fortifyhp/code-pro.ttf?v=841ac955f13774ec') format('truetype');
}

:root {
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-size: 17px;
  font-synthesis: none;
  color: #21372e;
  background: #f6f7f3;
  --ink: #21372e;
  --brand: #235c4d;
  --soft: #edf4f0;
  --line: #dce3dc;
  --muted: #526359;
  --danger: #a12f32;
  --surface: #fff;
  --radius: 20px;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; font-weight: 700; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: var(--brand); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #8b6518;
  outline-offset: 4px;
}
button svg { flex: none; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 38px; letter-spacing: -1.2px; line-height: 1.18; font-weight: 750; }
h2 { font-size: 26px; letter-spacing: -.6px; line-height: 1.3; }
h3 { font-size: 21px; letter-spacing: -.3px; line-height: 1.35; }
h4 { font-size: 18px; line-height: 1.4; }
p { line-height: 1.6; }
svg { display: block; }
.site-rule-editor { max-width: 960px; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.rule-checks { display: grid; gap: 12px; margin: 24px 0; }
.site-rule-editor details { padding: 18px 0; border-top: 1px solid var(--line); }
.site-rule-editor summary { min-height: 48px; cursor: pointer; font-weight: 700; }
@media (max-width: 650px) { .rule-grid { grid-template-columns: minmax(0, 1fr); } }

/* A quiet, consistent frame keeps the next action in view. */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 36px 22px 24px; display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.sidebar nav { min-width: 0; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: white; flex: none; }
.brand-name { font-size: 27px; font-weight: 800; letter-spacing: -.9px; line-height: 1.15; overflow-wrap: anywhere; }
.brand-caption { font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.nav-heading { color: var(--muted); font-size: 15px; font-weight: 650; padding: 0 14px 14px; }
.nav-list { display: flex; flex-direction: column; gap: 8px; }
.nav-link { border: 1px solid transparent; background: transparent; color: #4c6055; display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 14px; border-radius: 12px; text-align: left; font-size: 17px; width: 100%; line-height: 1.35; }
.nav-link svg { width: 22px; height: 22px; }
.nav-link:hover { background: #f4f6f1; }
.nav-link.active { color: var(--brand); background: var(--soft); border-color: #d7e2d9; box-shadow: inset 3px 0 var(--brand); }
.nav-link .nav-dot { margin-left: auto; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; }
.sidebar-bottom { margin-top: auto; padding: 22px 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.sidebar-bottom p { margin: 10px 0 14px; font-size: 15px; }
.subtle-link { font-size: 16px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 48px; }
.app-body { min-width: 0; }
.topbar { min-height: 88px; border-bottom: 1px solid var(--line); background: #fff; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar .site-name { font-size: 18px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; font-size: 15px; font-weight: 750; }
.signout { background: transparent; border: 0; font-size: 16px; color: var(--muted); padding: 10px; min-height: 48px; white-space: nowrap; }
.main { max-width: 1360px; margin: 0 auto; padding: 40px 40px 48px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-head p { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 700px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 12px; letter-spacing: .05px; text-transform: none; }
.bottom-note { display: flex; justify-content: center; gap: 9px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 32px; text-align: center; }
.bottom-note svg { flex: none; }

/* Cards have a clear hierarchy: next step, current orders, then supporting details. */
.grid-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; box-shadow: 0 3px 12px #233a2c04; }
.card-pad { padding: 28px; }
.card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.card-heading h2 { font-size: 24px; }
.card-heading a, .text-button { font-size: 16px; color: var(--brand); font-weight: 700; text-decoration: none; }
.text-button { border: 0; background: none; padding: 10px 0; min-height: 48px; line-height: 1.4; }
.text-button:hover, .subtle-link:hover { text-decoration: underline; }
.welcome-card { background: linear-gradient(125deg, var(--brand), color-mix(in srgb, var(--brand) 85%, #102b21)); border-color: transparent; color: white; position: relative; padding: 34px; box-shadow: 0 10px 28px #193d2c12; }
.welcome-card:after { content: ""; width: 240px; height: 240px; border: 1px solid #ffffff18; border-radius: 50%; position: absolute; right: -94px; top: -110px; box-shadow: 0 0 0 32px #ffffff09, 0 0 0 64px #ffffff05; pointer-events: none; }
.welcome-card .eyebrow, .welcome-card h2, .welcome-card p, .welcome-card .btn { position: relative; z-index: 1; }
.welcome-card .eyebrow { color: #f0f6ee; }
.welcome-card h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.7px; max-width: 500px; }
.welcome-card p { font-size: 18px; color: #f0f4ef; margin: 16px 0 26px; max-width: 520px; }
.btn { min-height: 52px; padding: 14px 22px; border-radius: 12px; display: inline-flex; gap: 10px; justify-content: center; align-items: center; font-size: 17px; font-weight: 750; text-decoration: none; border: 1px solid transparent; line-height: 1.35; transition: background .15s, box-shadow .15s; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 3px #193f2d10; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 90%, #000); }
.btn-light { background: white; color: var(--brand); }
.btn-light:hover { background: #f5f8f2; }
.btn-secondary { border-color: #bdcbbf; background: white; color: #2c4939; }
.btn-secondary:hover { background: #f4f7f1; border-color: #8ca793; }
.btn-small { min-height: 48px; font-size: 16px; padding: 12px 18px; }
.btn-wide { width: 100%; }
.btn-danger { background: white; border-color: #dcbcb6; color: #9b342f; }
.small-note { font-size: 16px; color: var(--muted); line-height: 1.6; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { padding: 24px; display: flex; gap: 18px; align-items: center; }
.stat-icon { background: var(--soft); border-radius: 14px; color: var(--brand); height: 48px; width: 48px; display: grid; place-items: center; flex: none; }
.stat-value { font-size: 34px; letter-spacing: -1px; font-weight: 750; line-height: 1.1; }
.stat-label { font-size: 16px; color: var(--muted); margin-top: 7px; line-height: 1.4; }
.status { display: inline-flex; padding: 6px 11px; border-radius: 20px; font-size: 14px; line-height: 1.4; font-weight: 700; gap: 5px; align-items: center; max-width: 100%; }
.status.pending { background: #faf0d6; color: #72520e; }
.status.good { background: #eaf3e9; color: #285c35; }
.status.neutral { background: #eef1ed; color: #4d6154; }
.status.blue { background: #eaf0f8; color: #3e5d85; }
.notice { background: #fbf6e8; border: 1px solid #e5d7b0; border-radius: 12px; padding: 18px 20px; color: #685323; font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.notice.error { background: #fff2ef; color: #942f2e; border-color: #e5bdb5; }
.notice.success { background: #edf5e9; border-color: #cbdcc7; color: #315b35; }
.empty { padding: 48px 28px; text-align: center; color: var(--muted); font-size: 17px; line-height: 1.6; }
.empty h3 { color: var(--ink); margin: 18px 0 10px; }
.empty svg { margin: auto; color: var(--brand); }
.empty p { max-width: 540px; margin: 0 auto; }

/* Order summaries and account controls. */
.order-row { padding: 24px 0; border-top: 1px solid var(--line); display: flex; align-items: flex-start; gap: 16px; }
.order-row:first-child { border-top: 0; padding-top: 0; }
.order-row:last-child { padding-bottom: 0; }
.product-icon { width: 52px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: var(--soft); flex: none; }
.order-detail { flex: 1; min-width: 0; }
.order-detail h3 { font-size: 20px; font-weight: 750; overflow-wrap: anywhere; }
.order-meta { color: var(--muted); font-size: 16px; margin: 8px 0 12px; line-height: 1.5; }
.order-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.order-price { font-size: 22px; font-weight: 750; letter-spacing: -.4px; }
.order-footer { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.list-orders { display: flex; flex-direction: column; gap: 26px; }
.full-order { padding: 30px; }
.full-order .order-head { display: flex; align-items: flex-start; gap: 18px; }
.full-order .order-id, .order-id { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.full-order .order-detail h3 { font-size: 25px; }
.order-stages { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
.order-stage { padding: 18px; border-right: 1px solid var(--line); }
.order-stage:last-child { border-right: 0; }
.order-stage span { font-size: 15px; color: var(--muted); display: block; margin-bottom: 8px; }
.order-stage strong { font-size: 16px; line-height: 1.5; display: block; }
.order-actions { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 26px; }
.order-actions .small-note { max-width: 540px; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.refresh-state { font-size: 14px; color: var(--muted); margin-top: 9px; }
.line-subscriptions { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.order-item + .order-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.item-title { font-size: 20px; margin-bottom: 10px; }
.subscription-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 22px 0; }
.subscription-facts dt { font-size: 15px; color: var(--muted); }
.subscription-facts dd { margin: 8px 0 0; font-size: 17px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.subscription-card .order-actions { align-items: flex-start; }
.tab-nav { display: flex; border-bottom: 1px solid #cdd8ce; gap: 30px; margin-bottom: 28px; }
.tab-nav button { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 14px 4px 17px; min-height: 56px; border-bottom: 3px solid transparent; }
.tab-nav button.active { color: var(--brand); border-bottom-color: var(--brand); }
.sync-note { display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.refill-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.refill-row:first-child { border-top: 0; padding-top: 0; }
.refill-row h3 { font-size: 21px; }
.refill-row p { font-size: 16px; color: var(--muted); margin-top: 9px; }
.refill-row .btn { margin-top: 16px; }

/* Progress reflects recorded events; styling never implies future steps are complete. */
.order-progress { padding: 28px; margin-top: 28px; border: 1px solid #dbe4d9; border-radius: 16px; background: #fafbf7; }
.order-progress-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.order-progress-header h3, .order-progress-header h2 { font-size: 23px; }
.order-progress-header p { font-size: 16px; color: var(--muted); margin-top: 8px; max-width: 640px; }
.order-progress-note { font-size: 17px; color: var(--muted); margin: -8px 0 28px; max-width: 700px; }
.order-progress-status { display: inline-flex; padding: 7px 12px; border-radius: 20px; font-size: 15px; font-weight: 700; color: var(--brand); background: var(--soft); }
.order-progress-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; gap: 0; }
.order-progress-step { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 0 22px 0 0; min-width: 0; }
.order-progress-step:last-child { padding-right: 0; }
.order-progress-step:not(:last-child):before { content: ""; position: absolute; top: 19px; left: 40px; right: 0; height: 2px; background: #d6dfd3; }
.order-progress-step.complete:not(:last-child):before { background: #8fa68c; }
.order-progress-marker { height: 40px; width: 40px; border-radius: 50%; border: 2px solid #b8c6b6; background: #f6f8f2; color: #63735f; display: grid; place-items: center; position: relative; z-index: 1; flex: none; font-size: 16px; font-weight: 750; }
.order-progress-marker svg { width: 20px; height: 20px; }
.order-progress-step.complete .order-progress-marker { background: var(--brand); border-color: var(--brand); color: #fff; }
.order-progress-step.current .order-progress-marker, .order-progress-step[aria-current="step"] .order-progress-marker { background: #fff; border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--soft); }
.order-progress-copy { min-width: 0; }
.order-progress-copy h4 { font-size: 18px; margin-bottom: 8px; font-weight: 750; }
.order-progress-step.current .order-progress-copy h4 { color: var(--brand); }
.order-progress-copy p { font-size: 16px; color: var(--muted); line-height: 1.55; }
.order-progress-copy time { display: block; margin-top: 10px; font-size: 15px; color: #52614f; }
.order-progress-step.upcoming .order-progress-copy h4 { color: #52614f; }
.overview-progress .order-progress { padding: 26px 0 0; margin-top: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.overview-progress .order-progress-list { display: flex; flex-direction: column; }
.overview-progress .order-progress-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 0 0 24px; }
.overview-progress .order-progress-step:last-child { padding-bottom: 0; }
.overview-progress .order-progress-step:not(:last-child):before { top: 40px; left: 19px; right: auto; bottom: 0; width: 2px; height: auto; }
.overview-progress .order-progress-copy h4 { margin-top: 5px; }

/* Care forms and included refills follow one readable vertical rhythm. */
.task-item { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.task-item:first-child { padding-top: 0; border-top: 0; }
.task-item:last-child { padding-bottom: 0; }
.task-number { font-size: 16px; font-weight: 750; color: var(--brand); border: 1px solid #bdcdbb; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.task-number.done { color: white; background: var(--brand); border-color: var(--brand); }
.task-item h3 { font-size: 19px; }
.task-item p { font-size: 16px; color: var(--muted); margin-top: 9px; }
.care-journey { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 30px; }
.care-journey > .card-heading { margin-bottom: 28px; align-items: flex-start; }
.care-journey > .card-heading h3 { font-size: 23px; margin-bottom: 10px; }
.care-timeline { list-style: none; margin: 0; padding: 0; }
.care-task { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; position: relative; padding: 0 0 30px; }
.care-task:not(:last-child):before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: #d7e0d3; }
.care-task-dot { height: 36px; width: 36px; display: grid; place-items: center; border: 1px solid #b3c4b2; border-radius: 50%; color: var(--brand); background: var(--soft); position: relative; z-index: 1; }
.care-task-dot svg { width: 18px; height: 18px; }
.care-task.complete .care-task-dot { background: var(--brand); color: white; border-color: var(--brand); }
.care-task.locked .care-task-dot { color: #61715f; background: #f2f5ee; border-color: #ced8c8; }
.care-task-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.care-task h4 { font-size: 20px; margin: 3px 0; font-weight: 750; }
.care-task-date { font-size: 16px; color: var(--muted); margin: 9px 0; }
.care-task .action-row { margin-top: 18px; }
.care-refill-state { font-size: 16px; color: #405c47; margin-top: 12px; }
.care-provider-note { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.6; }
.care-task:last-child { padding-bottom: 6px; }
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: start; }
.intake-card { padding: 32px; }
.intake-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.intake-progress { flex-basis: 100%; }
.intake-progress .progress-copy { margin-top: 0; }
.intake-progress .progress-track { margin-top: 8px; }
.step-label { font-size: 16px; font-weight: 700; color: var(--muted); }
.saved-state { font-size: 16px; color: #435f47; display: flex; gap: 8px; align-items: center; }
.saved-state.error { color: var(--danger); }
.saved-state button { font-size: 16px; color: var(--danger); border: 0; background: none; padding: 8px; min-height: 48px; text-decoration: underline; }
.section-description { font-size: 18px; color: var(--muted); margin: 12px 0 30px; white-space: pre-line; }
.field { margin: 30px 0; }
.field label, .field legend { font-size: 18px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 12px; line-height: 1.5; }
.field-hint { font-size: 16px; color: var(--muted); margin: 10px 0 14px; line-height: 1.6; }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=password], .field textarea, .field select { width: 100%; border: 1px solid #aebfae; border-radius: 11px; background: white; min-height: 56px; padding: 14px 16px; font-size: 18px; color: var(--ink); line-height: 1.5; }
.field input[readonly] { background: #f5f7f1; color: #53664f; }
.field textarea { min-height: 138px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.required { color: #875618; font-size: 17px; margin-left: 4px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex !important; gap: 12px !important; align-items: center; border: 1px solid #bdcbb9; border-radius: 12px; padding: 16px !important; margin: 0 !important; min-height: 60px; font-size: 17px !important; font-weight: 550 !important; cursor: pointer; background: white; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input { accent-color: var(--brand); margin: 0; flex: none; width: 21px; height: 21px; }
.choice span { line-height: 1.5; }
.field-error, .inline-error { color: var(--danger); font-size: 16px; margin-top: 10px; line-height: 1.5; }
.intake-actions { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 34px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.intake-actions-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.intake-exit { margin-top: 10px; }
.intake-side { position: sticky; top: 26px; }
.section-nav { display: flex; flex-direction: column; margin-top: 22px; }
.section-link { border: 0; background: transparent; text-align: left; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; padding: 15px 0; position: relative; min-height: 50px; }
.section-link .section-number { width: 30px; height: 30px; border: 1px solid #b8cab6; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 750; background: white; }
.section-link.active { color: var(--brand); font-weight: 750; }
.section-link.active .section-number { background: var(--brand); border-color: var(--brand); color: white; }
.section-link.complete .section-number { background: var(--soft); border-color: #a9c1a3; color: var(--brand); }
.progress-track { height: 7px; width: 100%; background: #e4ebdf; border-radius: 6px; overflow: hidden; margin-top: 16px; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 6px; transition: width .2s; }
.progress-copy { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); margin-top: 14px; }
.sample-action { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.sample-action p { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.review-box { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #f8faf4; margin: 26px 0 30px; }
.review-box .card-heading { margin-bottom: 12px; }
.review-box h3 { font-size: 21px; }
.review-box dl { margin: 0; }
.submitted-hero { text-align: center; padding: 40px 32px; }
.submitted-icon { background: var(--soft); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; color: var(--brand); }
.submitted-hero h2 { font-size: 30px; }
.submitted-hero p { font-size: 18px; color: var(--muted); max-width: 580px; margin: 16px auto 28px; }
.answer-list { text-align: left; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.answer-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.answer-row:last-child { border-bottom: 0; }
.answer-row dt { font-size: 16px; color: var(--muted); }
.answer-row dd { margin: 9px 0 0; font-size: 18px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* A genuine plan choice remains visually separate from care already purchased. */
.store-section { margin-top: 36px; padding-top: 8px; }
.store-section > .card-heading { margin-bottom: 22px; }
.store-section h2 { font-size: 26px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.store-plan { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.store-plan .product-icon { margin-bottom: 6px; }
.store-plan .eyebrow { margin: 0; font-size: 15px; }
.store-plan h4 { font-size: 24px; margin: 0; overflow-wrap: anywhere; }
.store-therapy + .store-therapy { margin-top: 28px; }
.store-therapy-title { font-size: 20px; margin: 0 0 14px; }
.store-price { font-size: 30px; margin: 9px 0; letter-spacing: -.7px; }
.store-plan .btn { width: 100%; margin-top: auto; }
.store-plan select { width: 100%; max-width: 100%; border: 1px solid #b4c5af; border-radius: 10px; padding: 14px 12px; min-height: 54px; font-size: 17px; background: white; color: var(--ink); }
.helper-card { background: #eef3e9; border-color: #dbe4d4; }
.helper-card .helper-icon { height: 45px; width: 45px; border: 1px solid #cbd9c4; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; color: var(--brand); }
.helper-card p { font-size: 17px; color: var(--muted); margin: 14px 0 20px; }
.helper-card h3 { font-size: 22px; }

/* Sign in is calm and readable, with labels above every field. */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside { background: var(--brand); color: white; padding: 64px clamp(36px, 7vw, 110px); display: flex; flex-direction: column; justify-content: space-between; gap: 72px; }
.auth-aside .brand { padding: 0; }
.auth-aside .brand-mark { background: #ffffff20; }
.auth-aside .brand-caption { color: #f0f4ee; }
.auth-aside h1 { font-size: 48px; max-width: 460px; line-height: 1.15; letter-spacing: -1.6px; margin-bottom: 24px; }
.auth-aside p { font-size: 19px; color: #f0f4ee; max-width: 420px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 64px 40px; background: #fcfdf9; }
.auth-card { width: 100%; max-width: 450px; }
.auth-card h1 { font-size: 36px; }
.auth-card > p { font-size: 18px; color: var(--muted); margin: 16px 0 30px; }
.auth-card .field { margin: 26px 0; }
.auth-card .btn { margin-top: 10px; }
.auth-footnote { font-size: 16px !important; color: var(--muted); margin-top: 26px !important; line-height: 1.6; }
.modal-backdrop { position: fixed; inset: 0; background: #162b257a; backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: white; max-width: 560px; width: 100%; border-radius: 22px; padding: 34px; box-shadow: 0 24px 80px #132d2038; max-height: 90vh; overflow-y: auto; }
.modal h2 { font-size: 28px; margin-bottom: 18px; }
.modal p { font-size: 17px; color: var(--muted); line-height: 1.65; }
.modal .action-row { justify-content: flex-end; margin-top: 28px; }
.modal .notice { margin-top: 20px; margin-bottom: 0; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.address-grid .field { margin: 16px 0; }
.address-grid .field:nth-child(3), .address-grid .field:nth-child(4) { grid-column: 1 / -1; }
.address-grid select { width: 100%; border: 1px solid #aebfae; border-radius: 11px; padding: 14px; min-height: 56px; font-size: 18px; background: white; }
#care-simulation-day { width: 100%; padding: 14px; min-height: 54px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); font-size: 17px; }

/* Messaging and staff-only tools keep their established structural layout. */
.message-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.message-header { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.message-header h2 { font-size: 22px; }
.message-header p { font-size: 16px; color: var(--muted); margin-top: 7px; }
.message-list { padding: 28px; min-height: 300px; max-height: 600px; overflow: auto; display: flex; flex-direction: column; gap: 24px; }
.message { max-width: 85%; align-self: flex-start; }
.message.patient { align-self: flex-end; }
.message-name { font-size: 15px; color: var(--muted); margin-bottom: 9px; }
.message.patient .message-name, .message.patient .message-date { text-align: right; }
.bubble { font-size: 18px; line-height: 1.6; background: #f2f5ee; border-radius: 0 14px 14px 14px; padding: 18px 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.patient .bubble { background: var(--soft); border: 1px solid #d6e2d0; border-radius: 14px 0 14px 14px; }
.message-date { font-size: 14px; color: var(--muted); margin-top: 8px; }
.message-compose { border-top: 1px solid var(--line); padding: 24px 28px; }
.message-compose label { font-size: 18px; font-weight: 700; display: block; margin-bottom: 12px; }
.message-compose textarea { border: 1px solid #aebfae; border-radius: 11px; padding: 16px; font-size: 18px; width: 100%; resize: vertical; min-height: 120px; line-height: 1.5; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.site-control { display: flex; align-items: center; gap: 12px; }
.site-control label { font-size: 16px; color: var(--muted); white-space: nowrap; }
.site-control select { border: 0; background: transparent; max-width: 250px; font-size: 17px; color: var(--ink); font-weight: 700; padding: 12px 24px 12px 0; min-height: 48px; }
.head-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.head-filter label { font-size: 16px; color: var(--muted); }
.head-filter select { font-size: 16px; border: 1px solid #b7c7b1; border-radius: 11px; padding: 12px 30px 12px 14px; min-height: 50px; background: white; color: var(--ink); max-width: 250px; }
.admin-tools { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; margin-bottom: 26px; }
.admin-overview-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.admin-tools h2 { font-size: 23px; }
.admin-tools p { font-size: 16px; color: var(--muted); margin-top: 12px; }
.admin-tools .field { margin: 18px 0; }
.invite-result { margin-top: 22px; background: #f3f7ee; border: 1px solid var(--line); padding: 20px; border-radius: 12px; }
.invite-result input { width: 100%; border: 1px solid var(--line); padding: 14px; font-size: 16px; border-radius: 9px; margin: 12px 0; background: white; }
.inline-feedback { font-size: 16px; color: var(--muted); line-height: 1.5; margin-top: 18px; }
.staff-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 40px; background: #edf1f5; border-bottom: 1px solid #d2dce7; color: #30465d; }
.staff-banner strong { font-size: 17px; }
.staff-banner p { font-size: 15px; margin-top: 6px; color: #526477; }
.staff-banner .btn { flex-shrink: 0; color: #30465d; border-color: #bac9d7; }
.staff-banner .btn:hover { background: #f8fafc; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; min-width: 680px; }
.data-table th { padding: 18px 22px; background: #f7f9f4; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.data-table td { padding: 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong { font-size: 16px; display: block; font-weight: 700; }
.table-sub { font-size: 14px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.inline-progress { width: 110px; height: 6px; background: #e2e9dd; border-radius: 5px; margin-top: 10px; overflow: hidden; }
.inline-progress span { height: 100%; background: var(--brand); display: block; }
.table-caption { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.table-caption h2 { font-size: 24px; }
.demo-tag { font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; display: inline-flex; align-items: center; color: var(--muted); }
.demo-banner, .preview-banner, .service-note { background: #faf3df; color: #685323; text-align: center; padding: 14px 20px; font-size: 16px; line-height: 1.5; border-bottom: 1px solid #e5d9b8; }
.demo-banner { display: flex; gap: 10px; justify-content: center; align-items: center; }
.demo-dot { height: 8px; width: 8px; background: #8a6d1d; border-radius: 50%; flex: none; }
.persona-switch { border: 1px solid var(--line); border-radius: 11px; background: #f4f6ef; display: flex; padding: 4px; gap: 4px; }
.persona-switch button { border: 0; padding: 10px 14px; min-height: 48px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 16px; }
.persona-switch button.active { color: var(--brand); background: white; box-shadow: 0 1px 3px #163d3015; }
.api-link { font-size: 16px; }
.branding-mobile { display: none; }
.boot { min-height: 70vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; text-align: center; padding: 30px; }
.boot h1 { font-size: 32px; }
.boot p { color: var(--muted); font-size: 18px; }
.loader { width: 34px; height: 34px; border: 3px solid #d2e0cb; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-card { min-height: 300px; display: grid; place-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1250px) {
  .shell { grid-template-columns: 230px minmax(0, 1fr); }
  .sidebar { padding: 30px 16px 22px; }
  .brand-name { font-size: 25px; }
  .main { padding: 34px 28px 42px; }
  .topbar { padding: 18px 28px; }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-main > .stack:last-child { display: grid; grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 22px 18px; gap: 12px; }
  .stat-icon { width: 40px; height: 40px; }
  .intake-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
  .intake-card { padding: 28px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tools { grid-template-columns: minmax(0, 1fr); }
  .order-actions { flex-direction: column; align-items: stretch; }
  .message-layout { grid-template-columns: minmax(0, 1fr); }
  .message-layout > .card:last-child { display: none; }
}
@media (max-width: 1099px) {
  .order-progress-list { display: flex; flex-direction: column; }
  .order-progress-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding: 0 0 28px; }
  .order-progress-step:last-child { padding-bottom: 0; }
  .order-progress-step:not(:last-child):before { top: 40px; left: 19px; right: auto; bottom: 0; width: 2px; height: auto; }
  .order-progress-copy h4 { margin-top: 5px; }
  .intake-layout { grid-template-columns: minmax(0, 1fr); }
  .intake-side { position: static; }
  .intake-side .sample-action { display: none; }
  .intake-side .small-note { margin-top: 10px; }
  .auth-aside { padding: 48px 36px; }
  .auth-aside h1 { font-size: 41px; }
  .auth-main { padding: 48px 32px; }
  .staff-banner { padding: 22px 28px; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 28px 0; gap: 22px; }
  .brand { padding: 0; }
  .nav-heading, .sidebar-bottom { display: none; }
  .nav-list, .nav-list.member-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .nav-link { width: 100%; min-width: 0; min-height: 64px; padding: 14px 10px; justify-content: center; border-radius: 10px 10px 0 0; font-size: 16px; text-align: center; }
  .nav-link.active { box-shadow: inset 0 -3px var(--brand); border-color: transparent; }
  .nav-link .nav-dot { display: none; }
  .topbar { min-height: 78px; }
  .main { max-width: 900px; }
  .order-progress-list { max-width: 680px; }
  .admin-overview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  :root { font-size: 17px; --radius: 18px; }
  h1 { font-size: 32px; letter-spacing: -.8px; }
  h2 { font-size: 25px; }
  .sidebar { padding: 22px 20px 0; gap: 18px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-name { font-size: 25px; }
  .brand-caption { font-size: 14px; }
  .nav-list, .nav-list.member-nav { gap: 2px; margin: 0 -8px; }
  .nav-link { padding: 12px 4px 14px; gap: 9px; flex-direction: column; justify-content: flex-start; font-size: 16px; line-height: 1.25; white-space: normal; min-height: 88px; }
  .nav-link span { min-width: 0; }
  .nav-link svg { width: 22px; height: 22px; }
  .topbar { padding: 14px 20px; min-height: 74px; gap: 12px; }
  .topbar .site-name { font-size: 17px; }
  .top-actions { gap: 8px; }
  .avatar { display: none; }
  .signout { padding: 8px 0 8px 8px; }
  .main { padding: 30px 20px 36px; }
  .eyebrow { font-size: 15px; margin-bottom: 10px; }
  .page-head { flex-direction: column; gap: 20px; margin-bottom: 26px; }
  .page-head p { font-size: 17px; margin-top: 12px; }
  .page-head > .demo-tag { display: none; }
  .grid-main, .stack { gap: 22px; }
  .card-pad, .full-order, .intake-card { padding: 24px 22px; }
  .card-heading { flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
  .card-heading h2 { font-size: 23px; }
  .welcome-card { padding: 28px 24px; }
  .welcome-card h2 { font-size: 30px; }
  .welcome-card p { font-size: 18px; }
  .welcome-card .btn { width: 100%; }
  .summary-grid { grid-template-columns: minmax(0, 1fr) minmax(124px, 1.3fr) minmax(0, 1fr); gap: 10px; margin-bottom: 24px; }
  .stat { padding: 20px 8px; display: block; text-align: center; border-radius: 15px; }
  .stat-icon { display: none; }
  .stat-value { font-size: 30px; }
  .stat-label { font-size: 16px; line-height: 1.35; margin-top: 8px; overflow-wrap: anywhere; }
  .order-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .order-row .order-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .product-icon { width: 44px; height: 50px; border-radius: 12px; }
  .order-detail h3 { font-size: 21px; }
  .order-meta { font-size: 16px; }
  .order-price { font-size: 23px; }
  .order-footer { align-items: stretch; flex-direction: column; }
  .order-footer .btn { width: 100%; }
  .bottom-note { font-size: 14px; align-items: flex-start; line-height: 1.5; }
  .bottom-note svg { margin-top: 4px; }
  .full-order .order-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .full-order .order-detail h3 { font-size: 24px; }
  .full-order .order-head > .order-side { grid-column: 1 / -1; padding-top: 6px; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .full-order .order-id { font-size: 15px; }
  .full-order .order-price { font-size: 27px; }
  .order-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .order-stage:nth-child(2) { border-right: 0; }
  .order-stage:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .order-stage { padding: 16px 12px; }
  .order-stage strong { font-size: 16px; }
  .order-actions { gap: 20px; }
  .action-row { gap: 12px; }
  .action-row .btn { flex: 1 1 100%; }
  .order-actions .btn { width: 100%; }
  .order-progress { padding: 24px 20px; margin-top: 24px; border-radius: 14px; }
  .order-progress-header { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .order-progress-header h3, .order-progress-header h2 { font-size: 23px; }
  .order-progress-step { grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
  .order-progress-marker { width: 36px; height: 36px; }
  .order-progress-step:not(:last-child):before { left: 17px; top: 36px; }
  .order-progress-copy h4 { font-size: 18px; margin-top: 4px; }
  .order-progress-copy p { font-size: 16px; }
  .care-journey { margin-top: 28px; padding-top: 28px; }
  .care-journey > .card-heading h3 { font-size: 23px; }
  .care-task { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 30px; }
  .care-task-dot { width: 32px; height: 32px; }
  .care-task:not(:last-child):before { left: 15px; top: 32px; }
  .care-task h4 { font-size: 20px; }
  .care-task-heading { align-items: flex-start; gap: 8px; }
  .care-task .small-note, .care-task-date, .care-refill-state { font-size: 16px; }
  .care-task .action-row .btn { width: 100%; }
  .intake-side .card-pad { padding: 22px; }
  .intake-side .eyebrow { display: none; }
  .intake-side h3 { font-size: 21px; }
  .intake-card h2 { font-size: 25px; }
  .section-description { font-size: 18px; }
  .intake-toolbar { gap: 12px; padding-bottom: 22px; margin-bottom: 26px; }
  .field { margin: 28px 0; }
  .field label, .field legend { font-size: 18px; }
  .field input[type=text], .field input[type=number], .field input[type=email], .field input[type=password], .field textarea, .field select { font-size: 18px; }
  .choices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .choice { font-size: 17px !important; padding: 16px !important; }
  .intake-actions, .intake-actions-right { align-items: stretch; flex-direction: column; width: 100%; gap: 14px; }
  .intake-actions > .btn, .intake-actions-right > .btn { width: 100%; }
  .intake-actions .small-note { font-size: 16px; }
  .mobile-sample { border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 20px; }
  .review-box { padding: 20px; }
  .submitted-hero { padding: 32px 22px; }
  .submitted-hero h2 { font-size: 28px; }
  .submitted-hero p { font-size: 18px; }
  .answer-row dd { font-size: 18px; }
  .subscription-facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .subscription-facts dd { font-size: 18px; }
  .tab-nav { gap: 20px; }
  .tab-nav button { font-size: 17px; padding-left: 0; padding-right: 0; }
  .sync-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .refill-row { flex-direction: column; gap: 16px; }
  .store-section { margin-top: 32px; }
  .store-grid { grid-template-columns: minmax(0, 1fr); }
  .store-plan { padding: 26px; }
  .store-plan h4 { font-size: 22px; }
  .store-therapy-title { font-size: 19px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { padding: 30px 26px 34px; gap: 38px; }
  .auth-aside h1 { font-size: 34px; max-width: 350px; margin-bottom: 18px; letter-spacing: -.8px; }
  .auth-aside p { font-size: 18px; }
  .auth-aside .auth-aside-footer { display: none; }
  .auth-main { padding: 38px 26px 46px; align-items: flex-start; }
  .auth-card h1 { font-size: 32px; }
  .auth-card > p { font-size: 18px; }
  .modal-backdrop { padding: 16px; }
  .modal { padding: 28px 22px; border-radius: 18px; }
  .modal h2 { font-size: 27px; }
  .modal p { font-size: 17px; }
  .modal .action-row { flex-direction: column-reverse; }
  .address-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .address-grid .field { grid-column: 1; }
  .address-grid input, .address-grid select { font-size: 18px; }
  .message-header { padding: 22px; }
  .message-list { padding: 24px 20px; }
  .message { max-width: 94%; }
  .bubble { font-size: 18px; padding: 16px; }
  .message-compose { padding: 22px; }
  .compose-footer { flex-direction: column; align-items: stretch; }
  .notice { font-size: 16px; padding: 18px; }
  .head-filter { width: 100%; justify-content: space-between; }
  .head-filter select { max-width: 250px; flex: 1; font-size: 16px; }
  .site-control { gap: 8px; }
  .site-control select { font-size: 16px; max-width: 200px; }
  .staff-banner { padding: 22px 20px; align-items: stretch; flex-direction: column; gap: 16px; }
  .staff-banner .btn { width: 100%; }
  .table-caption { padding: 22px; }
  .data-table th { padding: 16px 18px; }
  .data-table td { padding: 20px 18px; }
  .table-wrap { scrollbar-width: thin; }
  .empty { padding: 38px 22px; }
  .demo-banner { flex-wrap: wrap; }
  .demo-banner > span:last-child { width: 100%; }
}

/* Separate care areas stay easy to scan as a patient adds more treatments. */
.notification-bell { position: relative; display: grid; place-items: center; min-width: 48px; height: 48px; border: 1px solid var(--line); background: white; color: var(--brand); border-radius: 50%; }
.notification-bell:hover { background: var(--soft); }
.notification-count, .nav-unread { display: grid; place-items: center; background: var(--brand); color: white; font-size: 12px; font-weight: 750; line-height: 1; border: 2px solid white; min-width: 22px; height: 22px; padding: 3px; border-radius: 20px; }
.notification-count { position: absolute; top: -4px; right: -4px; }
.nav-link { position: relative; }
.nav-unread { position: absolute; top: 4px; right: 4px; }
.shipment-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 24px; margin-top: 24px; border-radius: 16px; border: 1px solid #ccdccc; background: #f3f7ee; }
.shipment-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: white; color: var(--brand); }
.shipment-card h3 { font-size: 23px; }
.shipment-facts { display: flex; gap: 24px 40px; flex-wrap: wrap; margin: 16px 0 0; }
.shipment-facts dt { font-size: 16px; color: var(--muted); }
.shipment-facts dd { font-size: 18px; font-weight: 700; margin: 7px 0 0; }
.tracking-number { overflow-wrap: anywhere; }
.refill-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.refill-plan { padding: 30px; }
.refill-plan-heading { display: flex; align-items: flex-start; gap: 18px; }
.refill-plan-heading > div:last-child { min-width: 0; }
.refill-plan-heading .eyebrow { margin-bottom: 7px; }
.refill-plan-heading h2 { overflow-wrap: anywhere; }
.refill-plan-heading .small-note { margin-top: 10px; }
.refill-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px 0; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.refill-counts strong { display: block; font-size: 30px; line-height: 1.2; letter-spacing: -.5px; color: var(--brand); }
.refill-counts span { display: block; font-size: 16px; color: var(--muted); margin-top: 10px; }
.refill-next-step { padding: 24px; margin-top: 24px; border-radius: 14px; background: #f5f8f0; }
.refill-next-step h3 { font-size: 22px; }
.refill-next-step p { font-size: 17px; color: var(--muted); margin-top: 12px; }
.refill-next-step .btn { width: 100%; }
.refill-schedule, .refill-plan-options { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.refill-schedule summary, .refill-plan-options summary { padding: 14px 0; min-height: 52px; cursor: pointer; color: var(--brand); font-size: 17px; font-weight: 700; line-height: 1.5; }
.refill-schedule summary:focus-visible, .refill-plan-options summary:focus-visible { outline: 3px solid #8b6518; outline-offset: 4px; }
.refill-schedule .care-journey { margin: 10px 0 0; border-top: 0; padding-top: 12px; }
.refill-schedule .care-journey > .card-heading, .refill-schedule .care-task .action-row { display: none; }
.refill-plan-options label { display: block; font-size: 17px; font-weight: 700; margin: 18px 0 10px; }
.refill-plan-options select { width: 100%; min-height: 54px; max-width: 100%; padding: 14px; border: 1px solid #b4c5af; border-radius: 11px; background: white; color: var(--ink); font-size: 17px; }
.refill-option-action { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.refill-option-action strong { font-size: 25px; }
.notification-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 30px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { background: #fafcf6; box-shadow: inset 4px 0 var(--brand); }
.notification-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--brand); }
.notification-copy { min-width: 0; }
.notification-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.notification-heading h2 { font-size: 23px; }
.notification-copy p { font-size: 17px; color: var(--muted); margin-top: 10px; }
.notification-copy time { display: block; font-size: 15px; color: var(--muted); margin-top: 12px; }
.chat-draft-explanation { padding: 26px 28px; background: #fafbf7; border-bottom: 1px solid var(--line); }
.chat-draft-explanation h3 { font-size: 22px; }
.chat-draft-explanation p { font-size: 17px; color: var(--muted); margin-top: 12px; }
.doctor-chat .message-compose { border-top: 0; }
.doctor-chat .message-compose textarea { min-height: 190px; }
.doctor-chat .compose-footer { align-items: flex-start; flex-wrap: wrap; }
.doctor-chat .compose-footer .action-row { margin-top: 0; }
.doctor-thread-controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.doctor-thread-controls .head-filter { min-width: 0; }
.doctor-thread-controls select { max-width: 100%; }
.doctor-live .message-list { min-height: 200px; max-height: 480px; }
.doctor-live .message-compose { border-top: 1px solid var(--line); }
.doctor-live .message-compose textarea { min-height: 0; padding: 11px 14px; }
.doctor-message-status .notice { margin: 12px 0 0; }
.doctor-live .bubble a { color: var(--brand); text-decoration: underline; overflow-wrap: anywhere; }
.doctor-attachment-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.doctor-attachment-list li, .doctor-attachment-list .btn { max-width: 100%; overflow-wrap: anywhere; }
.message.patient .doctor-attachment-list { justify-content: flex-end; }
.queued-doctor-files li { display: flex; gap: 8px; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
.queued-doctor-files li span { min-width: 0; }
.queued-doctor-files .btn { flex-shrink: 0; }
.doctor-file-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.doctor-attachment-preview h2 { overflow-wrap: anywhere; }
.doctor-attachment-preview img, .doctor-attachment-preview video { display: block; max-width: 100%; max-height: 55vh; margin: 0 auto; }
@media (max-width: 650px) {
  .doctor-thread-controls { padding: 16px 22px; }
}
.chat-help .small-note { margin-top: 16px; }
#message-draft-error .notice { margin-top: 18px; margin-bottom: 0; }
@media (max-width: 1250px) { .refill-plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .patient-mode .nav-list.member-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 12px; }
  .patient-mode .nav-link { border-radius: 10px; }
}
@media (max-width: 650px) {
  .patient-mode .nav-list.member-nav { margin: 0 -5px; }
  .patient-mode .nav-link { min-height: 84px; padding: 12px 5px; font-size: 16px; }
  .topbar .site-name { min-width: 0; overflow-wrap: anywhere; }
  .top-actions { flex: none; }
  .refill-plan { padding: 24px 22px; }
  .refill-plan-heading { gap: 14px; }
  .refill-plan-heading h2 { font-size: 25px; }
  .refill-counts { gap: 16px; }
  .refill-counts strong { font-size: 29px; }
  .refill-next-step { padding: 22px 18px; }
  .refill-option-action { align-items: stretch; flex-direction: column; }
  .shipment-card { padding: 22px 18px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shipment-facts { flex-direction: column; gap: 20px; }
  .notification-item { padding: 24px 22px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .notification-heading h2 { font-size: 23px; }
  .chat-draft-explanation { padding: 24px 22px; }
  .doctor-chat .compose-footer .action-row { width: 100%; }
  .tab-nav { gap: 17px; }
  .tab-nav button { font-size: 16px; }
}
.message-save-meta { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.draft-mode-label { display: inline-flex; align-items: center; min-height: 30px; border-radius: 8px; padding: 4px 9px; background: #f2f5ee; color: #4c6050; font-size: 15px; font-weight: 650; }

/* Patient portal: a neutral, open layout with the next care action first.
   Keep these tokens on the patient body so site/admin branding is unaffected. */
.patient-mode {
  --ink: #202938;
  --brand: #292f3c;
  --soft: #eeedea;
  --line: #dededb;
  --muted: #586170;
  --surface: #fffefa;
  --radius: 12px;
  background: #fbfaf7;
  color: var(--ink);
  font-family: "Red Hat Display", system-ui, sans-serif;
  line-height: 1.5;
}
.patient-mode .shell { grid-template-columns: 270px minmax(0, 1fr); }
.patient-mode .sidebar { background: #f8f7f4; padding: 32px 14px 24px; gap: 32px; border-color: #e9e7e2; }
.patient-mode .brand { gap: 10px; padding: 0 14px; align-items: flex-start; }
.patient-mode .brand-mark { width: 34px; height: 34px; border-radius: 8px; margin-top: 2px; }
.patient-mode .brand-mark svg { width: 22px; height: 22px; }
.patient-mode .brand-name { font-size: 23px; line-height: 1.2; letter-spacing: -.6px; font-weight: 750; }
.patient-mode .brand-caption { font-size: 13px; margin-top: 7px; }
.patient-mode .nav-heading { padding: 0 16px 12px; font-size: 13px; font-weight: 500; }
.patient-mode .nav-list { gap: 5px; }
.patient-mode .nav-link { color: #424b5a; min-height: 58px; padding: 14px 18px; gap: 15px; font-size: 17px; font-weight: 500; border: 0; border-radius: 10px; }
.patient-mode .nav-link svg { width: 23px; height: 23px; }
.patient-mode .nav-link:hover { background: #efeeeb; }
.patient-mode .nav-link.active { background: #e9e7e3; color: var(--ink); font-weight: 700; box-shadow: none; }
.patient-mode .nav-unread { position: static; margin-left: auto; min-width: 23px; height: 23px; border: 0; flex: none; }
.patient-mode .nav-unread, .patient-mode .notification-count { background: #b44423; }
.patient-mode .sidebar-bottom { margin-right: 14px; margin-left: 14px; font-size: 13px; }
.patient-mode .sidebar-bottom p { font-size: 13px; }
.patient-mode .sidebar-bottom .subtle-link { font-size: 15px; }
.patient-mode .topbar { min-height: 74px; padding: 12px 54px; background: transparent; border-bottom-color: transparent; }
.patient-mode .topbar .site-name { font-size: 15px; font-weight: 500; color: var(--muted); }
.patient-mode .top-actions { gap: 14px; }
.patient-mode .notification-bell { background: transparent; border-color: transparent; min-width: 44px; height: 44px; }
.patient-mode .notification-bell:hover { background: var(--soft); }
.patient-mode .notification-count { border-color: #fbfaf7; }
.patient-mode .avatar { width: 36px; height: 36px; font-size: 13px; }
.patient-mode .signout { font-size: 14px; }
.patient-mode .main { max-width: 1440px; padding: 28px 54px 48px; }
.patient-mode h1 { font-size: 44px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.15; }
.patient-mode h2 { font-weight: 700; letter-spacing: -.7px; }
.patient-mode .page-head { margin-bottom: 32px; }
.patient-mode .page-head p { font-size: 17px; line-height: 1.6; }
.patient-mode .eyebrow { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.patient-mode .card { box-shadow: none; }
.patient-mode .card-pad, .patient-mode .full-order, .patient-mode .refill-plan { padding: 28px; }
.patient-mode .btn { min-height: 52px; border-radius: 9px; font-size: 16px; font-weight: 650; box-shadow: none; }
.patient-mode .btn-primary, .patient-mode .btn-light { background: var(--brand); color: #fff; border-color: var(--brand); }
.patient-mode .btn-primary:hover, .patient-mode .btn-light:hover { background: #181e29; border-color: #181e29; }
.patient-mode .btn-secondary { color: var(--ink); border-color: #c4c6c9; background: #fffefa; }
.patient-mode .btn-secondary:hover { background: #efeeeb; border-color: #a4a8ae; }
.patient-mode .text-button, .patient-mode .subtle-link { font-weight: 500; }
.patient-mode .status { font-weight: 500; border: 1px solid transparent; padding: 6px 12px; }
.patient-mode .status.good { background: #e9f7ec; color: #23643a; border-color: #c7e8cf; }
.patient-mode .status.neutral { background: #efefee; color: #505867; }
.patient-mode .product-icon, .patient-mode .stat-icon, .patient-mode .notification-symbol { border-radius: 9px; }
.patient-mode .helper-card, .patient-mode .refill-next-step, .patient-mode .order-progress, .patient-mode .order-stages,
.patient-mode .review-box, .patient-mode .chat-draft-explanation, .patient-mode .shipment-card { background: #f4f3ef; border-color: var(--line); }
.patient-mode .care-refill-state, .patient-mode .saved-state, .patient-mode .order-progress-copy time,
.patient-mode .order-progress-step.upcoming .order-progress-copy h4 { color: var(--muted); }
.patient-mode .saved-state.error { color: var(--danger); }
.patient-mode .field input, .patient-mode .field textarea, .patient-mode .field select,
.patient-mode .choice, .patient-mode .message-compose textarea, .patient-mode .head-filter select,
.patient-mode .refill-plan-options select, .patient-mode .store-plan select, .patient-mode .address-grid select { border-color: #bfc2c6; border-radius: 8px; }
.patient-mode .field input[readonly], .patient-mode .draft-mode-label { background: #f0efec; color: var(--muted); }
.patient-mode .choice:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.patient-mode .care-task.locked .care-task-dot, .patient-mode .order-progress-marker { color: var(--muted); background: #f3f2ef; border-color: #c3c6ca; }
.patient-mode .care-task:not(:last-child):before, .patient-mode .order-progress-step:not(:last-child):before { background: #d6d7d7; }
.patient-mode .order-progress-step.complete:not(:last-child):before { background: #9ca3ad; }
.patient-mode .notification-item.unread { background: #f3f2ee; }
.patient-mode .bubble { background: #f0efec; }
.patient-mode .message.patient .bubble { border-color: var(--line); }
.patient-mode .tab-nav { border-color: var(--line); }
.patient-mode .bottom-note { font-size: 12px; margin-top: 42px; }
.patient-mode .modal-backdrop { background: #20263270; }
.patient-mode .modal { border-radius: 14px; }
.patient-mode .auth-aside { background: #f0efeb; color: var(--ink); border-right: 1px solid var(--line); }
.patient-mode .auth-aside .brand-mark { background: var(--brand); }
.patient-mode .auth-aside .brand-caption, .patient-mode .auth-aside p { color: var(--muted); }
.patient-mode .auth-main { background: #fbfaf7; }

/* The home view uses a single next action, then a readable treatment list. */
.patient-mode .home-title { margin: 0 0 42px; }
.patient-mode .home-title h1 { font-size: 50px; letter-spacing: -1.7px; }
.patient-mode .home-greeting { color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.patient-mode .home-next-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .48fr); gap: 48px; padding: 0 0 46px; border-bottom: 1px solid var(--line); }
.patient-mode .home-next-main { min-width: 0; }
.patient-mode .welcome-card { background: transparent; color: var(--ink); border: 0; border-radius: 0; padding: 0; box-shadow: none; overflow: visible; }
.patient-mode .welcome-card:after { content: none; }
.patient-mode .welcome-card .eyebrow { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
.patient-mode .welcome-card h2 { font-size: 38px; max-width: 680px; line-height: 1.15; letter-spacing: -1.1px; }
.patient-mode .welcome-card p { color: #4f5867; max-width: 650px; font-size: 19px; line-height: 1.55; margin: 16px 0 26px; }
.patient-mode .welcome-card .home-included-note { font-size: 17px; margin: 24px 0; font-weight: 600; }
.patient-mode .welcome-card .btn { min-height: 62px; width: min(100%, 460px); font-size: 19px; padding: 16px 24px; gap: 16px; }
.patient-mode .welcome-card .btn svg { width: 20px; height: 20px; }
.patient-mode .home-plan-summary { min-width: 0; border-left: 1px solid var(--line); padding: 0 0 0 40px; }
.patient-mode .home-plan-summary h2 { font-size: 28px; margin-bottom: 24px; }
.patient-mode .home-plan-summary h3 { font-size: 20px; line-height: 1.45; margin-bottom: 8px; }
.patient-mode .home-plan-summary p { color: #4f5867; font-size: 17px; line-height: 1.55; }
.patient-mode .home-plan-summary .home-plan-name { font-size: 20px; font-weight: 650; color: var(--ink); }
.patient-mode .home-plan-summary dl { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.patient-mode .home-plan-facts > div + div { margin-top: 20px; }
.patient-mode .home-plan-summary dt { font-size: 16px; color: var(--muted); margin-top: 18px; }
.patient-mode .home-plan-summary dt:first-child { margin-top: 0; }
.patient-mode .home-plan-summary dd { font-size: 18px; margin: 6px 0 0; line-height: 1.5; }
.patient-mode .home-treatments { margin-top: 36px; }
.patient-mode .home-treatments > .card-heading { margin-bottom: 20px; }
.patient-mode .home-treatments h2 { font-size: 30px; }
.patient-mode .treatment-table { width: 100%; text-align: left; }
.patient-mode .treatment-table-head, .patient-mode .treatment-summary-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.15fr) 168px; column-gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.patient-mode .treatment-table-head { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 14px 6px; }
.patient-mode .treatment-summary-row { padding: 18px 6px; font-size: 17px; line-height: 1.5; }
.patient-mode .treatment-summary-row > div { min-width: 0; }
.patient-mode .treatment-medication strong, .patient-mode .treatment-medication > span { display: block; }
.patient-mode .treatment-medication > span { color: var(--muted); font-size: 16px; margin-top: 5px; }
.patient-mode .treatment-action { text-align: right; }
.patient-mode .treatment-table .text-button { text-decoration: underline; display: inline-flex; align-items: center; gap: 12px; font-size: 16px; white-space: nowrap; }
.patient-mode .treatment-table strong { font-size: 18px; font-weight: 650; }
.patient-mode .treatment-table .small-note, .patient-mode .treatment-state small { display: block; color: var(--muted); margin-top: 4px; font-size: 16px; }
.patient-mode .home-latest { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.patient-mode .home-latest .order-progress { padding-top: 0; border-top: 0; }
.patient-mode .home-links { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 22px; }
.patient-mode .home-links .text-button, .patient-mode .home-links .subtle-link { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; text-decoration: underline; }
.patient-mode .care-home > .summary-grid, .patient-mode .care-home > .grid-main { margin-top: 36px; }

/* FortifyHP: tokens from the client's Lovable source, restricted to this
   named patient theme. Keep all care actions and the accessible portal type
   scale. Code Pro and the logo are the verified source assets. */
.patient-mode[data-portal-theme="fortifyhp"] {
  --ink: #141312;
  --brand: #A2563F;
  --brand-accent: #A2563F;
  --soft: #f0e3db;
  --line: #ded6cc;
  --muted: #61584f;
  --surface: #FBF8F4;
  --radius: 12px;
  background: #F4F1EC;
  font-family: "Fortify Code Pro", "Red Hat Display", system-ui, sans-serif;
  font-synthesis: weight;
}
.brand-logo { display: block; width: 200px; max-width: 100%; height: auto; mix-blend-mode: multiply; }
.patient-mode[data-portal-theme="fortifyhp"] .brand-name { font-size: 28px; letter-spacing: -1.2px; font-weight: 750; color: var(--ink); }
.patient-mode[data-portal-theme="fortifyhp"] .brand-caption { color: var(--muted); font-size: 14px; }
.patient-mode[data-portal-theme="fortifyhp"] .sidebar { background: #FBF8F4; border-color: var(--line); }
.patient-mode[data-portal-theme="fortifyhp"] .nav-link { color: #554c43; }
.patient-mode[data-portal-theme="fortifyhp"] .nav-link:hover,
.patient-mode[data-portal-theme="fortifyhp"] .btn-secondary:hover { background: #eee7df; }
.patient-mode[data-portal-theme="fortifyhp"] .nav-link.active { color: #743e2d; background: var(--soft); box-shadow: inset 3px 0 var(--brand); }
.patient-mode[data-portal-theme="fortifyhp"] .btn-primary:hover,
.patient-mode[data-portal-theme="fortifyhp"] .btn-light:hover { background: #854532; border-color: #854532; }
.patient-mode[data-portal-theme="fortifyhp"] .btn-secondary { background: #FBF8F4; color: var(--ink); border-color: #b4a79a; }
.patient-mode[data-portal-theme="fortifyhp"] .nav-unread,
.patient-mode[data-portal-theme="fortifyhp"] .notification-count { background: var(--brand); }
.patient-mode[data-portal-theme="fortifyhp"] .notification-count { border-color: #F4F1EC; }
.patient-mode[data-portal-theme="fortifyhp"] .helper-card,
.patient-mode[data-portal-theme="fortifyhp"] .refill-next-step,
.patient-mode[data-portal-theme="fortifyhp"] .order-progress,
.patient-mode[data-portal-theme="fortifyhp"] .order-stages,
.patient-mode[data-portal-theme="fortifyhp"] .review-box,
.patient-mode[data-portal-theme="fortifyhp"] .chat-draft-explanation,
.patient-mode[data-portal-theme="fortifyhp"] .shipment-card { background: #f0eae2; border-color: var(--line); }
.patient-mode[data-portal-theme="fortifyhp"] .home-title h1 { color: var(--ink); }
.patient-mode[data-portal-theme="fortifyhp"] .welcome-card p,
.patient-mode[data-portal-theme="fortifyhp"] .home-plan-summary p { color: var(--muted); }
.patient-mode[data-portal-theme="fortifyhp"] .home-plan-summary .home-plan-name { color: var(--ink); }
.patient-mode[data-portal-theme="fortifyhp"] .field input,
.patient-mode[data-portal-theme="fortifyhp"] .field textarea,
.patient-mode[data-portal-theme="fortifyhp"] .field select,
.patient-mode[data-portal-theme="fortifyhp"] .choice,
.patient-mode[data-portal-theme="fortifyhp"] .message-compose textarea,
.patient-mode[data-portal-theme="fortifyhp"] .head-filter select,
.patient-mode[data-portal-theme="fortifyhp"] .refill-plan-options select,
.patient-mode[data-portal-theme="fortifyhp"] .store-plan select,
.patient-mode[data-portal-theme="fortifyhp"] .address-grid select { border-color: #b4a79a; }
.patient-mode[data-portal-theme="fortifyhp"] .field input[readonly],
.patient-mode[data-portal-theme="fortifyhp"] .draft-mode-label,
.patient-mode[data-portal-theme="fortifyhp"] .bubble { background: #f0eae2; }
.patient-mode[data-portal-theme="fortifyhp"] .choice:has(input:checked) { border-color: var(--brand); }
.patient-mode[data-portal-theme="fortifyhp"] .notification-item.unread { background: #f5ece5; }
.patient-mode[data-portal-theme="fortifyhp"] .auth-aside { background: #eee5da; border-right-color: var(--line); }
.patient-mode[data-portal-theme="fortifyhp"] .auth-main { background: #F4F1EC; }
.patient-mode[data-portal-theme="fortifyhp"] :is(button, a, input, textarea, select, [tabindex]):focus-visible { outline-color: #896833; }

@media (max-width: 1200px) {
  .patient-mode .main { padding-right: 32px; padding-left: 32px; }
  .patient-mode .topbar { padding-right: 32px; padding-left: 32px; }
  .patient-mode .home-next-step { gap: 28px; grid-template-columns: minmax(0, 1fr) 230px; }
  .patient-mode .home-plan-summary { padding-left: 28px; }
  .patient-mode .welcome-card h2 { font-size: 34px; }
  .patient-mode .welcome-card p { font-size: 18px; }
}
@media (max-width: 1000px) {
  .patient-mode .home-next-step { grid-template-columns: minmax(0, 1fr); }
  .patient-mode .home-plan-summary { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .patient-mode .home-plan-summary h2 { margin-bottom: 16px; }
  .patient-mode .home-plan-summary dl { margin-top: 18px; padding-top: 18px; }
  .patient-mode .home-title { margin-bottom: 36px; }
  .patient-mode .home-title h1 { font-size: 46px; }
  .patient-mode .treatment-table-head, .patient-mode .treatment-summary-row { column-gap: 14px; }
}
@media (max-width: 900px) {
  .patient-mode .shell { grid-template-columns: minmax(0, 1fr); }
  .patient-mode .sidebar { padding: 24px 24px 14px; gap: 22px; }
  .patient-mode .brand { padding: 0; }
  .patient-mode .nav-list.member-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 0; }
  .patient-mode .nav-link { padding: 12px; min-height: 54px; font-size: 16px; gap: 10px; text-align: left; justify-content: flex-start; }
  .patient-mode .nav-unread { min-width: 20px; height: 20px; font-size: 11px; }
  .patient-mode .sidebar-bottom { display: block; margin: 0; padding: 12px 0 0; }
  .patient-mode .sidebar-bottom > svg, .patient-mode .sidebar-bottom p { display: inline; margin-right: 7px; vertical-align: middle; }
  .patient-mode .sidebar-bottom .subtle-link { margin-left: 10px; min-height: 36px; }
  .patient-mode .topbar { min-height: 64px; padding: 8px 28px; }
  .patient-mode .main { padding: 22px 28px 40px; }
  .patient-mode .message-layout > .card:last-child { display: block; }
}
@media (max-width: 650px) {
  .patient-mode .sidebar { padding: 22px 18px 12px; gap: 18px; }
  .patient-mode .brand-name { font-size: 22px; }
  .patient-mode .nav-list.member-nav { margin: 0; gap: 5px; }
  .patient-mode .nav-link { flex-direction: column; justify-content: flex-start; align-items: center; min-height: 90px; padding: 10px 5px; gap: 8px; font-size: 16px; text-align: center; }
  .patient-mode .nav-unread { position: absolute; top: 5px; right: 7px; }
  .patient-mode .sidebar-bottom { line-height: 1.8; }
  .patient-mode .sidebar-bottom .subtle-link { margin-left: 0; }
  .patient-mode .topbar { padding: 8px 20px; gap: 8px; }
  .patient-mode .top-actions { gap: 7px; }
  .patient-mode .main { padding: 24px 20px 36px; }
  .patient-mode h1 { font-size: 34px; letter-spacing: -1px; }
  .patient-mode .page-head { margin-bottom: 26px; }
  .patient-mode .home-title { margin-bottom: 30px; }
  .patient-mode .home-title h1 { font-size: 38px; letter-spacing: -1.3px; }
  .patient-mode .home-next-step { gap: 28px; padding-bottom: 30px; }
  .patient-mode .welcome-card .eyebrow { font-size: 16px; margin-bottom: 12px; }
  .patient-mode .welcome-card h2 { font-size: 30px; letter-spacing: -.8px; }
  .patient-mode .welcome-card p { font-size: 17px; margin: 15px 0 22px; }
  .patient-mode .welcome-card .btn { width: 100%; min-height: 58px; padding: 16px 14px; font-size: 17px; }
  .patient-mode .home-plan-summary h2 { font-size: 25px; }
  .patient-mode .home-plan-summary h3 { font-size: 19px; }
  .patient-mode .home-treatments { margin-top: 30px; }
  .patient-mode .home-treatments h2 { font-size: 27px; }
  .patient-mode .treatment-table-head { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .patient-mode .treatment-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; gap: 7px 14px; border-top: 1px solid var(--line); }
  .patient-mode .treatment-summary-row + .treatment-summary-row { border-top: 0; }
  .patient-mode .treatment-medication { grid-column: 1 / -1; }
  .patient-mode .treatment-plan { grid-column: 1 / -1; color: var(--muted); margin-bottom: 5px; }
  .patient-mode .treatment-action { align-self: center; }
  .patient-mode .treatment-table .text-button { font-size: 16px; gap: 6px; }
  .patient-mode .treatment-table .status { font-size: 14px; padding: 5px 9px; }
  .patient-mode .home-links { gap: 6px 20px; margin-top: 16px; }
  .patient-mode .home-links .text-button, .patient-mode .home-links .subtle-link { font-size: 16px; }
  .patient-mode .card-pad, .patient-mode .full-order, .patient-mode .refill-plan { padding: 24px 20px; }
  .patient-mode .auth-aside { padding: 28px 24px; gap: 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .patient-mode .auth-aside h1 { font-size: 36px; }
  .patient-mode .auth-main { padding: 34px 24px 42px; }
  .patient-mode .bottom-note { margin-top: 32px; }
}

/* Keep navigation and intake steps visible below the portal header. */
.main h1,.intake-card,[id^="order-"],#main-content{scroll-margin-top:100px}
body.modal-open{overflow:hidden}
.modal{overscroll-behavior:contain}
@media(max-width:760px){.main h1,.intake-card,[id^="order-"],#main-content{scroll-margin-top:24px}}

/* Keep unavailable refills visible, with readable instructions. */
.refill-locked { margin: 20px 0; padding: 20px; background: #f5f6f5; border: 1px solid #dfe3e1; border-radius: 12px; }
.refill-locked button:disabled { opacity: 1; color: #58615d; background: #e3e7e5; border-color: #ccd3cf; }
.refill-locked p,.refill-locked li { font-size: 16px; line-height: 1.6; }
.refill-locked ol { padding-left: 24px; }
.refill-locked li+li { margin-top: 8px; }

/* Keep payment renewals separate from already-paid included deliveries. */
.refill-renewal { padding: 24px; margin-top: 24px; border-radius: 14px; background: var(--soft); }
.refill-renewal h3 { font-size: 22px; }
.refill-renewal p { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.refill-inclusion-note, .refill-purchase-unavailable { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.refill-option-action strong { display: block; }

/* Identity and account settings: readable, compact and site branded. */
.account-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:24px;align-items:start}
.account-profile,.identity-card{padding:clamp(24px,3vw,40px);max-width:850px}
.identity-card-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.identity-card-top h2{margin:4px 0;font-size:24px;line-height:1.3}
.identity-card-top .status{margin-left:auto}.identity-card .eyebrow{margin:0;font-size:12px}
.identity-symbol{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:16px;background:var(--soft);color:var(--brand)}
.identity-card p{font-size:17px;line-height:1.6}.identity-card .identity-lead{font-size:21px;font-weight:600;line-height:1.4}
.identity-card form{margin:24px 0}.identity-card input{font-size:24px;letter-spacing:.35em;max-width:220px;min-height:56px}
.identity-card .btn{min-height:52px}.identity-card .identity-privacy{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line,#e2dfd9);padding-top:20px;margin:24px 0 0;font-size:14px;letter-spacing:0}
.account-profile h2{font-size:24px;margin-top:0}.account-profile dt{font-size:14px;color:var(--muted,#64645f);margin-top:22px}.account-profile dd{font-size:18px;line-height:1.5;margin:4px 0;overflow-wrap:anywhere}
@media(max-width:900px){.account-grid{grid-template-columns:1fr}.identity-card-top .status{margin-left:0}.identity-card form .btn{width:100%}}

/* Refill purchase choices: same published plans, clear medication/term/payment steps. */
.supply-picker h3 { font-size: 25px; margin: 8px 0; }
.supply-picker fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.supply-picker legend { font-size: 17px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.supply-picker legend > span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); margin-right: 8px; font-size: 14px; }
.supply-medications, .supply-payment { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.supply-durations { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.supply-choice { position: relative; text-align: left; padding: 18px 32px 18px 16px; min-height: 84px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface,#fff); color: var(--ink); cursor: pointer; font: inherit; }
.supply-choice:hover { border-color: var(--brand); }
.supply-choice.selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb,var(--brand) 7%,white); }
.supply-choice:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.supply-choice-title, .supply-choice-detail { display: block; }
.supply-choice-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.supply-choice-detail { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.supply-choice-check { position: absolute; top: 15px; right: 10px; color: var(--brand); }
.supply-summary { border-top: 1px solid var(--line); padding-top: 22px; display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.supply-summary strong { display: block; font-size: 30px; margin-top: 6px; }
.supply-summary strong small { font-size: 15px; font-weight: 400; }
.supply-footnote { margin: 16px 0 0; font-size: 14px; }
@media(max-width:900px) { .supply-durations { grid-template-columns: repeat(2,minmax(0,1fr)); } .supply-summary { align-items: stretch; flex-direction: column; } }
@media(max-width:480px) { .supply-medications,.supply-payment { grid-template-columns: 1fr; } .supply-choice { padding-left: 12px; } .supply-choice-title { font-size: 16px; } .supply-picker h3 { font-size: 22px; } }

body.portal-checkout-open{overflow:hidden}
wlmd-portal-checkout{position:fixed;inset:0;z-index:1000;display:block;background:var(--bg,#f5f3ee);overflow-y:auto;overscroll-behavior:contain;padding:28px 20px;color:var(--ink,#171716)}
.portal-checkout-panel{max-width:820px;margin:0 auto;padding:24px;background:var(--surface,#fff);border-radius:20px}
.portal-checkout-panel h1{font-size:clamp(28px,5vw,42px);margin:22px 0}
.portal-checkout-panel .btn-wide{margin:20px 0;min-height:56px}
.portal-card-element{min-height:340px;padding:24px 0}
@media(max-width:600px){wlmd-portal-checkout{padding:12px}.portal-checkout-panel{padding:18px}.portal-checkout-panel .address-grid{grid-template-columns:1fr}}

/* Hosted card updates keep the provider fields large and preserve their DOM. */
.card-update-modal { max-width: 700px; padding: 0; overflow-y: auto; }
.card-update-heading { padding: 30px 32px 0; }
.card-update-heading h2 { margin: 8px 0 12px; }
.card-update-heading p { margin: 0; }
.card-update-heading .card-update-summary { margin-top: 16px; font-weight: 600; color: var(--ink); }
.card-update-content { padding: 20px 32px 8px; }
.card-update-status { font-size: 17px; line-height: 1.5; margin-bottom: 12px; }
#card-update-frame-wrap { width: 100%; max-width: 440px; margin: 18px auto; border: 0; overflow: hidden; background: transparent; }
#card-update-frame { width: calc(100% + 4px); margin: 0 -2px; height: 120px; min-width: 0; display: block; border: 0; background: transparent; }
.card-update-modal .card-update-security { display: flex; align-items: flex-start; gap: 9px; font-size: 16px; line-height: 1.5; margin: 18px 0; }
.card-update-security svg { flex-shrink: 0; margin-top: 3px; }
.card-update-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 18px 32px 26px; background: #fff; position: sticky; bottom: 0; border-top: 1px solid var(--border, #ddd); }
.card-update-footer .btn { min-height: 50px; }
.card-update-modal [hidden] { display: none !important; }
@media(max-width:600px) {
  .card-update-backdrop { padding: 0; align-items: stretch; }
  .patient-mode .card-update-modal, .card-update-modal { border-radius: 0; max-height: 100dvh; height: 100dvh; }
  .card-update-heading { padding: 24px 20px 0; }
  .card-update-heading h2 { font-size: 28px; }
  .card-update-content { padding: 18px 20px 8px; }
  #card-update-frame { height: 120px; }
  .card-update-footer { padding: 16px 20px max(20px,env(safe-area-inset-bottom)); }
  .card-update-footer .btn-primary { flex: 1; }
}

/* Saved methods remain readable and selectable on narrow patient screens. */
.saved-card-picker { border: 0; padding: 0; margin: 22px 0; display: grid; gap: 12px; min-width: 0; }
.saved-card-picker legend { font-size: 19px; font-weight: 700; padding: 0; }
.saved-card-picker .field-hint { margin: 8px 0 4px; }
.saved-card-picker .choice:has(input:disabled) { opacity: .6; cursor: default; }
.saved-card-picker .choice:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Home task list and order summaries. */
.patient-mode .home-title { margin-bottom: clamp(20px, 4vw, 32px); }
.patient-mode .home-todo-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.patient-mode .home-todo-heading h2, .patient-mode .home-order-group h2 { font-size: clamp(22px, 3vw, 29px); }
.patient-mode .home-todo-list, .patient-mode .home-order-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.patient-mode .home-todo-item, .patient-mode .home-order-summary {
  display: flex; gap: 12px 20px; align-items: center; justify-content: space-between;
  min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff);
}
.patient-mode .home-todo-item > div, .patient-mode .home-order-summary > div { min-width: 0; }
.patient-mode .home-todo-item h3, .patient-mode .home-order-summary h3 { font-size: 18px; line-height: 1.35; }
.patient-mode .home-todo-item p, .patient-mode .home-order-summary p { margin: 4px 0 0; }
.patient-mode .home-todo-item .small-note { margin: 0 0 4px; }
.patient-mode .home-todo-item .btn { flex: 0 0 auto; max-width: 100%; min-height: 48px; }
.patient-mode .home-todo-empty { color: var(--muted); }
.patient-mode .home-order-group, .patient-mode .order-list-group + .order-list-group { margin-top: 30px; }
.patient-mode .home-order-group h2, .patient-mode .order-list-group h2 { margin-bottom: 12px; }
.patient-mode .home-order-state { font-weight: 650; }
.patient-mode .home-tracking-number { overflow-wrap: anywhere; }
.patient-mode .shipment-card .home-track { margin-top: 12px; }
@media (max-width: 600px) {
  .patient-mode .home-todo-item, .patient-mode .home-order-summary { flex-direction: column; align-items: stretch; }
  .patient-mode .home-todo-item .btn { width: 100%; }
}
@media (max-width: 400px) {
  .patient-mode .tab-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  .patient-mode .tab-nav button { min-width: 0; padding-inline: 4px; }
}

.account-settings-grid, .account-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.account-settings-card { min-width: 0; padding: clamp(22px, 3vw, 36px); }
.account-settings-card h2 { margin: 0 0 12px; font-size: 24px; }
.account-settings-card p, .account-login-help p { margin: 0 0 16px; line-height: 1.55; }
.account-settings-card .small-note { margin-top: 14px; }
.account-action-list { list-style: none; margin: 18px 0 0; padding: 0; }
.account-action-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-action-list li:last-child { padding-bottom: 0; }
.account-action-list li p { margin: 4px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.account-action-list li > div { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.account-action-list .btn { flex-shrink: 0; max-width: 100%; min-height: 44px; white-space: normal; }
.account-help-topics { margin-top: 16px; }
.account-help-topics > div { padding: 12px 0 0; border-top: 1px solid var(--line); }
.account-help-topics h3, .account-login-help h2 { margin: 0 0 6px; font-size: 17px; }
.account-login-help, .account-password { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.account-login-help .action-row { margin-top: 10px; }
.account-login-help .btn { margin-top: 0; min-height: 44px; }
.account-password { margin-bottom: 12px; }
.account-password summary { cursor: pointer; font-weight: 650; color: var(--brand); padding: 8px 0; }
.account-password form { margin-top: 12px; }
.account-password .field { margin-bottom: 16px; }
@media (max-width: 900px) { .account-settings-grid, .account-help-grid { grid-template-columns: minmax(0, 1fr); } }

.refill-delivery-address { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.refill-delivery-address h3 { margin: 0 0 4px; font-size: 16px; }
.refill-delivery-address p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .account-settings-card .action-row > .btn { width: 100%; } }

.auth-social{margin-top:16px}.auth-social a{display:flex;justify-content:center;text-decoration:none}

.patient-mode[data-portal-theme="fortifyhp"] .home-next-step { grid-template-columns: minmax(0, 1fr); }
.patient-mode[data-portal-theme="fortifyhp"] .home-links[hidden] { display: none; }
.patient-mode[data-portal-theme="fortifyhp"] .account-avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); cursor: pointer; }
.patient-mode[data-portal-theme="fortifyhp"] .treatment-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .order-next-action {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 16px; margin: 16px 0; background: var(--soft); border-radius: 12px;
}
.patient-mode[data-portal-theme="fortifyhp"] .order-next-action p { margin: 5px 0 0; color: var(--muted); }
.patient-mode[data-portal-theme="fortifyhp"] .order-more { margin-top: 16px; border-top: 1px solid var(--line); }
.patient-mode[data-portal-theme="fortifyhp"] :is(.order-more, .intake-section-index) > summary {
  min-height: 44px; padding: 12px 2px; cursor: pointer; font-weight: 600;
}
.patient-mode[data-portal-theme="fortifyhp"] .doctor-empty { text-align: center; }
.patient-mode[data-portal-theme="fortifyhp"] .intake-layout { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 780px) {
  .patient-mode[data-portal-theme="fortifyhp"] .sidebar { padding: 12px 16px 8px; gap: 8px; }
  .patient-mode[data-portal-theme="fortifyhp"] .sidebar :is(.brand-caption, .nav-heading, .sidebar-bottom),
  .patient-mode[data-portal-theme="fortifyhp"] .topbar .site-name { display: none; }
  .patient-mode[data-portal-theme="fortifyhp"] .sidebar .brand-logo { max-width: 120px; }
  .patient-mode[data-portal-theme="fortifyhp"] .nav-link {
    flex-direction: row; justify-content: center; align-items: center; min-height: 48px; padding: 8px 4px;
    font-size: 14px; gap: 6px;
  }
  .patient-mode[data-portal-theme="fortifyhp"] .nav-link svg { width: 17px; height: 17px; }
  .patient-mode[data-portal-theme="fortifyhp"] .topbar { justify-content: flex-end; min-height: 44px; padding: 4px 16px; }
  .patient-mode[data-portal-theme="fortifyhp"] .main { padding-top: 16px; }
  .patient-mode[data-portal-theme="fortifyhp"] .home-title { margin-bottom: 14px; }
  .patient-mode[data-portal-theme="fortifyhp"] .order-next-action .btn { width: 100%; }
  .patient-mode[data-portal-theme="fortifyhp"] .intake-actions .btn-primary { flex: 1; }
}

/* FortifyHP treatment list and per-plan view */
.treatment-list ul, .treatment-past-list { list-style: none; margin: 0; padding: 0; }
.treatment-list-row, .treatment-panel, .treatment-next, .treatment-delivery {
  border: 1px solid #ded6ca;
  border-radius: 16px;
  background: #fcfaf7;
}
.treatment-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 12px;
}
.treatment-list-name h3, .treatment-next h2, .treatment-delivery h2 { margin: 0 0 4px; font-size: 1.12rem; }
.treatment-list-name p, .treatment-next p, .treatment-delivery p, .treatment-history-order p { margin: 0; }
.treatment-detail { display: grid; gap: 14px; max-width: 850px; }
.treatment-detail > .page-head { margin: 0 0 4px; align-items: center; }
.treatment-detail > .text-button { justify-self: start; min-height: 44px; }
.treatment-next, .treatment-delivery { padding: 18px; }
.treatment-next { background: #f1e7df; }
.treatment-next .btn { margin-top: 12px; }
.treatment-delivery { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.treatment-panel > summary { padding: 16px 18px; font-weight: 650; cursor: pointer; }
.treatment-panel > summary span { margin-left: 8px; }
.treatment-panel-body, .treatment-past-list { padding: 0 18px 18px; }
.treatment-history-order { padding: 12px 0; }
.treatment-history-order h3 { margin: 0 0 4px; }
@media (max-width: 620px) {
  .treatment-list-row { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
  .treatment-list-row > .btn { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .treatment-list-row > .status { grid-column: 2; justify-self: start; }
  .treatment-detail > .page-head { align-items: flex-start; }
  .treatment-next .btn { width: 100%; min-height: 44px; }
}

.patient-mode[data-portal-theme="fortifyhp"] :is(.nav-heading, .sidebar-bottom, .brand-caption, .main .eyebrow, .auth-card > .eyebrow) { display: none; }
.patient-mode[data-portal-theme="fortifyhp"] .page-head p:empty { display: none; }
.patient-mode[data-portal-theme="fortifyhp"] .refill-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.patient-mode[data-portal-theme="fortifyhp"] .refill-locked { margin: 0; padding: 12px 16px; }
.patient-account { display: grid; gap: 12px; max-width: 780px; }
.patient-account .treatment-panel-body > .card { border: 0; box-shadow: none; padding: 8px 0; background: transparent; }
.patient-account .treatment-panel-body > .card h2 { font-size: 1.1rem; }
@media (max-width: 900px) {
  html:has(body.patient-mode[data-portal-theme="fortifyhp"] .shell) { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .patient-mode[data-portal-theme="fortifyhp"] .shell { grid-template-rows: auto 1fr; }
  .patient-mode[data-portal-theme="fortifyhp"] .sidebar nav {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: #fbf8f4;
    border-top: 1px solid var(--line);
  }
  .patient-mode[data-portal-theme="fortifyhp"] .nav-list.member-nav { display: flex; flex-direction: row; margin: 0; gap: 4px; }
  .patient-mode[data-portal-theme="fortifyhp"] .nav-link {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 12px;
  }
  .patient-mode[data-portal-theme="fortifyhp"] .main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

.patient-mode[data-portal-theme="fortifyhp"] .auth-layout { grid-template-columns: minmax(0, 1fr); }
.patient-mode[data-portal-theme="fortifyhp"] .auth-aside { display: none; }
.patient-mode[data-portal-theme="fortifyhp"] .auth-card > .brand { padding: 0; margin-bottom: 24px; }
.patient-mode[data-portal-theme="fortifyhp"] .auth-card .field { margin: 14px 0; }
.patient-mode[data-portal-theme="fortifyhp"] .auth-card > p { margin: 8px 0 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .avatar { color: #96503a; }
.treatment-detail > .text-button { padding-inline: 0; }
.account-signout { justify-self: start; }
.height-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.height-fields label { display: grid; gap: 6px; }
@media (max-width: 900px) {
  .patient-mode[data-portal-theme="fortifyhp"] .shell { position: relative; }
  .patient-mode[data-portal-theme="fortifyhp"] .sidebar { min-height: 58px; padding-block: 12px; justify-content: center; }
  .patient-mode[data-portal-theme="fortifyhp"] .topbar { position: absolute; inset: 0 12px auto auto; min-height: 58px; padding: 0; border: 0; background: transparent; }
  .patient-mode[data-portal-theme="fortifyhp"] .topbar .site-name { display: none; }
  .patient-mode[data-portal-theme="fortifyhp"] .intake-card { overflow: visible; }
  .patient-mode[data-portal-theme="fortifyhp"] #intake-form { padding-bottom: 88px; }
  .patient-mode[data-portal-theme="fortifyhp"] .intake-actions {
    position: fixed;
    z-index: 19;
    inset: auto 0 calc(65px + env(safe-area-inset-bottom)) 0;
    width: auto;
    margin: 0;
    padding: 8px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: #fbf8f4;
  }
  .patient-mode[data-portal-theme="fortifyhp"] .intake-actions > .btn { width: auto; }
}

.patient-mode[data-portal-theme="fortifyhp"] :is(.treatment-workspace, .treatment-detail) {
  max-width: 820px;
}
.patient-mode[data-portal-theme="fortifyhp"] .treatment-workspace > .page-head { margin-bottom: 20px; }
.treatment-workspace .treatment-list-row {
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  color: var(--ink);
  text-align: left;
}
.treatment-workspace .treatment-list-row:hover { background: #f4ece4; }
.treatment-list-name { display: grid; gap: 4px; }
.treatment-list-name strong { font-size: 1.125rem; line-height: 1.25; }
.treatment-list-name > span { color: var(--muted); font-size: .925rem; line-height: 1.4; }
.treatment-chevron { color: var(--brand); display: flex; }
@media (max-width: 620px) {
  .treatment-workspace .treatment-list-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .treatment-workspace .treatment-list-row > .status { grid-row: 2; grid-column: 2; }
  .treatment-workspace .treatment-chevron { grid-row: 1 / span 2; grid-column: 3; }
  .treatment-workspace .product-icon { align-self: start; }
}

.patient-account { gap: 20px; }
.patient-account .account-profile { padding: 18px 20px; }
.patient-account .account-profile dl { margin: 0; }
.patient-account .account-profile dt { margin-top: 12px; }
.patient-account .account-section { display: grid; gap: 10px; }
.patient-account .account-section > h2 { font-size: 1.125rem; margin: 0; }
.patient-account .account-section > .btn { justify-self: start; }
.account-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 18px;
  background: #fcfaf7;
}

/* Keep native controls from setting an intrinsic minimum width on the form. */
.patient-mode[data-portal-theme="fortifyhp"] :is(.intake-card, .intake-card fieldset, .intake-card .field) { min-width: 0; }
.patient-mode[data-portal-theme="fortifyhp"] .intake-card :is(input, select, textarea, canvas) { max-width: 100%; }
.patient-mode[data-portal-theme="fortifyhp"] .intake-card :is(.review-box, .section-description) { overflow-wrap: anywhere; }
.intake-review-section { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.intake-review-section h4 { margin: 0; }
.intake-review-section .text-button { min-height: 44px; }
.intake-review-section dd { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .intake-layout .intake-side { display: none; }
  .intake-layout .intake-card { border-radius: 0; padding: 22px 16px 0; }
  .intake-card .intake-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-inline: -16px;
    width: auto;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: var(--panel, #fff);
  }
  .intake-card .intake-actions > .btn { width: auto; min-height: 48px; }
  .intake-card .intake-actions > .btn-primary { flex: 1; }
}

/* FortifyHP portal v3: one status, one action, plain lists. */
.patient-mode[data-portal-theme="fortifyhp"] {
  --v3-surface: #ffffff;
  --v3-line: #e7e0d7;
  --v3-muted: #5f574f;
  --v3-amber: #8a5a00;
}
.v3-home { display: grid; gap: 28px; max-width: 820px; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-home .home-title { margin: 0; }
.v3-home .home-title h1 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.02em; }
.v3-hero, .v3-card {
  background: var(--v3-surface);
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 18px;
}
.v3-hero-head { display: flex; gap: 16px; align-items: center; }
.v3-hero-kicker { margin: 0; color: var(--v3-muted); font-size: 0.95rem; }
.v3-hero h2 { margin: 2px 0 0; font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.v3-hero-detail { margin: 0; color: var(--v3-muted); }
.v3-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.v3-tile {
  width: 48px; height: 48px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #f3eee8, #e9e2da);
  color: #8f8276;
}
.v3-tile.large { width: 64px; height: 64px; border-radius: 16px; }
.v3-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.v3-step { display: grid; gap: 8px; min-width: 0; }
.v3-step-bar { height: 4px; border-radius: 2px; background: #e2dcd4; }
.v3-step.done .v3-step-bar { background: var(--brand); }
.v3-step-name { font-size: 0.82rem; font-weight: 600; color: var(--v3-muted); overflow-wrap: anywhere; }
.v3-step.done .v3-step-name { color: var(--ink); }
.v3-step-note { margin: -6px 0 0; color: var(--v3-muted); }
.v3-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.v3-hero-actions .btn { min-height: 52px; padding-inline: 24px; }
.v3-section { display: grid; gap: 10px; }
.v3-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v3-section-head .text-button { min-height: 44px; }
.v3-section-title {
  margin: 0; padding: 0 4px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--v3-muted);
}
.v3-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--v3-surface);
  border: 1px solid var(--v3-line);
  border-radius: 16px;
  overflow: hidden;
}
.v3-list > li + li { border-top: 1px solid var(--v3-line); }
.v3-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; box-sizing: border-box; }
.btn.v3-row {
  border: 0; border-radius: 0; box-shadow: none;
  background: transparent; color: var(--ink);
  justify-content: flex-start; text-align: left;
  font-size: 1rem; font-weight: 600;
}
.btn.v3-row > svg { margin-left: auto; color: #a1958a; }
.v3-link { cursor: pointer; }
.v3-link:hover, .btn.v3-row:hover { background: #faf6f2; }
.v3-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.v3-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.v3-row-text strong { font-size: 1rem; font-weight: 650; }
.v3-row-text > span { color: var(--v3-muted); font-size: 0.92rem; line-height: 1.4; }
.v3-chevron { display: flex; color: #a1958a; }
.v3-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v3-amber); flex: none; }
.v3-todo > .btn { flex: none; }
.v3-amount { font-size: 1rem; white-space: nowrap; }
.v3-treatment { gap: 20px; }
.v3-treatment-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.v3-treatment-head > div { flex: 1; min-width: 200px; }
.v3-treatment-head h1 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.02em; }
.v3-treatment-head p { margin: 4px 0 0; color: var(--v3-muted); }
.v3-manage-card { background: var(--v3-surface); border: 1px solid var(--v3-line); border-radius: 16px; padding: 16px 20px; }
.v3-manage-card .order-item { border: 0; padding: 0; background: transparent; }
.v3-manage-card .action-row:empty { display: none; }
.v3-plain { margin: 0; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment .treatment-next { background: var(--soft); border: 0; border-radius: 20px; padding: 20px 24px; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment .treatment-panel { background: var(--v3-surface); border-color: var(--v3-line); }
.patient-mode[data-portal-theme="fortifyhp"] .treatment-workspace .treatment-list-row { background: var(--v3-surface); border-color: var(--v3-line); }
.patient-mode[data-portal-theme="fortifyhp"] .treatment-workspace .treatment-list-row:hover { background: #faf6f2; }
@media (max-width: 620px) {
  .v3-home { gap: 24px; }
  .v3-hero, .v3-card { padding: 20px; }
  .v3-hero-actions .btn { width: 100%; }
  .v3-todo { flex-wrap: wrap; }
  .v3-todo > .btn { width: calc(100% - 22px); margin-left: 22px; min-height: 44px; }
  .v3-step-name { font-size: 0.74rem; }
  .v3-treatment .treatment-next .btn { width: 100%; }
}
button.v3-row { border: 0; border-radius: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v3-row-text > .status { justify-self: start; margin-top: 4px; }
.v3-manage-card .card-heading h3 { font-size: 1.05rem; }
.v3-manage-card .subscription-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 20px; margin: 4px 0 10px; }
.v3-manage-card .subscription-facts > div:first-child { display: none; }
.v3-manage-card .subscription-facts dt { font-size: 0.85rem; color: var(--v3-muted); margin: 0; }
.v3-manage-card .subscription-facts dd { margin: 2px 0 0; font-weight: 650; }
.v3-manage-card .small-note { color: var(--v3-muted); margin: 0 0 12px; }
.v3-manage-card .action-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; }
.v3-manage-card .action-row .btn { width: 100%; min-height: 44px; }
.v3-manage-card .order-item + .action-row { margin-top: 8px; }
.v3-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--v3-muted); margin-top: -8px; }
.v3-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2e6b4b; }
.v3-live.stale .v3-live-dot { background: #a1958a; }
.v3-needs { border-color: #ead9b8; }

/* FortifyHP v3 secondary pages: same surfaces, lines and type as Home. */
.patient-mode[data-portal-theme="fortifyhp"] :is(.card, .treatment-panel, .account-setting-row, .patient-account .account-profile) {
  background: var(--v3-surface);
  border-color: var(--v3-line);
  box-shadow: none;
}
.patient-mode[data-portal-theme="fortifyhp"] .card { border-radius: 20px; }
.patient-mode[data-portal-theme="fortifyhp"] :is(.page-head h1, .treatment-workspace .page-head h1) { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.02em; }
.patient-mode[data-portal-theme="fortifyhp"] .page-head p { color: var(--v3-muted); }
.patient-mode[data-portal-theme="fortifyhp"] :is(.helper-card, .refill-next-step, .order-progress, .order-stages, .review-box, .chat-draft-explanation, .shipment-card) {
  background: #faf7f3;
  border-color: var(--v3-line);
}
/* Care: plain numbers, quieter boxes. */
.patient-mode[data-portal-theme="fortifyhp"] .refill-plan { padding: 24px; }
.patient-mode[data-portal-theme="fortifyhp"] .refill-counts { padding: 16px 0; margin-top: 18px; gap: 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .refill-counts strong { font-size: 1.5rem; color: var(--ink); }
.patient-mode[data-portal-theme="fortifyhp"] .refill-counts span { margin-top: 4px; }
.patient-mode[data-portal-theme="fortifyhp"] .refill-next-step { padding: 18px 20px; margin-top: 18px; border-radius: 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .refill-next-step h3 { font-size: 1.2rem; }
.patient-mode[data-portal-theme="fortifyhp"] .refill-plan-heading .product-icon,
.patient-mode[data-portal-theme="fortifyhp"] .message-header .product-icon {
  background: linear-gradient(180deg, #f3eee8, #e9e2da); color: #8f8276; border-radius: 12px;
}
.patient-mode[data-portal-theme="fortifyhp"] :is(.refill-schedule, .refill-plan-options) { margin-top: 18px; padding-top: 10px; }
/* Notifications: no side stripe; unread gets a dot. */
.patient-mode[data-portal-theme="fortifyhp"] .notification-item { padding: 20px 24px; gap: 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .notification-item.unread { background: var(--v3-surface); box-shadow: none; position: relative; }
.patient-mode[data-portal-theme="fortifyhp"] .notification-item.unread::before {
  content: ""; position: absolute; left: 10px; top: 30px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.patient-mode[data-portal-theme="fortifyhp"] .notification-symbol { background: #f3eee8; color: #8f8276; }
/* Doctor chat: calm bubbles, patient on the right in brand tint. */
.patient-mode[data-portal-theme="fortifyhp"] .bubble { font-size: 1rem; line-height: 1.55; background: #f3eee8; border-radius: 18px 18px 18px 6px; padding: 12px 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .message.patient .bubble { background: var(--brand); color: #fff; border: 0; border-radius: 18px 18px 6px 18px; }
.patient-mode[data-portal-theme="fortifyhp"] .message.patient .bubble a { color: #fff; }
.patient-mode[data-portal-theme="fortifyhp"] .message-name { font-size: 0.85rem; color: var(--v3-muted); }
.patient-mode[data-portal-theme="fortifyhp"] .doctor-chat .message-compose textarea { min-height: 110px; border-radius: 14px; }
/* Account: section titles like Home. */
.patient-mode[data-portal-theme="fortifyhp"] .patient-account .account-section > h2 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); padding: 0 4px;
}
.patient-mode[data-portal-theme="fortifyhp"] .patient-account .account-signout { color: var(--v3-muted); }

/* Doctor card and prescriptions from MDI. */
.v3-doctor { display: grid; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--v3-line); }
.v3-doctor-head { display: flex; gap: 16px; align-items: center; }
.v3-doctor h2 { margin: 2px 0 0; font-size: 1.25rem; line-height: 1.2; }
.v3-doctor-kicker { margin: 0; font-size: 0.85rem; color: var(--v3-muted); }
.v3-doctor-meta { margin: 2px 0 0; color: var(--v3-muted); }
.v3-doc-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: #f3eee8; }
.v3-row .v3-doc-photo { width: 44px; height: 44px; }
.v3-doc-photo.initials { display: inline-grid; place-items: center; color: #2e6b4b; background: #eaf2ec; font-weight: 800; }
.v3-doctor-away { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fbf3e2; color: #8a5a00; }
.v3-doctor-bio summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 650; color: var(--brand); }
.v3-doctor-bio p { margin: 0; color: var(--v3-muted); line-height: 1.55; white-space: pre-line; }
.v3-rx { align-items: flex-start; }
.v3-rx-directions { color: var(--ink) !important; white-space: pre-line; }
.v3-rx-by { margin: 0; padding: 0 4px; color: var(--v3-muted); font-size: 0.92rem; }

/* Intake: date-of-birth boxes, eligibility stop, submit sequence (mirrors post-checkout.js) */
.dob-row{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:10px}
.dob-row input{text-align:center;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.stop-notice{border:1px solid #fecdca;background:#fef3f2;color:#912018;border-radius:var(--radius,14px);padding:16px 18px;margin:0 0 20px}
.stop-notice strong{display:block;color:#b42318;margin-bottom:4px}.stop-notice p{margin:4px 0}
.submit-sequence{position:fixed;inset:0;z-index:2147483000;background:rgba(255,255,255,.97);display:grid;place-items:center;animation:wlmdFade .25s ease both}
.submit-sequence.leaving{opacity:0;transition:opacity .25s}
.submit-card{width:min(320px,86vw)}.submit-card .ring{display:block;width:72px;height:72px;margin:0 auto 24px}
.submit-card .ring circle{fill:none;stroke-width:4}.submit-card .ring-bg{stroke:#eaecf0}
.submit-card .ring-fg{stroke:var(--brand,#0f766e);stroke-linecap:round;stroke-dasharray:201;stroke-dashoffset:201;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .6s cubic-bezier(.2,.7,.2,1)}
.submit-card .ring-check{fill:none;stroke:var(--brand,#0f766e);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;transition:stroke-dashoffset .4s .1s ease}
.submit-sequence.complete .ring-check{stroke-dashoffset:0}
.submit-card ol{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.submit-card li{display:flex;gap:10px;align-items:center;font-size:15px;color:#98a2b3;transition:color .3s}
.submit-card li span{flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid #d0d5dd;display:grid;place-items:center}
.submit-card li.active{color:#344054}.submit-card li.active span{border-color:var(--brand,#0f766e);border-top-color:transparent;animation:wlmdSpin .8s linear infinite}
.submit-card li.done{color:#101828}.submit-card li.done span{background:var(--brand,#0f766e);border-color:var(--brand,#0f766e)}
.submit-card li.done span:after{content:'';width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
@keyframes wlmdFade{from{opacity:0}}@keyframes wlmdSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.submit-sequence,.submit-card *{animation:none!important;transition:none!important}}

/* Why no card change is offered (one-time purchase or unavailable). */
.card-update-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--muted); }
.card-update-note svg { flex-shrink: 0; margin-top: 3px; }
.account-action-list li p.card-update-note-text { color: var(--ink); }
.store-plan h4 { letter-spacing: -.3px; line-height: 1.3; }
/* Refills: one-line prepaid summary and quick next-refill choices. */
.refill-summary-line { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb,var(--brand) 7%,white); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.supply-quick { display: grid; gap: 12px; }
.supply-quick-set { margin: 18px 0; }
.supply-more-toggle { margin: 0 0 18px; }

/* Patient intake: the shared one-question-at-a-time intake from checkout. */
.intake-host { max-width: 680px; margin: 0 auto; }
.intake-host wlmd-purchase-intake { display: block; border-radius: 24px; overflow: clip; }
@media (max-width: 600px) { .intake-host { margin: -18px 0 0; } .intake-host wlmd-purchase-intake { border-radius: 0; } }
@media (max-width: 900px) {
  body.intake-focus.patient-mode .sidebar nav { display: none; }
  body.intake-focus.patient-mode[data-portal-theme="fortifyhp"] .main { padding-bottom: 0; }
  html:has(body.intake-focus) { scroll-padding-bottom: 0; }
}

/* FortifyHP app look (approved Nov 22): warm surfaces, one coloured "do this
   now" card, the four main features as big buttons, screens that slide in. */
.patient-mode[data-portal-theme="fortifyhp"] {
  --v3-surface: #fbf8f4;
  --v3-line: #ebe3d9;
  --app-radius: 22px;
}
.patient-mode[data-portal-theme="fortifyhp"] .v3-welcome { margin: 0 0 2px; color: var(--v3-muted); font-size: 0.95rem; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-home .home-title h1 { font-family: "Fortify Code Pro", "Red Hat Display", system-ui, sans-serif; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-home { gap: 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero { border: 0; border-radius: 26px; padding: 22px; gap: 16px; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-progress { background: var(--brand); color: #fff; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-needs { background: #141312; color: #f4f1ec; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero :is(.v3-hero-kicker, .v3-hero-detail, .v3-step-note, .live-age, .v3-step-name, .v3-step.done .v3-step-name) { color: inherit; opacity: 0.88; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero .v3-step-bar { background: rgba(255, 255, 255, 0.28); height: 6px; border-radius: 3px; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero .v3-step.done .v3-step-bar { background: #fff; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-needs .v3-step.done .v3-step-bar { background: var(--brand-accent, #a2563f); }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero .v3-hero-actions .btn { width: 100%; border-radius: 16px; border: 0; font-weight: 800; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-progress .v3-hero-actions .btn-primary { background: #fff; color: #6e3726; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-progress .v3-hero-actions .btn-secondary { background: rgba(255, 255, 255, 0.16); color: #fff; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-needs .v3-hero-actions .btn-primary { background: var(--brand); color: #fff; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-needs .v3-hero-actions .btn-secondary { background: rgba(255, 255, 255, 0.12); color: #f4f1ec; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero a:not(.btn) { color: inherit; }

.v3-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v3-feature {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 128px; padding: 16px; box-sizing: border-box;
  border: 0; border-radius: var(--app-radius, 22px); background: var(--v3-surface, #fbf8f4);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.v3-feature:hover { background: #f6efe8; }
.v3-feature:active { transform: scale(0.97); }
.v3-feature:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.v3-feature-icon, .v3-more-icon { display: inline-grid; place-items: center; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); }
.v3-feature-icon { width: 44px; height: 44px; }
.v3-more-icon { width: 40px; height: 40px; border-radius: 12px; background: transparent; color: var(--ink); }
.v3-feature-text { display: grid; gap: 2px; min-width: 0; }
.v3-feature-text strong { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.v3-feature-text span { color: var(--v3-muted); font-size: 0.85rem; line-height: 1.35; overflow-wrap: anywhere; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-list { border: 0; border-radius: var(--app-radius, 22px); }
.patient-mode[data-portal-theme="fortifyhp"] :is(.v3-card, .v3-manage-card, .card, .treatment-panel, .treatment-list-row) { border-radius: var(--app-radius, 22px); }

/* Screens slide in like an app; nothing moves for people who ask for less motion. */
@keyframes app-screen-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.patient-mode[data-portal-theme="fortifyhp"] .main.app-enter { animation: app-screen-in 0.22s ease-out; }
@media (prefers-reduced-motion: reduce) { .patient-mode[data-portal-theme="fortifyhp"] .main.app-enter { animation: none; } }
@media (max-width: 380px) { .v3-feature { min-height: 116px; padding: 14px; } }

/* App look, phase 2: Treatment, Care (refills), Doctor and Account screens. */
/* Treatment: a dark header card, the live status card, and a bold tracking button. */
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment-hero {
  background: #141312; color: #f4f1ec; border-radius: 26px; padding: 22px; gap: 10px;
}
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment-hero .v3-tile { display: none; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment-hero h1 { color: #f4f1ec; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment-hero p { color: #d8cfc5; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment-hero .v3-treatment-kicker { margin: 0 0 4px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #e6c3b5; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment-hero .status { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: transparent; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment .v3-card { border: 0; border-radius: var(--app-radius, 22px); }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment .v3-card .v3-hero-actions .btn { width: 100%; border-radius: 16px; font-weight: 800; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment .treatment-next { background: var(--brand); color: #fff; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment .treatment-next p { color: rgba(255, 255, 255, 0.9); }
.patient-mode[data-portal-theme="fortifyhp"] .v3-treatment .treatment-next .btn-primary { background: #fff; color: #6e3726; border: 0; border-radius: 16px; font-weight: 800; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-manage-card { border: 0; border-radius: var(--app-radius, 22px); }
.patient-mode[data-portal-theme="fortifyhp"] .v3-manage-card .action-row .btn { border-radius: 14px; }
.patient-mode[data-portal-theme="fortifyhp"] .treatment-back { padding-inline: 0; font-weight: 700; }

/* Care: each plan is one card; the paid-refill summary reads like a scoreboard. */
.patient-mode[data-portal-theme="fortifyhp"] .refill-plan { border: 0; border-radius: var(--app-radius, 22px); background: var(--v3-surface); }
.patient-mode[data-portal-theme="fortifyhp"] .refill-summary-line {
  background: #141312; color: #f4f1ec; border-radius: 18px; padding: 14px 16px; font-weight: 700; line-height: 1.45;
}
.patient-mode[data-portal-theme="fortifyhp"] .refill-next-step { border: 0; border-radius: 18px; background: color-mix(in srgb, var(--brand) 8%, #fff); }
.patient-mode[data-portal-theme="fortifyhp"] .refill-plan .action-row .btn { border-radius: 16px; min-height: 52px; font-weight: 800; }
.patient-mode[data-portal-theme="fortifyhp"] .refill-plan .action-row .btn-primary { flex: 1 1 100%; }

/* Doctor: a chat, not a form. */
.patient-mode[data-portal-theme="fortifyhp"] .doctor-chat { border: 0; border-radius: var(--app-radius, 22px); background: var(--v3-surface); }
.patient-mode[data-portal-theme="fortifyhp"] .doctor-thread-controls .btn { min-height: 40px; border: 0; background: transparent; color: var(--brand); padding-inline: 0; font-weight: 700; }
.patient-mode[data-portal-theme="fortifyhp"] .message-compose textarea { border-radius: 16px; background: #fff; min-height: 88px; }
.patient-mode[data-portal-theme="fortifyhp"] .message-compose .btn-primary { border-radius: 14px; min-height: 48px; font-weight: 800; }
.patient-mode[data-portal-theme="fortifyhp"] .message-compose .compose-footer { gap: 10px; }

/* Account: settings as rows in rounded groups. */
.patient-mode[data-portal-theme="fortifyhp"] .patient-account .card,
.patient-mode[data-portal-theme="fortifyhp"] .patient-account details { border: 0; border-radius: var(--app-radius, 22px); background: var(--v3-surface); }
.patient-mode[data-portal-theme="fortifyhp"] .patient-account summary { min-height: 56px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.patient-mode[data-portal-theme="fortifyhp"] .patient-account > .btn,
.patient-mode[data-portal-theme="fortifyhp"] .patient-account .btn-secondary { border-radius: 16px; min-height: 52px; }
.patient-mode[data-portal-theme="fortifyhp"] .patient-account summary { padding-right: 8px; list-style: none; }
.patient-mode[data-portal-theme="fortifyhp"] .patient-account summary::-webkit-details-marker { display: none; }
.patient-mode[data-portal-theme="fortifyhp"] .patient-account summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid #a1958a; border-bottom: 2px solid #a1958a; transform: rotate(-45deg); transition: transform 0.15s ease;
}
.patient-mode[data-portal-theme="fortifyhp"] .patient-account details[open] > summary::after { transform: rotate(45deg); }
@media (max-width: 620px) { .patient-mode[data-portal-theme="fortifyhp"] .patient-account > .btn, .patient-mode[data-portal-theme="fortifyhp"] .patient-account .account-settings-card > .btn { width: 100%; } }

/* Talk to my doctor: chat-app layout (patient phone/desktop). */
.card.doctor-chat.chat-app, .chat-app { overflow: visible; border: 0; border-radius: 22px; background: var(--v3-surface, #fff); }
.chat-app .chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.chat-app .chat-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-app .chat-who .v3-doc-photo { width: 48px; height: 48px; }
.chat-app .chat-who h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.chat-app .chat-who p { margin: 2px 0 0; font-size: 0.85rem; color: var(--v3-muted, #5f574f); }
.chat-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f8a5b; }
.chat-status.away { color: #8a5a00; }
.chat-status.away::before { background: #d39a2a; }
.chat-icon-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3eee8; color: var(--brand); cursor: pointer; }
.chat-icon-btn:hover:not(:disabled) { background: #ebe3d9; }
.chat-icon-btn:disabled { opacity: 0.45; cursor: default; }
.chat-icon-btn.spinning svg { animation: chat-spin 0.9s linear infinite; }
@keyframes chat-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chat-icon-btn.spinning svg { animation: none; } }
.chat-app .chat-context { margin: 0 16px; padding: 0 0 12px; font-size: 0.85rem; color: var(--v3-muted, #5f574f); border-bottom: 1px solid var(--v3-line, #e7e0d7); }
.chat-app .chat-away { margin: 12px 16px 0; padding: 8px 12px; border-radius: 12px; background: #fbf3e2; color: #6e4800; font-size: 0.85rem; line-height: 1.45; }
.chat-app .doctor-thread-controls { padding: 10px 16px; border: 0; }
.patient-mode .chat-app .message-list, .chat-app.doctor-live .message-list { max-height: none; min-height: 0; overflow: visible; padding: 16px; gap: 14px; }
.chat-app .message { max-width: 88%; }
.chat-app .message-name { font-size: 0.78rem; font-weight: 650; margin-bottom: 4px; color: var(--v3-muted, #5f574f); }
.chat-app .message-date { font-size: 0.75rem; margin-top: 4px; }
.chat-app .bubble { font-size: 0.97rem; line-height: 1.55; padding: 12px 14px; }
.chat-app .bubble-clamped { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.chat-app .bubble-more { margin-top: 6px; padding: 8px 0; min-height: 40px; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.chat-app .doctor-attachment-list { margin-top: 6px; display: grid; gap: 6px; }
.attach-chip { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 280px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--v3-line, #e7e0d7); border-radius: 14px; background: #fff; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.attach-chip:hover { border-color: var(--brand); }
.attach-chip-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f3eee8; color: var(--brand); }
.attach-chip-text { display: grid; min-width: 0; }
.attach-chip-text strong { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip-text span { font-size: 0.75rem; color: var(--v3-muted, #5f574f); }
.message.patient .attach-chip { margin-left: auto; }
.chat-app .chat-compose { position: sticky; bottom: 0; z-index: 5; padding: 10px 12px; border-top: 1px solid var(--v3-line, #e7e0d7); background: var(--v3-surface, #fff); border-radius: 0 0 22px 22px; }
.chat-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.patient-mode .chat-app .chat-compose textarea, .chat-app .chat-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 11px 14px; border: 1px solid var(--v3-line, #e7e0d7); border-radius: 22px; background: #faf7f3; font: inherit; font-size: 1rem; line-height: 1.35; resize: none; field-sizing: content; }
.chat-app .chat-compose textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }
.chat-send { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; }
.chat-send:disabled { background: #d9cfc4; cursor: default; }
.chat-app .queued-doctor-files { margin: 0 0 8px; }
.chat-app .doctor-message-status:empty, .chat-app #doctor-file-error:empty { display: none; }
.chat-support { margin: 12px 4px 0; font-size: 0.9rem; color: var(--v3-muted, #5f574f); }
.chat-support .text-button { padding: 0 4px; min-height: 40px; font-weight: 700; }
.message-layout:has(.chat-app) { grid-template-columns: minmax(0, 760px); }
@media (max-width: 900px) {
  .chat-app .chat-compose { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .patient-mode .message-layout:has(.chat-app) > .card:last-child { display: block; }
}

/* Home hero: readable status line and a real primary button when it's the only action. */
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero .v3-live { color: inherit; opacity: 0.9; margin-top: -4px; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero .v3-live-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero .v3-live.stale .v3-live-dot { background: rgba(255, 255, 255, 0.6); box-shadow: none; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-progress .v3-hero-actions .btn-secondary:only-child { background: #fff; color: #6e3726; }
.patient-mode[data-portal-theme="fortifyhp"] .v3-hero-needs .v3-hero-actions .btn-secondary:only-child { background: #f4f1ec; color: #141312; }
.v3-onetime { display: flex; align-items: center; gap: 8px; color: var(--v3-muted, #5f574f); font-size: 0.92rem; }
.v3-onetime svg { color: #2f8a5b; flex: none; }
.chat-app .chat-bio { margin: 4px 16px 0; }
.chat-app .chat-bio summary { min-height: 40px; font-size: 0.9rem; }
.v3-feature-photo { background: none !important; padding: 0 !important; }
.v3-feature-photo .v3-doc-photo { width: 40px; height: 40px; }
.patient-mode[data-portal-theme="fortifyhp"] .chat-app .chat-compose textarea, .patient-mode .chat-app.doctor-chat .chat-compose textarea { min-height: 44px; border-radius: 22px; background: #faf7f3; }

/* Account: every row looks like a row. */
.patient-account .account-password.treatment-panel { border-top: 0; margin: 0; padding-top: 0; }
.patient-account .account-password.treatment-panel > summary { color: inherit; }
.patient-account .account-password .small-note { margin: 4px 0 0; }
.patient-account .account-section > .btn-secondary { justify-self: stretch; min-height: 52px; justify-content: flex-start; padding-inline: 18px; border: 0; border-radius: 16px; background: var(--v3-surface, #fff); color: inherit; font-weight: 650; }
.patient-account .account-signout { justify-self: stretch; min-height: 52px; border-radius: 16px; background: var(--v3-surface, #fff); color: #a3362a; font-weight: 700; }

/* Next plan: one-time / subscription switch above the plan lengths. */
.billing-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 16px; background: #f1ebe4; }
.billing-option { display: grid; gap: 2px; min-height: 56px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.billing-option strong { font-size: 0.95rem; }
.billing-option small { font-size: 0.75rem; color: var(--v3-muted, #5f574f); }
.billing-option.selected { background: #fff; box-shadow: 0 1px 3px rgba(40, 25, 15, 0.12); }
.billing-option.selected strong { color: var(--brand); }
.doctor-attachment-preview video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }

/* Talk to my doctor, v2: Messenger/WhatsApp feel. */
.chat-app { display: flex; flex-direction: column; overflow: visible; }
.chat-app .chat-head { position: sticky; top: 0; z-index: 6; background: var(--v3-surface, #fff); border-radius: 22px 22px 0 0; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--v3-line, #e7e0d7); }
.chat-avatar { position: relative; flex: none; display: inline-flex; }
.chat-avatar .v3-doc-photo { width: 44px; height: 44px; }
.chat-avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #2f8a5b; }
.chat-avatar.away::after { background: #d39a2a; }
.chat-app .chat-who p { margin: 1px 0 0; font-size: 0.8rem; line-height: 1.3; }
.chat-app .chat-who .chat-context { margin: 0; padding: 0; border: 0; font-size: 0.78rem; color: var(--v3-muted, #5f574f); }
.chat-status::before { display: none; }
.chat-app .chat-bio { margin: 0; padding: 0 14px; border-bottom: 1px solid var(--v3-line, #e7e0d7); }
.chat-wall { background: #efe6db; padding: 10px 8px 12px; min-height: 52vh; }
.chat-app .chat-system { margin: 4px auto 8px; max-width: 320px; padding: 6px 12px; border-radius: 10px; background: #fdf3d8; color: #5c4a1c; font-size: 0.78rem; line-height: 1.4; text-align: center; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.patient-mode .chat-app .message-list, .chat-app.doctor-live .message-list { padding: 0; gap: 2px; }
.chat-day { display: flex; justify-content: center; margin: 10px 0 6px; }
.chat-day span { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.85); color: #5f574f; font-size: 0.75rem; font-weight: 650; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.chat-app .message { max-width: 82%; margin: 0 6px; }
.chat-app .message.first { margin-top: 8px; }
.patient-mode .chat-app .bubble, .patient-mode[data-portal-theme="fortifyhp"] .chat-app .bubble { position: relative; display: block; padding: 7px 10px 8px; border-radius: 12px; background: #fff; color: #1f1b17; border: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); font-size: 0.95rem; line-height: 1.45; white-space: normal; }
.patient-mode .chat-app .message.patient .bubble, .patient-mode[data-portal-theme="fortifyhp"] .chat-app .message.patient .bubble { background: #f9dccd; color: #2b1a12; }
.patient-mode[data-portal-theme="fortifyhp"] .chat-app .message.patient .bubble a { color: #7a3420; }
.chat-app .message.doctor.first .bubble { border-top-left-radius: 2px; }
.chat-app .message.patient.first .bubble { border-top-right-radius: 2px; }
.chat-app .message.doctor.first .bubble::before, .chat-app .message.patient.first .bubble::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; }
.chat-app .message.doctor.first .bubble::before { left: -7px; background: linear-gradient(225deg, #fff 50%, transparent 50%); }
.chat-app .message.patient.first .bubble::before { right: -7px; background: linear-gradient(135deg, #f9dccd 50%, transparent 50%); }
.chat-app .bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-app .msg-time { display: block; margin: 2px 0 -2px 12px; text-align: right; font-size: 0.68rem; color: #8a7f74; line-height: 1.2; }
.chat-app .bubble-clamped { max-height: 16em; }
.chat-app .bubble-more { display: block; margin: 2px 0 4px 4px; min-height: 36px; }
.chat-app .message.patient .bubble-more { margin-left: auto; }
.chat-app .bubble .doctor-attachment-list { margin: 4px 0 0; }
.chat-app .bubble .attach-chip { max-width: 100%; border: 0; background: rgba(0, 0, 0, 0.04); }
.chat-app .chat-compose { background: #efe6db; border-top: 0; padding: 6px 8px 8px; border-radius: 0 0 22px 22px; }
.chat-app .chat-compose-row { align-items: flex-end; gap: 6px; }
.chat-pill { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; padding: 2px 4px 2px 2px; border-radius: 24px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.chat-pill .chat-attach { width: 42px; height: 42px; background: transparent; color: #7d7368; }
.patient-mode[data-portal-theme="fortifyhp"] .chat-app .chat-compose textarea, .patient-mode .chat-app.doctor-chat .chat-compose textarea, .chat-pill textarea { flex: 1; min-height: 42px; padding: 10px 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; }
.chat-pill:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.chat-app .chat-send { width: 46px; height: 46px; }
@media (max-width: 900px) {
  .main:has(.chat-app) .page-head { display: none; }
  .chat-app { border-radius: 18px; }
  .chat-app .chat-head { top: 0; border-radius: 18px 18px 0 0; }
  .chat-wall { min-height: calc(100vh - 260px); }
}

/* Notifications: a feed like a phone's notification centre. */
.notification-tools { display: flex; justify-content: flex-end; margin: -6px 0 6px; }
.notification-list { padding: 4px 0; overflow: hidden; }
.notification-feed { list-style: none; margin: 0; padding: 0; }
.notification-feed li + li { border-top: 1px solid var(--v3-line, #e7e0d7); }
.notification-feed .notification-item, .patient-mode[data-portal-theme="fortifyhp"] .notification-feed .notification-item, .patient-mode[data-portal-theme="fortifyhp"] .notification-feed .notification-item.unread { display: block; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.notification-feed .notification-item::before { display: none !important; }
.nf-open { position: relative; display: flex; gap: 12px; width: 100%; padding: 14px 36px 14px 16px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nf-open:hover { background: #faf6f1; }
.notification-feed .notification-item.unread .nf-open { background: #fdf6f1; }
.nf-symbol { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f3eee8; color: var(--brand); }
.kind-doctor_message .nf-symbol { background: #e7f0ff; color: #2756a8; }
.kind-approved .nf-symbol, .kind-delivered .nf-symbol { background: #e6f3ea; color: #2f7a4f; }
.kind-action_needed .nf-symbol, .kind-intake_needed .nf-symbol, .kind-check_in_needed .nf-symbol { background: #fdf0dc; color: #9a5b00; }
.kind-order_closed .nf-symbol { background: #eeeae6; color: #6d645b; }
.nf-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.nf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nf-heading strong { font-size: 0.98rem; line-height: 1.3; }
.nf-heading time { flex: none; font-size: 0.75rem; color: var(--v3-muted, #5f574f); }
.nf-body { font-size: 0.9rem; line-height: 1.45; color: var(--v3-muted, #5f574f); overflow-wrap: anywhere; }
.nf-cta { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 0.85rem; font-weight: 700; color: var(--brand); }
.nf-dot { position: absolute; right: 16px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.notification-feed .notification-item { position: relative; }
.notification-feed .notification-item.unread .nf-open { padding-bottom: 40px; }
.nf-mark { position: absolute; left: 68px; bottom: 8px; min-height: 32px; padding: 0; font-size: 0.82rem; color: var(--v3-muted, #5f574f); }
.notification-feed .notification-item.unread .nf-open { padding-bottom: 14px; }
.nf-mark { left: auto; right: 14px; bottom: 10px; }

/* Notifications, slim. */
.notification-list { padding: 0; }
.nf-open { align-items: center; gap: 12px; padding: 12px 14px; }
.notification-feed .notification-item.unread .nf-open, .notification-feed .notification-item .nf-open { padding: 12px 14px; }
.nf-symbol { width: 34px; height: 34px; border-radius: 10px; }
.nf-copy { gap: 1px; }
.nf-heading strong { font-size: 0.92rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-heading time { font-size: 0.72rem; }
.nf-body { font-size: 0.84rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-go { flex: none; color: #b3a89c; }
.notification-feed .notification-item.fresh .nf-open { background: #fdf6f1; }
.notification-feed .notification-item.fresh .nf-heading strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 2px 0; border-radius: 50%; background: var(--brand); vertical-align: middle; }
