:root {
  --ink: #102528;
  --ink-soft: #365256;
  --teal: #3e7e72;
  --teal-dark: #1b4e51;
  --aqua: #35d0ee;
  --mint: #e8f2e6;
  --mint-deep: #cfe5c0;
  --gold: #dfcd90;
  --cream: #fcfbf8;
  --mist: #f3f5f4;
  --line: #dfe8e5;
  --white: #fff;
  --danger: #a84d43;
  --shadow: 0 24px 70px rgba(24, 66, 67, .12);
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-shell { overflow: hidden; }
.landing-header { width: min(1180px, calc(100% - 48px)); height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; z-index: 5; }
.brand-link { display: inline-flex; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 50% 50% 50% 8px; display: grid; place-items: center; font-family: Georgia, serif; font-size: 26px; font-style: italic; font-weight: 600; color: var(--gold); background: var(--ink); transform: rotate(-8deg); }
.brand b { display: block; font-size: 20px; font-weight: 700; line-height: 1; }
.brand small { display: block; margin-top: 4px; font-size: 7px; font-weight: 700; letter-spacing: .3em; color: var(--teal); }
.brand-light { color: var(--white); }
.brand-light .brand-mark { background: var(--gold); color: var(--ink); }
.brand-light small { color: var(--gold); }
.landing-nav { display: flex; gap: 30px; margin-left: auto; color: var(--ink-soft); font-size: 13px; }
.landing-nav a { transition: color .2s ease; }
.landing-nav a:hover { color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: 21px; }
.text-button, .link-button { border: 0; background: transparent; color: var(--teal-dark); font-size: 13px; font-weight: 700; padding: 8px 0; }
.text-button:hover, .link-button:hover { color: var(--teal); }
.mobile-header-actions { display: none; }
.button { min-height: 46px; border: 0; border-radius: 4px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: var(--white); background: var(--teal-dark); font-size: 13px; font-weight: 700; box-shadow: 0 9px 20px rgba(27, 78, 81, .18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 13px 25px rgba(27, 78, 81, .25); background: #123d40; }
.button:disabled { cursor: wait; opacity: .6; }
.button-primary { background: var(--teal-dark); }
.button-gold { color: var(--ink); background: var(--gold); box-shadow: none; }
.button-gold:hover:not(:disabled) { background: #e9dba9; }
.hero-section { min-height: 650px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 50px; position: relative; }
.hero-section::before { content: ''; position: absolute; z-index: -1; width: 46vw; height: 46vw; max-width: 610px; max-height: 610px; right: -90px; top: 15px; background: radial-gradient(circle, rgba(53,208,238,.17), rgba(53,208,238,0) 66%); }
.hero-copy { padding: 50px 0 75px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; color: var(--teal); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); display: inline-block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 600px; margin-bottom: 23px; font-size: clamp(45px, 5.2vw, 73px); line-height: 1.02; }
h1 em, h2 em { color: var(--teal); font-style: italic; }
.hero-text { max-width: 455px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 25px; }
.play-link { padding: 8px 0; border: 0; background: none; display: inline-flex; align-items: center; gap: 9px; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.play-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--teal); border-radius: 50%; font-family: Georgia, serif; font-size: 21px; line-height: 1; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 58px; }
.avatar-stack { display: flex; padding-left: 9px; }
.avatar-stack span { width: 28px; height: 28px; margin-left: -9px; border: 2px solid var(--cream); border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--teal); font-size: 8px; font-weight: 700; }
.avatar-stack span:nth-child(2) { background: #c78e73; }.avatar-stack span:nth-child(3) { background: #6d8f97; }
.hero-trust p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }.hero-trust strong { color: var(--ink); font-size: 11px; }
.hero-visual { min-height: 560px; position: relative; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgba(62,126,114,.25); border-radius: 50%; transform: rotate(-19deg); }.orbit-one { width: 500px; height: 420px; }.orbit-two { width: 590px; height: 485px; border-color: rgba(223,205,144,.36); transform: rotate(25deg); }
.hero-image-card { width: min(82%, 480px); padding: 20px; border-radius: 48% 48% 42% 42%; background: linear-gradient(135deg, rgba(220,239,226,.85), rgba(242,248,239,.45)); box-shadow: 0 26px 65px rgba(58, 100, 89, .15); transform: rotate(4deg); position: relative; z-index: 1; }
.hero-image-card::before { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(62,126,114,.23); border-radius: inherit; }.hero-image-card img { display: block; width: 100%; border-radius: 40% 40% 34% 34%; position: relative; mix-blend-mode: multiply; }
.hero-note { position: absolute; z-index: 2; min-width: 213px; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border: 1px solid rgba(62,126,114,.12); border-radius: 9px; background: rgba(255,255,255,.84); box-shadow: 0 16px 30px rgba(24,66,67,.12); backdrop-filter: blur(8px); }.hero-note strong, .hero-note small { display: block; }.hero-note strong { color: var(--ink); font-size: 11px; }.hero-note small { margin-top: 4px; color: var(--ink-soft); font-size: 9px; }.note-top { top: 94px; right: -6px; }.note-bottom { bottom: 90px; left: 12px; }.note-icon, .note-check { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-dark); background: #e1f3e9; }.note-check { color: var(--white); background: var(--teal); }
.logo-strip { width: min(100%, 1280px); min-height: 85px; margin: 0 auto; padding: 0 35px; display: flex; align-items: center; justify-content: space-around; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #78908d; font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.content-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }.section-heading { max-width: 650px; }.section-heading h2, .split-heading h2 { margin-bottom: 19px; font-size: clamp(39px, 4vw, 58px); line-height: 1.06; }.section-heading > p:last-child, .split-heading > p { max-width: 545px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.feature-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }.feature-card { min-height: 292px; padding: 28px; border: 1px solid var(--line); background: var(--white); position: relative; transition: transform .2s ease, box-shadow .2s ease; }.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }.feature-top { display: flex; align-items: center; justify-content: space-between; color: #9eb3ae; font-size: 11px; font-weight: 700; }.feature-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--teal); background: var(--mint); }.feature-card h3 { margin: 36px 0 11px; font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 500; }.feature-card p { max-width: 265px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }.feature-arrow, .service-arrow { position: absolute; bottom: 27px; right: 28px; color: var(--teal); }
.services-section { padding-top: 76px; }.split-heading { max-width: 100%; display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: end; }.split-heading > p { margin: 0 0 5px; }.service-list { margin-top: 52px; border-top: 1px solid var(--line); }.service-row { min-height: 105px; display: grid; grid-template-columns: 75px 1fr 1.5fr 80px; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); position: relative; }.service-number { color: var(--teal); font-size: 11px; font-weight: 700; }.service-row h3 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 500; }.service-row p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }.service-arrow { position: static; justify-self: end; }
.portal-cta { width: min(1280px, calc(100% - 48px)); margin-bottom: 96px; padding: 60px 75px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--white); background: linear-gradient(110deg, var(--teal-dark), var(--teal)); border-radius: 4px; }.portal-cta h2 { max-width: 560px; margin-bottom: 12px; font-size: 43px; }.portal-cta p:last-child { max-width: 570px; margin: 0; color: rgba(255,255,255,.77); font-size: 14px; line-height: 1.7; }.eyebrow-dark { color: var(--gold); }
.site-footer { min-height: 140px; padding: 35px max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 42px; color: rgba(255,255,255,.7); background: var(--ink); font-size: 11px; }.site-footer p { margin: 0; flex: 1; }.site-footer > span { color: rgba(255,255,255,.45); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(350px, .8fr) minmax(530px, 1.2fr); background: var(--cream); }.auth-visual { padding: 60px clamp(30px, 7vw, 110px); color: var(--white); background: linear-gradient(148deg, #153537 0%, #255e5b 58%, #709775 100%); position: relative; overflow: hidden; }.auth-visual::after { content: ''; position: absolute; right: -150px; bottom: -180px; width: 520px; height: 520px; border: 1px solid rgba(223,205,144,.35); border-radius: 50%; box-shadow: 0 0 0 40px rgba(223,205,144,.07), 0 0 0 80px rgba(223,205,144,.04); }.auth-visual-inner { max-width: 410px; position: relative; z-index: 1; }.auth-visual .brand { margin-bottom: 145px; }.auth-visual h1 { max-width: 390px; margin-bottom: 22px; font-size: clamp(45px, 4.5vw, 66px); }.auth-visual h1 em { color: var(--gold); }.auth-visual-inner > p:not(.eyebrow) { max-width: 350px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.75; }.auth-quote { max-width: 320px; margin-top: 78px; padding: 18px 0 0 26px; border-left: 1px solid var(--gold); position: relative; }.auth-quote > span { position: absolute; top: -18px; left: 12px; color: var(--gold); font-family: Georgia, serif; font-size: 50px; }.auth-quote p { margin-bottom: 12px; color: rgba(255,255,255,.88); font-family: Georgia, serif; font-size: 17px; line-height: 1.55; }.auth-quote small { color: rgba(255,255,255,.55); font-size: 10px; }.auth-content { padding: 35px clamp(26px, 6vw, 105px); display: flex; flex-direction: column; justify-content: center; }.back-link { align-self: flex-start; padding: 9px 0; margin-bottom: 52px; border: 0; background: none; color: var(--teal-dark); font-size: 12px; font-weight: 700; }.auth-card { width: min(100%, 600px); margin: 0 auto; }.auth-card-heading { margin-bottom: 30px; }.auth-card-heading h2 { margin-bottom: 9px; font-size: 42px; line-height: 1.05; }.auth-card-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }.portal-form { display: flex; flex-direction: column; gap: 16px; }.form-grid { display: grid; gap: 14px; }.two-columns { grid-template-columns: 1fr 1fr; }.field-label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 700; }.required { margin-left: 3px; color: var(--teal); }.optional { margin-left: 6px; color: #8aa09c; font-size: 10px; font-weight: 400; }.field-label input, .field-label select, .field-label textarea { width: 100%; border: 1px solid var(--line); border-radius: 3px; outline: none; color: var(--ink); background: var(--white); font-size: 13px; font-weight: 400; transition: border .2s, box-shadow .2s; }.field-label input, .field-label select { height: 44px; padding: 0 13px; }.field-label textarea { min-height: 78px; padding: 12px 13px; resize: vertical; line-height: 1.5; }.field-label input::placeholder, .field-label textarea::placeholder { color: #9cacaa; }.field-label input:focus, .field-label select:focus, .field-label textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(62,126,114,.09); }.select-label { position: relative; }.select-label select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 12px) 19px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }.has-error input, .has-error select { border-color: #d58c83; }.field-error { color: var(--danger); font-size: 10px; font-weight: 500; }.alert { padding: 12px 14px; display: flex; align-items: center; gap: 9px; border-radius: 3px; color: var(--danger); background: #fcebe8; font-size: 11px; line-height: 1.4; }.consent-row, .remember-row { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 400; line-height: 1.5; }.consent-row input, .remember-row input { margin: 1px 0 0; accent-color: var(--teal); }.full-button { width: 100%; margin-top: 3px; }.form-switch { margin: 3px 0 0; text-align: center; color: var(--ink-soft); font-size: 11px; }.form-switch button { padding: 0; border: 0; background: transparent; color: var(--teal-dark); font-weight: 700; text-decoration: underline; }.login-form { max-width: 430px; }.login-form .field-label { margin-bottom: 3px; }.login-help { display: flex; justify-content: space-between; align-items: center; }.login-help .link-button { font-size: 10px; font-weight: 500; text-decoration: underline; }.loading-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--ink-soft); font-size: 13px; background: var(--cream); }.loading-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50% 50% 50% 8px; color: var(--ink); background: var(--gold); font-family: Georgia, serif; font-size: 30px; font-style: italic; }
.dashboard-shell { min-height: 100vh; display: flex; color: var(--ink); background: #f6f8f7; }.dashboard-sidebar { width: 246px; flex: 0 0 246px; padding: 30px 18px 20px; display: flex; flex-direction: column; color: rgba(255,255,255,.82); background: linear-gradient(180deg, #132628 0%, #1d4f53 67%, #3e7e72 100%); }.sidebar-top { padding: 0 10px; display: flex; align-items: center; justify-content: space-between; }.sidebar-label { margin: 49px 12px 14px; color: rgba(255,255,255,.45); text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .17em; }.sidebar-close { display: none; border: 0; background: none; color: var(--white); font-size: 24px; }.dashboard-nav { display: flex; flex-direction: column; gap: 4px; }.nav-item { width: 100%; min-height: 48px; padding: 0 13px; border: 0; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.7); background: transparent; text-align: left; font-size: 12px; }.nav-item span { display: flex; align-items: center; gap: 12px; }.nav-item:hover, .nav-item.active { color: var(--ink); background: #a6ed78; }.nav-item b { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); font-size: 10px; }.nav-item small { color: rgba(255,255,255,.4); font-size: 8px; }.sidebar-bottom { margin-top: auto; }.secure-badge { margin: 0 8px 20px; padding: 12px 10px; display: flex; gap: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 4px; color: rgba(255,255,255,.6); }.secure-badge strong, .secure-badge small { display: block; }.secure-badge strong { color: rgba(255,255,255,.9); font-size: 10px; }.secure-badge small { margin-top: 4px; font-size: 8px; }.logout-button { width: 100%; padding: 10px 12px; display: flex; gap: 10px; align-items: center; border: 0; color: rgba(255,255,255,.7); background: transparent; font-size: 11px; }.logout-button:hover { color: var(--white); }.dashboard-main { min-width: 0; flex: 1; }.dashboard-header { min-height: 100px; padding: 22px 5.5%; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--white); }.dashboard-kicker { margin: 0 0 6px; color: var(--teal); text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .15em; }.dashboard-header h1 { margin: 0; font-size: 29px; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -.03em; }.profile-chip { display: flex; align-items: center; gap: 10px; }.profile-chip > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-dark); background: var(--mint-deep); font-size: 11px; font-weight: 700; }.profile-chip strong, .profile-chip small { display: block; }.profile-chip strong { font-size: 11px; }.profile-chip small { margin-top: 3px; color: #839795; font-size: 9px; }.profile-chip > .icon { margin-left: 8px; color: #8ba09c; }.mobile-menu-button { display: none; border: 0; background: transparent; color: var(--teal-dark); }.dashboard-content { width: min(1150px, calc(100% - 80px)); margin: 0 auto; padding: 42px 0 65px; }.welcome-banner { min-height: 191px; padding: 32px 39px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; color: var(--white); background: linear-gradient(105deg, #1c5558, #4b8c7d); border-radius: 5px; position: relative; }.welcome-banner::after { content: ''; position: absolute; right: 45px; width: 200px; height: 200px; border: 1px solid rgba(223,205,144,.35); border-radius: 50%; box-shadow: 0 0 0 24px rgba(223,205,144,.06), 0 0 0 48px rgba(223,205,144,.04); }.welcome-banner > div:first-child { position: relative; z-index: 1; }.welcome-banner h2 { max-width: 540px; margin: 0 0 8px; font-size: 32px; }.welcome-banner p:last-child { max-width: 580px; margin: 0; color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.65; }.welcome-symbol { width: 63px; height: 63px; flex: 0 0 63px; margin-right: 50px; display: grid; place-items: center; z-index: 1; color: var(--gold); border: 1px solid rgba(223,205,144,.75); border-radius: 50%; }.dashboard-grid { margin-top: 18px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }.dashboard-card { padding: 25px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.card-heading h3 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 500; }.status-pill, .conversation-count { white-space: nowrap; padding: 7px 10px; border-radius: 20px; color: var(--teal-dark); background: var(--mint); font-size: 9px; font-weight: 700; }.status-pill { display: inline-flex; align-items: center; gap: 6px; }.status-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }.journey-line { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }.journey-line::before { content: ''; position: absolute; left: 7px; right: 8px; top: 8px; height: 1px; background: var(--line); }.journey-step { min-width: 0; padding-right: 8px; position: relative; z-index: 1; }.journey-dot { width: 17px; height: 17px; margin-bottom: 12px; display: grid; place-items: center; border: 1px solid #c5d5d1; border-radius: 50%; color: var(--white); background: var(--white); }.journey-step.done .journey-dot { border-color: var(--teal); background: var(--teal); }.journey-step strong, .journey-step small { display: block; }.journey-step strong { font-size: 10px; line-height: 1.3; }.journey-step small { margin-top: 5px; color: #8da19d; font-size: 9px; line-height: 1.45; }.round-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--teal); border-radius: 50%; background: var(--mint); }.profile-details { margin-top: 29px; display: flex; flex-direction: column; gap: 16px; }.profile-details > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }.profile-details small, .profile-details strong { font-size: 10px; }.profile-details small { color: #8da19d; }.profile-details strong { max-width: 160px; text-align: right; }.profile-note { margin-top: 17px; padding: 10px; display: flex; align-items: center; gap: 8px; border-radius: 3px; color: var(--teal-dark); background: #f1f7f1; font-size: 9px; line-height: 1.4; }.conversations-card { margin-top: 18px; }.conversations-card > .card-heading { align-items: center; }.conversation-body { min-height: 138px; margin-top: 25px; padding: 2px 0; }.empty-conversation { min-height: 138px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #8da19d; }.empty-icon { width: 47px; height: 47px; margin-bottom: 11px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--mint); }.empty-conversation h4 { margin: 0 0 5px; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 500; }.empty-conversation p { max-width: 320px; margin: 0; font-size: 10px; line-height: 1.55; }.dashboard-notice { margin-top: 15px; padding: 10px 13px; color: var(--teal-dark); background: var(--mint); font-size: 10px; }.message-list { max-height: 310px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }.message-bubble { max-width: 75%; padding: 12px 15px; border-radius: 3px 12px 12px 12px; color: var(--ink); background: #f1f6f5; }.message-bubble.from-patient { margin-left: auto; border-radius: 12px 3px 12px 12px; color: var(--white); background: var(--teal); }.message-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 6px; }.message-meta strong, .message-meta span { font-size: 9px; }.message-meta span { opacity: .65; }.message-bubble p { margin: 0; font-size: 11px; line-height: 1.5; }.message-composer { margin-top: 20px; padding-top: 18px; display: flex; gap: 12px; border-top: 1px solid var(--line); }.message-composer textarea { min-width: 0; flex: 1; padding: 12px; resize: vertical; border: 1px solid var(--line); outline: none; border-radius: 3px; color: var(--ink); background: #fbfdfc; font-size: 11px; }.message-composer textarea:focus { border-color: var(--teal); }.message-composer .button { min-height: 43px; align-self: flex-end; padding: 0 15px; font-size: 11px; }.icon { display: block; flex: 0 0 auto; }
/* Poppins is the single typeface used across the landing page, forms and portal. */
html, body, button, input, select, textarea,
.brand-mark, h1, h2, h3, h4, .play-icon, .logo-strip,
.auth-quote > span, .auth-quote p, .loading-mark,
.dashboard-header h1, .card-heading h3, .empty-conversation h4 {
  font-family: 'Poppins', Arial, sans-serif !important;
}

@media (max-width: 980px) { .landing-nav { display: none; }.hero-section { grid-template-columns: 1fr 1fr; gap: 20px; }.hero-note { transform: scale(.88); }.note-top { right: -22px; }.note-bottom { left: -15px; }.split-heading { gap: 35px; }.portal-cta { padding: 48px; }.auth-visual { padding: 45px; }.auth-visual .brand { margin-bottom: 95px; }.dashboard-sidebar { width: 215px; flex-basis: 215px; }.dashboard-content { width: min(100% - 42px, 900px); }.dashboard-grid { grid-template-columns: 1fr; }.profile-details { flex-direction: row; justify-content: space-between; }.profile-details > div { flex-direction: column; border: 0; padding: 0; }.profile-details strong { text-align: left; }.profile-note { margin-top: 22px; } }
@media (max-width: 720px) { .landing-header { width: calc(100% - 32px); height: 72px; }.header-actions { display: none; }.mobile-header-actions { display: block; }.icon-button { padding: 8px; border: 0; color: var(--teal-dark); background: transparent; }.hero-section { width: calc(100% - 32px); padding-top: 24px; display: flex; flex-direction: column; align-items: stretch; }.hero-copy { padding: 38px 0 10px; }.hero-visual { min-height: 390px; margin-top: 5px; }.hero-image-card { width: min(78%, 350px); }.visual-orbit { transform: scale(.75) rotate(-19deg); }.note-top { top: 42px; right: -5px; }.note-bottom { bottom: 28px; left: -4px; }.hero-note { min-width: 175px; padding: 10px; }.hero-note strong { font-size: 9px; }.hero-note small { font-size: 8px; }.logo-strip { flex-wrap: wrap; gap: 18px; padding: 22px 16px; font-size: 14px; }.content-section { width: calc(100% - 32px); padding: 78px 0; }.feature-grid { grid-template-columns: 1fr; margin-top: 32px; }.feature-card { min-height: 250px; }.split-heading { display: block; }.split-heading > p { margin-top: 20px; }.service-row { min-height: 142px; grid-template-columns: 42px 1fr 35px; gap: 10px; }.service-row h3 { font-size: 20px; }.service-row p { grid-column: 2 / 3; }.service-arrow { grid-column: 3; grid-row: 1 / 3; }.portal-cta { width: calc(100% - 32px); margin-bottom: 58px; padding: 35px 25px; display: block; }.portal-cta h2 { font-size: 34px; }.portal-cta .button { margin-top: 25px; }.site-footer { padding: 30px 20px; flex-wrap: wrap; gap: 17px; }.site-footer p { flex-basis: 100%; }.auth-shell { display: block; }.auth-visual { min-height: 360px; padding: 28px 24px 42px; }.auth-visual .brand { margin-bottom: 60px; }.auth-visual h1 { margin-bottom: 12px; font-size: 45px; }.auth-visual-inner > p:not(.eyebrow) { max-width: 310px; font-size: 12px; }.auth-quote { display: none; }.auth-visual::after { width: 330px; height: 330px; right: -130px; bottom: -180px; }.auth-content { padding: 28px 20px 50px; }.back-link { margin-bottom: 28px; }.auth-card-heading h2 { font-size: 36px; }.two-columns { grid-template-columns: 1fr; gap: 16px; }.dashboard-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 260px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 15px 0 30px rgba(16,37,40,.15); }.dashboard-sidebar.mobile-open { transform: translateX(0); }.sidebar-close { display: block; }.mobile-menu-button { display: block; }.dashboard-header { padding: 18px 20px; align-items: flex-start; }.dashboard-header h1 { font-size: 22px; }.dashboard-kicker { font-size: 8px; }.profile-chip { display: none; }.dashboard-content { width: calc(100% - 30px); padding: 24px 0 45px; }.welcome-banner { padding: 25px; min-height: 220px; }.welcome-banner h2 { font-size: 28px; }.welcome-symbol { display: none; }.dashboard-card { padding: 20px 17px; }.journey-line { grid-template-columns: 1fr; gap: 14px; }.journey-line::before { left: 8px; top: 8px; bottom: 8px; width: 1px; height: auto; }.journey-step { display: flex; align-items: flex-start; gap: 12px; padding: 0; }.journey-dot { flex: 0 0 17px; margin: 0; }.profile-details { flex-direction: column; gap: 13px; }.profile-details > div { flex-direction: row; padding-bottom: 10px; border-bottom: 1px solid var(--line); }.profile-details strong { text-align: right; }.message-composer { display: block; }.message-composer .button { width: 100%; margin-top: 9px; }.message-bubble { max-width: 90%; } }

/* Patient profile photos are reused in the portal header and conversation bubbles. */
.profile-chip > span { overflow: hidden; }
.profile-chip > span.profile-chip-image { background: #dceae6; }
.profile-chip > span img { width: 100%; height: 100%; display: block; object-fit: cover; }
.message-bubble { position: relative; }
.message-avatar { width: 25px; height: 25px; display: grid; place-items: center; overflow: hidden; position: absolute; right: -33px; bottom: 8px; border: 2px solid var(--white); border-radius: 50%; color: var(--teal-dark); background: var(--mint-deep); font-size: 8px; font-weight: 700; }
.message-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dashboard-header .profile-chip > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
}
.dashboard-header .profile-chip > span img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.admin-login-button { color: var(--gold) !important; }
.admin-login-button:hover { color: var(--white) !important; }
.admin-placeholder { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--cream); }
.admin-placeholder-card { width: min(100%, 540px); padding: 46px; text-align: center; border: 1px solid var(--line); border-radius: 5px; background: var(--white); box-shadow: 0 20px 60px rgba(16,37,40,.08); }
.admin-placeholder-card .brand { justify-content: center; margin-bottom: 45px; }
.admin-placeholder-card h1 { margin: 0 0 12px; font-size: 38px; }
.admin-placeholder-card > p:not(.eyebrow) { margin: 0 auto 28px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.admin-dashboard-content { width: min(1180px, calc(100% - 80px)); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.admin-stat-card { min-height: 126px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.admin-stat-card small { color: #8da19d; font-size: 10px; font-weight: 700; }
.admin-stat-card strong { color: var(--teal-dark); font-family: 'Poppins', Arial, sans-serif; font-size: 38px; font-weight: 500; line-height: 1; }
.admin-overview-grid, .admin-section-grid, .admin-settings-grid { margin-top: 18px; display: grid; grid-template-columns: 1.45fr .85fr; gap: 18px; align-items: start; }
.admin-section-grid { grid-template-columns: 1fr 1fr; }
.admin-settings-grid { grid-template-columns: 1fr 1fr; }
.admin-overview-grid .dashboard-card, .admin-section-grid .dashboard-card, .admin-settings-grid .dashboard-card { min-width: 0; }
.admin-text-action { padding: 4px 0; border: 0; color: var(--teal); background: transparent; font-size: 10px; font-weight: 700; }
.admin-text-action:hover { color: var(--teal-dark); }
.admin-quick-card { min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.admin-quick-card h3 { margin: 4px 0 9px; font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 500; }
.admin-quick-card p:not(.eyebrow) { margin: 0 0 22px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.admin-empty { min-height: 170px; display: grid; place-items: center; color: #8da19d; font-size: 11px; }
.admin-patient-list, .admin-staff-list { margin-top: 20px; display: flex; flex-direction: column; }
.admin-patient-row, .admin-staff-row { min-width: 0; padding: 13px 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; border-top: 1px solid var(--line); }
.admin-avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--teal-dark); background: var(--mint-deep); font-size: 9px; font-weight: 700; }
.admin-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.admin-patient-row strong, .admin-patient-row small, .admin-staff-row strong, .admin-staff-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-patient-row strong, .admin-staff-row strong { color: var(--ink); font-size: 11px; }
.admin-patient-row small, .admin-staff-row small { margin-top: 3px; color: #8da19d; font-size: 9px; }
.admin-patient-service { max-width: 155px; overflow: hidden; color: var(--ink-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-status, .admin-role-badge { padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.admin-status { color: var(--teal-dark); background: var(--mint); }
.admin-status.closed { color: #8d5752; background: #fcebe8; }
.admin-role-badge { color: #735d25; background: #f7edc9; }
.admin-role-badge.admin { color: var(--teal-dark); background: #dcefe8; }
.admin-staff-info { min-width: 0; }
.admin-notice, .admin-alert { margin-bottom: 16px; }
.admin-settings-grid .portal-form { gap: 16px; }
.staff-login-button { color: #b8cfca !important; }
.staff-login-button:hover { color: var(--white) !important; }
.staff-header-actions { display: flex; align-items: center; gap: 20px; }
.staff-notification-button { width: 34px; height: 34px; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 50%; color: var(--teal-dark); background: var(--white); }
.staff-notification-button b { min-width: 16px; height: 16px; padding: 0 3px; display: grid; place-items: center; position: absolute; top: -5px; right: -5px; border-radius: 50%; color: var(--white); background: var(--teal); font-size: 8px; }
.admin-patient-button { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; font-family: inherit; cursor: pointer; }
.admin-patient-button:hover { background: #f7faf8; }
.staff-inbox-card { margin-top: 0; }
.staff-inbox { min-height: 490px; margin-top: 22px; display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.staff-thread-list { max-height: 550px; overflow-y: auto; border-right: 1px solid var(--line); background: #fbfdfc; }
.staff-thread-item { width: 100%; min-width: 0; padding: 13px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; font-family: inherit; cursor: pointer; }
.staff-thread-item:hover, .staff-thread-item.active { background: var(--mint); }
.staff-thread-item > span:nth-child(2) { min-width: 0; }
.staff-thread-item strong, .staff-thread-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-thread-item strong { font-size: 10px; }
.staff-thread-item small { margin-top: 4px; color: #8da19d; font-size: 9px; }
.staff-thread-item time { color: #8da19d; font-size: 8px; white-space: nowrap; }
.staff-thread-view { min-width: 0; display: flex; flex-direction: column; background: var(--white); }
.staff-thread-heading { padding: 14px 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.staff-thread-heading strong, .staff-thread-heading small { display: block; }
.staff-thread-heading strong { font-size: 12px; }
.staff-thread-heading small { margin-top: 3px; color: #8da19d; font-size: 9px; }
.staff-message-list { min-height: 300px; max-height: 390px; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; }
.staff-message { max-width: 78%; padding: 11px 13px; border-radius: 3px 11px 11px 11px; background: #f1f6f5; }
.staff-message.from-staff { margin-left: auto; border-radius: 11px 3px 11px 11px; color: var(--white); background: var(--teal); }
.staff-message p { margin: 0; font-size: 10px; line-height: 1.55; }
.staff-message-composer { margin-top: auto; padding: 13px; display: flex; gap: 9px; border-top: 1px solid var(--line); }
.staff-message-composer textarea { min-width: 0; min-height: 42px; flex: 1; padding: 10px; resize: vertical; border: 1px solid var(--line); outline: none; border-radius: 3px; color: var(--ink); background: #fbfdfc; font-family: inherit; font-size: 10px; }
.staff-message-composer textarea:focus { border-color: var(--teal); }
.staff-message-composer .button { align-self: flex-end; min-height: 42px; padding: 0 14px; font-size: 10px; }

@media (max-width: 980px) {
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-overview-grid, .admin-section-grid, .admin-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-dashboard-content { width: calc(100% - 30px); }
  .admin-patient-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .admin-patient-service { display: none; }
  .admin-staff-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .admin-staff-row .admin-status { grid-column: 2; justify-self: start; }
  .admin-placeholder-card { padding: 30px 22px; }
  .staff-header-actions .profile-chip { display: none; }
  .staff-inbox { grid-template-columns: 1fr; }
  .staff-thread-list { max-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .staff-message { max-width: 88%; }
  .staff-message-composer { display: block; }
  .staff-message-composer .button { width: 100%; margin-top: 8px; }
}

/* Agent patient-list view, styled after the supplied CRM reference. */
.rise-agent-shell { background: #ececf1; }
.rise-agent-shell .rise-agent-sidebar { width: 282px; flex: 0 0 282px; padding: 28px 15px 18px; background: linear-gradient(180deg, #171f1d 0%, #172b32 52%, #245a67 100%); }
.rise-agent-sidebar .sidebar-top { padding: 0 77px 0 77px; }
.rise-search-link { width: 100%; margin: 32px 0 24px; padding: 0 7px; display: flex; align-items: center; gap: 8px; border: 0; color: rgba(255,255,255,.86); background: transparent; text-align: left; font-size: 20px; }
.rise-search-link span { font-size: 16px; }
.rise-search-link small { margin-left: auto; color: rgba(255,255,255,.72); font-size: 12px; }
.rise-agent-nav { gap: 5px; }
.rise-agent-nav .nav-item { min-height: 48px; padding: 0 9px; border-radius: 5px; font-size: 20px; }
.rise-agent-nav .nav-item > span { gap: 13px; }
.rise-agent-nav .nav-item > span > b { min-width: 0; height: auto; padding: 0; color: inherit; background: transparent; font-size: 14px; font-weight: 600; }
.rise-agent-nav .nav-item > b { min-width: 21px; height: 21px; color: #132628; background: #a6ed78; }
.rise-agent-nav .nav-item:hover, .rise-agent-nav .nav-item.active { color: #0e1d20; background: #a6ed78; }
.rise-nav-divider { height: 1px; margin: 18px 10px 24px; background: rgba(255,255,255,.7); }
.rise-settings-link { margin-top: auto; }
.rise-agent-main { background: #ececf1; }
.rise-topbar { height: 58px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.9); background: linear-gradient(105deg, #153b44 0%, #296576 56%, #659078 100%); }
.rise-topbar-actions { display: flex; align-items: center; gap: 17px; }
.rise-slack-button { padding: 9px 15px; border: 0; border-radius: 4px; color: #13211e; background: #9af06e; font-size: 13px; font-weight: 600; }
.rise-topbar-icon { font-size: 21px; }
.rise-topbar-avatar { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 12px; font-weight: 700; }
.rise-agent-content { min-width: 0; padding: 0 0 30px; }
.rise-title-row { min-height: 58px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #d4d5dd; background: #fff; }
.rise-title-row > div:first-child { display: flex; align-items: center; gap: 14px; }
.rise-title-row h1 { margin: 0; color: #162e46; font-family: 'Poppins', Arial, sans-serif; font-size: 23px; font-weight: 500; }
.rise-smart-title { padding: 11px 12px; border: 0; border-radius: 5px; color: #fff; background: #1e5d73; font-size: 15px; font-weight: 600; }
.rise-title-actions { display: flex; align-items: center; gap: 14px; }
.rise-action-button, .rise-more-button { min-height: 40px; padding: 0 15px; border: 0; border-radius: 5px; color: #fff; background: #1d718d; font-size: 14px; font-weight: 600; }
.rise-more-button { width: 32px; padding: 0; font-size: 23px; }
.rise-list-panel { min-width: 0; padding: 15px 17px 0; }
.rise-contact-heading { padding: 0 0 18px; }
.rise-contact-heading h2 { margin: 0; color: #1a3048; font-size: 25px; font-weight: 600; }
.rise-contact-heading h2 span { margin-left: 10px; padding: 8px 13px; border-radius: 5px; color: #fff; background: #237692; font-size: 15px; vertical-align: middle; }
.rise-smart-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-bottom: 15px; }
.rise-smart-tabs button { min-height: 39px; padding: 0 13px; border: 0; border-radius: 5px; color: #1b2c3b; background: transparent; white-space: nowrap; font-size: 14px; }
.rise-smart-tabs button.active { color: #fff; background: #1d536a; }
.rise-smart-tabs button small { margin-left: 7px; color: inherit; opacity: .72; font-size: 10px; }
.rise-smart-tabs .rise-more-list { margin-left: auto; background: #f7f8fb; color: #506174; }
.rise-smart-tabs .rise-add-list { font-size: 14px; }
.rise-list-controls { min-height: 57px; display: flex; align-items: center; gap: 10px; }
.rise-control-group { display: flex; gap: 10px; }
.rise-control-button, .rise-control-select { height: 39px; padding: 0 14px; border: 0; border-radius: 5px; color: #1b4260; background: #fff; font-size: 14px; }
.rise-control-button.active { color: #fff; background: #1e637c; }
.rise-control-select { outline: none; }
.rise-search-box { min-width: 260px; height: 39px; margin-left: auto; padding: 0 10px; display: flex; align-items: center; gap: 8px; border-radius: 5px; background: #fff; }
.rise-search-box span { color: #7c8998; font-size: 21px; }
.rise-search-box input { min-width: 0; flex: 1; border: 0; outline: none; color: #22384d; background: transparent; font-family: inherit; font-size: 14px; }
.rise-search-box input::placeholder { color: #718094; }
.rise-search-box button { display: none; }
.rise-manage-fields { padding: 0 0 0 3px; border: 0; color: #20364d; background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rise-filter-panel { margin: 2px 0 14px; padding: 14px; display: flex; align-items: flex-end; gap: 15px; border: 1px solid #d9dde5; border-radius: 5px; background: #f8f9fc; }
.rise-filter-panel label { display: flex; flex-direction: column; gap: 5px; color: #506174; font-size: 11px; font-weight: 600; }
.rise-filter-panel select { height: 34px; min-width: 170px; padding: 0 9px; border: 1px solid #d2d8e1; border-radius: 4px; color: #1b2c3b; background: #fff; }
.rise-filter-panel button { height: 34px; padding: 0 12px; border: 0; border-radius: 4px; color: #1e637c; background: transparent; font-size: 12px; font-weight: 600; }
.rise-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e0e2e7; border-radius: 5px; background: #fff; }
.rise-patient-table { width: 100%; min-width: 1050px; border-collapse: collapse; color: #33465d; background: #fff; font-size: 13px; }
.rise-pipeline-table { min-width: 1260px; }
.rise-patient-table th, .rise-patient-table td { height: 54px; padding: 0 15px; border-bottom: 1px solid #e6e8ec; text-align: left; white-space: nowrap; }
.rise-patient-table th { height: 49px; color: #506174; background: #fbfcfd; font-size: 12px; font-weight: 600; }
.rise-patient-table th:first-child, .rise-patient-table td:first-child { width: 34px; padding-right: 0; }
.rise-patient-table input[type="checkbox"] { width: 19px; height: 19px; accent-color: #19708c; }
.rise-contact-cell { display: flex; align-items: center; gap: 9px; }
.rise-contact-link { padding: 0; border: 0; display: flex; align-items: center; gap: 9px; color: inherit; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.rise-contact-link:hover strong { color: #1d657e; text-decoration: underline; }
.rise-contact-cell strong { color: #42536b; font-size: 14px; font-weight: 500; }
.rise-patient-avatar { width: 35px; height: 35px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #40556a; background: #e9eef4; font-size: 11px; font-weight: 600; }
.rise-patient-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rise-phone-cell { color: #274257; }
.rise-email-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.rise-tag, .rise-tag-count { display: inline-block; padding: 4px 9px; border: 1px solid #1980ab; border-radius: 15px; color: #183246; font-size: 12px; }
.rise-tag-count { margin-left: 6px; padding: 4px 8px; }
.rise-table-message { height: 180px !important; color: #7c8998; text-align: center !important; }
.rise-table-message.error { color: #b15b53; }
.rise-pagination { min-height: 57px; padding: 0 5px; display: flex; align-items: center; gap: 9px; color: #536477; font-size: 13px; }
.rise-pagination > span { margin-right: auto; }
.rise-pagination label { padding: 8px 12px; border: 1px solid #d9dde5; border-radius: 5px; background: #fff; }
.rise-pagination button { min-width: 40px; height: 36px; padding: 0 9px; border: 1px solid #d9dde5; border-radius: 4px; color: #536477; background: #fff; font-size: 13px; }
.rise-pagination button.active { color: #1d5f80; border-color: #2876a1; background: #f5f9fd; }
.rise-pagination button:disabled { color: #aeb6c1; background: #f3f4f6; }

@media (max-width: 1050px) {
  .rise-agent-shell .rise-agent-sidebar { width: 235px; flex-basis: 235px; }
  .rise-smart-tabs .rise-more-list { margin-left: 0; }
  .rise-list-controls { flex-wrap: wrap; padding: 7px 0; }
  .rise-search-box { margin-left: 0; }
  .rise-manage-fields { margin-left: auto; }
}
@media (max-width: 720px) {
  .rise-agent-shell .rise-agent-sidebar { position: fixed; z-index: 30; width: 260px; transform: translateX(-100%); transition: transform .25s ease; }
  .rise-agent-shell .rise-agent-sidebar.mobile-open { transform: translateX(0); }
  .rise-topbar { height: 52px; padding: 0 14px; }
  .rise-topbar-actions { gap: 9px; }
  .rise-topbar-icon { display: none; }
  .rise-title-row { padding: 10px 14px; align-items: flex-start; flex-direction: column; }
  .rise-title-actions { width: 100%; overflow-x: auto; }
  .rise-list-panel { padding: 14px 10px 0; }
  .rise-contact-heading h2 { font-size: 21px; }
  .rise-list-controls { align-items: stretch; }
  .rise-control-group { width: 100%; overflow-x: auto; }
  .rise-search-box { width: 100%; }
  .rise-manage-fields { margin-left: 0; }
  .rise-filter-panel { align-items: stretch; flex-direction: column; }
  .rise-filter-panel select { width: 100%; }
}

/* CRM-style team inbox for staff conversations. */
.staff-conversation-page-heading { min-height: 58px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #d4d5dd; background: #fff; }
.staff-conversation-title { display: flex; align-items: center; gap: 5px; min-width: 0; }
.staff-conversation-title h1 { margin: 0 12px 0 0; color: #162e46; font-family: 'Poppins', Arial, sans-serif; font-size: 23px; font-weight: 500; }
.staff-conversation-tab { min-height: 40px; padding: 0 12px; border: 1px solid #ccd2da; border-radius: 5px; color: #1b2c3b; background: #fff; font-size: 14px; white-space: nowrap; }
.staff-conversation-tab.active { color: #fff; border-color: #1e5d73; background: #1e5d73; font-weight: 600; }
.staff-automation-badge { padding: 9px 13px; border-radius: 5px; color: #fff; background: #257252; font-size: 12px; font-weight: 600; white-space: nowrap; }
.staff-conversation-notice { padding: 0 17px; }
.staff-conversation-notice:empty { display: none; }
.staff-crm-workspace { margin: 18px 17px 30px; overflow: hidden; border: 1px solid #e0e3e8; border-radius: 12px; background: #f8fafd; box-shadow: 0 1px 2px rgba(20, 42, 58, .04); }
.staff-inbox-toolbar { min-height: 66px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e6e9ef; background: #f8fafd; }
.staff-inbox-toolbar h2 { margin: 0; color: #172e47; font-size: 20px; font-weight: 600; }
.staff-inbox-toolbar p { margin: 4px 0 0; color: #8795a4; font-size: 10px; }
.staff-inbox-tools { display: flex; gap: 8px; }
.staff-inbox-tools button, .crm-conversation-actions button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #5c6e80; background: transparent; font-size: 19px; }
.staff-inbox-tools button:hover, .crm-conversation-actions button:hover { color: #1c6680; background: #e5f2f4; }
.staff-inbox-tabs { min-height: 61px; padding: 0 20px; display: flex; align-items: end; gap: 27px; border-bottom: 1px solid #e6e9ef; background: #f8fafd; }
.staff-inbox-tabs button { min-height: 48px; padding: 0 2px; display: flex; align-items: center; gap: 6px; position: relative; border: 0; color: #53677d; background: transparent; font-size: 13px; }
.staff-inbox-tabs button.active { color: #172e47; font-weight: 600; }
.staff-inbox-tabs button.active::after { content: ''; height: 2px; position: absolute; right: 0; bottom: -1px; left: 0; background: #2879e7; }
.staff-inbox-tabs button b { min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: #2879e7; font-size: 10px; }
.staff-inbox-tabs button:not(.active) b { color: #65778a; background: #e9edf3; }
.staff-inbox-actions { min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e6e9ef; background: #fff; }
.staff-inbox-actions label { display: flex; align-items: center; gap: 9px; color: #506174; font-size: 12px; }
.staff-inbox-actions input[type="checkbox"], .crm-thread-item input[type="checkbox"], .staff-dnd-panel input[type="checkbox"] { width: 17px; height: 17px; accent-color: #237bdf; }
.staff-inbox-actions form { width: 245px; height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #d9dfe7; border-radius: 5px; background: #fff; }
.staff-inbox-actions form span { color: #8c99a8; font-size: 18px; }
.staff-inbox-actions form input { min-width: 0; flex: 1; border: 0; outline: 0; color: #263b51; background: transparent; font-family: inherit; font-size: 11px; }
.staff-crm-body { min-height: 630px; display: grid; grid-template-columns: 305px minmax(0, 1fr) 286px; background: #fff; }
.staff-crm-body .crm-thread-list { height: 630px; max-height: none; overflow-y: auto; border-right: 1px solid #e0e5eb; background: #fbfcfe; }
.crm-thread-item { min-height: 78px; padding: 11px 12px; display: grid; grid-template-columns: 18px 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 8px; border-bottom: 1px solid #e9edf1; }
.crm-thread-item:hover { background: #f0f6ff; }
.crm-thread-item.active { border-left: 3px solid #2879e7; background: #e5f0ff; }
.crm-thread-item input { margin: 0; }
.crm-thread-item .admin-avatar { width: 34px; height: 34px; }
.crm-thread-copy { min-width: 0; position: relative; padding-right: 2px; }
.crm-thread-copy strong, .crm-thread-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-thread-copy strong { color: #263a51; font-size: 11px; }
.crm-thread-copy small { margin-top: 5px; color: #718094; font-size: 9px; }
.crm-thread-copy em { display: block; margin-top: 5px; color: #9aa6b2; font-size: 8px; font-style: normal; }
.crm-unread-count { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: #2879e7; font-size: 9px; }
.crm-unread-count::before { content: 'Unread '; }
.crm-thread-item:not(:has(.crm-unread-count)) .crm-star { grid-column: 4 / 6; width: auto; display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: #718094; font-size: 9px; }
.crm-thread-item:not(:has(.crm-unread-count)) .crm-star::before { content: 'Read'; }
.crm-star { color: #91a0ae; font-size: 18px; line-height: 1; cursor: pointer; }
.crm-star.active { color: #f2ac26; }
.crm-read-status { padding: 4px 6px; border-radius: 10px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.crm-read-status.unread { color: #fff; background: #2879e7; }
.crm-read-status.read { color: #6e7f90; background: #edf1f5; }
.crm-conversation-view { min-width: 0; height: 630px; border-right: 1px solid #e0e5eb; background: #f8fafd; }
.crm-conversation-heading { min-height: 68px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e2e7ed; background: #fff; }
.crm-person-heading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.crm-person-heading strong, .crm-person-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-person-heading strong { color: #24384e; font-size: 13px; }
.crm-person-heading small { margin-top: 3px; color: #8795a4; font-size: 9px; }
.crm-conversation-actions { display: flex; gap: 3px; }
.crm-message-list { min-height: 0; max-height: none; flex: 1; padding: 20px 18px; overflow-y: auto; background: #f5f8fc; }
.crm-message { max-width: 75%; padding: 11px 14px; border: 1px solid #e5eaf0; border-radius: 4px 13px 13px 13px; background: #fff; box-shadow: 0 1px 2px rgba(22, 46, 70, .04); }
.crm-message.from-staff { border-color: #d5e3fb; border-radius: 13px 4px 13px 13px; background: #e5efff; color: #1f3852; }
.crm-composer { min-height: 67px; margin-top: 0; padding: 11px 13px; align-items: center; border-top: 1px solid #e2e7ed; background: #fff; }
.crm-compose-icon { min-width: 44px; height: 40px; border: 0; color: #2879e7; background: transparent; font-size: 14px; }
.crm-composer textarea { min-height: 40px; padding: 11px; border-color: #dce3eb; background: #fbfcfe; font-size: 10px; }
.crm-composer .button { min-height: 40px; border-radius: 5px; background: #2879e7; }
.staff-contact-panel { min-width: 0; height: 630px; overflow-y: auto; background: #fff; }
.staff-contact-heading { min-height: 68px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e7ed; }
.staff-contact-heading strong { color: #20364d; font-size: 14px; }
.staff-contact-heading button { border: 0; color: #6d7d8d; background: transparent; font-size: 21px; }
.staff-contact-profile { padding: 19px 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e8ecf1; }
.staff-contact-profile h3 { margin: 0; color: #24384e; font-size: 13px; }
.staff-contact-profile small { display: block; max-width: 175px; margin-top: 4px; overflow: hidden; color: #8795a4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.staff-contact-details { padding: 6px 17px 22px; display: flex; flex-direction: column; }
.staff-contact-detail { padding: 10px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 9px; border-bottom: 1px solid #edf0f3; }
.staff-contact-detail span { color: #8795a4; font-size: 9px; }
.staff-contact-detail strong { min-width: 0; color: #263a51; font-size: 10px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.staff-contact-detail strong.empty { color: #aab4bf; font-weight: 400; }
.staff-contact-fields { padding: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.staff-contact-fields span, .staff-contact-fields strong { display: block; }
.staff-contact-fields span { margin-bottom: 7px; color: #8795a4; font-size: 10px; }
.staff-contact-fields strong { padding: 6px 9px; overflow: hidden; border: 1px solid #b9d5ef; border-radius: 13px; color: #24384e; background: #f4f9ff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.staff-contact-fields button, .staff-contact-tags > button { width: 25px; height: 25px; border: 1px solid #ccd6e0; border-radius: 50%; color: #2879e7; background: #fff; }
.staff-contact-tags { padding: 0 17px 18px; }
.staff-contact-tags > strong { color: #24384e; font-size: 11px; }
.staff-contact-tags > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.staff-contact-tags > div span { padding: 5px 8px; border-radius: 12px; color: #53677d; background: #eef2f6; font-size: 9px; }
.staff-contact-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e2e7ed; border-bottom: 1px solid #e2e7ed; }
.staff-contact-tabs button { min-height: 34px; border: 0; color: #53677d; background: #fff; font-size: 10px; }
.staff-contact-tabs button.active { color: #fff; background: #1e5369; font-weight: 600; }
.staff-dnd-panel { padding: 18px 17px; display: flex; flex-direction: column; gap: 13px; color: #53677d; font-size: 10px; }
.staff-dnd-panel > strong { color: #24384e; font-size: 12px; }
.staff-dnd-panel label { display: flex; align-items: center; gap: 8px; }
.staff-dnd-panel hr { width: 100%; border: 0; border-top: 1px solid #e5e9ee; }

@media (max-width: 1180px) {
  .staff-crm-body { grid-template-columns: 280px minmax(0, 1fr); }
  .staff-contact-panel { grid-column: 1 / -1; height: auto; border-top: 1px solid #e0e5eb; }
  .staff-contact-profile, .staff-contact-fields, .staff-contact-tags, .staff-dnd-panel { max-width: 680px; }
}
@media (max-width: 720px) {
  .staff-conversation-page-heading { min-height: auto; padding: 10px 14px; align-items: flex-start; flex-direction: column; }
  .staff-conversation-title { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .staff-conversation-title h1 { font-size: 19px; }
  .staff-automation-badge { align-self: flex-end; }
  .staff-crm-workspace { margin: 12px 10px 20px; }
  .staff-inbox-tabs { gap: 15px; overflow-x: auto; }
  .staff-inbox-actions { align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .staff-inbox-actions form { width: 100%; }
  .staff-crm-body { display: block; }
  .staff-crm-body .crm-thread-list, .crm-conversation-view { height: auto; max-height: none; }
  .staff-crm-body .crm-thread-list { max-height: 290px; border-right: 0; border-bottom: 1px solid #e0e5eb; }
  .crm-conversation-view { min-height: 560px; border-right: 0; }
  .staff-contact-panel { height: auto; }
  .crm-message { max-width: 88%; }
  .crm-composer { align-items: stretch; flex-wrap: wrap; }
  .crm-composer textarea { flex-basis: calc(100% - 55px); }
  .crm-composer .button { width: 100%; }
}

/* Patient Process tracker board inspired by the supplied opportunity view. */
.rise-process-tab { min-height: 40px; padding: 0 12px; border: 1px solid #ccd2da; border-radius: 5px; color: #1b2c3b; background: #fff; font-size: 14px; }
.rise-process-content { min-width: 0; padding: 16px 17px 30px; background: #ececf1; }
.rise-process-toolbar { min-height: 145px; padding: 15px 9px 18px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; position: relative; }
.rise-pipeline-select { width: 320px; height: 45px; padding: 0 16px; border: 1px solid #d1d6df; border-radius: 5px; outline: none; color: #364b60; background: #fff; font-size: 15px; }
.rise-opportunity-count { min-height: 43px; padding: 12px 16px; border-radius: 5px; color: #fff; background: #237692; font-size: 15px; font-weight: 600; }
.rise-view-toggle { width: 43px; height: 43px; border: 0; border-radius: 5px; color: #fff; background: #174f67; font-size: 20px; }
.rise-view-toggle.active, .rise-process-action.active { background: #1d718d; }
.rise-process-action, .rise-process-sort { height: 40px; padding: 0 14px; border: 0; border-radius: 5px; color: #fff; background: #1f6e88; font-size: 13px; font-weight: 600; }
.rise-process-sort { color: #1b4260; background: #fff; }
.rise-process-search { width: 300px; height: 40px; margin-left: auto; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 5px; background: #fff; }
.rise-process-search span { color: #7c8998; font-size: 20px; }
.rise-process-search input { min-width: 0; flex: 1; border: 0; outline: none; color: #22384d; background: transparent; font-family: inherit; font-size: 13px; }
.rise-process-filters { width: 100%; margin: 0; }
.rise-process-board { width: 100%; min-height: 500px; padding-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; }
.rise-process-column { min-width: 292px; flex: 0 0 292px; min-height: 480px; }
.rise-process-column-heading { min-height: 87px; padding: 17px 17px 12px; display: flex; align-items: flex-start; justify-content: space-between; border: 1px solid #d8dbe1; background: #fff; box-shadow: 0 1px 1px rgba(30, 46, 68, .06); }
.rise-process-column-heading h2 { margin: 0 0 9px; color: #172536; font-size: 16px; font-weight: 700; }
.rise-process-column-heading span { padding: 7px 10px; border-radius: 3px; color: #172536; background: #e9ebef; font-size: 11px; }
.rise-process-column-heading button { border: 0; color: #495a6a; background: transparent; font-size: 21px; }
.rise-process-empty { min-height: 86px; padding: 28px 12px; color: #8793a0; background: #f2f3f6; text-align: center; font-size: 11px; }
.rise-opportunity-card { min-height: 130px; margin-top: 18px; padding: 16px 12px 12px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #e0e2e6; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(27, 44, 59, .1); cursor: grab; }
.rise-opportunity-card:active { cursor: grabbing; }
.rise-opportunity-name { padding: 0; border: 0; color: #23165e; background: transparent; text-align: left; font-family: inherit; font-size: 15px; line-height: 1.35; cursor: pointer; }
.rise-opportunity-name:hover { text-decoration: underline; }
.rise-opportunity-meta { min-height: 28px; display: flex; align-items: center; gap: 13px; color: #152e33; font-size: 17px; }
.rise-opportunity-meta a, .rise-opportunity-meta button { padding: 0; border: 0; color: #17383b; background: transparent; font-size: 18px; text-decoration: none; }
.rise-opportunity-meta span { font-size: 12px; }
.rise-opportunity-avatar { width: 25px; height: 25px; margin-left: auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #4a8b87; font-size: 8px !important; font-weight: 700; }
.rise-opportunity-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rise-process-list { overflow-x: auto; border: 1px solid #e0e2e7; border-radius: 5px; background: #fff; }
.rise-process-list table { width: 100%; min-width: 760px; border-collapse: collapse; color: #33465d; font-size: 13px; }
.rise-process-list th, .rise-process-list td { padding: 13px 15px; border-bottom: 1px solid #e6e8ec; text-align: left; }
.rise-process-list th { color: #506174; background: #fbfcfd; font-size: 12px; }
.rise-process-list select { min-height: 31px; padding: 0 8px; border: 1px solid #ccd7e0; border-radius: 4px; color: #1c4963; background: #fff; }
.rise-stage-cell { min-width: 138px; display: flex; flex-direction: column; gap: 4px; }
.rise-stage-select { min-height: 32px; max-width: 145px; padding: 0 7px; border: 1px solid #b9d5ef; border-radius: 4px; color: #1c4963; background: #f4f9ff; font-family: inherit; font-size: 10px; font-weight: 600; }
.rise-stage-cell small { color: #96a2ae; font-size: 8px; }
.rise-followup-input { width: 145px; min-height: 30px; padding: 0 6px; border: 1px solid #d4dce4; border-radius: 4px; color: #53677d; background: #fff; font-family: inherit; font-size: 9px; }

@media (max-width: 1050px) {
  .rise-process-toolbar { min-height: 195px; }
  .rise-process-search { margin-left: 0; }
}
@media (max-width: 720px) {
  .rise-process-content { padding: 10px 10px 20px; }
  .rise-process-toolbar { min-height: 275px; padding: 10px 4px; }
  .rise-pipeline-select, .rise-process-search { width: 100%; }
  .rise-process-action, .rise-process-sort { flex: 1; }
  .rise-process-board { margin: 0 -2px; }
  .rise-process-column { min-width: 270px; flex-basis: 270px; }
}
.message-bubble.unread-message {
  border-color: rgba(29, 101, 126, 0.45);
  box-shadow: 0 0 0 2px rgba(29, 101, 126, 0.08);
}

.message-unread-label {
  color: #1d657e;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
