:root {
    --ink: #18332f;
    --muted: #506762;
    --line: #dfe9e6;
    --paper: #ffffff;
    --canvas: #f4f8f6;
    --brand: #176b60;
    --brand-dark: #104b44;
    --mint: #ddf1eb;
    --coral: #ee806c;
    --coral-soft: #fff0eb;
    --gold: #e8b35f;
    --blue: #6f99b1;
    --danger: #b4483b;
    --shadow-soft: 0 18px 55px rgba(24,51,47,.11);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(17px, .25vw + 16px, 18px);
    color: var(--ink);
    background: var(--canvas);
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #f2a47f;
    outline-offset: 3px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; }
h1:focus { outline: none; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.65; }
small { line-height: 1.45; }

.skip-link { position: fixed; z-index: 2000; top: 10px; left: 10px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { color: white; transform: translateY(0); }

.desktop-only { display: revert; }
.mobile-only { display: none !important; }
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 18px; background: #123f39; color: white; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 34px; font-size: .92rem; line-height: 1.15; }
.brand-logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.brand-logo.light { color: white; }
.brand-logo-mark { flex: 0 0 auto; width: 48px; height: 48px; overflow: visible; }
.brand-logo.compact .brand-logo-mark { width: 42px; height: 42px; }
.brand-logo-orbit { fill: none; stroke: #9ed3c4; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 9; }
.brand-logo-person.coral { fill: #f49a7f; }
.brand-logo-person.gold { fill: var(--gold); }
.brand-logo-person.blue { fill: #80a9c0; }
.brand-logo-home { fill: currentColor; }
.brand-logo.light .brand-logo-home { fill: white; }
.brand-logo-heart { fill: #f49a7f; }
.brand-logo-copy { display: grid; line-height: 1.08; }
.brand-logo-copy strong { font-size: 1rem; letter-spacing: -.025em; }
.brand-logo-copy span { margin-top: 3px; color: #5f7b75; font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.brand-logo.light .brand-logo-copy span { color: #abd0c9; }
.primary-nav { display: grid; gap: 6px; }
.sidebar-primary-action { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 14px; border-radius: 14px; background: #f49a7f; color: #173f39; box-shadow: 0 10px 28px rgba(8,35,31,.2); }
.sidebar-primary-action:hover { color: #173f39; background: #ffac91; }
.sidebar-primary-action > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.55); font-size: 1.25rem; font-weight: 900; }
.sidebar-primary-action strong, .sidebar-primary-action small { display: block; }
.sidebar-primary-action small { margin-top: 3px; color: #6f4339; font-size: .68rem; }
.primary-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; color: #cfe2de; border-radius: 10px; font-size: .92rem; }
.primary-nav a span { width: 22px; text-align: center; font-size: 1.08rem; }
.primary-nav a strong { font: inherit; }
.primary-nav a small { margin-left: auto; padding: 2px 7px; border-radius: 20px; background: var(--coral); color: white; }
.primary-nav a.active { background: rgba(255,255,255,.13); color: white; font-weight: 650; }
.sidebar-spacer { flex: 1; }
.sidebar-footer { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.045); color: #dcece9; }
.sidebar-privacy-summary { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.sidebar-privacy-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(158,211,196,.16); color: #bfe3d9; font-weight: 900; }
.sidebar-privacy-summary strong, .sidebar-privacy-summary small { display: block; }
.sidebar-privacy-summary strong { font-size: .78rem; }
.sidebar-privacy-summary small { margin-top: 3px; color: #9fc3bd; font-size: .68rem; line-height: 1.4; }
.sidebar-support-links { display: grid; gap: 3px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-support-links a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 7px 8px; border-radius: 9px; color: #cfe2de; font-size: .74rem; }
.sidebar-support-links a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-support-links a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.08); color: #f5b69f; font-size: .72rem; font-weight: 900; }
.sidebar-support-links a strong { font: inherit; font-weight: 750; }

main { min-width: 0; }
.authentication-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; padding: 24px; background: radial-gradient(circle at 15% 10%, #fff3e7 0, transparent 30%), radial-gradient(circle at 92% 92%, #dff3ed 0, transparent 32%), #f7faf9; }
.authentication-brand { display: flex; align-items: center; justify-content: space-between; width: min(1180px, 100%); margin: 0 auto; padding: 4px 4px 18px; }
.authentication-brand > span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.authentication-content { width: min(1080px, 100%); margin: auto; }
.authentication-shell .surface { width: min(520px, 100%); }
.topbar { position: sticky; top: 0; z-index: 18; min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.mobile-brand { display: none; }
.topbar-context { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.topbar-actions, .profile-chip { display: flex; align-items: center; gap: 12px; }
.topbar-actions { position: relative; flex: 0 0 auto; }
.person-switcher { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: .92rem; font-weight: 700; }
.person-switcher > span { white-space: nowrap; }
.person-switcher select { width: clamp(230px, 26vw, 340px); min-height: 46px; border: 1px solid #aebfbb; border-radius: 12px; background: white; color: var(--ink); padding: 9px 36px 9px 13px; font: inherit; font-size: .92rem; font-weight: 700; }
.topbar-help { padding: 8px 4px; color: var(--muted); font-size: .8rem; font-weight: 750; }
.icon-button { border: 0; background: transparent; color: var(--coral); }
.help-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid #aebfbb; border-radius: 12px; background: white; color: var(--brand); font-size: 1.1rem; font-weight: 900; cursor: pointer; }
.help-button:hover { border-color: #91bdb3; background: #eef8f5; }
.notification-control { position: relative; }
.notification-menu { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: min(300px, calc(100vw - 30px)); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 18px 45px rgba(24,51,47,.18); }
.notification-menu strong, .notification-menu a { display: block; }
.notification-menu p { margin: 6px 0 12px; font-size: .82rem; }
.notification-menu a { padding: 8px 0; font-size: .82rem; font-weight: 700; }
.profile-chip strong, .profile-chip small { display: block; }
.profile-chip strong { line-height: 1.05; }
.profile-chip small { color: var(--muted); font-size: .72rem; line-height: 1.1; margin-top: 1px; }
.profile-menu-button { height: 46px; padding: 3px 8px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.profile-menu-button:hover, .profile-menu-button[aria-expanded="true"] { background: #edf5f2; }
.profile-menu { position: absolute; z-index: 32; top: calc(100% + 14px); right: 0; display: grid; width: min(300px, calc(100vw - 28px)); padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 45px rgba(24,51,47,.18); }
.profile-menu > small { margin: 3px 0 12px; color: var(--muted); }
.profile-menu a { min-height: 44px; display: flex; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); font-weight: 700; }
.profile-menu button { margin-top: 10px; }
.sign-out-button { white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; color: white; font-size: .75rem; font-weight: 800; border: 3px solid white; }
.avatar.coral { background: #d36e5e; }
.avatar.navy { background: #386480; }
.avatar.green { background: #568e78; }
.avatar.more { background: #e4ece9; color: var(--ink); }

.content { max-width: 1240px; margin: 0 auto; padding: 38px 42px 72px; }
.hero, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.hero h1, .page-heading h1 { max-width: 800px; margin: 7px 0 12px; }
.hero p, .page-heading p { max-width: 760px; font-size: 1.02rem; }
.page-heading h1 { font-size: clamp(2.15rem, 3.3vw, 3.15rem); }
.eyebrow { color: var(--brand); font-size: .8rem; letter-spacing: .1em; font-weight: 850; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 14px; border-radius: 99px; font-size: .88rem; font-weight: 750; }
.status-good { background: var(--mint); color: #176b50; }
.status-review { background: #fff0db; color: #875c20; }
.pathway-badge { background: #e4eff6; color: #3f708d; }
.heading-badges { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #30a879; }
.status-review .status-dot { background: #c97816; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 24px; }
.metric-card { display: flex; align-items: center; gap: 15px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 26px rgba(24,51,47,.04); }
.metric-card strong, .metric-card span { display: block; }
.family-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.family-overview-hero { align-items: center; margin-bottom: 26px; }
.family-overview-hero > div:first-child { min-width: 0; }
.family-overview-hero h1 { max-width: 740px; font-size: clamp(2.35rem, 3vw, 3rem); }
.family-overview-hero p { max-width: 700px; margin-bottom: 0; }
.family-overview-header-tools { flex: 0 0 auto; }
.family-add-menu { position: relative; }
.family-add-menu summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 164px; list-style: none; white-space: nowrap; }
.family-add-menu summary::-webkit-details-marker { display: none; }
.family-add-menu[open] summary { background: var(--brand-dark); }
.family-add-options { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; display: grid; width: 310px; overflow: hidden; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 45px rgba(24,51,47,.16); }
.family-add-options a { display: grid; gap: 3px; padding: 13px 14px; border-radius: 10px; color: var(--ink); }
.family-add-options a:hover { background: #eef6f3; }
.family-add-options small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.family-summary-bar { display: flex; gap: 1px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.family-summary-bar div { flex: 1; padding: 15px 18px; background: white; }
.family-summary-bar strong, .family-summary-bar span { display: block; }
.family-summary-bar strong { font-size: 1.1rem; }
.family-summary-bar span { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.family-member-card { display: flex; flex-direction: column; gap: 14px; }
.family-member-card.needs-attention { border-color: #e5a58f; box-shadow: 0 12px 34px rgba(180,72,59,.11); }
.family-member-card.needs-attention::before { content: "Needs attention"; margin: -25px -25px 0; padding: 9px 25px; border-radius: 18px 18px 0 0; background: #fff0eb; color: #8c4438; font-size: .76rem; font-weight: 850; }
.family-member-card h2 { margin: 5px 0 0; }
.family-concern { padding: 12px 14px; border-radius: 10px; background: #fff2df; color: #7b4a0c; }
.family-member-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.family-member-metrics span { padding: 10px; border-radius: 9px; background: #f0f5f3; color: var(--muted); font-size: .78rem; }
.family-member-metrics strong { display: block; color: var(--ink); font-size: 1rem; }
.family-member-mobile-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.family-member-mobile-summary span { padding: 8px 10px; border-radius: 9px; background: #f0f5f3; color: var(--muted); font-size: .75rem; }
.family-member-mobile-summary strong { color: var(--ink); }
.family-member-actions { display: flex; gap: 10px; margin-top: auto; }
.metric-card strong { font-size: 1.3rem; letter-spacing: -.03em; }
.metric-card div span { color: var(--muted); font-size: .77rem; margin-top: 3px; }
.metric-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; font-weight: 800; }
.metric-icon.mint { background: #e0f3ea; color: #28785e; }
.metric-icon.blue { background: #e4eff6; color: #3f708d; }
.metric-icon.violet { background: #eee9f7; color: #66528b; }
.metric-icon.amber { background: #fff0dc; color: #b47a2e; }
.mobile-motion-card { margin-bottom: 24px; }
.mobile-motion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.mobile-motion-grid div { padding: 15px; border-radius: 12px; background: #f0f5f3; }
.mobile-motion-grid strong, .mobile-motion-grid span { display: block; }
.mobile-motion-grid strong { font-size: 1.25rem; }
.mobile-motion-grid span { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.mobile-motion-actions, .capture-mode-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.capture-mode-actions { margin-bottom: 18px; }
.capture-step-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -8px 0 24px; }
.capture-step-rail span { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; color: var(--muted); font-size: .76rem; font-weight: 750; }
.capture-step-rail strong { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e5eeeb; color: var(--muted); }
.capture-step-rail span.active { border-color: #85b9ad; background: #edf8f4; color: var(--ink); }
.capture-step-rail span.active strong, .capture-step-rail span.complete strong { background: var(--brand); color: white; }
.capture-section-intro { margin-bottom: 18px; }
.capture-section-intro h2 { margin: 6px 0 0; font-size: 1.35rem; }
.capture-method { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; min-width: 0; flex: 1; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.capture-method > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf5f2; color: var(--brand); }
.capture-method strong, .capture-method small { display: block; }
.capture-method small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.capture-method.active { border-color: #74a99d; background: #eef8f5; box-shadow: inset 0 0 0 1px #74a99d; }
.capture-upload-disclosure { margin-top: 13px; padding: 13px 14px; border-radius: 11px; background: #f5f8f7; }
.capture-upload-disclosure summary { color: var(--brand); font-size: .78rem; font-weight: 800; cursor: pointer; }
.capture-upload-disclosure input { margin-top: 12px; }
.capture-help-card ol { display: grid; gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: capture-help; }
.capture-help-card li { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; counter-increment: capture-help; }
.capture-help-card li::before { content: counter(capture-help); grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--mint); color: var(--brand); font-weight: 900; }
.capture-help-card li span { margin-top: 3px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.family-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.quick-action { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; min-height: 86px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 24px rgba(24,51,47,.04); }
.quick-action > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--mint); color: var(--brand); font-size: 1.2rem; font-weight: 900; }
.quick-action strong, .quick-action small { display: block; }
.quick-action small { margin-top: 4px; color: var(--muted); }
.quick-action.primary { border-color: #7db7a9; background: #eef9f5; }
.mobile-setup-callout { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 24px; padding: 17px; border: 1px solid #78afa2; border-radius: 16px; background: #eef9f5; color: var(--ink); box-shadow: 0 8px 24px rgba(24,51,47,.05); }
.mobile-setup-callout > span:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: white; font-weight: 900; }
.mobile-setup-callout strong, .mobile-setup-callout small { display: block; }
.mobile-setup-callout small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.mobile-setup-callout > span:last-child { color: var(--brand); font-size: 1.25rem; font-weight: 900; }
.mobile-care-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.friendly-empty { padding: 24px; border-radius: 14px; background: #f4f8f6; text-align: center; }
.friendly-empty p { margin: 6px 0 0; }

.web-home-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.web-home-header h1 { margin: 7px 0 10px; font-size: clamp(2.2rem, 3.4vw, 3.35rem); }
.web-home-header p { margin: 0; }
.web-next-action { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 14px; padding: 24px 26px; border: 1px solid #badbd2; border-radius: 20px; background: linear-gradient(135deg, #eff9f6, #fff); box-shadow: 0 12px 35px rgba(24,51,47,.06); }
.web-next-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--brand); color: white; font-size: 1.15rem; font-weight: 900; }
.web-next-action h2 { margin: 5px 0 5px; font-size: 1.35rem; }
.web-next-action p { margin: 0; font-size: .88rem; }
.web-next-action small { display: block; margin-top: 7px; color: var(--muted); }
.web-next-actions { display: flex; gap: 9px; }
.web-summary-strip { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)) minmax(260px, 1.25fr); margin-bottom: 24px; overflow: hidden; border: 1px solid #cfddd9; border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(24,51,47,.04); }
.web-summary-strip > div, .web-summary-strip nav { min-width: 0; padding: 14px 18px; background: white; }
.web-summary-strip > div + div { border-left: 1px solid #cfddd9; }
.web-summary-strip strong, .web-summary-strip span { display: block; }
.web-summary-strip strong { font-size: 1.02rem; }
.web-summary-strip span { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.web-summary-strip nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; border-left: 1px solid #cfddd9; background: #f7faf9; }
.web-summary-strip nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 11px; border-radius: 9px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.web-summary-strip nav a:first-child { background: #e5f2ee; }
.web-summary-strip nav a:last-child { border: 1px solid #d5e2de; background: white; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 24px; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 25px; box-shadow: 0 10px 35px rgba(24,51,47,.045); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.section-heading h2 { margin: 5px 0 0; }
.section-heading a { font-size: .78rem; font-weight: 700; }
.section-heading.compact { align-items: flex-start; }
.section-subtitle { margin: 5px 0 0; font-size: .9rem; }
.side-stack { display: grid; align-content: start; gap: 18px; }
.task-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 19px 0; border-top: 1px solid var(--line); }
.task-row:first-child { border-top: 0; }
.task-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e8f3ef; color: var(--brand); font-size: .72rem; font-weight: 900; }
.medication-task { margin: 0 -12px; padding: 19px 12px; border-radius: 14px; background: #f7f4fc; }
.medication-task .task-icon { background: #e9e2f7; color: #654f91; }
.task-complete-button { min-width: 138px; min-height: 50px; padding: 11px 16px; border: 2px solid #76a99d; border-radius: 12px; background: white; color: var(--brand); font-size: .9rem; font-weight: 850; cursor: pointer; }
.task-complete-button:hover { background: #edf8f4; }
.task-complete-button.complete { border-color: #b9d9d0; background: var(--mint); color: #176b50; }
.task-complete-button:disabled { cursor: wait; opacity: .65; }
.task-completed { opacity: 1; background: #f5faf8; }
.task-completed .task-title strong { color: #365b53; text-decoration: none; }
.task-copy { min-width: 0; flex: 1; }
.task-copy p { margin: 6px 0; font-size: .84rem; }
.task-copy small { color: #5d716d; font-size: .84rem; }
.task-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-kind, .source-chip { display: inline-flex; padding: 5px 9px; border-radius: 7px; background: #e5f0ed; color: #3f655d; font-size: .78rem; font-weight: 800; }
.appointment-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; background: #e4eff6; color: #3f708d; font-size: .78rem; font-weight: 900; }
.appointment-list { display: grid; }
.appointment-row { display: grid; grid-template-columns: 66px 1fr; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.appointment-row:first-child { border-top: 0; }
.appointment-row time { display: grid; align-content: center; align-self: start; min-height: 58px; padding: 8px; border-radius: 11px; background: #e4eff6; color: #3f708d; text-align: center; }
.appointment-row time strong, .appointment-row time span { display: block; }
.appointment-row time strong { font-size: .82rem; }
.appointment-row time span { margin-top: 2px; font-size: .78rem; font-weight: 750; }
.appointment-row p { margin: 5px 0; font-size: .9rem; line-height: 1.5; }
.appointment-row small { color: var(--muted); font-size: .8rem; }
.compact-empty { padding: 17px; }
.avatar-row { display: flex; margin: 17px 0 14px; }
.avatar-row .avatar + .avatar { margin-left: -8px; }
.care-circle-card p { margin: 0; font-size: .8rem; }
.emergency-card { padding: 24px; border-radius: 18px; background: #ffe9e3; border: 1px solid #f4c8bd; }
.emergency-card h2 { margin: 6px 0; color: #743b32; }
.emergency-card p { color: #87554c; font-size: .79rem; }
.emergency-button { display: inline-block; padding: 10px 16px; border-radius: 9px; background: var(--danger); color: white; font-weight: 800; font-size: .8rem; }
.disclosure-card summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.disclosure-card summary::-webkit-details-marker { display: none; }
.disclosure-card summary strong, .disclosure-card summary span { display: block; }
.disclosure-card summary > span:last-child { color: var(--brand); font-size: .78rem; font-weight: 800; }
.disclosure-card[open] summary { margin-bottom: 14px; }

.alert-panel { margin-bottom: 20px; padding: 18px 20px; background: #fff0eb; border: 1px solid #f2cbc0; border-radius: 13px; color: #7d3f34; }
.alert-panel p { margin: 5px 0 0; color: #8c5449; }
.review-banner, .consent-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; padding: 22px 25px; border-radius: 16px; background: #fff6e7; border: 1px solid #f2dfb9; }
.review-banner p, .consent-panel p { margin: 5px 0 0; font-size: .83rem; }
.primary-button, .secondary-button, .quiet-button { min-height: 50px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: .95rem; cursor: pointer; }
.primary-button { color: white; background: var(--brand); }
.secondary-button { color: var(--brand); background: #e5f2ee; }
.quiet-button { color: var(--ink); background: #eef3f1; }
.primary-button:is(a), .secondary-button:is(a), .quiet-button:is(a) { display: inline-flex; align-items: center; justify-content: center; }
.primary-button:hover { color: white; background: var(--brand-dark); }
.plan-item { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.plan-item p { margin: 7px 0; font-size: .85rem; }
.plan-marker { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: .75rem; font-weight: 900; }
.plan-marker.medication { color: #5e5188; background: #eeeaf8; }
.plan-marker.activity { color: #28785e; background: #e0f3ea; }
.plan-marker.warning { color: #9b5c25; background: #fff0dc; }
.clean-list { list-style: none; padding: 0; margin: 12px 0 0; }
.clean-list li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: .8rem; }
.muted { font-size: .83rem; }

.capture-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.pathway-selector { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.pathway-selector h2 { margin: 5px 0; }
.pathway-selector p { margin: 0; font-size: .82rem; }
.capture-option { min-height: 175px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 7px; padding: 20px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink); cursor: pointer; }
.capture-option:hover { border-color: #8bb7ad; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(24,51,47,.07); }
.capture-icon { display: grid; place-items: center; min-width: 45px; height: 45px; margin-bottom: auto; padding: 0 8px; border-radius: 12px; background: var(--mint); color: var(--brand); font-size: .7rem; font-weight: 900; }
.capture-option small { color: var(--muted); }
.capture-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 24px; margin-bottom: 24px; }
.capture-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 4px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; }
.capture-person-context { grid-template-columns: minmax(0, 1fr); }
.capture-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.capture-options-disclosure { margin: 14px 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; }
.capture-options-disclosure[open] .capture-form-grid { margin-top: 14px; }
.capture-textarea { min-height: 150px; resize: vertical; }
.capture-consent { margin-top: 18px; }
.capture-submit { margin-top: 20px; }
.selected-file { margin: 10px 0 0; font-size: .78rem; }
.capture-review { margin-bottom: 24px; }
.analysis-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.capture-review .analysis-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.analysis-summary > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.analysis-summary p { margin: 5px 0 0; }
.transcript-panel { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.transcript-panel summary { cursor: pointer; color: var(--brand); font-weight: 750; }
.transcript-panel p { margin: 10px 0 0; white-space: pre-wrap; }
.observation-editor { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr .6fr; gap: 9px; margin-bottom: 9px; }
.observation-editor > .consent-check { grid-column: 1 / -1; }
.observation-editor > small.muted { grid-column: 1 / -1; }
.capture-follow-up-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.capture-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.recent-captures { margin-top: 24px; }
.capture-history-row { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.capture-history-row:first-of-type { border-top: 0; }
.capture-history-row p { margin: 5px 0; font-size: .8rem; }
.capture-history-row small { color: var(--muted); }
.capture-history-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--brand); font-size: .68rem; font-weight: 900; }
.capture-reassurance { margin: 0 0 16px; padding: 11px 13px; border-radius: 10px; background: #fff0d9; color: #825a19; font-size: .78rem; font-weight: 800; }
.consent-check { display: flex; align-items: center; gap: 10px; max-width: 380px; font-size: .8rem; }
.consent-check input, .participant-choice input, .pathway-choice input, .urgent-choice input, .capability-choice input { width: 22px; height: 22px; flex: 0 0 auto; }
.participant-choice { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border-radius: 9px; background: #f5f8f7; }
.participant-choice span { display: grid; gap: 2px; min-width: 0; }
.participant-choice small { color: var(--muted); }
.conversation-participants { display: grid; align-content: start; gap: 8px; }
.share-people-fieldset { grid-column: 1 / -1; display: grid; gap: 9px; margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.share-people-fieldset legend { padding: 0 6px; font-weight: 850; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; padding: 24px; background: #173f39; border-radius: 16px; color: white; }
.pipeline div { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; padding: 0 16px; border-left: 1px solid rgba(255,255,255,.15); }
.pipeline div:first-child { border-left: 0; }
.pipeline span { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f5b69f; color: #173f39; font-weight: 800; }
.pipeline small { color: #afd0ca; margin-top: 3px; }

.message-shell { min-height: 590px; display: grid; grid-template-columns: 310px 1fr; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; }
.conversation-advanced { grid-column: 1 / -1; padding: 12px 14px; border-radius: 11px; background: #f5f8f7; }
.conversation-advanced > summary, .message-options > summary { min-height: 48px; display: flex; align-items: center; color: var(--brand); font-size: .9rem; font-weight: 800; cursor: pointer; }
.conversation-advanced .conversation-form-grid { margin-top: 12px; }
.message-options { margin-bottom: 9px; }
.message-options[open] { padding: 10px; border-radius: 10px; background: #f5f8f7; }
.message-options .composer-tools { margin-top: 10px; }
.conversation-list { padding: 14px; border-right: 1px solid var(--line); background: #f8fbfa; }
.conversation { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px; border: 0; border-radius: 11px; background: transparent; text-align: left; color: var(--ink); }
.conversation.active { background: #e5f1ed; }
.conversation strong, .conversation small { display: block; }
.conversation small { max-width: 190px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.conversation { position: relative; }
.urgent-dot { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.conversation-empty { display: grid; gap: 5px; padding: 20px 12px; }
.conversation-empty small { color: var(--muted); line-height: 1.4; }
.chat-panel { display: grid; grid-template-rows: auto 1fr auto; }
.chat-header { display: flex; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.mobile-chat-back { display: none; }
.chat-header strong, .chat-header small { display: block; }
.chat-header small { margin-top: 4px; color: var(--muted); }
.realtime-state { display: flex; align-items: center; gap: 7px; color: var(--brand); font-size: .72rem; font-weight: 800; }
.chat-stream { max-height: 620px; overflow-y: auto; padding: 24px; }
.chat-empty { display: grid; place-items: center; align-content: center; min-height: 420px; padding: 35px; text-align: center; }
.chat-empty.compact { min-height: 180px; }
.bubble { width: fit-content; max-width: 70%; margin-bottom: 14px; padding: 12px 15px; border-radius: 14px; background: #edf3f1; }
.bubble.sent { margin-left: auto; background: #dcefe9; }
.bubble.urgent { border: 1px solid #e6a99e; background: #fff0eb; }
.bubble p { margin: 5px 0; color: var(--ink); font-size: .98rem; line-height: 1.55; }
.bubble small { color: var(--muted); font-size: .82rem; }
.message-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.urgent-label { padding: 4px 7px; border-radius: 6px; background: #f7d3ca; color: #8c4438; font-size: .78rem; font-weight: 800; }
.reply-label { display: block; margin-bottom: 5px; }
.message-attachments { display: grid; gap: 7px; margin-top: 10px; }
.message-attachments > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.65); font-size: .7rem; }
.message-attachments span, .message-attachments a { color: var(--muted); }
.message-meta { margin-top: 7px; }
.reaction-list { display: flex; gap: 5px; margin-top: 7px; }
.reaction-list span { padding: 3px 7px; border-radius: 9px; background: white; font-size: .65rem; }
.message-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.message-actions button { min-height: 44px; border: 0; padding: 9px 12px; border-radius: 9px; background: rgba(255,255,255,.85); color: var(--brand); font-size: .82rem; font-weight: 750; cursor: pointer; }
.message-actions .acknowledge-button { background: var(--brand); color: white; }
.composer-wrap { border-top: 1px solid var(--line); }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 17px; border-top: 1px solid var(--line); }
.composer button, .composer input { min-height: 50px; border: 0; border-radius: 10px; padding: 12px 14px; }
.composer input { background: #f1f5f4; }
.composer .send-button { background: var(--brand); color: white; font-weight: 750; }
.composer-context { display: flex; justify-content: space-between; gap: 12px; padding: 10px 17px; background: #edf4f1; font-size: .85rem; }
.composer-context button { border: 0; background: transparent; color: var(--brand); cursor: pointer; }
.composer-tools { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; align-items: center; gap: 8px; padding: 10px 17px; }
.composer-tools select, .composer-tools input { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.urgent-choice { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 750; }
.urgent-disclaimer { margin: 0; padding: 0 17px 12px; color: #7b3e33; font-size: .85rem; line-height: 1.5; }
.conversation-creator { margin-bottom: 20px; }
.conversation-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }

.integration-grid { display: grid; gap: 14px; }
.integration-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 18px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.integration-card h2 { margin: 0 0 4px; }
.integration-card p { margin: 0; font-size: .8rem; }
.integration-logo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; font-size: .7rem; font-weight: 900; }
.fhir-logo { background: #fff0dc; color: #a76d21; }
.apple-logo { background: #eeeaf8; color: #66528b; }
.android-logo { background: #e0f3ea; color: #28785e; }
.azure-logo { background: #e4eff6; color: #3f708d; }
.connection-state { padding: 7px 10px; border-radius: 8px; font-size: .7rem; font-weight: 750; }
.connection-state.connected { background: #e0f3ea; color: #28785e; }
.loading-card { padding: 40px; background: white; border-radius: 16px; color: var(--muted); }

.button-spinner {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    margin-right: .45rem;
    vertical-align: -.15rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-spin .7s linear infinite;
}

.message-unread-count {
    align-items: center;
    background: var(--coral);
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    justify-content: center;
    min-height: 1.5rem;
    min-width: 1.5rem;
    padding: 0 0.4rem;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

.invitation-acceptance {
    max-width: 720px;
    margin: 3rem auto;
    padding: 2rem;
}

.field-note {
    margin: 0;
    font-size: .9rem;
    line-height: 1.35;
    color: var(--muted);
}

.status-warning {
    color: #8a4b08;
}

.success-panel {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #9ed9c2;
    border-radius: 14px;
    background: #effbf6;
    color: #176b50;
}

.success-panel p {
    margin: .35rem 0 0;
}
.pairing-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 24px; }
.field-label { display: block; margin: 17px 0 7px; font-size: .9rem; font-weight: 850; color: var(--ink); }
.text-field { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #9fb5b0; border-radius: 10px; color: var(--ink); background: white; }
.pairing-code { max-width: 240px; font-size: 1.7rem; letter-spacing: .28em; font-weight: 800; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 15px 0 20px; }
.capability-choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.capability-choice strong, .capability-choice small { display: block; }
.capability-choice small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.device-row { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.device-row:first-child { border-top: 0; }
.device-row strong, .device-row small { display: block; }
.device-row small { margin-top: 4px; color: var(--muted); }
.success-message { color: #176b50; font-weight: 700; }
.error-message { color: var(--danger); font-weight: 700; }
.subscription-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 24px; }
.subscription-page-heading { align-items: flex-start; }
.subscription-management-grid { display: grid; grid-template-columns: minmax(320px, .74fr) minmax(0, 1.26fr); gap: 24px; align-items: stretch; }
.subscription-overview { display: flex; flex-direction: column; height: 100%; }
.plan-summary { align-self: start; }
.price-display { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.price-display strong { font-size: 2.5rem; letter-spacing: -.05em; }
.price-display span { color: var(--muted); font-size: .8rem; }
.subscription-price-copy { margin: -8px 0 20px; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.subscription-facts { display: grid; margin: 22px 0; border-block: 1px solid var(--line); }
.subscription-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.subscription-facts div:first-child { border-top: 0; }
.subscription-facts dt { color: var(--muted); font-size: .78rem; }
.subscription-facts dd { margin: 0; text-align: right; font-size: .8rem; font-weight: 850; }
.subscription-date-note { display: flex; justify-content: space-between; gap: 16px; padding: 14px; border-radius: 12px; background: var(--mint); color: var(--brand); font-size: .78rem; }
.subscription-date-note span { text-align: right; }
.subscription-overview-footer { display: grid; gap: 12px; margin-top: auto; padding-top: 18px; }
.subscription-overview-footer p { margin: 0; }
.subscription-cancel { width: 100%; }
.recipient-management { height: 100%; padding: 30px; }
.recipient-management-heading { align-items: flex-start; margin-bottom: 22px; }
.recipient-management-heading h2 { margin-bottom: 7px; }
.recipient-management-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.recipient-management-heading .quiet-button { flex: 0 0 auto; }
.recipient-capacity { padding: 17px 18px; border: 1px solid #c9ded8; border-radius: 14px; background: #f7fbfa; }
.recipient-capacity-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 11px; font-size: .78rem; }
.recipient-capacity-label span { color: var(--muted); }
.recipient-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #deebe7; }
.recipient-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .25s ease; }
.recipient-pricing-note { margin: 12px 0 22px; padding: 11px 14px; border-radius: 10px; font-size: .78rem; font-weight: 750; }
.recipient-pricing-note.included { background: #eaf7f0; color: #176b50; }
.recipient-pricing-note.charge { background: #fff4df; color: #895514; }
.recipient-list { border-top: 1px solid var(--line); }
.recipient-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.recipient-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e4f1ed; color: var(--brand); font-size: .75rem; font-weight: 900; }
.recipient-row strong, .recipient-row small { display: block; }
.recipient-row small { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.recipient-cost { justify-self: end; padding: 6px 9px; border-radius: 999px; font-size: .7rem; font-weight: 850; white-space: nowrap; }
.recipient-cost.included { background: #eaf7f0; color: #176b50; }
.recipient-cost.charge { background: #fff4df; color: #895514; }
.recipient-add-panel { display: grid; gap: 18px; margin-top: 25px; padding: 22px; border: 1px dashed #9ebdb5; border-radius: 15px; background: #fafcfb; }
.recipient-add-panel h3 { margin: 5px 0 7px; font-size: 1.25rem; }
.recipient-add-panel p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.recipient-add-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr); align-items: end; gap: 8px 12px; min-width: 0; }
.recipient-add-form .field-label { grid-column: 1 / -1; margin: 0; }
.recipient-add-form .subscription-action { width: 100%; height: 53px; margin: 0; padding-inline: 14px; font-size: .82rem; white-space: nowrap; }
.test-billing-note { margin: 20px 0; padding: 16px; border: 1px solid #cbded9; border-radius: 12px; background: #f2f8f6; }
.test-billing-note p { margin: 5px 0 0; font-size: .78rem; }
.trial-benefits { display: grid; gap: 9px; margin: 18px 0 22px; padding: 0; list-style: none; }
.trial-benefits li { position: relative; padding-left: 28px; color: var(--muted); line-height: 1.5; }
.trial-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.renewal-consent { margin: 20px 0; }
.subscription-state { max-width: 760px; margin: 40px auto; text-align: center; }
.subscription-state .status-pill { margin-bottom: 18px; }
.subscription-action { margin-top: 12px; }
.verification-code { max-width: 180px; letter-spacing: .18em; font-weight: 800; }
.review-code { margin: 0 auto; }
.care-plan-wizard { padding: 30px; }
.wizard-progress { display: grid; grid-template-columns: repeat(5, minmax(82px, 1fr)); gap: 8px; margin-bottom: 28px; overflow-x: auto; }
.wizard-progress span { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 7px; min-height: 48px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.wizard-progress span strong { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf3f1; }
.wizard-progress span small { font-size: .78rem; line-height: 1.15; }
.wizard-progress span.active { border-color: var(--brand); background: var(--brand); color: white; }
.wizard-progress span.complete { border-color: #8bb7ad; background: var(--mint); color: var(--brand); }
.wizard-progress span.active strong { background: white; color: var(--brand); }
.wizard-heading { max-width: 820px; margin-bottom: 22px; }
.wizard-heading h2 { margin: 6px 0; font-size: 1.5rem; }
.wizard-heading p { margin-bottom: 0; }
.pathway-choice-featured { max-width: 680px; margin-top: 18px; }
.wizard-optional-details { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.wizard-optional-details > summary { min-height: 48px; display: flex; align-items: center; color: var(--brand); font-weight: 850; cursor: pointer; }
.wizard-optional-details > .muted { margin: 6px 0 0; }
.wizard-name-fields { max-width: 680px; padding-top: 12px; }
.wizard-name-fields .text-field { margin-bottom: 14px; }
.wizard-pathway-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #eaf5f1; font-size: .75rem; }
.wizard-pathway-selection span { padding: 5px 8px; border-radius: 8px; background: white; color: var(--brand); font-weight: 750; }
.wizard-pathway-page-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; color: var(--muted); font-size: .78rem; }
.wizard-pathway-page-meta strong { color: var(--ink); }
.wizard-pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pathway-choice { display: flex; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pathway-choice.selected { border-color: #72a89d; background: #edf7f4; }
.pathway-choice strong, .pathway-choice small { display: block; }
.pathway-choice small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.wizard-pathway-pagination { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wizard-pathway-pagination span { text-align: center; color: var(--muted); font-size: .76rem; font-weight: 750; }
.wizard-pathway-pagination button { min-height: 44px; }
.wizard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.editor-card { position: relative; display: grid; gap: 9px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.editor-optional-details { margin-top: 2px; padding-top: 4px; border-top: 1px solid var(--line); }
.editor-optional-details > summary { min-height: 48px; display: flex; align-items: center; color: var(--brand); font-weight: 800; cursor: pointer; }
.editor-optional-details .inline-fields { margin-top: 8px; }
.editor-remove { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff0ed; color: #9a3f30; font-size: 1.35rem; cursor: pointer; }
.plan-card-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.care-circle-management { margin-top: 22px; scroll-margin-top: 24px; }
.care-circle-list { display: grid; gap: 10px; margin: 14px 0 22px; }
.care-circle-member { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.care-circle-member small { display: block; color: var(--muted); }
.care-circle-invite { display: grid; grid-template-columns: 1.3fr .7fr 1.3fr 1fr auto; gap: 10px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
.care-circle-invite h3 { grid-column: 1 / -1; margin: 0; }
.capture-recording { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.recording-indicator { color: #b23a2b; font-weight: 800; }
.danger-button { min-height: 44px; border: 1px solid #b23a2b; border-radius: 999px; background: #b23a2b; color: white; padding: 10px 16px; font-weight: 800; }
.live-transcript-panel { margin: 14px 0; padding: 16px; border: 1px solid #9dc9bf; border-radius: 14px; background: #f2faf7; }
.live-transcript-panel .section-heading { margin-bottom: 8px; }
.live-transcript-panel p { min-height: 44px; margin: 0; white-space: pre-wrap; }
.live-transcript-panel textarea { min-height: 110px; margin-top: 8px; background: white; }

@media (max-width: 900px) {
    .care-circle-member { grid-template-columns: auto 1fr; }
    .care-circle-member .text-field,
    .care-circle-member .quiet-button { grid-column: 2; }
    .care-circle-invite { grid-template-columns: 1fr; }
}
.editor-card textarea, .threshold-editor textarea, .wizard-columns textarea { min-height: 86px; resize: vertical; }
.inline-fields { display: grid; grid-template-columns: minmax(130px, .45fr) 1fr; gap: 9px; }
.threshold-editor { display: grid; grid-template-columns: 1.2fr 1fr .65fr .65fr .8fr; gap: 10px; }
.threshold-editor textarea { grid-column: 1 / -1; }
.review-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.review-summary-grid div { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.review-summary-grid strong, .review-summary-grid span { display: block; }
.review-summary-grid strong { font-size: 1.45rem; }
.review-summary-grid span { margin-top: 3px; color: var(--muted); font-size: .85rem; }
.wizard-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.empty-state { max-width: 760px; padding: 44px; text-align: center; }
.care-plan-list { display: grid; gap: 20px; }
.care-plan-card h3 { margin: 25px 0 8px; font-size: .9rem; }
.plan-details { margin-top: 18px; border-top: 1px solid var(--line); }
.plan-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px 2px; color: var(--brand); cursor: pointer; list-style: none; font-size: .82rem; font-weight: 850; }
.plan-details > summary small { color: var(--muted); font-weight: 600; }
.plan-details-body { padding-top: 4px; }
.care-circle-management > summary { margin: 0; cursor: pointer; list-style: none; }
.care-circle-management > summary > span { color: var(--brand); font-size: .78rem; font-weight: 800; }
.care-circle-management[open] > summary { margin-bottom: 18px; }
.plan-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.plan-metrics span { padding: 8px 10px; border-radius: 8px; background: #f0f5f3; color: var(--muted); font-size: .72rem; }
.plan-metrics strong { color: var(--ink); }
.plan-detail-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-detail-list li { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.plan-detail-list span { color: var(--muted); font-size: .78rem; }
.publish-panel { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 20px; padding: 17px; border-radius: 12px; background: #f2f8f6; }
.publish-panel .field-label { margin-top: 0; }
.version-history { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.version-history summary { cursor: pointer; color: var(--brand); font-size: .78rem; font-weight: 800; }
.version-history div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.version-history span { color: var(--muted); }

.care-journey-illustration { display: block; width: 100%; height: auto; overflow: visible; }
.care-journey-illustration circle,
.care-journey-illustration rect,
.care-journey-illustration path { transform-box: fill-box; transform-origin: center; }

.onboarding-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(12,39,35,.68); backdrop-filter: blur(12px); animation: guide-fade-in .24s ease-out; }
.onboarding-dialog { width: min(1080px, 100%); max-height: min(760px, calc(100dvh - 36px)); overflow: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 30px; background: #fbfdfc; box-shadow: 0 30px 100px rgba(5,28,25,.35); }
.onboarding-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 30px 10px; }
.onboarding-skip { min-height: 44px; border: 0; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.onboarding-skip:hover { color: var(--brand); }
.onboarding-progress { display: flex; gap: 8px; padding: 12px 30px; }
.onboarding-progress button { position: relative; width: 48px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.onboarding-progress button::after { content: ""; position: absolute; inset: 18px 4px; border-radius: 99px; background: #cbd9d5; }
.onboarding-progress button.active::after { background: var(--coral); }
.onboarding-content { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: 30px; min-height: 480px; padding: 10px 44px 22px; }
.onboarding-copy h1 { max-width: 520px; margin: 10px 0 18px; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.onboarding-copy > p { max-width: 570px; font-size: 1.04rem; }
.onboarding-points { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.onboarding-points li { display: flex; align-items: center; gap: 11px; color: #496760; font-weight: 650; }
.onboarding-points li span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #dff3ed; color: var(--brand); font-size: .75rem; font-weight: 900; }
.onboarding-art { position: relative; padding: 15px; }
.onboarding-art::before { content: ""; position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(245,182,159,.24), transparent 68%); }
.onboarding-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.onboarding-footer > span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.onboarding-footer > div { display: flex; gap: 10px; }
.onboarding-next { min-width: 170px; }

.guide-balloon { position: fixed; z-index: 90; right: 28px; bottom: 28px; display: grid; grid-template-columns: 48px 1fr; gap: 14px; width: min(410px, calc(100vw - 30px)); padding: 22px 50px 22px 22px; border: 1px solid #cbe2dc; border-radius: 22px 22px 6px 22px; background: white; box-shadow: var(--shadow-soft); animation: guide-rise-in .35s cubic-bezier(.2,.8,.2,1); }
.guide-balloon::after { content: ""; position: absolute; right: 18px; bottom: -10px; width: 20px; height: 20px; border-right: 1px solid #cbe2dc; border-bottom: 1px solid #cbe2dc; background: white; transform: rotate(45deg); }
.guide-balloon-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #e3f3ee; color: var(--brand); font-size: 1.35rem; font-weight: 900; }
.guide-balloon strong { display: block; margin-top: 5px; font-size: 1.02rem; }
.guide-balloon p { margin: 6px 0 8px; font-size: .82rem; line-height: 1.5; }
.guide-balloon a { font-size: .8rem; font-weight: 850; }
.guide-balloon-close { position: absolute; top: 12px; right: 13px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f5f3; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

.help-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr); align-items: center; gap: 40px; margin-bottom: 52px; padding: 36px 42px; overflow: hidden; border: 1px solid #dbe9e5; border-radius: 30px; background: linear-gradient(135deg, #fffaf5, #f0f8f5); }
.help-hero h1 { max-width: 720px; margin: 10px 0 18px; }
.help-hero p { max-width: 680px; font-size: 1.05rem; }
.help-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.help-section { margin-bottom: 38px; }
.help-journey-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.help-step-card { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 35px rgba(24,51,47,.055); }
.help-step-card .care-journey-illustration { height: 135px; object-fit: contain; margin: 10px 0; }
.help-step-card h3 { margin: 10px 0 7px; font-size: 1rem; }
.help-step-card p { min-height: 102px; margin-bottom: 14px; font-size: .78rem; line-height: 1.55; }
.help-step-card a { font-size: .78rem; font-weight: 850; }
.help-step-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #eef7f4; color: var(--brand); font-size: .73rem; font-weight: 900; }
.help-confidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help-confidence-grid .surface { min-height: 240px; }
.help-confidence-grid h2 { margin: 18px 0 8px; }
.help-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; font-size: 1.35rem; font-weight: 900; }
.help-icon.mint { background: #dff3ed; color: var(--brand); }
.help-icon.coral { background: #ffe7df; color: #b85e4e; }
.help-icon.blue { background: #e5eef5; color: #386480; }
.help-reset-notice { margin-top: 20px; }

.support-page-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); align-items: center; gap: 34px; margin-bottom: 30px; padding: 34px 38px; border: 1px solid #d8e7e3; border-radius: 26px; background: linear-gradient(135deg, #fffaf6, #edf8f4); }
.support-page-hero h1 { max-width: 780px; margin: 9px 0 14px; font-size: clamp(2.25rem, 4vw, 3.35rem); }
.support-page-hero > div > p { max-width: 740px; margin: 0; font-size: 1rem; }
.company-attribution, .feedback-expectation { padding: 23px; border: 1px solid rgba(23,107,96,.18); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 12px 32px rgba(24,51,47,.06); }
.company-attribution span, .company-attribution strong { display: block; }
.company-attribution span { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.company-attribution strong { margin-top: 6px; color: var(--brand); font-size: 1.55rem; }
.company-attribution p, .feedback-expectation p { margin: 10px 0 0; font-size: .8rem; }
.feedback-expectation { border-color: #ead7b5; background: #fffaf0; }
.feedback-expectation strong { color: #805615; }
.about-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.about-principles .surface { min-height: 250px; }
.about-principles h2 { margin: 20px 0 9px; }
.support-card-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; font-size: 1.2rem; font-weight: 900; }
.support-card-icon.mint { background: #dff3ed; color: var(--brand); }
.support-card-icon.blue { background: #e5eef5; color: #386480; }
.support-card-icon.coral { background: #ffe7df; color: #b85e4e; }
.about-purpose { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 35px; margin-bottom: 20px; }
.about-purpose h2 { margin: 6px 0 0; font-size: 1.6rem; }
.about-purpose p { margin-bottom: 10px; }
.support-page-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 24px; align-items: start; }
.feedback-form-card { padding: 30px; }
.feedback-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feedback-form-grid .field-label { margin-top: 0; }
.feedback-details { min-height: 170px; resize: vertical; }
.field-help { display: block; margin-top: 5px; color: var(--muted); text-align: right; font-size: .7rem; }
.optional-label { color: var(--muted); font-size: .72rem; font-weight: 600; }
.feedback-safety-note { margin: 20px 0; padding: 14px 16px; border: 1px solid #eed9b6; border-radius: 12px; background: #fff9ee; }
.feedback-safety-note p { margin: 4px 0 0; font-size: .78rem; }
.feedback-submit { width: 100%; }
.feedback-help-card { position: sticky; top: 92px; }
.feedback-help-card h2 { margin: 7px 0 18px; }
.feedback-help-card ol { display: grid; gap: 0; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: feedback-step; }
.feedback-help-card li { position: relative; display: grid; gap: 4px; padding: 14px 0 14px 42px; border-top: 1px solid var(--line); counter-increment: feedback-step; }
.feedback-help-card li::before { content: counter(feedback-step); position: absolute; top: 13px; left: 0; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #e7f3ef; color: var(--brand); font-size: .72rem; font-weight: 900; }
.feedback-help-card li span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.feedback-help-card > a { font-size: .78rem; font-weight: 850; }
.feedback-success { display: flex; align-items: flex-start; gap: 18px; max-width: 800px; margin: 35px auto; padding: 28px; }
.feedback-success h2 { margin: 6px 0; }
.feedback-success .secondary-button { margin-top: 12px; }

.welcome-page { min-height: 100vh; padding: 20px clamp(20px, 5vw, 74px) 70px; overflow: hidden; background: radial-gradient(circle at 4% 4%, #fff0e5 0, transparent 28%), radial-gradient(circle at 95% 38%, #e2f4ee 0, transparent 31%), #fbfdfc; }
.welcome-nav { display: flex; align-items: center; justify-content: space-between; width: min(1380px, 100%); margin: 0 auto; padding: 8px 0; }
.welcome-nav-actions { display: flex; align-items: center; gap: 8px; }
.welcome-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr); align-items: center; gap: 60px; width: min(1380px, 100%); min-height: 720px; margin: 0 auto; }
.welcome-copy h1 { max-width: 780px; margin: 12px 0 22px; font-size: clamp(3rem, 4.4vw, 4.4rem); }
.welcome-copy > p { max-width: 720px; font-size: 1.12rem; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.welcome-actions > * { min-height: 52px; padding-inline: 24px; }
.welcome-trial-note { margin: -10px 0 20px; font-size: .76rem; }
.welcome-trust-row { display: flex; flex-wrap: wrap; gap: 9px 18px; color: #53716b; font-size: .78rem; font-weight: 750; }
.welcome-art { position: relative; display: grid; place-items: center; min-height: 610px; }
.welcome-art > .care-journey-illustration { filter: drop-shadow(0 30px 40px rgba(24,51,47,.08)); }
.welcome-phone { position: relative; width: min(390px, 84%); min-height: 600px; padding: 32px 22px 24px; border: 9px solid #173f39; border-radius: 45px; background: #fbfdfc; box-shadow: 0 38px 80px rgba(24,51,47,.2); transform: rotate(2deg); }
.welcome-phone-speaker { position: absolute; top: 12px; left: 50%; width: 78px; height: 7px; border-radius: 99px; background: #173f39; transform: translateX(-50%); }
.welcome-phone header { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 18px; border-bottom: 1px solid var(--line); }
.welcome-phone header div { display: grid; gap: 2px; }
.welcome-phone header div span { color: var(--muted); font-size: .63rem; font-weight: 900; letter-spacing: .1em; }
.welcome-phone header div strong { font-size: 1.3rem; }
.welcome-phone-status { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 16px; border-radius: 17px; background: #e4f4ee; color: var(--brand); }
.welcome-phone-status > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: white; font-weight: 900; }
.welcome-phone-status strong, .welcome-phone-status small { display: block; }
.welcome-phone-status small { margin-top: 2px; color: #53716b; }
.welcome-phone-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 11px; }
.welcome-phone-heading strong { font-size: 1.25rem; }
.welcome-phone-heading span { color: var(--muted); font-size: .68rem; }
.welcome-phone-list { display: grid; gap: 9px; }
.welcome-phone-list > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.welcome-phone-list > div > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f1f5f3; color: var(--muted); font-weight: 900; }
.welcome-phone-list > div.done > span { background: #e3f3ee; color: var(--brand); }
.welcome-phone-list > div > strong { font-size: .78rem; }
.welcome-phone-list > div > small { color: var(--muted); font-size: .65rem; }
.welcome-floating-card { position: absolute; display: flex; align-items: center; gap: 11px; width: 220px; padding: 14px; border: 1px solid rgba(255,255,255,.85); border-radius: 17px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); animation: float-card 4.8s ease-in-out infinite; }
.welcome-floating-card.first { left: -5px; bottom: 50px; }
.welcome-floating-card.second { top: 68px; right: -4px; animation-delay: -2.2s; }
.welcome-floating-card > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: #e3f3ee; color: var(--brand); font-weight: 900; }
.welcome-floating-card strong, .welcome-floating-card small { display: block; }
.welcome-floating-card small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.welcome-section { width: min(1380px, 100%); margin: 0 auto; padding-top: 110px; scroll-margin-top: 20px; }
.welcome-section-heading { max-width: 780px; margin-bottom: 28px; }
.welcome-section-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.welcome-section-heading > p { margin-top: 12px; }
.welcome-section-heading.centered { margin-inline: auto; text-align: center; }
.welcome-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.welcome-feature-grid article { padding: 26px; border: 1px solid #dfe9e6; border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: 0 15px 45px rgba(24,51,47,.05); }
.welcome-feature-grid article > span { color: var(--coral); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.welcome-feature-grid h3 { margin: 32px 0 10px; font-size: 1.12rem; }
.welcome-feature-grid p { margin: 0; font-size: .83rem; }
.welcome-problem { text-align: center; }
.welcome-question-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1100px; margin: 0 auto; }
.welcome-question-grid blockquote { margin: 0; padding: 16px 21px; border: 1px solid #dce8e5; border-radius: 99px; background: white; color: #3c5e58; font-size: .92rem; font-weight: 750; box-shadow: 0 10px 30px rgba(24,51,47,.05); }
.welcome-problem-answer { max-width: 900px; margin: 30px auto 0; padding: clamp(25px, 4vw, 45px); border-radius: 26px; background: #176b60; color: white; }
.welcome-problem-answer strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.welcome-problem-answer p { max-width: 760px; margin: 14px auto 0; color: #d9ece7; }
.welcome-split { display: grid; grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr); align-items: center; gap: clamp(35px, 7vw, 100px); }
.welcome-split-reverse > :first-child { order: 2; }
.welcome-split-reverse > :last-child { order: 1; }
.welcome-section-copy h2 { margin: 10px 0 18px; font-size: clamp(2rem, 4vw, 3.45rem); }
.welcome-section-copy > p { max-width: 650px; }
.welcome-trust-statement { display: inline-flex; margin-top: 14px; padding: 11px 15px; border-radius: 11px; background: #e5f3ef; color: var(--brand); }
.welcome-capture-flow { padding: clamp(22px, 4vw, 40px); border: 1px solid #dce8e5; border-radius: 28px; background: linear-gradient(145deg, #fff, #eef8f5); box-shadow: var(--shadow-soft); }
.welcome-source-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.welcome-source-cards span { display: grid; place-items: center; min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; color: #4d6f68; font-size: .75rem; font-weight: 800; text-align: center; }
.welcome-flow-arrow { margin: 12px 0; color: var(--coral); font-size: 2rem; font-weight: 900; text-align: center; }
.welcome-routine-card { display: grid; gap: 9px; padding: 21px; border-radius: 19px; background: #173f39; color: white; }
.welcome-routine-card > strong { margin-bottom: 5px; font-size: 1.3rem; }
.welcome-routine-card > div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(255,255,255,.09); }
.welcome-routine-card time { color: #a9d7cb; font-size: .75rem; font-weight: 800; }
.welcome-routine-card div span { font-size: .78rem; }
.welcome-care-circle-card { display: grid; gap: 9px; padding: clamp(22px, 4vw, 36px); border: 1px solid #dce8e5; border-radius: 27px; background: white; box-shadow: var(--shadow-soft); }
.welcome-care-circle-card > div { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: #f5f9f7; }
.welcome-care-circle-card p, .welcome-care-circle-card p strong, .welcome-care-circle-card p small { display: block; margin: 0; }
.welcome-care-circle-card p small { margin-top: 2px; color: var(--muted); }
.welcome-permission { padding: 6px 8px; border-radius: 99px; background: white; color: var(--brand); font-size: .65rem; font-weight: 850; }
.welcome-invite-preview, .welcome-view-preview { justify-self: start; margin-top: 6px; }
.welcome-check-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.welcome-check-list li { position: relative; padding-left: 28px; color: #476660; }
.welcome-check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--brand); font-weight: 900; }
.welcome-reassurance-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.welcome-wellbeing-card, .welcome-alerts-card { padding: clamp(23px, 4vw, 38px); border: 1px solid #dce8e5; border-radius: 25px; background: white; box-shadow: 0 18px 48px rgba(24,51,47,.06); }
.welcome-wellbeing-card h3, .welcome-alerts-card h3 { margin: 9px 0 10px; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.welcome-wellbeing-card > strong { color: var(--brand); }
.welcome-progress { height: 9px; margin: 15px 0 20px; overflow: hidden; border-radius: 99px; background: #e5eeeb; }
.welcome-progress span { display: block; width: 67%; height: 100%; border-radius: inherit; background: var(--brand); }
.welcome-wellbeing-card ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.welcome-wellbeing-card li { display: flex; align-items: center; gap: 7px; font-size: .8rem; }
.welcome-wellbeing-card li span { color: var(--brand); font-weight: 900; }
.welcome-alerts-card { display: grid; align-content: start; gap: 11px; background: #173f39; color: white; }
.welcome-alerts-card > .eyebrow { color: #a9d7cb; }
.welcome-alerts-card > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.09); }
.welcome-alerts-card p, .welcome-alerts-card p strong, .welcome-alerts-card p small { display: block; margin: 0; }
.welcome-alerts-card p small { margin-top: 3px; color: #cfe3de; }
.welcome-alert-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 900; }
.welcome-alert-icon.amber { background: #fff0d9; color: #9d661c; }
.welcome-alert-icon.blue { background: #e3edf5; color: #386480; }
.welcome-alert-icon.coral { background: #ffe7df; color: #b85e4e; }
.welcome-use-case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.welcome-use-case-grid article { padding: 24px; border: 1px solid #dfe9e6; border-radius: 20px; background: white; }
.welcome-use-case-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e5f3ef; color: var(--brand); font-weight: 900; }
.welcome-use-case-grid h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.welcome-use-case-grid p { margin: 0; font-size: .78rem; }
.welcome-person-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; margin-top: 18px; padding: clamp(23px, 4vw, 38px); border-radius: 23px; background: #fff0e7; }
.welcome-person-card h3 { margin: 7px 0 0; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.welcome-person-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 430px; }
.welcome-person-actions span { padding: 11px 14px; border: 1px solid #efc8b8; border-radius: 99px; background: white; color: #7f4f40; font-size: .78rem; font-weight: 850; }
.welcome-demo { width: min(1380px, 100%); margin: 35px auto 0; padding-top: 70px; scroll-margin-top: 20px; }
.welcome-demo-shell { display: grid; grid-template-columns: minmax(250px, .38fr) minmax(0, 1fr); gap: 18px; }
.welcome-demo-steps { display: grid; align-content: start; gap: 10px; }
.welcome-demo-steps button { display: grid; grid-template-columns: 36px 1fr; column-gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.72); color: var(--ink); text-align: left; cursor: pointer; }
.welcome-demo-steps button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e7f2ef; color: var(--brand); font-weight: 900; }
.welcome-demo-steps button strong, .welcome-demo-steps button small { display: block; }
.welcome-demo-steps button small { margin-top: 3px; color: var(--muted); }
.welcome-demo-steps button.active { border-color: #6fa99b; background: #eef8f5; box-shadow: inset 0 0 0 1px #6fa99b; }
.welcome-demo-steps button.active > span { background: var(--brand); color: white; }
.welcome-demo-stage { min-height: 530px; display: flex; flex-direction: column; padding: clamp(22px, 4vw, 42px); border: 1px solid #cfe1dc; border-radius: 25px; background: rgba(255,255,255,.93); box-shadow: var(--shadow-soft); }
.welcome-demo-stage > header h3 { margin: 7px 0 8px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.welcome-demo-stage > header p { margin-bottom: 22px; }
.welcome-demo-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 25px; }
.demo-today-card { display: grid; gap: 16px; }
.demo-today-card > div:first-child { display: grid; gap: 5px; padding: 18px; border-radius: 16px; background: #eff8f5; }
.demo-today-card > div:first-child > span { color: var(--brand); font-size: .73rem; font-weight: 900; letter-spacing: .08em; }
.demo-today-card > div:first-child > strong { font-size: 1.25rem; }
.demo-today-card small { color: var(--muted); }
.demo-task { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.demo-task > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #eee8f7; color: #66528b; font-weight: 900; }
.demo-task strong, .demo-task small { display: block; }
.demo-task.complete { background: #eef8f5; }
.demo-update-card { display: grid; gap: 12px; }
.demo-update-card label { font-weight: 800; }
.demo-update-card textarea { min-height: 105px; resize: vertical; }
.demo-update-card > button { justify-self: start; }
.demo-review-result { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-radius: 15px; background: #eef8f5; }
.demo-review-result strong, .demo-review-result p { width: 100%; margin: 0; }
.demo-review-result span { padding: 6px 9px; border-radius: 99px; background: white; color: var(--brand); font-size: .75rem; font-weight: 800; }
.demo-family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-family-grid button { display: grid; justify-items: center; gap: 6px; padding: 17px 10px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); cursor: pointer; }
.demo-family-grid button.selected { border-color: #6fa99b; background: #eef8f5; box-shadow: inset 0 0 0 1px #6fa99b; }
.demo-family-grid small { color: var(--muted); text-align: center; }
.demo-family-detail, .demo-plan-preview { margin-top: 14px; padding: 17px; border-radius: 15px; background: #f4f8f6; }
.demo-family-detail p, .demo-plan-preview p { margin: 5px 0 0; }
.demo-plan-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.demo-plan-options button { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); cursor: pointer; }
.demo-plan-options button span { color: var(--brand); font-weight: 900; }
.demo-plan-options button.selected { border-color: #6fa99b; background: #eef8f5; box-shadow: inset 0 0 0 1px #6fa99b; }
.demo-plan-preview strong { display: block; margin-top: 6px; }
.welcome-demo-outcome { margin: 22px 0 0; color: var(--brand); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 750; text-align: center; }
.welcome-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.welcome-trust-grid article { padding: clamp(25px, 4vw, 42px); border: 1px solid #dce8e5; border-radius: 25px; background: white; }
.welcome-trust-grid h2 { margin: 9px 0 13px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.welcome-trust-grid article > strong { display: inline-flex; margin-top: 13px; color: var(--brand); }
.welcome-trust-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 16px; background: #e5f3ef; color: var(--brand); font-weight: 900; }
.welcome-privacy-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.welcome-privacy-points span { padding: 7px 10px; border-radius: 99px; background: #f0f6f4; color: #4c6f68; font-size: .7rem; font-weight: 800; }
.welcome-pricing { display: grid; grid-template-columns: 1fr minmax(370px, .65fr); align-items: center; gap: clamp(30px, 7vw, 100px); }
.welcome-pricing > div h2 { margin: 9px 0 13px; font-size: clamp(2.2rem, 5vw, 4rem); }
.welcome-pricing article { display: grid; gap: 15px; padding: clamp(26px, 4vw, 42px); border: 1px solid #b9d9d1; border-radius: 27px; background: #173f39; color: white; box-shadow: 0 25px 60px rgba(24,51,47,.18); }
.welcome-pricing article > span { color: #a9d7cb; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.welcome-pricing article > div { display: flex; align-items: end; gap: 8px; }
.welcome-pricing article > div strong { font-size: clamp(2.7rem, 6vw, 4.5rem); line-height: .9; }
.welcome-pricing article > div small { color: #cfe3de; }
.welcome-pricing article ul { display: grid; gap: 8px; margin: 2px 0; padding: 0; list-style: none; }
.welcome-pricing article li::before { margin-right: 8px; content: "✓"; color: #a9d7cb; font-weight: 900; }
.welcome-pricing article > small { color: #cfe3de; text-align: center; }
.welcome-final-cta { width: min(1380px, 100%); margin: 110px auto 0; padding: clamp(40px, 7vw, 80px); border-radius: 32px; background: radial-gradient(circle at 85% 10%, rgba(244,154,127,.28), transparent 30%), #176b60; color: white; text-align: center; }
.welcome-final-cta .eyebrow { color: #bfe2d9; }
.welcome-final-cta h2 { max-width: 850px; margin: 12px auto 15px; font-size: clamp(2.3rem, 5vw, 4.4rem); }
.welcome-final-cta p { max-width: 680px; margin: 0 auto; color: #d8ece7; font-size: 1.05rem; }
.welcome-final-cta > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 27px; }
.welcome-final-cta .secondary-button { border-color: rgba(255,255,255,.45); background: transparent; color: white; }

.mobile-welcome-card { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(0, 1fr); align-items: center; gap: 28px; overflow: hidden; border: 1px solid #dceae6; border-radius: 30px; background: white; box-shadow: var(--shadow-soft); }
.mobile-welcome-art { min-height: 580px; display: grid; place-items: center; padding: 30px; background: linear-gradient(145deg, #e8f6f1, #fff2e8); }
.mobile-welcome-copy { padding: 45px 50px 45px 16px; }
.mobile-welcome-copy h1 { margin: 10px 0 17px; }
.mobile-welcome-benefits { display: grid; gap: 11px; margin: 24px 0; }
.mobile-welcome-benefits > span { display: grid; padding: 13px 15px; border-radius: 14px; background: #f3f8f6; }
.mobile-welcome-benefits small { margin-top: 3px; color: var(--muted); }
.mobile-sign-in { width: 100%; min-height: 52px; margin-top: 4px; }
.mobile-auth-actions { display: grid; gap: 10px; }
.mobile-sign-up { width: 100%; min-height: 50px; }
.mobile-sign-in-note { display: block; margin-top: 12px; color: var(--muted); text-align: center; }

.native-loading-shell { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 30px; background: #176b60; color: white; text-align: center; }
.native-loading-logo { display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 10px; border-radius: 32px; background: rgba(255,255,255,.1); }
.native-loading-logo svg { width: 88px; height: 88px; }
.native-loading-shell strong { font-size: 1.35rem; }
.native-loading-shell span { color: #b9d9d2; font-size: .88rem; }
.native-loading-shell i { width: 70px; height: 5px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.16); }
.native-loading-shell i::after { content: ""; display: block; width: 32px; height: 100%; border-radius: inherit; background: #f49a7f; animation: loading-slide 1.2s ease-in-out infinite; }

@keyframes guide-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes guide-rise-in {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes loading-slide {
    0% { transform: translateX(-32px); }
    50% { transform: translateX(38px); }
    100% { transform: translateX(-32px); }
}

#blazor-error-ui { display: none; position: fixed; inset: auto 0 0 0; z-index: 1000; padding: 12px 20px; background: #fff3cd; color: #543e0b; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

@media (max-width: 1050px) {
    .topbar { padding-inline: 22px; }
    .person-switcher select { width: clamp(210px, 30vw, 280px); }
    .profile-chip > span:last-child { display: none; }
    .subscription-management-grid { grid-template-columns: 1fr; }
    .subscription-overview { position: static; }
    .metric-grid, .capture-grid { grid-template-columns: repeat(2,1fr); }
    .family-overview-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .family-quick-actions { grid-template-columns: 1fr; }
    .help-journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .help-step-card p { min-height: 0; }
    .welcome-hero { grid-template-columns: 1fr 1fr; }
    .welcome-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-split, .welcome-pricing { grid-template-columns: 1fr; }
    .welcome-split-reverse > :first-child, .welcome-split-reverse > :last-child { order: initial; }
    .welcome-reassurance-grid { grid-template-columns: 1fr; }
    .welcome-use-case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 761px) and (max-height: 800px) {
    .sidebar { padding-block: 16px; }
    .brand { padding-bottom: 18px; }
    .sidebar-primary-action { margin-bottom: 12px; padding-block: 10px; }
    .sidebar-primary-action small { display: none; }
    .primary-nav { gap: 3px; }
    .primary-nav a { padding-block: 9px; }
    .sidebar-footer { gap: 6px; padding: 9px; }
    .sidebar-privacy-summary small { display: none; }
    .sidebar-support-links { padding-top: 6px; }
    .sidebar-support-links a { min-height: 31px; padding-block: 4px; }
}

@media (max-width: 760px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset: auto 0 0 0; z-index: 20; width: auto; height: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 35px rgba(24,51,47,.16); }
    .brand, .sidebar-spacer { display: none; }
    .primary-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
    .primary-nav .nav-utility { display: none; }
    .primary-nav a { min-height: 64px; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 2px; font-size: .76rem; text-align: center; }
    .primary-nav a span { width: auto; font-size: 1.2rem; }
    .primary-nav .nav-record { margin-top: -14px; border: 5px solid #123f39; border-radius: 18px; background: var(--coral); color: #173f39; }
    .primary-nav .nav-record.active { background: #f5b69f; color: #173f39; }
    .capture-method { min-height: 72px; }
    .capture-method small { display: none; }
    .primary-nav a small { display: none; }
    .topbar { min-height: 70px; padding: 10px 12px; gap: 8px; }
    .mobile-brand { display: none; }
    .topbar-context { min-width: 0; }
    .topbar-actions { width: auto; gap: 6px; }
    .person-switcher { width: 100%; min-width: 0; }
    .person-switcher > span { display: none; }
    .person-switcher select { width: 100%; min-width: 0; }
    .profile-chip > span:last-child { display: none; }
    .profile-menu-button { padding: 2px; }
    .help-button { width: 44px; height: 44px; }
    .profile-menu { position: fixed; top: 78px; right: 12px; }
    .content { padding: 24px 15px 118px; }
    .page-heading.wizard-active { display: none; }
    h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); line-height: 1.12; }
    h2 { font-size: 1.15rem; }
    .surface { padding: 19px; border-radius: 16px; }
    .family-member-card.needs-attention::before { margin: -19px -19px 0; padding: 9px 19px; border-radius: 16px 16px 0 0; }
    .hero, .page-heading, .review-banner, .consent-panel { display: block; }
    .web-home-header { display: block; }
    .web-home-header .status-pill { margin-top: 14px; }
    .web-next-action { grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 20px; }
    .web-next-icon { width: 50px; height: 50px; border-radius: 15px; }
    .web-next-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
    .web-summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .web-summary-strip > div { padding: 13px 9px; }
    .web-summary-strip nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid #cfddd9; border-left: 0; }
    .web-summary-strip nav a { flex: 1 1 130px; }
    .heading-badges { align-items: flex-start; margin-top: 14px; }
    .pathway-selector { display: block; }
    .pathway-selector .secondary-button { display: inline-block; margin-top: 14px; }
    .hero .status-pill, .page-heading .status-pill, .review-banner button { margin-top: 14px; }
    .family-overview-header-tools { margin-top: 18px; }
    .family-add-menu summary { width: 100%; }
    .family-add-options { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
    .metric-grid, .capture-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { padding: 14px; }
    .metric-card .metric-icon { display: none; }
    .pipeline { grid-template-columns: 1fr 1fr; gap: 20px 0; }
    .pipeline div:nth-child(3) { border-left: 0; }
    .message-shell { grid-template-columns: 1fr; }
    .message-shell { min-height: calc(100dvh - 220px); }
    .conversation-list { max-height: none; overflow-y: auto; border-right: 0; border-bottom: 0; }
    .conversation { min-height: 72px; padding: 12px 10px; }
    .conversation small { max-width: calc(100vw - 125px); }
    .chat-panel { display: none; min-height: calc(100dvh - 220px); }
    .message-shell.conversation-open .conversation-list { display: none; }
    .message-shell.conversation-open .chat-panel { display: grid; }
    .mobile-chat-back { display: inline-flex; min-height: 44px; align-items: center; border: 0; background: transparent; color: var(--brand); font-weight: 800; }
    .chat-header { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 12px 14px; }
    .chat-header .mobile-chat-back { grid-column: 1 / -1; }
    .chat-stream { max-height: none; padding: 14px 10px; }
    .bubble { max-width: 88%; }
    .message-actions button { min-height: 36px; padding: 7px 10px; }
    .composer-wrap { position: sticky; bottom: 75px; z-index: 5; background: white; box-shadow: 0 -8px 20px rgba(8,35,31,.08); }
    .composer { grid-template-columns: 1fr auto; padding: 10px; background: white; }
    .integration-card { grid-template-columns: 48px 1fr; }
    .integration-card > :last-child { grid-column: 2; justify-self: start; }
    .pairing-grid, .capability-grid, .subscription-grid { grid-template-columns: 1fr; }
    .recipient-management { padding: 22px; }
    .recipient-management-heading { display: grid; }
    .recipient-management-heading .quiet-button { justify-self: start; }
    .recipient-capacity-label { display: grid; gap: 4px; }
    .recipient-add-panel { grid-template-columns: 1fr; gap: 18px; }
    .recipient-add-form { grid-template-columns: 1fr; }
    .recipient-row { grid-template-columns: 42px minmax(0, 1fr); }
    .recipient-cost { grid-column: 2; justify-self: start; }
    .subscription-date-note { display: grid; gap: 5px; }
    .subscription-date-note span { text-align: left; }
    .capture-workspace, .capture-context-grid, .capture-form-grid, .analysis-summary, .capture-review .analysis-summary, .observation-editor { grid-template-columns: 1fr; }
    .wizard-pathway-grid, .wizard-columns, .threshold-editor, .review-summary-grid { grid-template-columns: 1fr; }
    .wizard-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
    .wizard-actions { position: sticky; bottom: 75px; z-index: 5; margin: 24px -19px -19px; padding: 12px 19px; background: white; box-shadow: 0 -8px 20px rgba(8,35,31,.08); }
    .threshold-editor textarea { grid-column: auto; }
    .publish-panel { grid-template-columns: 1fr; }
    .conversation-form-grid, .composer-tools { grid-template-columns: 1fr; }
    .family-quick-actions { gap: 9px; }
    .quick-action { min-height: 76px; padding: 13px; }
    .task-row { grid-template-columns: 42px minmax(0, 1fr); align-items: start; }
    .task-icon { width: 42px; height: 42px; }
    .task-complete-button { grid-column: 2; width: 100%; }
    .capture-mode-actions > *, .mobile-motion-actions > *, .family-member-actions > * { flex: 1 1 100%; }
    .capture-submit { width: 100%; }
    .capture-workspace > .side-stack { display: none; }
    input, select, textarea { font-size: 17px; }
    .onboarding-backdrop { padding: 0; align-items: stretch; }
    .onboarding-dialog { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; }
    .onboarding-header { padding: 16px 18px 4px; }
    .onboarding-header .brand-logo-copy { display: none; }
    .onboarding-progress { padding: 10px 18px; }
    .onboarding-progress button { flex: 1; width: auto; }
    .onboarding-progress button.active { width: auto; }
    .onboarding-content { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 5px; min-height: 0; padding: 0 20px 18px; }
    .onboarding-copy h1 { margin: 7px 0 12px; font-size: clamp(2rem, 10vw, 3rem); }
    .onboarding-copy > p { font-size: .92rem; line-height: 1.52; }
    .onboarding-points { gap: 8px; margin-top: 16px; }
    .onboarding-points li { align-items: flex-start; font-size: .8rem; }
    .onboarding-art { width: min(340px, 90%); margin: 0 auto; padding: 0; }
    .onboarding-art .care-journey-illustration { max-height: 240px; }
    .onboarding-footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
    .onboarding-footer > span { display: none; }
    .onboarding-footer > div { width: 100%; }
    .onboarding-footer button { flex: 1; }
    .guide-balloon { right: 15px; bottom: 94px; grid-template-columns: 40px 1fr; padding: 18px 45px 18px 17px; border-radius: 20px 20px 5px 20px; }
    .guide-balloon-icon { width: 40px; height: 40px; border-radius: 13px; }
    .help-hero { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; padding: 25px 20px; border-radius: 22px; }
    .help-hero .care-journey-illustration { max-height: 270px; }
    .help-hero-actions > * { width: 100%; }
    .help-journey-grid, .help-confidence-grid { grid-template-columns: 1fr; }
    .help-step-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; }
    .help-step-card .care-journey-illustration { grid-column: 1 / -1; height: 190px; }
    .help-step-card h3, .help-step-card p, .help-step-card a { grid-column: 2; }
    .help-confidence-grid .surface { min-height: 0; }
    .support-page-hero, .about-purpose, .feedback-layout { grid-template-columns: 1fr; }
    .support-page-hero { gap: 20px; padding: 25px 20px; border-radius: 22px; }
    .about-principles { grid-template-columns: 1fr; }
    .about-principles .surface { min-height: 0; }
    .support-page-actions { display: grid; }
    .feedback-form-card { padding: 20px; }
    .feedback-form-grid { grid-template-columns: 1fr; gap: 0; }
    .feedback-form-grid > div + div .field-label { margin-top: 17px; }
    .feedback-help-card { position: static; }
    .feedback-success { margin: 20px 0; padding: 22px; }
    .authentication-shell { padding: 14px; }
    .authentication-brand { padding-bottom: 10px; }
    .authentication-brand > span { display: none; }
    .mobile-welcome-card { grid-template-columns: 1fr; border-radius: 24px; }
    .mobile-welcome-art { min-height: 260px; padding: 10px 28px; }
    .mobile-welcome-art .care-journey-illustration { max-height: 260px; }
    .mobile-welcome-copy { padding: 8px 22px 28px; }
    .mobile-welcome-copy h1 { font-size: 2.15rem; }
    .welcome-page { padding: 14px 18px 50px; }
    .welcome-nav .brand-logo-copy span { display: none; }
    .welcome-hero { grid-template-columns: 1fr; gap: 15px; min-height: 0; padding: 55px 0 30px; }
    .welcome-copy h1 { font-size: clamp(2.35rem, 10.5vw, 3.4rem); }
    .welcome-copy > p { font-size: 1rem; }
    .welcome-actions > * { width: 100%; }
    .welcome-art { min-height: 555px; max-width: 540px; margin: 0 auto; }
    .welcome-phone { width: min(330px, 88%); min-height: 520px; padding: 30px 16px 18px; border-width: 7px; border-radius: 37px; transform: none; }
    .welcome-phone-list > div { min-height: 50px; grid-template-columns: 28px 1fr auto; padding: 8px 9px; }
    .welcome-floating-card { width: 180px; padding: 11px; }
    .welcome-floating-card.first { left: -5px; bottom: 18px; }
    .welcome-floating-card.second { top: 32px; right: -5px; }
    .welcome-section { padding-top: 78px; }
    .welcome-question-grid { display: grid; }
    .welcome-question-grid blockquote { border-radius: 16px; }
    .welcome-feature-grid { grid-template-columns: 1fr; }
    .welcome-feature-grid h3 { margin-top: 18px; }
    .welcome-split { gap: 26px; }
    .welcome-source-cards { grid-template-columns: 1fr; }
    .welcome-source-cards span { min-height: 54px; }
    .welcome-care-circle-card > div { grid-template-columns: 42px 1fr; }
    .welcome-permission { grid-column: 2; justify-self: start; }
    .welcome-wellbeing-card ul { grid-template-columns: 1fr; }
    .welcome-use-case-grid, .welcome-trust-grid { grid-template-columns: 1fr; }
    .welcome-person-card { grid-template-columns: 1fr; }
    .welcome-person-actions { justify-content: flex-start; }
    .welcome-demo-shell { grid-template-columns: 1fr; }
    .welcome-demo-steps { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
    .welcome-demo-steps button { min-width: 230px; scroll-snap-align: start; }
    .welcome-demo-stage { min-height: 560px; padding: 22px; }
    .demo-task { grid-template-columns: 42px 1fr; }
    .demo-task button { grid-column: 1 / -1; }
    .demo-family-grid { grid-template-columns: 1fr; }
    .demo-plan-options { grid-template-columns: 1fr; }
    .welcome-demo-footer { flex-wrap: wrap; }
    .welcome-demo-footer > * { flex: 1; }
    .welcome-pricing { grid-template-columns: 1fr; }
    .welcome-final-cta { margin-top: 78px; padding: 38px 20px; border-radius: 24px; }
    .welcome-final-cta > div > * { width: 100%; }
}

.sidebar-primary-action small,
.sidebar-footer small,
.profile-chip small,
.family-summary-bar span,
.metric-card div span,
.mobile-motion-grid span,
.capture-step-rail span,
.capture-help-card li span,
.web-summary-strip span,
.web-summary-strip nav a,
.section-heading a,
.selected-file,
.capture-history-row small,
.conversation small,
.conversation-empty small,
.chat-header small,
.realtime-state,
.message-attachments > div,
.reaction-list span,
.pathway-card > a,
.citation-list a,
.connection-state,
.test-billing-note p,
.pathway-choice small,
.care-circle-member small,
.plan-metrics span,
.plan-detail-list span,
.version-history summary,
.version-history div,
.onboarding-footer > span,
.help-step-card p,
.help-step-card a,
.welcome-floating-card small {
    font-size: .82rem;
}

.muted,
.consent-check,
.review-banner p,
.consent-panel p,
.plan-item p,
.capture-history-row p,
.guide-balloon p {
    font-size: .9rem;
}

.capture-textarea {
    min-height: 150px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
