/* Patient workspace only. Does not restyle the professional or student areas. */
.rpb-patient-workspace {
    --rpbd-ink: #153747;
    --rpbd-muted: #516b77;
    --rpbd-teal: #087e7b;
    --rpbd-teal-dark: #056460;
    --rpbd-mint: #edf8f5;
    --rpbd-line: #d7e7e5;
    --rpbd-gold: #f2c94c;
    --rpbd-ivory: #fffbef;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    color: var(--rpbd-ink);
    font-size: 16px;
    line-height: 1.6;
    isolation: isolate;
}
.rpb-patient-workspace *,
.rpb-patient-workspace *::before,
.rpb-patient-workspace *::after { box-sizing: border-box; }
.rpb-patient-workspace a { color: var(--rpbd-teal-dark); text-decoration: none; }
.rpb-patient-workspace a:hover { text-decoration: none; }
.rpb-patient-workspace a:focus-visible,
.rpb-patient-workspace button:focus-visible,
.rpb-patient-workspace input:focus-visible,
.rpb-patient-workspace textarea:focus-visible,
.rpb-patient-workspace select:focus-visible,
.rpb-patient-workspace summary:focus-visible {
    outline: 3px solid #067c84;
    outline-offset: 4px;
    box-shadow: 0 0 0 7px #fff;
}
.rpb-patient-workspace h2,
.rpb-patient-workspace h3,
.rpb-patient-workspace h4,
.rpb-patient-workspace p { margin-top: 0; overflow-wrap: anywhere; }
.rpb-patient-workspace h2,
.rpb-patient-workspace h3,
.rpb-patient-workspace h4 { color: var(--rpbd-ink); line-height: 1.3; }
.rpb-patient-workspace .rpb-patient-icon { display: block; flex: 0 0 auto; width: 22px; height: 22px; }
.rpb-patient-workspace .rpb-patient-skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rpb-patient-workspace .rpb-patient-skip:focus { position: relative; z-index: 10; display: block; width: auto; height: auto; padding: 12px; clip-path: none; background: #fff; }
.rpb-patient-workspace .rpb-patient-preview { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid #e8cd81; border-radius: 14px; background: var(--rpbd-ivory); color: #664b12; }
.rpb-patient-workspace .rpb-patient-preview span { min-width: 0; }
.rpb-patient-workspace .rpb-patient-preview strong { display: block; font-size: .87rem; }
.rpb-patient-workspace .rpb-patient-preview small { display: block; margin-top: 3px; font-size: .79rem; }
.rpb-patient-workspace .rpb-patient-layout { display: grid; grid-template-columns: 234px minmax(0, 1fr); align-items: start; gap: clamp(20px, 3vw, 38px); }
.rpb-patient-workspace .rpb-patient-sidebar { position: sticky; top: 105px; min-width: 0; padding: 17px 12px 10px; border: 1px solid var(--rpbd-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 36px rgb(21 55 71 / 4%); }
.rpb-patient-workspace .rpb-patient-sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 9px 9px 23px; }
.rpb-patient-workspace .rpb-patient-sidebar__mark { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 14px; background: #dff2ec; color: var(--rpbd-teal); }
.rpb-patient-workspace .rpb-patient-sidebar__brand strong { display: block; font-size: 1.05rem; font-weight: 800; }
.rpb-patient-workspace .rpb-patient-eyebrow { display: block; color: var(--rpbd-teal-dark); font-size: .68rem; font-weight: 800; letter-spacing: .11em; line-height: 1.45; text-transform: uppercase; }
.rpb-patient-workspace .rpb-patient-nav { display: grid; gap: 6px; }
.rpb-patient-workspace .rpb-patient-nav__link { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 11px 12px; border: 1px solid transparent; border-radius: 14px; color: var(--rpbd-ink); font-size: .87rem; font-weight: 700; line-height: 1.35; transition: background-color .18s, border-color .18s; }
.rpb-patient-workspace .rpb-patient-nav__link > span:not(.rpb-patient-nav__icon):not(.rpb-patient-nav__count) { min-width: 0; overflow-wrap: anywhere; }
.rpb-patient-workspace .rpb-patient-nav__link:hover { background: #f4f9f7; border-color: var(--rpbd-line); }
.rpb-patient-workspace .rpb-patient-nav__link.is-current { border-color: #9ed1c9; background: var(--rpbd-mint); color: var(--rpbd-teal-dark); }
.rpb-patient-workspace .rpb-patient-nav__icon { color: var(--rpbd-teal); }
.rpb-patient-workspace .rpb-patient-nav__icon .rpb-patient-icon { width: 20px; height: 20px; }
.rpb-patient-workspace .rpb-patient-nav__count { display: grid; place-items: center; flex: 0 0 auto; min-width: 24px; height: 24px; margin-left: auto; padding: 0 5px; border-radius: 8px; background: var(--rpbd-teal-dark); color: #fff; font-size: .65rem; }
.rpb-patient-workspace .rpb-patient-nav__link--privacy { margin-top: 10px; color: var(--rpbd-muted); font-size: .8rem; }
.rpb-patient-workspace .rpb-patient-sidebar__footer { margin: 20px 8px 0; padding: 17px 4px 0; border-top: 1px solid var(--rpbd-line); }
.rpb-patient-workspace .rpb-patient-sidebar__footer p { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; color: var(--rpbd-muted); font-size: .72rem; line-height: 1.55; }
.rpb-patient-workspace .rpb-patient-sidebar__footer p .rpb-patient-icon { width: 15px; height: 15px; margin-top: 3px; }
.rpb-patient-workspace .rpb-patient-logout { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--rpbd-muted); font-size: .78rem; font-weight: 700; }
.rpb-patient-workspace .rpb-patient-logout .rpb-patient-icon { width: 17px; height: 17px; }
.rpb-patient-workspace .rpb-patient-main { min-width: 0; scroll-margin-top: 110px; }
.rpb-patient-workspace .rpb-patient-main:focus { outline: none; }
.rpb-patient-workspace .rpb-patient-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 5px 0 25px; }
.rpb-patient-workspace .rpb-patient-heading > div { min-width: 0; max-width: 620px; }
.rpb-patient-workspace .rpb-patient-heading h2 { margin: 8px 0 10px; font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -.025em; }
.rpb-patient-workspace .rpb-patient-heading p { margin: 0; max-width: 610px; color: var(--rpbd-muted); font-size: .93rem; line-height: 1.7; }
.rpb-patient-workspace .rpb-patient-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; max-width: 100%; padding: 11px 17px; border: 1px solid var(--rpbd-teal); border-radius: 12px; background: var(--rpbd-teal); color: #fff; font: inherit; font-size: .84rem; font-weight: 800; line-height: 1.4; text-align: center; cursor: pointer; }
.rpb-patient-workspace .rpb-patient-button:hover { border-color: var(--rpbd-teal-dark); background: var(--rpbd-teal-dark); color: #fff; }
.rpb-patient-workspace .rpb-patient-button--outline { border-color: #bad5d0; background: #fff; color: var(--rpbd-teal-dark); }
.rpb-patient-workspace .rpb-patient-button--outline:hover { border-color: var(--rpbd-teal); background: var(--rpbd-mint); color: var(--rpbd-teal-dark); }
.rpb-patient-workspace .rpb-patient-button .rpb-patient-icon { width: 18px; height: 18px; }
.rpb-patient-workspace .rpb-patient-heading__search { flex-shrink: 0; margin-top: 6px; }
.rpb-patient-workspace .rpb-patient-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 28px; }
.rpb-patient-workspace .rpb-patient-stat { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 20px 16px; border: 1px solid var(--rpbd-line); border-radius: 18px; background: #fff; color: var(--rpbd-ink); transition: border-color .18s, background-color .18s; }
.rpb-patient-workspace .rpb-patient-stat:hover { border-color: #8fc6bd; background: #fcfefd; }
.rpb-patient-workspace .rpb-patient-stat__icon { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 11px; background: var(--rpbd-mint); color: var(--rpbd-teal); }
.rpb-patient-workspace .rpb-patient-stat__icon .rpb-patient-icon { width: 19px; height: 19px; }
.rpb-patient-workspace .rpb-patient-stat__copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.rpb-patient-workspace .rpb-patient-stat__number { color: var(--rpbd-ink); font-size: 1.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rpb-patient-workspace .rpb-patient-stat__label { margin-top: 8px; font-size: .78rem; font-weight: 800; overflow-wrap: anywhere; }
.rpb-patient-workspace .rpb-patient-stat small { margin-top: 2px; color: var(--rpbd-muted); font-size: .69rem; line-height: 1.5; }
.rpb-patient-workspace .rpb-patient-stat > .rpb-patient-icon { width: 15px; height: 15px; margin-top: 9px; color: #65838b; }
.rpb-patient-workspace .rpb-patient-section-title { margin: 0 0 14px; font-family: inherit; font-size: 1.05rem; font-weight: 800; }
.rpb-patient-workspace .rpb-patient-shortcuts { margin-bottom: 28px; }
.rpb-patient-workspace .rpb-patient-shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.rpb-patient-workspace .rpb-patient-shortcut { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; min-width: 0; padding: 21px 18px; border: 1px solid #c0ddd5; border-radius: 18px; background: #f1faf6; color: var(--rpbd-ink); transition: border-color .18s, background-color .18s; }
.rpb-patient-workspace .rpb-patient-shortcut:hover { border-color: var(--rpbd-teal); background: #e7f5ef; }
.rpb-patient-workspace .rpb-patient-icon-disc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #d9eee7; color: var(--rpbd-teal-dark); }
.rpb-patient-workspace .rpb-patient-shortcut__copy { display: block; }
.rpb-patient-workspace .rpb-patient-shortcut__copy strong { display: block; margin-bottom: 6px; color: var(--rpbd-ink); font-size: .94rem; font-weight: 800; line-height: 1.4; }
.rpb-patient-workspace .rpb-patient-shortcut__copy > span { display: block; color: var(--rpbd-muted); font-size: .76rem; line-height: 1.65; }
.rpb-patient-workspace .rpb-patient-shortcut__arrow { position: absolute; top: 29px; right: 17px; color: var(--rpbd-teal-dark); }
.rpb-patient-workspace .rpb-patient-shortcut__arrow .rpb-patient-icon { width: 18px; height: 18px; }
.rpb-patient-workspace .rpb-patient-shortcut--gold { border-color: #ecd59a; background: var(--rpbd-ivory); }
.rpb-patient-workspace .rpb-patient-shortcut--gold:hover { border-color: #c39127; background: #fff5d8; }
.rpb-patient-workspace .rpb-patient-shortcut--gold .rpb-patient-icon-disc { background: #f6e1a2; color: #74500b; }
.rpb-patient-workspace .rpb-patient-shortcut--gold .rpb-patient-shortcut__arrow { color: #74500b; }
.rpb-patient-workspace .rpb-patient-shortcut--navy { border-color: #d4e1e8; background: #f1f6f9; }
.rpb-patient-workspace .rpb-patient-shortcut--navy:hover { border-color: #8aaab9; background: #e7f0f5; }
.rpb-patient-workspace .rpb-patient-shortcut--navy .rpb-patient-icon-disc { background: #dbe8ef; color: #214c63; }
.rpb-patient-workspace .rpb-patient-content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.rpb-patient-workspace .rpb-patient-side-panels,
.rpb-patient-workspace .rpb-patient-updates { display: grid; min-width: 0; gap: 18px; }
.rpb-patient-workspace .rpb-patient-panel { min-width: 0; padding: 24px; border: 1px solid var(--rpbd-line); border-radius: 20px; background: #fff; }
.rpb-patient-workspace .rpb-patient-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.rpb-patient-workspace .rpb-patient-panel__head h3 { margin: 6px 0 0; font-family: inherit; font-size: 1.15rem; font-weight: 800; }
.rpb-patient-workspace .rpb-patient-panel__head > .rpb-patient-icon { margin-top: 5px; color: var(--rpbd-teal); }
.rpb-patient-workspace .rpb-patient-panel > p { color: var(--rpbd-muted); font-size: .89rem; }
.rpb-patient-workspace .rpb-patient-empty { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 16px 0 5px; }
.rpb-patient-workspace .rpb-patient-empty__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 17px; border: 1px solid #e0ece8; border-radius: 15px; background: #f6faf8; color: #477c73; }
.rpb-patient-workspace .rpb-patient-empty > strong { color: var(--rpbd-ink); font-size: .98rem; font-weight: 800; line-height: 1.45; }
.rpb-patient-workspace .rpb-patient-empty p { margin: 8px 0 12px; color: var(--rpbd-muted); font-size: .82rem; line-height: 1.75; }
.rpb-patient-workspace .rpb-patient-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; color: var(--rpbd-teal-dark); font-size: .79rem; font-weight: 800; line-height: 1.5; }
.rpb-patient-workspace .rpb-patient-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rpb-patient-workspace .rpb-patient-text-link .rpb-patient-icon { width: 17px; height: 17px; }
.rpb-patient-workspace .rpb-patient-question-invite { min-width: 0; padding: 22px; border: 1px solid #dddbc9; border-radius: 20px; background: linear-gradient(130deg, #fcfbf5, #f3f8f1); }
.rpb-patient-workspace .rpb-patient-question-invite .rpb-patient-icon-disc { width: 34px; height: 34px; background: #e4ecdc; }
.rpb-patient-workspace .rpb-patient-question-invite h3 { margin: 15px 0 9px; font-family: inherit; font-size: 1rem; font-weight: 800; line-height: 1.5; }
.rpb-patient-workspace .rpb-patient-question-invite p { margin-bottom: 7px; color: var(--rpbd-muted); font-size: .79rem; }
.rpb-patient-workspace .rpb-patient-panel--professionals { margin-top: 18px; }
.rpb-patient-workspace .rpb-patient-tab-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.rpb-patient-workspace .rpb-patient-tab-tools p { margin: 0; color: var(--rpbd-muted); font-size: .85rem; }
.rpb-patient-workspace .rpb-patient-tab-tools p strong { color: var(--rpbd-teal-dark); }
.rpb-patient-workspace .rpb-patient-tab-tools p > span { margin: 0 7px; }
.rpb-patient-workspace .rpb-patient-selected { margin-bottom: 20px; }
.rpb-patient-workspace .rpb-patient-public-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 16px 19px; border: 1px solid #e6d9ac; border-radius: 15px; background: var(--rpbd-ivory); color: #675322; }
.rpb-patient-workspace .rpb-patient-public-note p { margin: 0; font-size: .82rem; line-height: 1.7; }
.rpb-patient-workspace .rpb-patient-public-note strong { color: #594416; }
.rpb-patient-workspace .rpb-patient-safety { display: flex; align-items: flex-start; gap: 10px; margin-top: 28px; padding: 16px 0 4px; border-top: 1px solid var(--rpbd-line); color: var(--rpbd-muted); }
.rpb-patient-workspace .rpb-patient-safety .rpb-patient-icon { width: 19px; height: 19px; margin-top: 2px; color: var(--rpbd-teal); }
.rpb-patient-workspace .rpb-patient-safety p { max-width: 900px; margin: 0; font-size: .73rem; line-height: 1.75; }
.rpb-patient-workspace .rpb-patient-safety strong { color: var(--rpbd-ink); }

/* Keep existing, permission-checked module fragments visually compact. */
.rpb-patient-workspace .rpb-network-section { margin-top: 0; }
.rpb-patient-workspace .rpb-network-section__head { gap: 14px; margin-bottom: 18px; }
.rpb-patient-workspace .rpb-network-section__head h3 { margin: 5px 0 0; font-family: inherit; font-size: 1.15rem; font-weight: 800; }
.rpb-patient-workspace .rpb-network-section__head p { color: var(--rpbd-muted); font-size: .83rem; }
.rpb-patient-workspace .rpb-network-kicker { margin-bottom: 6px; color: var(--rpbd-teal-dark); font-size: .66rem; }
.rpb-patient-workspace .rpb-network-notifications { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.rpb-patient-workspace .rpb-network-notifications a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--rpbd-ink); font-size: .81rem; line-height: 1.6; overflow-wrap: anywhere; }
.rpb-patient-workspace .rpb-network-notifications li { align-items: flex-start; min-height: 54px; padding: 11px 0; }
.rpb-patient-workspace .rpb-network-notifications li > div { min-width: 0; }
.rpb-patient-workspace .rpb-network-notifications small { color: var(--rpbd-muted); font-size: .68rem; }
.rpb-patient-workspace .rpb-network-feed { grid-template-columns: 1fr; gap: 0; }
.rpb-patient-workspace .rpb-network-feed article { min-width: 0; padding: 19px 0; border: 0; border-bottom: 1px solid var(--rpbd-line); border-radius: 0; }
.rpb-patient-workspace .rpb-network-feed article:first-child { padding-top: 0; }
.rpb-patient-workspace .rpb-network-feed article:last-child { padding-bottom: 0; border-bottom: 0; }
.rpb-patient-workspace .rpb-network-feed article > span { color: var(--rpbd-teal-dark); font-size: .68rem; line-height: 1.7; text-transform: none; }
.rpb-patient-workspace .rpb-network-feed h4 { margin: 8px 0; font-family: inherit; font-size: 1.02rem; font-weight: 800; line-height: 1.45; }
.rpb-patient-workspace .rpb-network-feed h4 a { color: var(--rpbd-ink); }
.rpb-patient-workspace .rpb-network-feed p { margin: 8px 0; color: var(--rpbd-muted); font-size: .83rem; line-height: 1.75; }
.rpb-patient-workspace .rpb-network-feed article > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; }
.rpb-patient-workspace .rpb-patient-readings { min-width: 0; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--rpbd-line); }
.rpb-patient-workspace .rpb-patient-readings > h4 { margin: 0 0 8px; font-family: inherit; font-size: 1.1rem; font-weight: 800; }
.rpb-patient-workspace .rpb-patient-readings > p { margin-bottom: 17px; color: var(--rpbd-muted); font-size: .82rem; }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; margin: 0; }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content > article { min-width: 0; height: auto; margin: 0; padding: 20px; border: 1px solid var(--rpbd-line); border-radius: 16px; background: #f8fbf9; box-shadow: none; }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content > article > span { color: var(--rpbd-teal-dark); font-size: .7rem; font-weight: 800; line-height: 1.6; }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content > article h3 { margin: 8px 0; font-family: inherit; font-size: 20px; font-weight: 800; line-height: 1.4; }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content > article h3 a { display: inline-block; min-height: 44px; color: var(--rpbd-ink); }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content > article p { margin: 8px 0; color: var(--rpbd-muted); font-size: .83rem; line-height: 1.75; }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content > article small { display: block; color: var(--rpbd-muted); font-size: .7rem; line-height: 1.7; }
.rpb-patient-workspace .rpb-feature-grid.rpb-external-content > article > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rpbd-teal-dark); font-size: .8rem; font-weight: 800; }
.rpb-patient-workspace .rpb-network-empty { padding: 23px 18px; border-color: #d2e2dc; background: #f7faf8; text-align: left; }
.rpb-patient-workspace .rpb-network-empty strong { font-size: .95rem; }
.rpb-patient-workspace .rpb-network-empty p { color: var(--rpbd-muted); font-size: .83rem; }
.rpb-patient-workspace .rpb-network-connection { padding: 22px; border-radius: 18px; }
.rpb-patient-workspace .rpb-network-connection__identity > div { min-width: 0; }
.rpb-patient-workspace .rpb-network-connection h4 { font-family: inherit; font-size: 1.03rem; line-height: 1.45; }
.rpb-patient-workspace .rpb-network-connection small { color: var(--rpbd-muted); font-size: .75rem; }
.rpb-patient-workspace .rpb-network-connection .rpb-network-status { color: var(--rpbd-teal-dark); }
.rpb-patient-workspace .rpb-network-selected,
.rpb-patient-workspace .rpb-network-account { margin: 0; padding: 24px; border-radius: 20px; box-shadow: none; }
.rpb-patient-workspace .rpb-network-selected h3,
.rpb-patient-workspace .rpb-network-account h3 { font-family: inherit; font-size: 1.15rem; font-weight: 800; }
.rpb-patient-workspace .rpb-network-selected p,
.rpb-patient-workspace .rpb-network-account p { color: var(--rpbd-muted); font-size: .86rem; }
.rpb-patient-workspace .rpb-network-messages summary { min-height: 44px; padding: 8px 0; font-size: .87rem; }
.rpb-patient-workspace .rpb-network-bubble { min-width: 0; max-width: min(90%, 620px); }
.rpb-patient-workspace .rpb-network-bubble p { white-space: normal; overflow-wrap: anywhere; }
.rpb-patient-workspace .rpb-network-end button { min-height: 44px; padding: 8px 0; color: #854141; }
.rpb-patient-workspace .rpb-network-review-action { margin-top: 15px; font-size: .83rem; }
.rpb-patient-workspace .rpb-network-review-action > a { display: inline-flex; align-items: center; min-height: 44px; }
.rpb-patient-workspace .rpb-network-review-action small { display: block; }
.rpb-patient-workspace form { max-width: 100%; }
.rpb-patient-workspace label { max-width: 100%; color: var(--rpbd-ink); font-size: .88rem; line-height: 1.6; }
.rpb-patient-workspace input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.rpb-patient-workspace textarea,
.rpb-patient-workspace select { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #b7cfca; border-radius: 11px; background: #fff; color: var(--rpbd-ink); font: inherit; font-size: 16px; line-height: 1.55; }
.rpb-patient-workspace textarea { min-height: 128px; resize: vertical; }
.rpb-patient-workspace input[type="checkbox"],
.rpb-patient-workspace input[type="radio"] { width: 19px; height: 19px; min-height: 19px; accent-color: var(--rpbd-teal); }
.rpb-patient-workspace .rpb-button,
.rpb-patient-workspace button[type="submit"]:not(.rpb-network-end button) { min-height: 46px; max-width: 100%; padding: 11px 17px; border-radius: 12px; font-size: .85rem; line-height: 1.5; white-space: normal; }
.rpb-patient-workspace .rpb-network-thread { padding: 12px; }
.rpb-patient-workspace .rpb-network-message-form { padding: 16px; }
.rpb-patient-workspace img { max-width: 100%; height: auto; }
.rpb-patient-workspace .rpb-network-avatar img { height: 100%; }

@media (max-width: 1180px) {
    .rpb-patient-workspace .rpb-patient-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
    .rpb-patient-workspace .rpb-patient-heading { flex-direction: column; gap: 16px; }
    .rpb-patient-workspace .rpb-patient-heading__search { margin-top: 0; }
    .rpb-patient-workspace .rpb-patient-stat { flex-wrap: wrap; gap: 11px; padding: 18px 14px; }
    .rpb-patient-workspace .rpb-patient-stat__copy { flex: 1 0 100%; }
    .rpb-patient-workspace .rpb-patient-stat > .rpb-patient-icon { display: none; }
    .rpb-patient-workspace .rpb-patient-content-grid { grid-template-columns: minmax(0, 1fr); }
    .rpb-patient-workspace .rpb-patient-side-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .rpb-patient-workspace .rpb-patient-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .rpb-patient-workspace .rpb-patient-sidebar { position: static; padding: 13px; border-radius: 19px; }
    .rpb-patient-workspace .rpb-patient-sidebar__brand { padding: 3px 5px 14px; }
    .rpb-patient-workspace .rpb-patient-sidebar__mark { flex-basis: 36px; height: 36px; border-radius: 12px; }
    .rpb-patient-workspace .rpb-patient-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .rpb-patient-workspace .rpb-patient-nav__link { gap: 8px; padding: 10px; font-size: .79rem; }
    .rpb-patient-workspace .rpb-patient-nav__link--privacy { margin-top: 0; font-size: .77rem; }
    .rpb-patient-workspace .rpb-patient-sidebar__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 5px 0; padding-top: 8px; }
    .rpb-patient-workspace .rpb-patient-sidebar__footer p { align-items: center; margin: 0; }
    .rpb-patient-workspace .rpb-patient-logout { flex-shrink: 0; }
    .rpb-patient-workspace .rpb-patient-main { scroll-margin-top: 90px; }
    .rpb-patient-workspace .rpb-patient-heading { margin-top: 0; }
    .rpb-patient-workspace .rpb-patient-heading h2 { font-size: 2rem; }
}
@media (max-width: 570px) {
    .rpb-patient-workspace .rpb-patient-preview { padding: 13px; }
    .rpb-patient-workspace .rpb-patient-preview strong { font-size: .79rem; }
    .rpb-patient-workspace .rpb-patient-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rpb-patient-workspace .rpb-patient-nav__link { min-height: 56px; padding: 9px 7px; font-size: .77rem; }
    .rpb-patient-workspace .rpb-patient-nav__icon .rpb-patient-icon { width: 18px; height: 18px; }
    .rpb-patient-workspace .rpb-patient-nav__count { min-width: 20px; height: 20px; padding: 0 4px; font-size: .6rem; }
    .rpb-patient-workspace .rpb-patient-nav__link--privacy { grid-column: 1/-1; min-height: 44px; }
    .rpb-patient-workspace .rpb-patient-sidebar__footer { gap: 9px; }
    .rpb-patient-workspace .rpb-patient-sidebar__footer p { font-size: .67rem; }
    .rpb-patient-workspace .rpb-patient-heading h2 { font-size: 1.8rem; }
    .rpb-patient-workspace .rpb-patient-heading p { font-size: .86rem; }
    .rpb-patient-workspace .rpb-patient-heading__search { width: 100%; }
    .rpb-patient-workspace .rpb-patient-stats { gap: 8px; margin-bottom: 23px; }
    .rpb-patient-workspace .rpb-patient-stat { display: block; padding: 14px 10px; border-radius: 14px; }
    .rpb-patient-workspace .rpb-patient-stat__icon { display: none; }
    .rpb-patient-workspace .rpb-patient-stat__number { font-size: 1.55rem; }
    .rpb-patient-workspace .rpb-patient-stat__label { margin-top: 7px; font-size: .68rem; line-height: 1.45; }
    .rpb-patient-workspace .rpb-patient-stat small { display: none; }
    .rpb-patient-workspace .rpb-patient-shortcut-grid,
    .rpb-patient-workspace .rpb-patient-side-panels { grid-template-columns: minmax(0, 1fr); }
    .rpb-patient-workspace .rpb-patient-shortcut { display: grid; grid-template-columns: 40px minmax(0, 1fr) 17px; align-items: center; gap: 12px; padding: 17px 14px; }
    .rpb-patient-workspace .rpb-patient-shortcut__copy strong { font-size: .86rem; }
    .rpb-patient-workspace .rpb-patient-shortcut__copy > span { font-size: .73rem; }
    .rpb-patient-workspace .rpb-patient-shortcut__arrow { position: static; }
    .rpb-patient-workspace .rpb-patient-panel,
    .rpb-patient-workspace .rpb-patient-question-invite { padding: 20px 17px; border-radius: 17px; }
    .rpb-patient-workspace .rpb-patient-panel__head h3 { font-size: 1.05rem; }
    .rpb-patient-workspace .rpb-patient-tab-tools { align-items: stretch; flex-direction: column; }
    .rpb-patient-workspace .rpb-patient-tab-tools p { font-size: .8rem; }
    .rpb-patient-workspace .rpb-patient-public-note { padding: 15px 13px; gap: 9px; }
    .rpb-patient-workspace .rpb-patient-public-note p { font-size: .77rem; }
    .rpb-patient-workspace .rpb-patient-safety p { font-size: .69rem; }
    .rpb-patient-workspace .rpb-network-section__head { align-items: flex-start; flex-direction: column; }
    .rpb-patient-workspace .rpb-network-connection { padding: 18px 14px; }
    .rpb-patient-workspace .rpb-network-connection__identity { align-items: flex-start; gap: 11px; }
    .rpb-patient-workspace .rpb-network-avatar { flex-basis: 46px; width: 46px; height: 46px; border-radius: 13px; }
    .rpb-patient-workspace .rpb-network-connection h4 { font-size: .94rem; }
    .rpb-patient-workspace .rpb-network-message-form { padding: 12px; }
    .rpb-patient-workspace .rpb-network-account,
    .rpb-patient-workspace .rpb-network-selected { padding: 20px 17px; }
    .rpb-patient-workspace .rpb-network-actions .rpb-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .rpb-patient-workspace a { transition: none !important; }
}
