.patient-layout { width: min(1150px, calc(100% - 64px)); margin: 0 auto; padding: 35px 0 52px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 100px; align-items: start; color: var(--ink, #142e35); }
.patient-layout button, .patient-layout textarea { font: inherit; }
.patient-layout button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.patient-layout button:focus-visible, .patient-layout summary:focus-visible, .patient-layout textarea:focus-visible { outline: 3px solid var(--accent, #236b63); outline-offset: 4px; }
.patient-story { padding-top: 63px; position: sticky; top: 114px; }
.patient-story-kicker { font-size: 13px; letter-spacing: 0; font-weight: 650; display: flex; align-items: center; gap: 8px; color: #60756b; }
.patient-story > h2 { font-family: 'IBM Plex Sans', var(--font, sans-serif); font-size: clamp(38px, 3.5vw, 51px); font-weight: 450; line-height: 1.13; letter-spacing: -.045em; margin: 21px 0 21px; }
.patient-story > h2 > span { color: var(--accent, #236b63); }
.patient-story-lede { color: #60756b; max-width: 370px; font-size: 16px; line-height: 1.75; margin: 0; }
.patient-story-connection { display: flex; align-items: center; margin-top: 36px; }
.patient-story-person, .patient-story-team { flex-shrink: 0; width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: #e5eee7; color: var(--accent, #236b63); font-size: 12px; font-weight: 600; }
.patient-story-team { background: var(--ink, #142e35); color: #e0f0e8; }
.patient-connection-line { width: 34px; display: flex; gap: 4px; justify-content: center; }
.patient-connection-line > span { width: 3px; height: 3px; border-radius: 50%; background: #a8b8ac; }
.patient-connection-label { margin-left: 13px; display: grid; gap: 5px; }
.patient-connection-label strong { font-size: 13px; font-weight: 550; }
.patient-connection-label > span { color: #60756b; font-size: 12px; }
.patient-story-points { margin-top: 29px; border-top: 1px solid var(--line, #e4e9e5); max-width: 385px; }
.patient-story-points > div { display: flex; align-items: baseline; gap: 19px; padding: 19px 0; border-bottom: 1px solid var(--line, #e4e9e5); }
.patient-story-points p { margin: 0; font-size: 14px; line-height: 1.65; color: #60756b; }
.patient-story-points strong { display: block; color: var(--ink, #142e35); font-size: 14px; font-weight: 550; margin-bottom: 3px; }
.patient-story-hint { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; color: #60756b; }
.patient-story-hint svg { flex-shrink: 0; margin-top: 2px; color: var(--accent, #236b63); }
.patient-story-hint p { margin: 0; font-size: 13px; line-height: 1.7; }
.patient-preview-wrap { width: 100%; }
.patient-preview-label { padding: 0 7px 13px; display: flex; justify-content: space-between; gap: 15px; color: #60756b; font-size: 12px; }
.patient-preview-label > span:first-child { font-weight: 650; font-size: 12px; letter-spacing: 0; }
.patient-device { position: relative; width: 100%; border: 1px solid #dce4dd; border-radius: 30px; background: #fff; box-shadow: 0 20px 65px rgba(24, 53, 40, .07), 0 3px 8px rgba(24, 53, 40, .025); max-height: calc(100dvh - 153px); min-height: 610px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #60756b transparent; }
.patient-brand-header { min-height: 80px; padding: 20px 27px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(255, 255, 255, .96); position: sticky; top: 0; z-index: 3; }
.patient-clinic-brand { display: flex; gap: 9px; align-items: center; font-family: 'IBM Plex Sans', var(--font, sans-serif); font-size: 18px; font-weight: 550; letter-spacing: -.045em; }
.patient-clinic-mark { height: 21px; width: 21px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; transform: rotate(-7deg); }
.patient-clinic-mark i { background: var(--accent, #236b63); border-radius: 7px 3px 7px 3px; }
.patient-clinic-mark i:nth-child(2), .patient-clinic-mark i:nth-child(3) { opacity: .55; }
.patient-avatar { height: 33px; width: 33px; display: grid; place-items: center; border: 1px solid #e6eae3; border-radius: 50%; background: #f4f5ee; color: #60756b; font-size: 12px !important; font-weight: 550 !important; }
.patient-screen { padding: 12px 26px 0; }
.patient-greeting { padding: 1px 0 22px; }
.patient-greeting > h1 { font-family: var(--font, sans-serif); font-size: 31px; font-weight: 550; line-height: 1.18; margin: 0; letter-spacing: -.055em; }
.patient-greeting > h1 > span { color: var(--accent, #236b63); }
.patient-page-intro { font-size: 14px; display: block; margin-top: 10px; color: #60756b; line-height: 1.6; }
.patient-hero { position: relative; overflow: hidden; background: #deeee4; background: color-mix(in srgb, var(--accent, #236b63) 10%, #eff7eb); min-height: 235px; border-radius: 20px; padding: 20px; isolation: isolate; }
.patient-hero-copy { position: relative; z-index: 1; }
.patient-stage-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 550; border-radius: 20px; padding: 6px 9px; color: #436358; }
.patient-stage-pill > span { display: inline-block; height: 4px; width: 4px; border-radius: 50%; background: var(--accent, #236b63); }
.patient-hero h2 { font-size: 28px; line-height: 1.13; font-weight: 500; letter-spacing: -.045em; margin: 17px 0 9px; }
.patient-hero p { font-size: 14px; line-height: 1.5; color: #60756b; margin: 0; max-width: 195px; }
.patient-hero-pathway { display: inline-block; margin-top: 18px; font-size: 12px; color: #60756b; max-width: 190px; }
.patient-orbit { position: absolute; width: 155px; height: 180px; right: -8px; bottom: -10px; transform: rotate(-29deg); opacity: .82; }
.patient-orbit-one, .patient-orbit-two, .patient-orbit-three { border-radius: 50%; position: absolute; border: 16px solid rgba(95, 150, 111, .16); width: 126px; height: 166px; top: 5px; left: 15px; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .6), 1px 1px 0 rgba(255, 255, 255, .5); }
.patient-orbit-two { transform: rotate(60deg); border-width: 12px; border-color: rgba(94, 152, 112, .12); }
.patient-orbit-three { transform: rotate(120deg); border-width: 9px; border-color: rgba(91, 143, 110, .13); }
.patient-orbit-spark { position: absolute; top: 56px; left: 61px; transform: rotate(29deg); color: #508563; }
.patient-checkin { width: 100%; display: flex; align-items: center; text-align: left; gap: 12px; border: 1px solid var(--line, #e4e9e5); border-radius: 15px; padding: 15px 13px; margin-top: 13px; background: #fff; color: var(--ink, #142e35); transition: background .18s, border-color .18s; }
.patient-checkin:hover { background: #f9fbf8; border-color: #60756b; }
.patient-checkin > span:nth-child(2) { flex: 1; }
.patient-checkin strong, .patient-checkin small { display: block; }
.patient-checkin strong { font-size: 14px; font-weight: 550; }
.patient-checkin small { color: #60756b; font-size: 12px; margin-top: 5px; }
.patient-checkin > svg { flex-shrink: 0; color: #60756b; }
.patient-checkin-icon { width: 35px; height: 35px; border-radius: 12px; display: grid; place-items: center; background: #f6f0e9; color: #60756b; flex-shrink: 0; }
.patient-checkin.is-submitted .patient-checkin-icon { color: var(--accent, #236b63); background: #e8f1e9; }
.patient-section { margin-top: 27px; }
.patient-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.patient-section-heading h2 { font-size: 18px; line-height: 1.3; font-weight: 550; letter-spacing: -.025em; margin: 0; }
.patient-section-counter { font-size: 12px; color: #60756b; }
.patient-section-note { color: #60756b; font-size: 13px; line-height: 1.6; margin: -5px 0 13px; }
.patient-task-list { display: flex; flex-direction: column; }
.patient-task { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px 1px; border: 0; background: transparent; text-align: left; color: var(--ink, #142e35); border-bottom: 1px solid #f0f2ed; }
.patient-task:first-child { padding-top: 7px; }
.patient-task:last-child { border-bottom: 0; }
.patient-task:hover .patient-task-check { border-color: var(--accent, #236b63); }
.patient-task-check { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #d2ddd3; display: grid; place-items: center; flex-shrink: 0; transition: background .18s, border-color .18s; }
.patient-task.is-complete .patient-task-check { background: var(--accent, #236b63); border-color: var(--accent, #236b63); color: #fff; }
.patient-task-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.patient-task-copy strong { font-size: 14px; font-weight: 500; line-height: 1.45; }
.patient-task-copy > span { font-size: 12px; color: #60756b; line-height: 1.5; }
.patient-task.is-complete .patient-task-copy strong { color: #60756b; text-decoration: line-through; text-decoration-color: #60756b; }
.patient-task-time { color: #60756b; font-size: 12px; flex-shrink: 0; padding-left: 5px; }
.patient-appointment { width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; background: #f4f2eb; border: 1px solid #efede5; border-radius: 15px; padding: 16px 14px; margin-top: 22px; color: var(--ink, #142e35); transition: background .18s; }
.patient-appointment:hover { background: #eeeee4; }
.patient-appointment-icon { width: 38px; height: 40px; border-radius: 10px; background: #fffdf7; color: #60756b; display: grid; place-items: center; flex-shrink: 0; }
.patient-appointment-copy { flex: 1; display: grid; gap: 6px; }
.patient-appointment-copy > span { font-size: 12px; letter-spacing: 0; color: #60756b; font-weight: 600; }
.patient-appointment-copy > strong { font-size: 14px; font-weight: 550; }
.patient-appointment-copy > small { color: #60756b; font-size: 12px; }
.patient-appointment > svg { color: #60756b; flex-shrink: 0; }
.patient-tiny-symbol { color: #60756b; }
.patient-instructions { margin-top: 27px; }
.patient-instruction { border-bottom: 1px solid #ebefe8; }
.patient-instruction summary { list-style: none; display: flex; align-items: center; gap: 11px; padding: 14px 0; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.5; }
.patient-instruction summary::-webkit-details-marker { display: none; }
.patient-instruction summary > span:not(.patient-instruction-number) { flex: 1; }
.patient-instruction summary > svg { color: #60756b; flex-shrink: 0; transition: transform .2s; }
.patient-instruction[open] summary > svg { transform: rotate(45deg); }
.patient-instruction-number { color: #60756b; font-family: 'IBM Plex Mono', monospace; font-size: 12px; width: 18px; flex-shrink: 0; }
.patient-instruction > p { margin: 0 0 15px; color: #60756b; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.patient-note-caption { font-size: 12px; color: #60756b; display: block; margin: -5px 0 15px; }
.patient-help { display: flex; align-items: center; gap: 11px; padding: 17px 0 3px; background: transparent; border: 0; width: 100%; text-align: left; color: var(--ink, #142e35); margin-top: 12px; }
.patient-help-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #f3f6f0; border-radius: 11px; color: #60756b; flex-shrink: 0; }
.patient-help > span:nth-child(2) { flex: 1; }
.patient-help strong { display: block; font-size: 14px; font-weight: 550; }
.patient-help small { display: block; font-size: 12px; color: #60756b; margin-top: 5px; line-height: 1.5; }
.patient-help > svg { color: #60756b; flex-shrink: 0; }
.patient-demo-footer { display: flex; align-items: center; justify-content: center; gap: 5px; color: #60756b; font-size: 12px; padding: 26px 0 18px; }
.patient-demo-footer > span { width: 3px; height: 3px; background: #a4b69d; border-radius: 50%; }
.patient-bottom-nav { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 20px 17px; border-top: 1px solid #edf0e9; background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px); gap: 8px; }
.patient-bottom-nav button { display: flex; align-items: center; flex-direction: column; gap: 7px; padding: 5px 5px 3px; border: 0; background: transparent; color: #60756b; border-radius: 10px; transition: background .18s, color .18s; }
.patient-bottom-nav button > span { font-size: 12px; line-height: 1; }
.patient-bottom-nav button.is-active { color: var(--accent, #236b63); }
.patient-bottom-nav button.is-active > span { font-weight: 600; }
.patient-bottom-nav button:hover { background: #f5f8f1; }
.patient-journey-summary { padding: 20px; border-radius: 18px; background: #e7efe5; }
.patient-journey-summary h2 { font-size: 21px; font-weight: 500; letter-spacing: -.045em; line-height: 1.25; margin: 17px 0 9px; max-width: 250px; }
.patient-journey-summary p { color: #60756b; font-size: 14px; margin: 0; line-height: 1.6; }
.patient-journey-doctor { font-size: 12px; color: #60756b; display: block; margin-top: 20px; }
.patient-milestones { padding: 7px 0 0; margin: 0; list-style: none; }
.patient-milestones li { position: relative; display: flex; gap: 16px; padding: 0 0 27px; }
.patient-milestones li::before { content: ''; position: absolute; left: 10px; width: 1px; background: #e4eadd; top: 23px; bottom: 1px; }
.patient-milestones li:last-child::before { display: none; }
.patient-milestones li:last-child { padding-bottom: 5px; }
.patient-milestone-dot { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #d9e3d3; color: #60756b; border-radius: 50%; flex-shrink: 0; font-size: 12px; }
.patient-milestones .is-complete .patient-milestone-dot { background: #dcebd8; border-color: #dcebd8; color: #60756b; }
.patient-milestones .is-current .patient-milestone-dot { border-color: var(--accent, #236b63); box-shadow: 0 0 0 4px #edf4e9; }
.patient-milestone-dot > i { width: 7px; height: 7px; background: var(--accent, #236b63); border-radius: 50%; }
.patient-milestones li > div { min-width: 0; flex: 1; }
.patient-milestone-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.patient-milestone-title h3 { font-size: 14px; font-weight: 550; margin: 0; }
.patient-milestone-title > span { padding: 3px 6px; background: #eef5e9; color: #60756b; font-size: 12px; border-radius: 5px; }
.patient-milestones p { font-size: 14px; line-height: 1.6; color: #60756b; margin: 7px 0 0; }
.patient-journey-footnote { margin: 23px 0 0; font-size: 12px; line-height: 1.7; color: #60756b; }
.patient-updates { border: 1px solid #e9eee2; border-radius: 13px; padding: 16px; }
.patient-update { display: flex; gap: 11px; margin-bottom: 18px; }
.patient-update:last-child { margin-bottom: 0; }
.patient-update-dot { flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: #a5b99a; margin-top: 4px; }
.patient-update > div > span { color: #60756b; font-size: 12px; }
.patient-update h3 { margin: 6px 0 0; font-size: 14px; font-weight: 550; }
.patient-update p { margin: 6px 0 0; color: #60756b; font-size: 13px; line-height: 1.7; }
.patient-team-card { display: flex; align-items: center; gap: 11px; border: 1px solid #e4ebdf; border-radius: 14px; padding: 14px 12px; }
.patient-team-avatar { display: grid; place-items: center; background: #e8f0e1; color: var(--accent, #236b63); height: 37px; width: 37px; border-radius: 50%; flex-shrink: 0; }
.patient-team-card > span:nth-child(2) { display: grid; gap: 5px; flex: 1; }
.patient-team-card strong { font-size: 14px; font-weight: 550; }
.patient-team-card small { font-size: 12px; color: #60756b; }
.patient-team-label { display: none; color: #60756b; font-size: 11px; letter-spacing: .05em; }
.patient-message-notice { display: flex; align-items: center; gap: 6px; margin: 14px 0 24px; color: #60756b; font-size: 12px; }
.patient-message-notice svg { flex-shrink: 0; }
.patient-messages { display: flex; flex-direction: column; gap: 17px; }
.patient-message { max-width: 91%; width: fit-content; border-radius: 15px; padding: 13px 14px; }
.patient-message.from-team { align-self: flex-start; background: #f1f5ec; border-bottom-left-radius: 4px; }
.patient-message.from-patient { align-self: flex-end; background: var(--accent, #236b63); color: #fff; border-bottom-right-radius: 4px; }
.patient-message-sender { font-size: 12px; font-weight: 550; opacity: .82; }
.patient-message p { margin: 7px 0 10px; font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.patient-message time { font-size: 12px; opacity: .8; display: block; text-align: right; }
.patient-conversation-empty { font-size: 14px; line-height: 1.6; color: #60756b; padding: 30px 20px; text-align: center; }
.patient-message-form { padding-top: 25px; }
.patient-message-form label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 8px; }
.patient-message-form textarea { width: 100%; padding: 13px; border: 1px solid #dee7d6; border-radius: 11px; font-size: 16px; line-height: 1.6; color: var(--ink, #142e35); background: #fff; box-sizing: border-box; resize: vertical; }
.patient-message-form textarea::placeholder { color: #60756b; }
.patient-message-form .btn { width: 100%; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 14px; min-height: 42px; border-radius: 10px; }
.patient-message-form > p { text-align: center; font-size: 12px; line-height: 1.7; color: #60756b; margin: 10px 4px 0; }
.patient-empty { padding: 40px; color: #60756b; text-align: center; }
@media (max-width: 1150px) { .patient-layout { gap: 50px; width: min(1000px, calc(100% - 50px)); grid-template-columns: minmax(0, 1fr) 420px; } .patient-story > h2 { font-size: 41px; } }
@media (max-width: 900px) { .patient-layout { display: block; width: 440px; max-width: calc(100% - 36px); padding-top: 24px; } .patient-story { display: none; } .patient-device { max-height: none; min-height: 0; } }
@media (max-width: 540px) {
  .patient-layout { width: 100%; max-width: none; padding: 0; }
  .patient-preview-label { display: none; }
  .patient-device { border: 0; border-radius: 0; box-shadow: none; width: 100%; overflow: visible; padding-bottom: 80px; min-height: calc(100dvh - 98px); }
  .patient-brand-header { min-height: 76px; padding: 19px 24px 13px; position: static; }
  .patient-screen { padding: 12px 24px 0; max-width: 450px; margin: auto; }
  .patient-greeting > h1 { font-size: 32px; }
  .patient-hero { min-height: 235px; padding: 21px; }
  .patient-hero h2 { font-size: 29px; }
  .patient-task { min-height: 62px; }
  .patient-instruction summary { min-height: 48px; }
  .patient-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; padding: 11px 26px max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -5px 20px rgba(41, 70, 37, .025); }
  .patient-bottom-nav button { min-height: 44px; }
  .patient-message-form textarea { font-size: 16px; min-height: 110px; }
  .patient-message-form .btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .patient-layout * { transition: none !important; } }
