/* Avenshore Care — cohesive, bright design system (v2)
   Applies consistently to marketing, auth, patient, chat, calls and staff surfaces.
   Display + body hierarchy: serif used sparingly for brand/editorial titles;
   highly legible sans-serif used for controls, navigation and medical information. */
:root {
  --bg:#ffffff; --white:#ffffff; --ink:#173237; --heading:#12353a;
  --muted:#47636a; --line:#d9e6e5; --green:#007a70; --green-2:#005f57;
  --mint:#e0f6f2; --mint-light:#f1fbf9;
  --peach:#fff5e6; --shadow:0 14px 38px rgba(14,55,56,.065);
  --font-body:"Inter","Inter Display","Segoe UI",Arial,sans-serif;
  --font-display:"Inter Display","Inter","Segoe UI",Arial,sans-serif;
  --color-aqua:#00b9ad; --text-soft:#47636a; --surface-soft:#f5faf9;
  --border-soft:#d9e6e5; --shadow-soft:0 10px 30px rgba(12,56,59,.048);
  font-family:var(--font-body); line-height:1.55;
}
html,body {background:#ffffff;color:var(--ink)}
body{font-size:16px; -webkit-font-smoothing:antialiased}
button,input,select,textarea {font-family:var(--font-body);letter-spacing:-.005em}
button {transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s}
:where(button,a,input,textarea,select):focus-visible{outline:3px solid #00a59a!important;outline-offset:3px}
button:active:not(:disabled){transform:translateY(1px)}
:where(p,.page-intro,.small-muted) {overflow-wrap:break-word}
:where(.eyebrow,.nav-caption,.inbox-label,.context-caption){letter-spacing:.075em!important;font-size:12px!important;font-weight:750!important;color:#216c69!important}
:where(.page-title,.chat-page-top h1,.home-greeting h1){font-family:var(--font-display)!important;font-weight:650!important;letter-spacing:-.043em!important;color:#13373b!important;line-height:1.12!important}
.page-heading{margin:0 0 24px;max-width:800px}
.page-heading .eyebrow{margin:0 0 8px}
.page-heading .page-title{margin:5px 0 9px}
.page-heading .page-intro{color:#46636a;font-size:17px;line-height:1.6;margin:0}
:where(.section-head h2,.panel h2,.queue h3,.care-hub-note h2){font-family:var(--font-display);color:#143a40;letter-spacing:-.025em;line-height:1.2}
:where(.btn,.header-care-cta,.composer-send,.context-call){font-size:15px;font-weight:700;min-height:48px;border-radius:13px}
.btn-primary,.header-care-cta,.composer-send{background:#00796f!important;color:white!important;border-color:#00796f!important}
.btn-primary:hover,.header-care-cta:hover,.composer-send:hover{background:#006158!important}
.btn-outline{border-color:#bedcda;color:#006960;background:white}
.btn-outline:hover{background:#edfaf7}
.mini-link,.section-head button{font-size:14px;font-weight:700;color:#00766f}
.safety{font-size:14px;line-height:1.6;color:#75552c;background:#fff9eb;border:1px solid #f0e0bb;border-radius:14px;padding:14px 17px}
.safety strong{color:#65451e}
.small-muted{color:var(--text-soft)!important;font-size:14px;line-height:1.6}
/* Shell: clean white surfaces and intentional alignment */
.shell{max-width:none;background:#fff}
.sidebar{background:#fff;border-color:#e2edeb;padding:26px 18px;gap:29px}
.sidebar .nav-caption{color:#54727a!important;margin:0 11px 13px}
.nav-set{gap:6px}
.nav-button{color:#42636a;border-radius:12px;font-size:15px;font-weight:650;min-height:50px}
.nav-button:hover{background:#ecf9f6;color:#006c62}
.nav-button.active{background:#dcf5ef;color:#00665d;box-shadow:inset 3px 0 #00a99c}
.sidebar-bottom{background:#f7fbfa;border-color:#dbe8e6}
.main{background:#fff;padding-inline:clamp(24px,3vw,48px)}
.topbar{height:92px;border-bottom:1px solid #ecf2f0;margin-bottom:27px}
.topbar-loc,.topbar-text{color:#47656b}
.topbar-brand{font-weight:700}
.status-pill{background:#e7f8f1;color:#135c4d;font-size:13px}
.avatar{background:#e3f4f0;color:#026d62}
.footer-note{border-top:1px solid #edf2f2;margin-top:35px;color:#60747a;text-align:left}
/* Cards use one elevation system and a consistent grid spacing */
:where(.panel,.metric,.queue,.care-hub-note,.home-content-grid>section,.home-next-card,.home-option,.care-hub-option,.auth-card,.feature){background:#fff;border:1px solid var(--border-soft);box-shadow:var(--shadow-soft);border-radius:19px}
:where(.panel,.queue,.care-hub-note){padding:clamp(20px,2.4vw,29px)}
:where(.panel,.queue,.care-hub-note) h2,:where(.panel,.queue,.care-hub-note) h3{margin:0 0 12px}
:where(.panel,.queue,.care-hub-note) p{font-size:16px;line-height:1.65;color:#48626a}
:where(.panel,.queue,.care-hub-note) p:last-child{margin-bottom:0}
.section-head{margin:29px 0 14px}
.section-head h2{font-size:24px}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:16px 0 30px}
.metric{padding:21px 25px;display:flex;flex-direction:column;gap:4px;min-width:0}
.metric strong{font-size:37px;color:#016c65;line-height:1.15}
.metric span{font-size:15px;color:#48676a}
/* Bright patient header, clear grouping, targeted accents */
.home-greeting h1{font-weight:660!important;color:#14383e!important}
.home-greeting >p:last-child{font-size:17px;color:#45636a}
.home-care-focus{background:linear-gradient(120deg,#e8faf8 0%,#f1faf6 63%,#ffffff 100%)!important;border:1px solid #ceece7;box-shadow:var(--shadow-soft)}
.home-care-focus .focus-copy>h2{color:#143d41!important}
.home-care-focus .focus-copy>p{color:#41636a!important}
.patient-home .section-head h2{font-family:var(--font-display)!important;font-weight:680!important;color:#12383d!important}
.home-content-grid{gap:18px}
.home-content-grid>section{background:#fff;box-shadow:var(--shadow-soft);border-color:#d9e6e5;padding:23px}
.home-content-grid .home-next-card,.home-content-grid .home-option{background:#fff;border:1px solid #dce9e6;box-shadow:none}
.home-content-grid .home-option{min-height:103px}
.home-next-card .next-step-copy strong,.home-option strong{color:#143a3f;font-weight:720}
.home-next-card .next-step-copy p,.home-option small{color:#47656b;font-size:14px;line-height:1.5}
.home-option>.option-icon,.next-step-icon,.care-hub-icon{background:#ddf6f0;color:#00776e}
.home-option>.option-phone,.care-hub-phone{background:#fff4df;color:#866223}
.home-option:hover,.care-hub-option:hover{border-color:#75c6be;background:#f5fcfa}
.home-peace{background:#f6fbfa;border:1px solid #e1eeec;border-radius:15px;padding:17px 20px;margin-top:23px}
/* Care, health, account and call flows all share alignment and restrained blocks */
.care-hub-options{gap:16px;margin-top:23px}
.care-hub-option{padding:26px;min-height:135px;background:#fff}
.care-hub-option strong{font-size:20px;color:#173940}
.care-hub-option small{color:#46636a;font-size:15px}
.care-hub-note{margin-top:18px;background:#f3faf9}
.health-page .health-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.health-page .health-card-grid>.panel{min-width:0;margin:0}
.health-page .health-card-grid>.panel h2{font-size:23px}
.health-info-actions{gap:10px}
.account-page .account-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:18px;align-items:start}
.account-page .account-layout>.panel{margin:0}
.account-page .profile-card{display:flex;align-items:center;gap:16px;min-width:0}
.account-page .profile-card h2{overflow-wrap:anywhere;font-size:23px}
.account-page .account-stat{background:#f4faf8;border:1px solid #e0eeeb;border-radius:13px;padding:15px 18px;margin:18px 0;display:flex;justify-content:space-between;gap:10px;align-items:center}
.account-page .account-stat span{color:#547077;font-size:14px}
.account-page .account-stat strong{text-transform:capitalize;color:#0e605b;font-size:15px}
.account-page .account-note{background:#fffaf0;border:1px solid #efdfbd;border-radius:18px;padding:22px;font-size:14px;color:#725830;line-height:1.65}
.account-page .account-note h2{font-size:20px;margin:0 0 9px;color:#644722}
.call-page .calling-card{margin-top:12px;background:linear-gradient(125deg,#effbf8 0%,#ffffff 85%);border:1px solid #d5e9e4;box-shadow:var(--shadow-soft)}
.call-page .calling-card h2{font-family:var(--font-display);color:#14393e;letter-spacing:-.03em}
.call-page .call-visual{background:transparent}
.call-page .queue{margin-top:18px}
.call-page .queue h3{font-size:22px}
.call-page .queue-item{border-bottom:1px solid #e9f0ee;padding-block:13px}
.call-page>.safety{margin-top:18px}
.staff-dashboard .admin-grid{gap:15px}
.staff-dashboard>.panel{margin-top:16px}
.staff-dashboard>.section-head{margin-top:28px}
/* Private message surfaces: luminous with vivid active states and high contrast */
.chat-page-top{align-items:center;margin-bottom:21px}
.chat-page-top h1{font-weight:650!important;font-size:clamp(34px,3.5vw,48px)!important}
.chat-page-top p{color:#466369;font-size:16px}
.chat-top-chip{background:#ecfaf6;border-color:#d0e8e0;color:#075c54}
.chat-layout{border-color:#d6e5e2;box-shadow:0 15px 50px rgba(9,59,59,.08);background:#fff}
.chat-layout>.chat-list{background:white;border-color:#dbe9e6}
.inbox-heading{padding:23px 20px 15px}
.inbox-heading h2{color:#12383d}
.inbox-count{background:#def6f0;color:#006c63}
.inbox-heading-icon{background:#e4f7f1;border-color:#ccece3;color:#007e73}
.inbox-search{border-color:#d5e6e3;background:#fff}
.inbox-filters button{font-size:14px;min-height:41px}
.inbox-filters button.is-active{background:#dff7f0;color:#005e56;border-color:#a5ddd3}
.chat-list .conversation-row{background:#fff;border-color:#edf1f1;min-height:94px}
.chat-list .conversation-row:hover{background:#f0faf7}
.chat-list .conversation-row.selected{background:#e5f8f3;box-shadow:inset 4px 0 #00a79b}
.chat-list .conv-text strong,.thread-ident strong{color:#133941}
.chat-list .conv-text small,.thread-ident small{color:#48656b}
.conv-category{color:#26706b;font-size:11px;font-weight:700}
.inbox-foot{background:#f2faf8;color:#41656a}
.thread-trust{background:#eaf8f4;color:#245e5b;font-size:14px}
.conversation .messages{background:linear-gradient(165deg,#ffffff,#f6fbfa 68%,#ffffff);gap:16px}
.message-group .bubble{border-color:#dce9e7;background:#fff;color:#1d3940;box-shadow:0 4px 14px rgba(15,60,62,.035)}
.message-group .bubble.mine{background:#def7ef;border-color:#bce9db}
.message-group .bubble .bubble-content{font-size:16px;line-height:1.62}
.message-group .bubble-meta{color:#496a6b;font-size:12px}
.thread-call,.context-call{background:#e9f9f5;border-color:#b9e4d9;color:#005c55}
.thread-call:hover,.context-call:hover{background:#d8f5ec}
.chat-context{background:#fbfefd;border-left-color:#e0ebe9!important}
.chat-context .context-head{background:#fff}
.chat-context .context-section{background:#fff}
.composer{background:#fff;border-top:1px solid #d9e9e5}
.composer-bar{border-color:#cbdedb;background:#f9fdfc}
.composer textarea{font-size:16px;color:#17373b;background:transparent}
.composer-helper{color:#45666b;font-size:12px}
/* Public and authentication pages follow same bright interface language */
.public-header,.public-main{background:#fff!important}
.public-header{border-color:#e4efed}
.public-nav>button:not(.btn){color:#173f44}
.public-hero{padding-top:73px;padding-bottom:76px}
.public-copy h1{color:#15373d}
.public-copy h1 em{color:#007f73}
.public-copy>p:not(.eyebrow){color:#476269}
.public-graphic{background:radial-gradient(circle at 75% 15%,#1ba99e 0%,#078277 38%,#09554f 100%)}
.graphic-card{border-color:#fff}
.feature-section{padding-top:76px}
.feature{box-shadow:var(--shadow-soft)}
.feature-icon{background:#e1f7f2;color:#007e75}
.feature h3{color:#163b42}
.feature p{color:#48636a}
.public-cta{background:#075a56}
.auth-wrap,.help-wrap{background:#fff}
.auth-card{border-color:#d9e8e5;box-shadow:0 22px 64px rgba(12,57,57,.075)}
.auth-card h2{color:#163a40}
.auth-intro>p:not(.eyebrow),.help-content>p:not(.eyebrow){color:#47656b}
.form-field input{border-color:#cadfdc;background:#fff;color:#16393f}
.form-field input:focus{border-color:#0b8e83}
/* Responsive content with maintained reading order */
@media(max-width:1100px){
 .home-content-grid{grid-template-columns:1fr;gap:16px;margin-top:20px}
 .home-content-grid>section{background:#fff;border:1px solid #d9e6e5;padding:20px;border-radius:19px;box-shadow:var(--shadow-soft)}
 .home-content-grid .home-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-content-grid .home-option:nth-child(3){grid-column:1/-1}
 .health-page .health-card-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
 .main{background:#fff;padding:0 16px calc(126px + env(safe-area-inset-bottom))}
 .topbar{height:75px;margin-bottom:15px}
 .bottom-nav{background:#fff;border-top:1px solid #dae9e6;box-shadow:0 -10px 30px rgba(12,60,61,.055)}
 .bottom-nav button{color:#496a70;font-size:12px!important;font-weight:650;min-height:60px}
 .bottom-nav button.active{color:#006f65;background:#e6f8f2}
 .page-heading{margin-bottom:22px}
 .page-heading .page-title{font-size:31px}
 .page-heading .page-intro{font-size:16px}
 .home-greeting h1{font-size:31px}
 .home-content-grid{gap:16px}
 .home-content-grid>section{padding:17px}
 .home-content-grid .home-option-grid{grid-template-columns:1fr}
 .home-content-grid .home-option:nth-child(3){grid-column:auto}
 .patient-home .home-content-grid .section-head{margin:0 0 13px}
 .home-option{min-height:76px}
 .care-hub-options{grid-template-columns:1fr}
 .health-page .health-card-grid{grid-template-columns:1fr;gap:14px}
 .account-page .account-layout{grid-template-columns:1fr}
 .metric-grid{gap:9px}
 .metric{padding:15px 12px}
 .metric strong{font-size:29px}
 .metric span{font-size:13px}
 .chat-page-top{gap:8px}
 .chat-page-top h1{font-size:32px!important}
 .chat-page-top p{font-size:15px}
 .chat-layout{border-radius:19px}
 .inbox-heading{padding:18px 15px 12px}
 .chat-list .conversation-row{min-height:82px}
 .chat-page>.safety{margin-top:18px}
 .calling-card{border-radius:19px}
 .call-page .queue{padding:20px}
 .public-hero{padding-top:45px}
 .feature{min-height:0}
}
@media(max-width:370px){
 .main{padding-inline:12px}
 .home-content-grid>section{padding:14px}
 .bottom-nav button{font-size:11px!important}
 .home-greeting h1{font-size:27px}
}
@media(prefers-reduced-motion:reduce){
 button{transition:none!important;transform:none!important}
}
/* Contextual contrast: inverse labels on dark promotional blocks remain readable. */
.public-cta .eyebrow{color:#e6f8ee!important}
.public-graphic .graphic-action{color:#075e58}

/* v3: verified, non-clinical visitor support available on every public entry screen. */
.guest-help-launcher{position:fixed;z-index:30;right:clamp(14px,3vw,34px);bottom:calc(19px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:end;gap:5px;filter:drop-shadow(0 10px 24px rgba(6,59,56,.12))}
.guest-help-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;padding:14px 19px;min-height:54px;max-width:calc(100vw - 26px);background:#006d65;color:#fff;border:2px solid #fff;border-radius:999px;font-size:15px;font-weight:750;box-shadow:0 10px 25px rgba(0,91,84,.18)}
.guest-help-button:hover{background:#005b54}
.guest-help-launcher p{font-size:12px;font-weight:650;line-height:1.2;color:#1e4946;background:#fff;border-radius:8px;padding:5px 9px;margin:0;box-shadow:0 4px 12px rgba(3,60,56,.06)}
.auth-assistance{font-size:14px;color:#3b5e64;line-height:1.5;margin-top:16px}
.auth-assistance button{border:0;background:none;color:#006d65;text-decoration:underline;text-underline-offset:3px;padding:3px;font-size:inherit;font-weight:700}
.visitor-workspace{min-height:100vh;background:#fff}.visitor-main{width:min(1330px,100%);margin:auto;padding:25px clamp(13px,3vw,36px) 60px}
.visitor-chat-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#eafaF6;border:1px solid #cdeae2;border-radius:16px;padding:14px 18px;margin-bottom:18px}
.visitor-chat-toolbar>div{display:flex;flex-direction:column;gap:2px}.visitor-chat-toolbar strong{font-weight:750;color:#123b3d}.visitor-chat-toolbar span{font-size:14px;color:#315d5d}
.visitor-main .chat-page{max-width:none}.visitor-main .chat-layout{min-height:clamp(540px,68vh,790px)}
.visitor-main .chat-context{display:block}
.visitor-main .chat-page-top{margin-bottom:14px}
@media(max-width:760px){.guest-help-launcher{right:12px;bottom:calc(13px + env(safe-area-inset-bottom))}.guest-help-button{min-height:54px;padding:12px 16px}.visitor-main{padding:13px 11px 40px}.visitor-chat-toolbar{margin-bottom:10px;padding:11px 13px}.visitor-chat-toolbar .btn{padding:8px 11px;font-size:13px;min-height:44px}.visitor-main .chat-page-top{margin-top:12px}.visitor-main .chat-layout{min-height:560px;max-height:none}.visitor-main .conversation{min-height:500px}.visitor-main .chat-context{display:none}}
@media(prefers-reduced-motion:reduce){.guest-help-button{transition:none}}

/* V3.1: Visitor help should remain discoverable without obscuring hero artwork. */
@media (max-width:760px){
  .guest-help-launcher { bottom:calc(14px + env(safe-area-inset-bottom)); right:12px; filter:none; }
  .guest-help-button { min-height:52px; min-width:94px; padding:10px 15px; gap:6px; box-shadow:0 7px 24px rgba(0,67,62,.22); }
  .guest-help-button > span { display:none; }
  .guest-help-button::after { content:'Help'; font-size:14px; font-weight:750; }
  .guest-help-launcher p { display:none; }
  .visitor-main .chat-page-top { display:none; }
  .visitor-main .chat-page > .safety { display:none; }
  .visitor-main .chat-layout,
  .visitor-main .chat-layout.admin-chat { height:calc(100dvh - 207px); min-height:430px; max-height:760px; }
  .visitor-main .visitor-chat-toolbar { margin-bottom:10px; }
  .visitor-main .conversation-head { min-height:64px; }
}
@media(max-width:360px){
  .visitor-main .chat-layout { height:calc(100dvh - 217px); min-height:390px; }
}

/* V3.2 keep desktop conversation composer visible in a normal 900px viewport. */
@media(min-width:761px){.chat-page .chat-layout{height:clamp(540px,calc(100dvh - 292px),760px);min-height:0}}
