
/* styles.css */

:root{--purple:#5f3bb7;--purple2:#8a67d8;--mint:#dff7ef;--ink:#273142;--muted:#6d7686;--line:#e8e9ef;--bg:#f7f7fb;--card:#fff;--green:#2bb673;--danger:#d9534f;--shadow:0 18px 50px rgba(44,34,84,.12)}
*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 20% 20%,#efe8ff,transparent 34%),linear-gradient(135deg,#faf9ff,#edf9f6)}
.auth-card{width:min(460px,94vw);background:white;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:var(--shadow)}
.logo-wide{width:220px;max-width:80%;display:block;margin:0 auto 10px}.product-label{text-align:center;font-weight:900;color:var(--purple);font-size:1.25rem}.tag{text-align:center;color:var(--muted);margin:6px 0 20px}
.tabs{display:grid;grid-template-columns:1fr 1fr;background:#f2f0f8;border-radius:14px;padding:4px;margin:18px 0}.tabs button{border:0;padding:10px;border-radius:10px;background:transparent;font-weight:800;color:var(--muted)}.tabs button.active{background:white;color:var(--purple);box-shadow:0 4px 16px rgba(80,50,150,.12)}
.field{margin:14px 0}.field label{display:block;font-size:.82rem;font-weight:800;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--purple2);box-shadow:0 0 0 3px rgba(138,103,216,.12)}
.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:900}.btn.primary{background:linear-gradient(135deg,var(--purple),var(--purple2));color:#fff}.btn.secondary{background:#f1eef9;color:var(--purple)}.btn.danger{background:#fff0f0;color:#b43838}.full{width:100%}.note{font-size:.8rem;color:var(--muted);line-height:1.5}
.app{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:14px 22px;background:rgba(255,255,255,.93);backdrop-filter:blur(15px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:48px;height:48px;object-fit:contain}.brand h1{font-size:1rem;margin:0}.brand small{color:var(--muted)}
.actions{display:flex;align-items:center;gap:10px}.pill{padding:7px 10px;border-radius:999px;background:#eef8f4;color:#2e8b62;font-size:.78rem;font-weight:800}
.shell{width:min(1200px,94vw);margin:24px auto 100px}.hero{background:linear-gradient(135deg,#5d38b6,#8061d0 60%,#8cd7c1);color:white;border-radius:24px;padding:28px;display:flex;justify-content:space-between;gap:24px;align-items:center;box-shadow:var(--shadow)}
.hero h2{font-size:2rem;margin:0 0 8px}.hero p{margin:0;color:#eee8ff}.hero .org{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);padding:15px 18px;border-radius:16px;min-width:260px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stat{background:white;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(34,36,55,.06)}.stat small{color:var(--muted)}.stat strong{display:block;font-size:1.8rem;margin-top:6px}
.layout{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.card{background:white;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(34,36,55,.05)}.card h3{margin:0 0 12px}
.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.toolbar input{flex:1;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:11px 8px;border-bottom:1px solid var(--line);font-size:.9rem}.table th{font-size:.76rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.empty{padding:24px;text-align:center;color:var(--muted)}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick button{border:1px solid var(--line);background:white;border-radius:14px;padding:15px;text-align:left;font-weight:850;color:var(--ink)}.quick button:hover{border-color:#cbbcf3;background:#fbfaff}
.bottom-nav{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:30;background:white;border:1px solid var(--line);border-radius:20px;padding:7px;display:flex;gap:6px;box-shadow:var(--shadow)}.bottom-nav button{border:0;background:transparent;border-radius:14px;padding:10px 14px;font-weight:800;color:var(--muted)}.bottom-nav button.active{background:#f1edfb;color:var(--purple)}
.modal{position:fixed;inset:0;background:rgba(20,18,35,.48);display:grid;place-items:center;z-index:50;padding:20px}.modal-card{width:min(620px,96vw);max-height:90vh;overflow:auto;background:white;border-radius:22px;padding:22px;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head button{border:0;background:#f3f3f6;border-radius:10px;padding:8px 10px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid .wide{grid-column:1/-1}
.badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:.72rem;font-weight:800;background:#eef8f4;color:#2e8b62}
.toast{position:fixed;right:20px;bottom:100px;background:#242532;color:white;padding:12px 15px;border-radius:12px;z-index:70;box-shadow:var(--shadow)}
@media(max-width:850px){.grid{grid-template-columns:1fr 1fr}.layout{grid-template-columns:1fr}.hero{align-items:flex-start;flex-direction:column}.hero .org{min-width:0;width:100%}.bottom-nav{width:94vw;overflow:auto;justify-content:flex-start}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}}

/* portal.css */
input,select,textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #d9d5e6;border-radius:10px;font:inherit;margin:5px 0 12px;background:white;color:#29233d}label{display:block;font-size:14px;font-weight:600}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}summary{cursor:pointer;margin:16px 0;color:#5935a6}h1{line-height:1.25}.notice{border:1px solid #d5c7f5;background:#f3eefe;border-radius:12px;padding:14px;line-height:1.5}.item{border:1px solid #e6e0ee;border-radius:14px;padding:18px;margin:14px 0}.item h3{margin:0 0 8px}.item p{overflow-wrap:anywhere}.inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.inline>*{width:auto}.actions select{max-width:260px;margin:0}.empty{padding:28px;color:#777}.auth-card h1{font-size:27px}.auth-card label{text-align:left}.auth-card details{text-align:left}.shell{padding-bottom:100px}.card{overflow-x:auto}.share-link{display:block;overflow-wrap:anywhere;padding:14px;background:#f6f2fd;border-radius:10px}.bottom-nav{overflow-x:auto}.bottom-nav button{white-space:nowrap}.modal-card{max-height:90vh;overflow:auto}.table{min-width:500px}#authMessage{color:#563582}#modalClose{padding:8px 14px;border:0;background:#eee7fa;border-radius:10px}.topbar{gap:12px}.auth-card small{display:block;margin-top:18px;color:#696172}a{color:#5f3bb7}#toast{max-width:min(90vw,600px)}@media(max-width:650px){.topbar{flex-direction:column;align-items:stretch}.actions{display:flex;flex-wrap:wrap}.actions select{max-width:none;flex:1}.brand h1{font-size:17px}.shell{padding:12px 12px 100px}.auth-shell{padding:18px}.item{padding:14px}.inline{align-items:stretch}.inline button{flex:1}.auth-card h1{font-size:24px}}

/* Entry screen follows the supplied BernardHealth reference. */
.auth-shell{background:radial-gradient(ellipse at 50% 5%,#f0e7fc 0,transparent 60%),linear-gradient(120deg,#fff9fc,#fcf9ff);padding:32px 20px;box-sizing:border-box}
.auth-card{width:min(550px,100%);padding:40px 34px 26px;border:0;border-radius:32px;box-sizing:border-box;box-shadow:0 20px 70px rgba(91,53,147,.07)}
.auth-card .logo-wide{width:440px;max-width:100%;margin:0 auto 18px}.auth-card h1{font-family:Georgia,'Times New Roman',serif;font-size:60px;line-height:1.05;font-weight:400;text-align:center;color:#b4b1b9;margin:6px 0 8px}.auth-card .tag{font-size:20px;font-weight:600;color:#7e748e;margin-bottom:28px}.auth-card .tabs{background:#eee5ff;border-radius:20px;padding:5px;margin:0 0 25px}.auth-card .tabs button{padding:14px;font-size:18px;color:#17131d;font-weight:400;border-radius:15px}.auth-card .tabs button.active{color:#7433d7;font-weight:700;box-shadow:none}.auth-card label{font-size:16px;margin-bottom:4px;color:#30273e}.auth-card input{background:#edf1fd;border-color:#ded5ee;border-radius:17px;padding:16px;margin-bottom:18px;font-size:18px}.auth-card .btn.primary{background:linear-gradient(110deg,#5020a8,#7732d3);padding:17px;border-radius:17px;font-size:19px;box-shadow:0 8px 18px #54229520}.text-button{display:block;border:0;background:none;color:#7433cf;font-size:17px;font-weight:700;margin:24px auto 10px;padding:0}.access-note{font-size:15px;line-height:1.45;color:#847c90;background:#faf7ff;border:1px solid #ede4fc;border-radius:17px;padding:15px;margin:18px 0 0}.auth-card #authMessage:empty{display:none}@media(max-width:600px){.auth-shell{padding:18px 12px}.auth-card{padding:28px 22px 22px;border-radius:26px}.auth-card h1{font-size:45px}.auth-card .tag{font-size:16px}.auth-card .tabs button{font-size:16px}.auth-card .logo-wide{margin-bottom:14px}}

/* Supervisor overview, using the Senior Care organization as reference. */
.supervisor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.supervisor-summary article{padding:20px;border:1px solid #e6deef;border-radius:18px;background:#faf7ff}.supervisor-summary span{display:block;font-size:14px;color:#70627d}.supervisor-summary strong{display:block;font-size:34px;margin-top:10px;color:#5931a4}.supervisor-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:6px;background:#f1eafa;border-radius:14px;margin-bottom:24px}.supervisor-tabs button{flex:1;border:0;border-radius:10px;background:transparent;padding:12px 18px;font:inherit;color:#544561}.supervisor-tabs button.active{background:#fff;color:#6335af;font-weight:700;box-shadow:0 2px 8px #50307012}.supervisor-dashboard>h2{margin-bottom:8px}@media(max-width:700px){.supervisor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.supervisor-summary article{padding:14px}.supervisor-tabs button{padding:12px 8px;font-size:14px}}

/* theme.css */
/* Medical Care: the independent product's visual system. */
:root{--purple:#6330b7;--purple2:#9154ca;--ink:#29223b;--muted:#716b80;--line:#e8e4ee;--bg:#f5f4f9;--shadow:0 18px 48px #30204312;--teal:#087c81;--rose:#b93270}
body{background:var(--bg);line-height:1.5}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{transition:background .18s,box-shadow .18s,transform .18s}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}:focus-visible{outline:3px solid #a27cd9;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:0;border-color:#8c58c4;box-shadow:0 0 0 4px #8857c412}input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin:10px 8px 14px 0;accent-color:var(--purple)}
.auth-shell{background:radial-gradient(ellipse at 7% 0,#ded7f3 0,transparent 48%),radial-gradient(ellipse at 90% 95%,#ecdaf6 0,transparent 45%),#f6f3f9;padding:42px 28px;min-height:100svh}.auth-layout{display:grid;grid-template-columns:1fr 470px;width:min(1080px,100%);align-items:stretch;gap:0;background:#fff;border-radius:30px;box-shadow:0 28px 90px #3b225721;overflow:hidden}.auth-story{padding:56px 42px;color:#fff;background:radial-gradient(ellipse at 100% 0,#9b387690,transparent 66%),radial-gradient(ellipse at 10% 100%,#167b8290,transparent 70%),#392050;display:flex;flex-direction:column;justify-content:center;position:relative}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.16em;display:block}.auth-story>.eyebrow{color:#e5d5f5;margin-bottom:32px}.auth-story h2{font-size:clamp(36px,4vw,52px);font-weight:650;line-height:1.12;letter-spacing:-.035em;margin:0 0 20px}.auth-story>p{color:#e5dcec;font-size:16px;max-width:340px;margin:0 0 32px}.story-features{display:grid;gap:22px}.story-features>div{display:flex;align-items:center;gap:14px}.feature-mark{display:grid;place-items:center;flex:0 0 38px;height:38px;border:1px solid #ffffff30;border-radius:12px;background:#ffffff10;font-size:12px;color:#eee3f8}.story-features strong{font-size:14px;font-weight:650}.story-features small{display:block;color:#e0d8e7;font-size:12px;margin-top:2px}.story-signature{border-top:1px solid #ffffff25;margin-top:44px;padding-top:20px;font-size:12px;color:#dfd3e9;display:flex;align-items:center;gap:9px}.story-signature span{width:7px;height:7px;background:#7be2c7;border-radius:50%}
.auth-card{width:100%;padding:36px 34px 28px;border-radius:0;box-shadow:none}.auth-card .logo-wide{width:270px;margin-bottom:17px}.auth-card h1{font-size:43px;color:#442f5c;letter-spacing:-.035em;margin:5px 0 9px;overflow-wrap:anywhere}.auth-card .tag{font-size:14px;line-height:1.5;color:#7a7186;margin-bottom:25px;font-weight:450}.auth-card .tabs{border-radius:13px;margin-bottom:22px;background:#f0eaf7;padding:4px}.auth-card .tabs button{padding:10px;font-size:14px;border-radius:10px}.auth-card label{font-size:13px;color:#51445f;margin:0 0 3px}.auth-card input{font-size:15px;padding:13px 14px;border-radius:11px;background:#faf9fd;margin-bottom:15px;border-color:#dfd7e8}.auth-card .btn.primary{font-size:15px;padding:14px;border-radius:11px;background:linear-gradient(110deg,#6832b1,#8842bf);box-shadow:0 7px 18px #6730a51a}.text-button{font-size:13px;margin:20px auto 8px;line-height:1.5}.access-note{border:0;border-top:1px solid #eee9f3;background:none;border-radius:0;font-size:11px;line-height:1.6;padding:17px 0 0;margin:18px 0 0;color:#7d7388}.auth-card .notice{font-size:13px;background:#f4effb;border-color:#e7dcf3}.auth-card .note{font-size:12px}.auth-card #authMessage{font-size:13px;border-left:3px solid #8c58c4;padding:10px 12px;background:#f5effc;border-radius:4px}
.topbar{padding:16px max(24px,calc((100vw - 1200px)/2));border:0;background:linear-gradient(105deg,#352046,#532a71 70%,#71347e);color:white;box-shadow:0 4px 22px #2d173015;min-height:84px}.brand{gap:12px}.brand img{background:white;border-radius:12px;width:46px;height:46px;padding:3px}.brand h1{font-size:20px;letter-spacing:-.025em}.brand small{color:#e3d5ed;font-size:12px}.actions{gap:9px}.actions select{background:#ffffff12;border-color:#ffffff35;color:white;font-size:13px;border-radius:10px;padding:10px 30px 10px 12px}.actions select option{color:#30233f;background:#fff}.topbar .btn.secondary{background:#ffffff13;border:1px solid #ffffff30;color:white;font-size:12px;padding:10px 13px}.topbar #logoutBtn{background:transparent}.shell{width:min(1200px,94vw);margin:24px auto 40px;padding-bottom:24px}.bottom-nav{position:relative;left:auto;bottom:auto;transform:none;width:min(1200px,94vw);margin:20px auto 0;border:1px solid #e6dfef;box-shadow:0 3px 14px #35204305;border-radius:14px;padding:5px;justify-content:flex-start;z-index:10;gap:5px}.bottom-nav button{font-size:13px;font-weight:600;padding:11px 20px;border-radius:9px;flex:1}.bottom-nav button.active{background:#6430af;color:white;box-shadow:0 4px 9px #59309c20}.app[data-space=patient] .bottom-nav{display:none}
.card{border-color:#e7e1ed;border-radius:19px;padding:25px;box-shadow:0 5px 24px #2c1b4106}.card h2{font-size:23px;letter-spacing:-.025em;margin-top:0}.card h3{font-size:17px}.card>p{font-size:14px;color:var(--muted)}.btn{font-size:13px;font-weight:650;border-radius:10px;padding:11px 15px;min-height:42px}.btn.primary{background:linear-gradient(110deg,#6933b1,#8550c2);box-shadow:0 3px 8px #64319d12}.btn.secondary{background:#f0e9f8;color:#693a9b;border:1px solid #e6daf3}.btn.danger,[data-delete-application]{background:#fff1f4!important;color:#a12d53!important;border:1px solid #f3dbe3!important}.item{background:#fff;border-color:#e8e1ee;border-radius:13px;padding:20px 22px;margin:12px 0;box-shadow:0 2px 6px #30204303}.item p{font-size:14px;color:#75687e;margin:8px 0}.item h3,.item>strong{color:#382a49}.item:has([data-approve]){border-left:4px solid #9b63cf;background:linear-gradient(90deg,#fcf9ff,#fff 30%)}.empty{font-size:14px;background:#faf9fc;border:1px dashed #e4dcec;border-radius:12px;padding:30px 20px;margin:16px 0}.notice{background:#f4eefb;border-color:#e8dcf5;color:#654d80;font-size:14px}.inline{gap:10px}section.card+section.card{margin-top:20px}
.dashboard-intro{background:radial-gradient(ellipse at 100% 0,#a0479270,transparent 75%),linear-gradient(115deg,#412355,#654086);color:white;padding:30px 32px;border-radius:15px;position:relative}.dashboard-intro>.eyebrow{color:#eadcf4;margin-bottom:12px}.dashboard-intro h2{font-size:32px;color:white;margin:0 0 8px;letter-spacing:-.035em}.dashboard-intro p{font-size:14px;color:#f0e6f7;margin:0;max-width:650px}.intro-chip{display:inline-block;margin-top:20px;border:1px solid #ffffff30;border-radius:7px;background:#ffffff0e;padding:6px 10px;color:#f3eafa;font-size:11px}.supervisor-summary{gap:14px;margin:22px 0}.supervisor-summary article,.stat{position:relative;padding:21px;border:1px solid var(--stat-line,#e3d6f2);border-radius:14px;background:var(--stat-bg,#f1e9fb);box-shadow:none;overflow:hidden}.supervisor-summary article:nth-child(1),.stat:nth-child(1){--stat-bg:#f2eafb;--stat-line:#e5d7f2;--stat-ink:#6c3ea1}.supervisor-summary article:nth-child(2),.stat:nth-child(2){--stat-bg:#e7f3f8;--stat-line:#d0e7f0;--stat-ink:#216b8c}.supervisor-summary article:nth-child(3),.stat:nth-child(3){--stat-bg:#e5f4ef;--stat-line:#cde8dd;--stat-ink:#1d7a59}.supervisor-summary article:nth-child(4),.stat:nth-child(4){--stat-bg:#fff0e9;--stat-line:#f6ded1;--stat-ink:#ab5c30}.supervisor-summary article:before,.stat:before{content:'';display:block;width:24px;height:4px;border-radius:5px;background:var(--stat-ink);margin-bottom:14px}.supervisor-summary span,.stat small{font-size:12px;color:var(--stat-ink)}.supervisor-summary strong,.stat strong{color:var(--stat-ink);font-size:32px;line-height:1.2;margin-top:10px;font-weight:700}.supervisor-tabs{background:#f4f0f8;padding:5px;border:1px solid #eae2f2;border-radius:12px;margin:24px 0}.supervisor-tabs button{font-size:13px;font-weight:600;padding:12px}.supervisor-tabs button.active{color:#60328f;box-shadow:0 3px 8px #45265010}.supervisor-dashboard [data-supervisor-section]>h3{font-size:18px;margin:24px 0 16px}
.hero{padding:30px 32px;border-radius:18px;background:radial-gradient(ellipse at 100% 10%,#af57a285,transparent 70%),linear-gradient(110deg,#49265f,#73449a);box-shadow:none}.hero h2{font-size:32px;letter-spacing:-.035em}.hero p{font-size:14px;max-width:520px;line-height:1.6}.hero .org{border-radius:12px;font-size:13px;min-width:240px}.hero .org strong{display:block;font-size:17px;margin:7px 0 0}.hero .org small{font-size:10px;letter-spacing:.12em}.grid{margin:20px 0;gap:14px}.stat strong{font-size:26px}.quick button{font-size:13px;padding:19px 14px;border-radius:11px;color:#5d397c;background:#f9f5fc;border-color:#e6d9f2}.quick button:nth-child(2){background:#edf7fa;color:#296981;border-color:#d9edf2}.quick button:nth-child(3){background:#ebf7f1;color:#2e765b;border-color:#d3e9dd}.quick button:nth-child(4){background:#fff3ee;color:#a45940;border-color:#f4e2d8}.table th{background:#f8f6fb;color:#766686;font-size:10px;padding:13px 12px}.table td{font-size:13px;padding:14px 12px;border-color:#eee9f3}.table tbody tr:hover{background:#fcfaff}.badge{font-size:11px;padding:5px 10px}.toolbar{flex-wrap:wrap}.toolbar h3{margin:0}
.patient-intro{background:linear-gradient(115deg,#17686e,#348c87);color:white;border-radius:14px;padding:28px;margin-bottom:22px}.patient-intro .eyebrow{color:#d7f1e9;margin-bottom:12px}.patient-intro h2{font-size:29px;color:white;margin:0 0 8px}.patient-intro p{font-size:14px;color:#e2f5ee;margin:0}.patient-dashboard>h3{margin-top:26px;padding-top:18px;border-top:1px solid #eee8f4}.patient-dashboard>.notice{background:#f0f8f5;border-color:#d5e8df;color:#2d6754;padding:18px;border-radius:12px}.patient-dashboard>.notice h3{color:#2d6754;margin-bottom:6px}.patient-dashboard>.notice p{font-size:13px}.patient-dashboard>.notice .btn{background:#fff;color:#27654f;border-color:#cce2d7}.share-link{background:#eff7f6;border:1px solid #d2e7e3;color:#236b65;font-size:14px}.modal{backdrop-filter:blur(5px);background:#24133480}.modal-card{border:1px solid #e5dced;border-radius:19px;padding:26px}.modal-head{margin-bottom:14px;gap:15px}.modal-head h2{font-size:22px;letter-spacing:-.03em}.modal-card p{font-size:14px;color:#74637f}.toast{bottom:24px;background:#3c244e;font-size:14px;box-shadow:0 8px 25px #30204322}
@media(min-width:701px){#applicationsView>.card{max-width:780px;margin:0 auto}.patient-dashboard{max-width:950px;margin:0 auto}}
@media(max-width:950px){.auth-layout{grid-template-columns:1fr 430px}.auth-story{padding:38px 28px}.auth-story h2{font-size:39px}.topbar{padding:15px 20px}.actions select{max-width:220px}.bottom-nav button{padding:11px 16px}}
@media(max-width:760px){.auth-story{display:none}.auth-layout{display:block;max-width:470px;border-radius:24px}.auth-card{padding:30px 26px}.auth-shell{padding:26px 16px}.auth-card h1{font-size:40px}.auth-card .logo-wide{width:270px}.topbar{padding:14px 18px;gap:14px}.brand h1{font-size:19px}.brand small{font-size:11px}.brand img{width:42px;height:42px}.shell{width:100%;padding:0 16px 25px;margin:18px auto 25px}.card{padding:18px;border-radius:16px}.dashboard-intro{padding:24px 22px}.dashboard-intro h2{font-size:27px}.dashboard-intro p{font-size:13px}.intro-chip{font-size:10px}.supervisor-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.supervisor-summary article{padding:17px}.supervisor-summary strong{font-size:30px}.supervisor-tabs{margin:20px 0;gap:3px}.supervisor-tabs button{font-size:12px;padding:11px 8px}.item{padding:17px}.bottom-nav{width:calc(100% - 32px);margin:16px auto 0;justify-content:flex-start}.bottom-nav button{flex:0 0 auto;padding:11px 16px}.hero{padding:25px}.hero h2{font-size:28px}.stat{padding:16px}.stat strong{font-size:22px}.grid{gap:10px}.patient-intro{padding:22px}.patient-intro h2{font-size:25px}.patient-dashboard>.inline{display:grid;grid-template-columns:1fr 1fr}.eyebrow{font-size:10px}.table{min-width:520px}.form-grid{grid-template-columns:1fr}}
@media(max-width:420px){.auth-card{padding:26px 22px}.auth-card h1{font-size:37px}.actions{gap:7px}.topbar .actions select{flex-basis:100%;max-width:none}.topbar .actions button{flex:1}.card{padding:15px}.dashboard-intro{padding:21px 17px}.dashboard-intro h2{font-size:25px}.supervisor-summary article{padding:14px}.supervisor-summary span{font-size:11px}.intro-chip{line-height:1.6}.quick{gap:8px}.quick button{padding:16px 11px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.study-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.study-picker details{background:#f8f4fc;border:1px solid #e8dcf3;border-radius:10px;padding:9px 12px}.study-picker summary{margin:4px 0;font-size:13px;font-weight:650}.study-picker label{font-size:12px;font-weight:400;display:flex;align-items:flex-start;gap:7px;line-height:1.4;margin:7px 0}.study-picker input[type=checkbox]{margin:0;flex:0 0 16px}.share-choice{display:flex;align-items:center;font-size:13px;margin:14px 0}.modal-card:has(#issueDocumentForm){width:min(760px,96vw)}#issuedFields>label{margin-top:14px}@media(max-width:550px){.study-picker{grid-template-columns:1fr}.modal-card:has(#issueDocumentForm){padding:18px}}

/* A permanent brand above each clinic's editable identity. */
.brand>div{min-width:0}.brand h1{line-height:1.1;margin-bottom:7px}.brand-name{display:block;font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:700;letter-spacing:-.03em}.brand-product{display:block;font-size:9px;font-weight:650;letter-spacing:.22em;text-transform:uppercase;margin-top:5px;color:#efdaf4}.brand small{display:block;max-width:410px;overflow-wrap:anywhere;line-height:1.35}.hero>div:first-child{min-width:0}.hero h2{overflow-wrap:anywhere;line-height:1.18}.hero>.eyebrow,.hero>div>.eyebrow{color:#ead9f4;margin-bottom:12px}.letterhead-preview{display:flex;gap:20px;align-items:flex-start;background:linear-gradient(110deg,#fff,#faf7fd);border:1px solid #e5dced;border-bottom:3px solid #b765bb;border-radius:15px;padding:25px;margin:22px 0 26px}.letterhead-preview img{width:65px;height:65px;object-fit:contain}.letterhead-preview>div{min-width:0}.letterhead-brand{display:block;font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:700;line-height:1.1;letter-spacing:-.035em;color:#5c2ac4}.letterhead-brand em{color:#bd2c92;font-style:normal}.letterhead-product{display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.2em;color:#776780;margin-top:7px}.letterhead-preview strong{display:block;margin-top:18px;font-size:18px;line-height:1.3;color:#5c2ac4;overflow-wrap:anywhere}
@media(max-width:760px){.brand-name{font-size:23px}.brand-product{font-size:8px}.brand small{max-width:calc(100vw - 110px)}.letterhead-preview{padding:20px 16px;gap:12px}.letterhead-preview img{width:44px;height:44px}.letterhead-brand{font-size:25px}.letterhead-preview strong{font-size:16px}}
/* Shared module surfaces, form rhythm and readable states. */
.module-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid #ece5f2}.module-heading .eyebrow{color:#9161b4;font-size:10px;margin-bottom:9px}.module-heading h2{margin:0 0 7px;font-size:26px;color:#402b56;letter-spacing:-.03em}.module-heading p{margin:0;color:var(--muted);font-size:14px;max-width:600px}.module-heading>.inline{flex-shrink:0}.field{margin:7px 0}.field label,.modal-card label{font-size:13px;line-height:1.45;color:#59466a}.field input,.field select,.field textarea,.modal-card input,.modal-card select,.modal-card textarea{background:#fcfbfe;border-color:#ded5e8;border-radius:10px;font-size:14px;line-height:1.45;padding:12px 13px;margin:5px 0 10px}.field textarea{resize:vertical}.form-grid{gap:12px 18px}.btn,a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px;line-height:1.35;text-align:center}.btn:disabled,button:disabled{cursor:not-allowed}.table-scroll{width:100%;overflow-x:auto;border:1px solid #ebe4f0;border-radius:12px}.table{min-width:540px}.table th{white-space:nowrap}.table td{vertical-align:middle;max-width:300px;overflow-wrap:anywhere}.table td .btn{white-space:nowrap;font-size:12px}.table tbody tr:last-child td{border-bottom:0}.status-pending,.status-partial,.status-scheduled{background:#fff3dc;color:#8c5e13}.status-confirmed,.status-accepted{background:#e6f2fa;color:#246989}.status-active,.status-approved,.status-paid,.status-completed,.status-ready{background:#e5f4ec;color:#256e4d}.status-cancelled,.status-rejected,.status-suspended,.status-void,.status-no_show{background:#fae7ee;color:#a33b5c}.status-inactive,.status-archived{background:#efedf3;color:#70617b}.billing-totals{display:flex;gap:16px;flex-wrap:wrap;margin:0 0 24px}.billing-totals>div{flex:1;min-width:200px;padding:18px 21px;border:1px solid #dcebe4;border-radius:13px;background:#eef8f2}.billing-totals>div:nth-child(2){background:#f8f2e9;border-color:#eee1cb}.billing-totals span{display:block;font-size:12px;color:#65736b}.billing-totals strong{display:block;font-size:22px;color:#345746;margin-top:7px;overflow-wrap:anywhere}.money-total{font-size:22px!important;overflow-wrap:anywhere}.patient-summary{padding:18px;border:1px solid #e5d9ef;background:#f7f2fb;border-radius:13px;margin-bottom:24px}.patient-summary .eyebrow{color:#87569f}.patient-summary p{line-height:1.7}.clinical-details{display:grid;gap:12px;margin:14px 0 24px}.clinical-details>div,.clinical-details>section{border:1px solid #e8e1ee;border-radius:11px;padding:15px 17px;background:#fcfafd}.clinical-details h4{font-size:13px;color:#70459a;margin:0 0 8px}.clinical-details p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:0;line-height:1.6;color:#51445e}.count-chip{border:1px solid #e5d8f0;background:#f2e9fa;color:#71409a;padding:5px 10px;font-size:11px;border-radius:20px}.document-item{display:flex;align-items:center;justify-content:space-between;gap:20px}.document-item>div:first-child{min-width:0}.document-item strong{display:block;overflow-wrap:anywhere}.document-kind{display:inline-block;padding:3px 7px;background:#eee6f8;color:#7240a6;font-size:9px;letter-spacing:.08em;border-radius:5px;font-weight:700;margin-bottom:9px}.document-item .inline{flex-shrink:0;max-width:42%}.modal-card .notice{font-size:14px}.modal-card .toolbar{margin-top:22px}.modal-card button[type=submit],.modal-card form>button:last-child{margin-top:8px}#patientSearch{max-width:600px;margin:7px 0 20px}.modal-card input[type=checkbox]{width:18px;min-width:18px;margin:0 8px 0 0}.auth-card input{min-height:46px}.auth-card .text-button{min-height:36px}#settingsView .card{overflow:visible}
@media(max-width:760px){.module-heading{align-items:flex-start;flex-direction:column;gap:17px;padding-bottom:18px;margin-bottom:20px}.module-heading h2{font-size:23px}.module-heading>.inline{width:100%}.module-heading>.inline .btn{flex:1}.document-item{align-items:stretch;flex-direction:column;gap:10px}.document-item .inline{max-width:none}.billing-totals>div{min-width:0;flex-basis:100%}.form-grid{gap:7px}.modal-card{padding:20px}.modal-card .modal-head h2{font-size:20px}.table td{min-width:105px}.table td:last-child{min-width:140px}.patient-summary{padding:15px}.money-total{font-size:20px!important}}
@media(max-width:760px){.topbar{position:relative}.bottom-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible}.bottom-nav button{min-width:0;padding:11px 5px;white-space:normal;font-size:12px}.hero .org{display:none}.hero{gap:12px}.hero h2{font-size:26px}}

/* Welcome photograph with the requested purple brand gradient. */
.auth-story{padding:0;background:linear-gradient(135deg,#39135f 0%,#6825a8 52%,#8742bb 100%);color:#fff;justify-content:flex-start}.welcome-photo{display:block;width:100%;height:280px;object-fit:cover;object-position:65% 0%}.welcome-story{padding:30px 38px 32px;flex:1}.welcome-story>.eyebrow{color:#eee0ff;margin-bottom:18px}.auth-story h2{font-size:40px;margin-bottom:14px;color:#fff}.welcome-story>p{font-size:15px;color:#f0e7f8;max-width:380px;line-height:1.6;margin:0 0 22px}.story-features{gap:16px}.feature-mark{background:#ffffff14;border:1px solid #ffffff40;color:#fff}.story-features small{color:#eee1fa}.story-signature{border-color:#ffffff35;color:#eee1fa;margin-top:25px;padding-top:18px}.story-signature span{background:#e6caff}
@media(max-width:950px){.welcome-story{padding:26px}.auth-story h2{font-size:34px}.welcome-photo{height:270px}}
@media(max-width:760px){.auth-story{display:block}.welcome-photo{height:190px;object-position:65% 0%}.welcome-story{padding:17px 24px;background:transparent}.welcome-story>.eyebrow{font-size:9px;margin:0 0 8px}.auth-story h2{font-size:25px;margin:0}.auth-story h2 br{display:none}.auth-story h2 br:after{content:' '}.welcome-story>p,.story-features,.story-signature{display:none}.auth-card{padding-top:24px}.auth-shell{padding:18px 12px}}
/* Selección clara del acceso profesional y del portal de pacientes. */
.access-audience{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 22px}.access-audience button{position:relative;min-height:72px;border:1px solid #e2d9eb;border-radius:13px;background:#fff;padding:12px 14px;text-align:left;font:inherit;color:#63536e;transition:background .15s,border-color .15s,box-shadow .15s}.access-audience button strong{display:block;font-size:14px;line-height:1.4}.access-audience button span{display:block;font-size:11px;line-height:1.5;margin-top:3px;color:#776784}.access-audience button[aria-pressed=true]{background:linear-gradient(135deg,#f2e8fc,#faf6ff);border-color:#9360bf;box-shadow:0 0 0 1px #9360bf20;color:#602a91}.access-audience button[aria-pressed=true]:after{content:'';position:absolute;top:12px;right:11px;width:6px;height:6px;background:#8540b5;border-radius:50%}.access-audience button:hover{border-color:#a577c8;background:#faf6fe}.auth-card button:focus-visible,.auth-card a:focus-visible{outline:3px solid #9b6dc7;outline-offset:3px}.access-heading{margin:0 0 18px;text-align:left}.access-heading h2{font-size:19px;font-weight:700;letter-spacing:-.02em;color:#452858;margin:0 0 6px}.access-heading p{font-size:12px;line-height:1.55;color:#74657e;margin:0}.auth-card .input-hint{font-size:11px;line-height:1.5;color:#76677e;margin:-7px 0 18px;text-align:left}.patient-access-help{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0 0}.patient-access-help .text-button{margin:0;min-height:40px;text-decoration:underline;text-underline-offset:4px}.patient-access-help .text-button:last-child{margin-left:auto}.auth-card #patientClinicHint{text-align:left;font-size:12px;margin:16px 0 0}.auth-card .tag{margin-bottom:20px}
@media(max-width:420px){.access-audience{gap:8px}.access-audience button{padding:11px 10px;min-height:70px}.access-audience button strong{font-size:13px}.access-audience button span{font-size:10px}.access-audience button[aria-pressed=true]:after{top:9px;right:8px;width:5px;height:5px}}

/* clinical-workspace.css */
.clinical-workspace{margin:18px 0 20px;border:1px solid #dcd0ec;border-radius:28px;background:#fff;box-shadow:0 18px 42px rgba(60,35,95,.10);overflow:hidden}
.clinical-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;background:linear-gradient(135deg,#382657 0%,#5e3a8a 58%,#9470bd 100%);color:#fff}.clinical-workspace-head h2{margin:3px 0 7px;font-size:1.5rem;letter-spacing:-.025em}.clinical-workspace-head p{margin:0;color:#eee6f8;line-height:1.45}.clinical-head-mark{width:62px;height:62px;border-radius:19px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:0 0 auto}.clinical-head-mark svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.8}.clinical-workspace-head .eyebrow{color:#e8daf8}
.clinical-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:11px;background:#f7f3fb;border-bottom:1px solid var(--line)}.clinical-tabs button{border:0;border-radius:13px;padding:12px 8px;background:transparent;color:#71697c;font-weight:850;cursor:pointer}.clinical-tabs button.active{background:#fff;color:var(--purple-dark);box-shadow:0 4px 14px rgba(67,40,101,.09)}
.clinical-panel{display:none;padding:22px}.clinical-panel.active{display:block}.clinical-loading{padding:30px;text-align:center;color:var(--muted)}
.clinical-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.clinical-summary-card{border:1px solid var(--line);border-radius:18px;padding:16px;background:linear-gradient(180deg,#fff,#fbf9fd)}.clinical-summary-card.wide{grid-column:1/-1}.clinical-summary-card.alert{border-color:#efcfda;background:#fff8fb}.clinical-summary-card small,.clinical-last-grid small{display:block;color:var(--purple);font-weight:900;font-size:.68rem;letter-spacing:.08em}.clinical-summary-card p,.clinical-last-grid p,.clinical-history-body p{white-space:pre-wrap;line-height:1.55;margin:7px 0 0;color:var(--ink)}
.clinical-last-consultation{margin-top:16px;border:1px solid var(--line);border-radius:21px;padding:18px;background:#fff}.clinical-last-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.clinical-last-head h3{margin:3px 0 0}.clinical-last-head>span{font-size:.78rem;color:var(--muted);font-weight:800}.clinical-last-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:15px}.clinical-last-grid>div{padding:13px;border-radius:15px;background:#faf7fd}
.clinical-vital-pills{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.clinical-vital-pills span{display:inline-flex;align-items:center;gap:5px;background:#f4eefb;border:1px solid #e4d8f0;border-radius:999px;padding:7px 10px;font-size:.77rem}.clinical-vital-pills b{color:var(--purple)}
.clinical-consultation-form{display:grid;gap:18px}.clinical-form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.clinical-form-heading h3{margin:3px 0 0}.clinical-save-state{font-size:.75rem;font-weight:800;color:var(--muted);background:#f4eff9;border-radius:999px;padding:7px 11px}.clinical-form-section{border:1px solid var(--line);border-radius:21px;padding:18px;background:linear-gradient(180deg,#fff,#fcfaff)}.clinical-section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:15px}.clinical-section-title>span{width:34px;height:34px;border-radius:11px;background:var(--purple-soft);color:var(--purple);display:grid;place-items:center;font-weight:900;flex:0 0 auto}.clinical-section-title h4{margin:0;font-size:1rem}.clinical-section-title p{margin:4px 0 0;color:var(--muted);font-size:.8rem}.clinical-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-full{grid-column:1/-1}.clinical-vitals-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.clinical-model-select{max-width:360px;margin-bottom:14px}.clinical-exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.clinical-form-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.clinical-form-actions .btn{min-width:180px}
.clinical-workspace textarea{overflow:hidden!important;resize:none!important;min-height:94px;line-height:1.5;transition:height .12s ease;border-radius:15px}.clinical-workspace textarea:focus{background:#fff}
.clinical-document-hub{display:grid;gap:16px}.clinical-document-intro{display:flex;align-items:center;gap:13px;padding:16px;border-radius:18px;background:#f7f2fb}.clinical-document-intro>span{width:48px;height:48px;border-radius:15px;background:#fff;color:var(--purple);display:grid;place-items:center}.clinical-document-intro svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.clinical-document-intro h3{margin:0}.clinical-document-intro p{margin:4px 0 0;color:var(--muted)}.clinical-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.clinical-document-grid button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:18px;background:#fff;padding:16px;box-shadow:var(--shadow-soft)}.clinical-document-grid button>span{width:42px;height:42px;border-radius:13px;background:var(--purple-soft);color:var(--purple);display:grid;place-items:center;flex:0 0 auto}.clinical-document-grid svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.clinical-document-grid strong,.clinical-document-grid small{display:block}.clinical-document-grid small{color:var(--muted);margin-top:3px}.clinical-document-note{margin:0;color:var(--muted);font-size:.82rem}
.clinical-timeline{display:grid;gap:12px}.clinical-history-card{border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}.clinical-history-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;list-style:none}.clinical-history-card>summary::-webkit-details-marker{display:none}.clinical-history-card>summary small,.clinical-history-card>summary strong,.clinical-history-card>summary span{display:block}.clinical-history-card>summary small{color:var(--purple);font-size:.68rem;letter-spacing:.08em;font-weight:900}.clinical-history-card>summary strong{margin-top:3px}.clinical-history-card>summary span{color:var(--muted);font-size:.78rem;margin-top:4px}.clinical-history-body{padding:0 18px 18px}.clinical-history-body section{padding:12px 0;border-top:1px solid #eee8f4}.clinical-history-body section small{color:var(--purple);font-weight:900}.clinical-history-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:12px}
@media(max-width:760px){.clinical-summary-grid,.clinical-last-grid,.clinical-form-grid,.clinical-exam-grid,.clinical-document-grid{grid-template-columns:1fr}.clinical-summary-card.wide{grid-column:auto}.clinical-vitals-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clinical-workspace{border-radius:22px}.clinical-workspace-head{padding:21px;align-items:flex-start}.clinical-head-mark{width:52px;height:52px}.clinical-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.clinical-panel{padding:16px}.clinical-form-section{padding:15px}.clinical-form-actions{flex-direction:column}.clinical-form-actions .btn{width:100%}}
@media(max-width:420px){.clinical-vitals-grid{grid-template-columns:1fr}.clinical-workspace-head h2{font-size:1.28rem}.clinical-tabs button{font-size:.78rem}}
.clinical-pro-workspace{overflow:visible}
.clinical-pro-head{background:linear-gradient(135deg,#f7f2ff 0%,#fff 58%,#effcf8 100%);border:1px solid #e9def5;border-radius:28px;padding:24px;box-shadow:0 16px 40px rgba(65,37,103,.08);color:var(--ink)}
.clinical-pro-head .eyebrow{color:var(--purple)}.clinical-pro-head p{color:var(--muted)}.clinical-pro-head .clinical-head-mark{background:#eee6f8;color:var(--purple)}
.clinical-pro-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}.clinical-pro-main{min-width:0}.clinical-pro-side{position:sticky;top:96px;display:grid;gap:14px}
.clinical-side-card{background:#fff;border:1px solid #e8def2;border-radius:22px;padding:16px;box-shadow:0 12px 28px rgba(65,37,103,.07)}.clinical-side-title h3{margin:0 0 12px;font-size:1rem}.clinical-side-mini-grid{display:grid;gap:9px}.clinical-side-mini-grid article{padding:12px;border-radius:16px;background:#fbf8ff;border:1px solid #eee6f6}.clinical-side-mini-grid small,.clinical-side-last small,.clinical-side-list button small{display:block;color:var(--purple);font-size:.68rem;font-weight:900;letter-spacing:.08em}.clinical-side-mini-grid strong,.clinical-side-last strong{display:block;font-size:.88rem;line-height:1.38;white-space:pre-wrap}.clinical-side-last{margin-top:14px;padding-top:14px;border-top:1px solid #eee6f6}.clinical-side-last span{display:block;color:var(--muted);font-size:.76rem;margin-top:4px}.clinical-vital-pills.compact{gap:6px;margin-top:10px}.clinical-vital-pills.compact span{font-size:.7rem;padding:6px 8px}.clinical-side-list{display:grid;gap:8px;max-height:520px;overflow:auto}.clinical-side-list button{text-align:left;border:1px solid #eee5f7;background:#fff;border-radius:15px;padding:11px;cursor:pointer;color:var(--ink)}.clinical-side-list button:hover{background:#fbf8ff}.clinical-side-list button strong,.clinical-side-list button span{display:block}.clinical-side-list button strong{font-size:.86rem;margin-top:3px}.clinical-side-list button span{color:var(--muted);font-size:.74rem;line-height:1.35;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clinical-exam-free textarea{min-height:210px}.clinical-section-title.compact{margin:18px 0 12px}.clinical-charts-section{margin-top:18px}.clinical-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.clinical-chart-card{background:#fff;border:1px solid #e8def2;border-radius:20px;padding:15px;box-shadow:0 10px 24px rgba(65,37,103,.06);color:#7537c8}.clinical-chart-card small,.clinical-chart-card span{display:block}.clinical-chart-card small{color:var(--purple);font-weight:900;letter-spacing:.08em;font-size:.68rem}.clinical-chart-card strong{display:block;color:var(--ink);font-size:1.25rem;margin:5px 0}.clinical-chart-card svg{width:100%;height:74px;margin:3px 0;color:#7b40ce;background:linear-gradient(180deg,#fbf8ff,#fff);border-radius:13px}.clinical-chart-card span{font-size:.75rem;color:var(--muted)}.empty-chart{color:var(--muted)}.empty-chart strong{font-size:1rem}
@media(max-width:1050px){.clinical-pro-layout{grid-template-columns:1fr}.clinical-pro-side{position:static;grid-template-columns:1fr 1fr}.clinical-chart-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.clinical-pro-head{padding:20px}.clinical-pro-side{grid-template-columns:1fr}.clinical-chart-grid{grid-template-columns:1fr}}
@media(max-width:420px){.clinical-side-list{max-height:none}.clinical-pro-head .clinical-head-mark{display:none}}
.clinical-pro-workspace{background:linear-gradient(180deg,#ffffff 0%,#fcfaff 100%);border-color:#dfd3ee;box-shadow:0 24px 54px rgba(60,35,95,.11)}
.clinical-pro-head{background:linear-gradient(135deg,#2f214d 0%,#55347f 56%,#86b9d6 118%);color:#fff;border:0;position:relative;overflow:hidden}
.clinical-pro-head:after{content:"";position:absolute;right:-30px;top:-20px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.09)}
.clinical-pro-head > *{position:relative;z-index:1}
.clinical-pro-head .eyebrow,.clinical-pro-head p{color:#f2ebfb}
.clinical-pro-head h2{font-size:1.85rem;letter-spacing:-.04em}
.clinical-pro-head .clinical-head-mark{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(10px)}
.clinical-pro-layout{gap:20px;padding:0 0 4px}
.clinical-pro-tabs{margin:18px 18px 0;padding:8px;background:linear-gradient(180deg,#f5f0fb,#fbf8ff);border:1px solid #ebdff8;border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.clinical-pro-tabs button{border-radius:16px;padding:13px 10px;font-weight:900;color:#6d6780;transition:all .18s ease}
.clinical-pro-tabs button:hover{background:rgba(255,255,255,.7);color:#53317b}
.clinical-pro-tabs button.active{background:linear-gradient(135deg,#5f3b92,#7a5ac2);color:#fff;box-shadow:0 10px 24px rgba(84,53,130,.22)}
.clinical-pro-main .clinical-panel{padding:18px 18px 22px}
.clinical-pro-main [data-clinical-panel]{background:transparent}
.clinical-summary-grid{gap:14px}
.clinical-summary-card,.clinical-last-consultation,.clinical-form-section,.clinical-history-card,.clinical-side-card,.clinical-document-grid button{border-color:#eadff6;box-shadow:0 12px 30px rgba(65,37,103,.06)}
.clinical-summary-card{border-radius:22px;background:linear-gradient(180deg,#fff,#fcfbff)}
.clinical-summary-card small,.clinical-last-grid small,.clinical-history-body section small{color:#613c97}
.clinical-last-consultation{border-radius:24px;background:linear-gradient(180deg,#fff,#fbf8ff)}
.clinical-last-head{padding-bottom:12px;border-bottom:1px solid #eee7f6;margin-bottom:12px}
.clinical-last-grid>div{background:#fff;border:1px solid #f0e6fa;border-radius:18px}
.clinical-vital-pills span{background:#f6f0fc;border-color:#e6d8f2;color:#4e4261}
.clinical-vital-pills b{color:#633b98}
.clinical-consultation-form{gap:16px}
.clinical-form-heading{padding:14px 16px;border-radius:20px;background:linear-gradient(180deg,#f9f4ff,#fff);border:1px solid #eadff7}
.clinical-save-state{background:#efe7fb;color:#603995;padding:8px 12px}
.clinical-form-section{padding:20px 20px 18px;border-radius:24px;background:linear-gradient(180deg,#fff,#fdfbff)}
.clinical-section-title{margin-bottom:18px}
.clinical-section-title>span{background:linear-gradient(135deg,#efe5fb,#f6f1ff);color:#5e3a8a;box-shadow:inset 0 0 0 1px #e5d8f6}
.clinical-exam-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.clinical-exam-grid .field{padding:14px;border:1px solid #eee4f7;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgba(66,37,103,.04)}
.clinical-exam-grid .field label{font-weight:800;color:#59348d}
.clinical-document-intro{border:1px solid #eadff6;background:linear-gradient(180deg,#fbf7ff,#fff)}
.clinical-document-grid button{border-radius:20px}
.clinical-history-card{border-radius:22px}
.clinical-history-card>summary{padding:18px 20px;background:linear-gradient(180deg,#fff,#fcf9ff)}
.clinical-history-card>summary b{font-size:1.1rem;color:#6a44a8}
.clinical-history-body{padding:0 20px 20px}
.clinical-history-body section{padding:14px 0}
.clinical-side-card{border-radius:24px}
.clinical-side-title h3{font-size:1.05rem}
.clinical-side-mini-grid article{border-radius:18px;background:linear-gradient(180deg,#fbf7ff,#fff)}
.clinical-side-list button{border-radius:18px;padding:13px;background:linear-gradient(180deg,#fff,#fdfbff)}
.clinical-side-list button:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(65,37,103,.08)}
.clinical-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.clinical-chart-card{border-radius:22px;padding:16px 16px 14px;background:#fff}
.clinical-chart-card.themed-chart{background:linear-gradient(180deg,var(--chart-soft),#fff 82%);border-color:#e5daf3}
.clinical-chart-card small{color:#6d4aa4}
.clinical-chart-topline,.clinical-chart-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.clinical-chart-topline strong{margin:6px 0 0;font-size:1.35rem}
.clinical-chart-topline span{font-size:.76rem;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.8);border:1px solid rgba(111,76,168,.12);color:#6d6780}
.clinical-chart-card svg{height:128px;margin:10px 0 6px;background:rgba(255,255,255,.75);border:1px solid rgba(111,76,168,.08)}
.clinical-chart-footer{font-size:.76rem;color:#6d6780}
.clinical-chart-footer span:last-child{font-weight:800;color:var(--chart-accent)}
@media(max-width:1050px){
  .clinical-pro-tabs{margin:16px 16px 0}
  .clinical-pro-main .clinical-panel{padding:16px}
}
@media(max-width:760px){
  .clinical-pro-head h2{font-size:1.48rem}
  .clinical-pro-tabs{margin:14px 14px 0;border-radius:18px}
  .clinical-pro-main .clinical-panel{padding:14px}
  .clinical-form-heading{flex-direction:column;align-items:flex-start}
  .clinical-exam-grid{grid-template-columns:1fr}
  .clinical-chart-grid{grid-template-columns:1fr}
}
/* Adaptation to the commercial shell; selectors stay inside the clinical workspace. */
#clinicalView{--purple:#743ba7;--purple-dark:#502272;--purple-soft:#f0e5fb;--line:#e8ddef;--ink:#30253c;--muted:#796a85;font-size:14px}#clinicalView .clinical-pro-head{border-radius:25px 25px 0 0;background:linear-gradient(135deg,#5d278d,#984ab0);color:white}#clinicalView .clinical-pro-layout{grid-template-columns:minmax(0,1fr) 285px;padding-right:18px}#clinicalView .clinical-pro-side{padding-top:18px;top:120px}#clinicalView .clinical-workspace{margin-top:14px}#clinicalView .clinical-head-mark{color:white}#clinicalView .clinical-form-grid{display:grid}#clinicalView .clinical-vitals-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#clinicalView .clinical-workspace input,#clinicalView .clinical-workspace select,#clinicalView .clinical-workspace textarea{font-size:14px;margin-bottom:0}#clinicalView .clinical-workspace label{font-size:12px}#clinicalView .clinical-form-section .field{min-width:0}#clinicalView .clinical-summary-card p,#clinicalView .clinical-history-body p,#clinicalView .clinical-side-card strong{overflow-wrap:anywhere}#clinicalView .clinical-summary-tools{display:flex;justify-content:flex-end;margin-bottom:16px}#clinicalView .clinical-tabs button:focus-visible{outline:3px solid #a176c5;outline-offset:2px}#clinicalView .clinical-history-card>summary{margin:0;color:#443153}.clinical-patient-toolbar{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.clinical-demographics{padding:0 20px;background:#fff;border:1px solid #e5d9ee;border-radius:15px;margin-top:16px}.clinical-demographics summary{font-weight:650;font-size:14px;padding:2px 0}.clinical-demographics dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 0 18px}.clinical-demographics dt{font-size:11px;color:#796a85}.clinical-demographics dd{margin:5px 0 0;overflow-wrap:anywhere}#clinicalView .clinical-chart-footer{flex-wrap:wrap}
@media(max-width:1050px){#clinicalView .clinical-pro-layout{grid-template-columns:minmax(0,1fr);padding-right:0}#clinicalView .clinical-pro-side{position:static;padding:0 18px 18px;grid-template-columns:1fr 1fr}}
@media(max-width:760px){#clinicalView .clinical-pro-side{grid-template-columns:1fr}#clinicalView .clinical-vitals-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clinical-demographics dl{grid-template-columns:1fr 1fr}#clinicalView .clinical-pro-head h2{font-size:24px}#clinicalView .clinical-last-head{flex-direction:column}.clinical-patient-toolbar .btn{flex:1}#clinicalView .clinical-pro-tabs{grid-template-columns:1fr 1fr}#clinicalView .clinical-form-section{padding:14px}#clinicalView .clinical-document-grid button{padding:13px}#clinicalView .clinical-chart-topline{flex-wrap:wrap}}
@media(max-width:420px){#clinicalView .clinical-vitals-grid{grid-template-columns:1fr 1fr}#clinicalView .clinical-vitals-grid .field:first-child{grid-column:1/-1}.clinical-demographics dl{grid-template-columns:1fr}#clinicalView .clinical-form-actions .btn{min-width:0}}

/* design.css */
/* Medical Care · same visual family as the personal application, scoped to this project. */
:root{--purple:#7d39c4;--purple2:#be46ae;--purple-soft:#f2e8fc;--ink:#33273e;--muted:#7b7086;--line:#eaddf2;--bg:#fcfaff;--shadow:0 18px 46px rgba(86,43,121,.08);--mc-gradient:linear-gradient(125deg,#783ad0 0%,#ad42b8 52%,#e760a7 100%)}
body{background:radial-gradient(ellipse at 10% 0,#f6e9f8,transparent 45%),radial-gradient(ellipse at 92% 18%,#eee5fc,transparent 42%),#fdfbff;color:var(--ink)}
.app{padding:18px 0 116px}.app[data-space=supervisor],.app[data-space=patient]{padding-bottom:24px}
.topbar{position:relative;top:auto;width:min(1240px,94vw);margin:0 auto 24px;min-height:148px;padding:22px;display:flex;gap:20px;align-items:center;border:1px solid #e7d3f0;border-radius:30px;color:var(--ink);background-image:linear-gradient(90deg,rgba(255,255,255,.76),rgba(255,255,255,.4) 44%,rgba(255,255,255,.02)),url('/assets/access-medical-20261011.webp?v=24');background-position:center 43%;background-size:cover;box-shadow:0 14px 38px #70449112;overflow:hidden}
.topbar .brand{padding:13px 16px;background:#ffffffea;backdrop-filter:blur(10px);border:1px solid #ecdcf5;border-radius:23px;box-shadow:0 8px 24px #6943810d;max-width:440px;gap:13px}
.topbar .brand img{width:62px;height:62px;border-radius:17px;padding:0;object-fit:contain;box-shadow:0 4px 16px #72508c10}
.topbar .brand h1{margin:0 0 4px;line-height:1.1}.brand-name{font-family:inherit;font-size:23px;font-weight:850;letter-spacing:-.05em;background:linear-gradient(90deg,#7939c4,#de4b9e);background-clip:text;-webkit-background-clip:text;color:transparent}.brand-product{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:24px;color:#898191;letter-spacing:-.04em;text-transform:none;margin:0}.brand small{font-size:11px;color:#796b86;max-width:290px;margin-top:7px;line-height:1.3}
.topbar>.actions{margin-left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:590px;gap:9px}.topbar .actions select{background:#fffc;color:#563773;border:1px solid #ead9f1;max-width:260px;font-size:12px;min-height:45px;border-radius:14px;backdrop-filter:blur(12px)}.topbar .btn.secondary,.topbar #logoutBtn{background:#fffffff0;color:#773aab;border:1px solid #eadcf2;border-radius:14px;box-shadow:0 4px 12px #5c387514;min-height:45px;font-size:12px}
.mc-clock{padding:9px 14px;background:#fffffff0;border:1px solid #edddf4;border-radius:15px;text-align:right;box-shadow:0 4px 12px #5c387510}.mc-clock strong,.mc-clock span{display:block;line-height:1.35}.mc-clock strong{font-size:11px;text-transform:capitalize}.mc-clock span{font-size:11px;color:#88758f}
.shell{width:min(1240px,94vw);margin:0 auto;padding:0 0 25px}.shell>div{min-width:0}
.bottom-nav{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(1240px,94vw);display:flex;justify-content:space-around;gap:5px;margin:0;padding:9px 12px;background:#fffffff5;border:1px solid #eadcf2;border-radius:26px;box-shadow:0 -6px 34px #69358d13;backdrop-filter:blur(18px);z-index:30;overflow:visible}
.bottom-nav button{display:flex;flex:1 1 0;min-width:0;align-items:center;flex-direction:column;justify-content:center;gap:4px;border:0;padding:3px 4px;color:#8d8295;background:transparent!important;font-size:11px;border-radius:14px;box-shadow:none!important;white-space:normal}.mc-nav-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:13px;background:var(--icon-bg,#f4eafa);color:var(--icon-color,#8a4ec1)}.mc-nav-icon svg{width:23px;height:23px}.bottom-nav button.active{color:#7533a3;font-weight:800}.bottom-nav button.active .mc-nav-icon{background:var(--mc-gradient);color:white;box-shadow:0 6px 16px #af439530}.bottom-nav button.active .mc-nav-label{position:relative}.bottom-nav button.active .mc-nav-label:after{content:'';position:absolute;left:20%;right:20%;bottom:-4px;height:2px;background:linear-gradient(90deg,#853ed1,#dd509e);border-radius:2px}
.patients{--icon-bg:#f0e6fe;--icon-color:#8650c8}.agenda,.applications{--icon-bg:#fff0df;--icon-color:#d78121}.documents{--icon-bg:#e4f6f7;--icon-color:#219bb4}.billing,.settings{--icon-bg:#fce9f3;--icon-color:#cd4a91}.licenses,.portal{--icon-bg:#e5f7f0;--icon-color:#259a78}.notices{--icon-bg:#fff1de;--icon-color:#cc811e}.clinic{--icon-bg:#e5f2fd;--icon-color:#4183b4}.blocked{--icon-bg:#ffeded;--icon-color:#c55b6a}
.mc-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(285px,.75fr);gap:28px;background:radial-gradient(circle at 16% 12%,#ffffff20,transparent 30%),var(--mc-gradient);padding:30px;border-radius:32px;color:white;box-shadow:0 22px 52px #af479522;overflow:hidden;min-height:298px;margin-bottom:18px}
.mc-hero:before{content:'';position:absolute;z-index:-1;width:380px;height:380px;top:-270px;right:23%;border:1px solid #ffffff29;border-radius:50%;box-shadow:0 0 0 65px #ffffff07,0 0 0 130px #ffffff05;pointer-events:none}.mc-hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:5px}.mc-hero .eyebrow{display:inline-flex;gap:7px;align-items:center;border:1px solid #ffffff35;border-radius:50px;background:#ffffff18;color:#fff;padding:6px 12px;font-size:10px;letter-spacing:.15em}.mc-hero .eyebrow:before{content:'';width:7px;height:7px;background:#fff;border-radius:50%;box-shadow:0 0 0 4px #ffffff17}.mc-hero h2{color:white;font-size:38px;font-weight:780;letter-spacing:-.05em;line-height:1.08;margin:20px 0 10px;overflow-wrap:anywhere}.mc-hero-copy>p{font-size:15px;line-height:1.6;color:#fff4fc;margin:0;max-width:620px}.mc-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.mc-hero-action{display:flex;align-items:center;gap:12px;min-height:62px;min-width:168px;border:1px solid #ffffff3b;background:#ffffff17;color:white;border-radius:18px;padding:12px 17px;text-align:left}.mc-hero-action.primary{background:#fff;color:#7e39b5;box-shadow:0 8px 25px #7c367322}.mc-hero-action>svg{width:23px;height:23px;flex:none}.mc-hero-action strong,.mc-hero-action small{display:block}.mc-hero-action strong{font-size:13px}.mc-hero-action small{font-size:11px;margin-top:2px;opacity:.8}.mc-hero-action:disabled{opacity:.5}
.mc-focus{padding:22px 23px;border-radius:25px;background:#fff5fcf5;color:var(--ink);box-shadow:0 16px 38px #81347015;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}.mc-focus-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid #ecddec;margin-bottom:18px}.mc-focus-top span{font-size:10px;letter-spacing:.14em;font-weight:800;color:#8c719b}.mc-focus-top b{display:grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border-radius:12px;background:var(--mc-gradient);color:white;font-size:13px}.mc-focus>small{color:#bd4c9a;font-size:10px;font-weight:800;letter-spacing:.13em}.mc-focus>strong{font-size:29px;line-height:1.15;letter-spacing:-.04em;color:#723496;margin:8px 0}.mc-focus h3{font-size:16px;margin:0}.mc-focus>p{font-size:12px;line-height:1.45;color:#85738d;margin:5px 0 16px}.mc-focus-link{border:0;background:none;color:#853eaf;padding:0;font-weight:800;font-size:13px;align-self:flex-start;text-align:left;min-height:32px}.mc-focus .mc-focus-big{font-size:42px}
.mc-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 22px}.mc-metric{border:1px solid #e8d9f0;border-radius:23px;display:flex;align-items:center;gap:13px;padding:18px;background:linear-gradient(170deg,#fdf9ff,#fff);box-shadow:0 10px 26px #69417d09;text-align:left;min-width:0;color:var(--ink)}.mc-icon{display:grid;place-items:center;flex:none;width:47px;height:47px;border-radius:16px;background:var(--icon-bg,#f0e7fc);color:var(--icon-color,#8b4cba)}.mc-icon svg{width:25px;height:25px}.mc-metric-copy{min-width:0}.mc-metric small,.mc-metric strong,.mc-metric em{display:block}.mc-metric small{font-size:11px;color:#86768e;font-weight:700}.mc-metric strong{font-size:22px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}.mc-metric em{font-style:normal;font-size:10px;color:#9c8da4;margin-top:2px}.mc-metric:hover{box-shadow:0 14px 30px #77439216;transform:translateY(-2px)}
.card{border:1px solid #e9daf2;border-radius:26px;background:linear-gradient(180deg,#fff,#fefdff);padding:25px;box-shadow:0 14px 38px #68417b09}.card h2{font-size:25px;color:#382944}.card h3{font-size:18px;color:#43314f}.supervisor-dashboard.card,.patient-dashboard.card{padding:0;border:0;background:none;box-shadow:none;max-width:none}.supervisor-tabs{padding:7px;gap:8px;border:1px solid #eaddf2;border-radius:20px;background:#f5eef9;margin:22px 0}.supervisor-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;min-height:46px}.supervisor-tabs svg{width:21px;height:21px}.supervisor-tabs button.active{background:#fff;color:#7f3bac;box-shadow:0 5px 18px #68417b0d}.supervisor-dashboard [data-supervisor-section]{padding:22px 26px;border:1px solid #eaddf3;border-radius:26px;background:#fff;box-shadow:0 12px 35px #6a46790b}.supervisor-dashboard [data-supervisor-section]>h3{margin:0 0 18px}.item{border-radius:20px;padding:20px;border-color:#ecdef3;background:linear-gradient(115deg,#fff,#fdfaff);box-shadow:0 4px 18px #6b407706}.item p{color:#81728b}.item h3{font-size:18px}.item:has([data-approve]){border-left-color:#c14aab}
.mc-dashboard-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:18px;align-items:start}.mc-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #efe4f5;padding-bottom:17px;margin-bottom:16px}.mc-panel-title{display:flex;align-items:center;gap:12px;min-width:0}.mc-panel-title .eyebrow{font-size:10px;color:#b149a1;margin-bottom:3px}.mc-panel-title h3{margin:0;font-size:20px}.mc-panel-title p{margin:3px 0 0;color:#8d7e97;font-size:12px}.mc-panel-heading .btn{font-size:12px;white-space:nowrap}.mc-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mc-quick button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:15px;border:1px solid #ecddf3;border-radius:20px;background:linear-gradient(155deg,#fff,#fcf8ff);gap:7px;color:#513964;min-width:0;min-height:125px}.mc-quick strong{font-size:12px}.mc-quick small{font-size:10px;color:#8b7b95}.mc-quick .mc-icon{width:38px;height:38px;border-radius:13px}.mc-quick svg{width:21px;height:21px}.mc-empty{display:flex;align-items:center;flex-direction:column;padding:34px 20px;text-align:center;gap:7px;color:#75617e}.mc-empty strong{margin-top:4px;font-size:14px}.mc-empty p{margin:0;font-size:12px;color:#96859e}.mc-timeline-row{display:grid;grid-template-columns:67px minmax(0,1fr) auto;align-items:center;gap:13px;padding:16px 2px;border-bottom:1px solid #f0e8f5}.mc-timeline-row:last-child{border:0}.mc-timeline-row time{font-size:12px;font-weight:800;color:#74429a}.mc-timeline-row strong,.mc-timeline-row small{display:block}.mc-timeline-row strong{font-size:13px}.mc-timeline-row small{font-size:11px;color:#947f9d;margin-top:3px}
.module-heading{border-radius:21px;padding:22px;background:linear-gradient(115deg,#f6edfe,#fff8fc);border:1px solid #eddcf4;margin-bottom:24px}.module-heading>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 14px}.module-heading .mc-module-icon{grid-column:1;grid-row:1/4;align-self:center;width:54px;height:54px}.module-heading .eyebrow,.module-heading h2,.module-heading p{grid-column:2}.module-heading h2{font-size:25px;margin-bottom:5px}.module-heading p{font-size:13px}.module-heading .eyebrow{margin-bottom:4px;color:#a248a3}.module-heading .mc-icon svg{width:28px;height:28px}
.btn{border-radius:14px;font-size:13px;font-weight:750;min-height:44px}.btn.primary{background:linear-gradient(115deg,#8440c9,#bd48ad);box-shadow:0 6px 18px #9d448f1a}.btn.secondary{background:#f8f0fc;border-color:#e8d6f2;color:#7c3ca6}.table-scroll{border-radius:20px;border-color:#ecdef3}.table th{background:#f7f0fb;font-size:10px;color:#9b6eaa;padding:15px 14px;letter-spacing:.05em}.table td{padding:16px 14px;font-size:13px}.table tbody tr:hover{background:#fdf8ff}.badge{border-radius:50px;font-size:10px}.empty{border-radius:20px;background:#fcf9ff;border-color:#e4d4ee;padding:30px}.notice{border-radius:19px;background:#faf3ff;border-color:#e8d7f2;color:#745485}.field input,.field select,.field textarea,.modal-card input,.modal-card select,.modal-card textarea{border-radius:13px;border-color:#e5d6ed;background:#fffdff;padding:13px 14px}.field label,.modal-card label{font-weight:650;color:#6d507e}.modal-card{border-radius:27px;box-shadow:0 24px 70px #42235f33;padding:27px}.modal-head{padding-bottom:16px;border-bottom:1px solid #eddef4}.modal-head h2{font-size:25px;color:#623583}.modal-head button{border-radius:50%;background:#f4eafc;color:#8246ae;min-width:36px;min-height:36px}.modal{z-index:100}.toast{z-index:110;bottom:108px}
.patient-dashboard>.notice{border:1px solid #e6d8f1;background:#fff;border-radius:22px;color:#704e83}.patient-dashboard>.notice h3{color:#704e83}.patient-dashboard>.notice .btn{color:#7c3ca6;border-color:#e5d4ef;background:#faf4fd}.patient-dashboard>h3{color:#9f459d;font-size:18px;padding-top:18px}.patient-dashboard>details{background:#fff;border:1px solid #ebdcf2;border-radius:22px;padding:12px 20px;margin-top:20px}.patient-dashboard>details summary{color:#805294}.patient-dashboard .mc-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.patient-dashboard .mc-metric{cursor:default}
#clinicalView{--purple:#873cc1;--purple-dark:#673094;--purple-soft:#f3e8fd;--line:#e9d9f2;--muted:#85728f}#clinicalView .clinical-pro-head{background:radial-gradient(circle at 16% 12%,#ffffff24,transparent 35%),var(--mc-gradient);border-radius:29px 29px 0 0;padding:28px}#clinicalView .clinical-pro-tabs button.active{background:var(--mc-gradient);box-shadow:0 6px 20px #a94a9a22}#clinicalView .clinical-workspace{border-radius:29px;box-shadow:0 18px 48px #74458816}#clinicalView .clinical-form-section,#clinicalView .clinical-side-card,#clinicalView .clinical-summary-card{border-color:#e9daf2;border-radius:23px}#clinicalView .clinical-pro-side{top:20px}#clinicalView .clinical-form-actions{bottom:100px}#clinicalView .clinical-document-grid button>span{background:#f1e6fc;color:#9840bb}#clinicalView .clinical-pro-main{min-width:0}
@media(max-width:1080px){.mc-clock{display:none}.topbar>.actions{max-width:380px}.mc-hero{grid-template-columns:minmax(0,1fr) 285px;padding:26px;gap:20px}.mc-hero h2{font-size:34px}.mc-metric{padding:15px;gap:10px}.mc-metric .mc-icon{width:40px;height:40px}.mc-dashboard-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:800px){.topbar{min-height:140px;padding:17px;gap:14px}.topbar .brand{padding:10px;max-width:390px}.topbar>.actions{max-width:270px}.topbar .actions select{width:100%;max-width:100%}.brand-name{font-size:21px}.brand-product{font-size:23px}.mc-hero{grid-template-columns:1fr;gap:23px}.mc-focus{padding:22px;max-width:none}.mc-metrics{grid-template-columns:1fr 1fr}.mc-dashboard-layout{grid-template-columns:1fr}.mc-quick{grid-template-columns:repeat(4,minmax(0,1fr))}.module-heading{align-items:flex-start;flex-direction:column;padding:18px}.module-heading>.inline{width:100%;flex-wrap:wrap}.module-heading>.inline .btn{flex:1}}
@media(max-width:560px){.app{padding-top:12px}.topbar{width:calc(100% - 24px);padding:14px;flex-direction:column;align-items:stretch;border-radius:25px;margin-bottom:18px;background-position:66% 43%}.topbar .brand{align-self:flex-start;max-width:100%;gap:11px;border-radius:18px}.topbar .brand img{width:50px;height:50px}.brand-name{font-size:21px}.brand-product{font-size:23px}.brand small{font-size:10px;max-width:220px}.topbar>.actions{max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px}.topbar .actions select{width:100%;min-width:0;font-size:10px;min-height:40px;padding:8px 22px 8px 9px}.topbar .btn.secondary{padding:8px 9px;min-height:40px;font-size:10px}.shell{width:calc(100% - 24px);padding-bottom:20px}.mc-hero{border-radius:26px;padding:23px 20px;gap:21px}.mc-hero h2{font-size:31px}.mc-hero-copy{padding:0}.mc-hero-copy>p{font-size:13px}.mc-hero-actions{width:100%;gap:8px;margin-top:20px}.mc-hero-action{flex:1;min-width:0;padding:11px 12px;gap:8px;min-height:60px;border-radius:15px}.mc-hero-action strong{font-size:11px}.mc-hero-action small{font-size:10px}.mc-hero-action>svg{width:21px;height:21px}.mc-focus{padding:20px;border-radius:22px}.mc-focus>strong{font-size:25px}.mc-focus h3{font-size:14px}.mc-focus>p{font-size:12px}.mc-metrics{gap:9px}.mc-metric{padding:14px 11px;gap:9px;border-radius:20px;align-items:flex-start;flex-direction:column}.mc-metric .mc-icon{width:37px;height:37px;border-radius:13px}.mc-metric strong{font-size:21px}.mc-metric em{font-size:10px}.mc-metric small{font-size:10px}.mc-metrics .mc-metric-copy{width:100%}.card{padding:19px 16px;border-radius:24px}.supervisor-dashboard.card,.patient-dashboard.card{padding:0}.supervisor-dashboard [data-supervisor-section]{padding:20px 15px;border-radius:24px}.supervisor-tabs{gap:3px;padding:5px;border-radius:18px}.supervisor-tabs button{flex-direction:column;font-size:10px;gap:5px;min-width:0;padding:9px 3px;min-height:60px}.supervisor-tabs svg{width:22px;height:22px}.item{padding:17px;border-radius:18px}.mc-panel-heading{align-items:flex-start}.mc-panel-title .mc-icon{width:38px;height:38px}.mc-panel-title h3{font-size:17px}.mc-panel-title p{font-size:11px}.mc-panel-heading .btn{font-size:10px;padding:8px 10px;min-height:37px}.mc-quick{grid-template-columns:1fr 1fr}.mc-timeline-row{grid-template-columns:57px minmax(0,1fr);gap:10px}.mc-timeline-row .badge{grid-column:2;justify-self:start}.bottom-nav{width:calc(100% - 16px);bottom:max(8px,env(safe-area-inset-bottom));border-radius:23px;gap:0;padding:8px 4px}.bottom-nav button{flex:1 1 0;padding:3px 1px;font-size:9px;line-height:1.2}.mc-nav-icon{width:33px;height:33px;border-radius:12px}.mc-nav-icon svg{width:21px;height:21px}.module-heading{padding:17px 13px;border-radius:19px}.module-heading .mc-module-icon{width:42px;height:42px;border-radius:14px}.module-heading>div:first-child{gap:0 10px}.module-heading h2{font-size:21px}.module-heading p{font-size:12px}.module-heading .eyebrow{font-size:9px}.modal-card{border-radius:24px;padding:22px 17px}.modal-head h2{font-size:22px}.patient-dashboard .mc-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.patient-dashboard .mc-metric{padding:12px 9px}.patient-dashboard .mc-metric em{display:none}#clinicalView .clinical-pro-head{padding:23px 18px}#clinicalView .clinical-form-actions{bottom:92px}}
.mc-focus-top svg{width:20px;height:20px}
.modal-card{width:min(620px,100%);min-width:0;max-width:100%;max-height:calc(100svh - 40px)}
.modal-card:has(#issueDocumentForm){width:min(760px,100%)}
@media(max-width:560px){.modal{padding:12px}.modal-card{max-height:calc(100svh - 24px)}}
.topbar>.actions{max-width:720px;flex:0 1 660px;width:660px}
.card .mc-hero h2{color:#fff;font-size:38px}
@media(max-width:1080px){.topbar>.actions{max-width:380px;flex-basis:380px;width:380px}.card .mc-hero h2{font-size:34px}}
@media(max-width:800px){.topbar>.actions{max-width:270px;flex-basis:270px;width:270px}}
@media(max-width:560px){.topbar>.actions{max-width:none;flex:none;width:100%}.card .mc-hero h2{font-size:31px}}
/* A distinct commercial portrait, with the controls below the faces. */
.topbar{min-height:214px;align-items:flex-start;background-size:auto 320px;background-position:right top;background-repeat:no-repeat;background-color:#faf4fe;padding-bottom:74px}
.topbar>.actions{position:absolute;right:22px;bottom:16px;width:auto;max-width:calc(100% - 44px);flex-wrap:nowrap}
.topbar .actions select{width:250px}
.welcome-photo{height:245px;object-position:75% top}
@media(max-width:1080px){.topbar{background-size:auto 300px}.topbar>.actions{max-width:calc(100% - 44px);width:auto}.topbar .actions select{width:230px}}
@media(max-width:800px){.topbar{background-size:auto 265px}.topbar .brand{max-width:330px}.topbar>.actions{width:auto;max-width:calc(100% - 34px);right:17px}}
@media(max-width:560px){.topbar{padding:146px 13px 13px;min-height:0;background-size:100% auto;background-position:center top;gap:11px}.topbar .brand{align-self:stretch;max-width:100%;width:100%;padding:11px}.topbar>.actions{position:static;width:100%;max-width:100%;flex:none}.topbar .actions select{width:100%}.welcome-photo{height:auto;aspect-ratio:2.2/1;object-position:75% top}}
@media(prefers-reduced-motion:reduce){.mc-metric,.mc-hero-action{transition:none}}
/* The welcome screen shares the team's photograph and luminous gradients. */
.auth-shell{background:radial-gradient(ellipse at 4% 8%,#eddbfb 0,transparent 48%),radial-gradient(ellipse at 95% 90%,#f9e1f0 0,transparent 52%),#fcf9ff}
.auth-layout{width:min(1180px,100%);border:1px solid #ead8f4;box-shadow:0 24px 80px #8247a621}
.auth-story{background:radial-gradient(ellipse at 12% 50%,#c181ec70,transparent 65%),var(--mc-gradient)}
.auth-story .welcome-photo{height:330px;object-position:right top;mask-image:linear-gradient(#000 0%,#000 76%,transparent 100%);-webkit-mask-image:linear-gradient(#000 0%,#000 76%,transparent 100%)}
.welcome-story{position:relative;margin-top:-16px;padding:8px 38px 32px}
.welcome-story>.eyebrow{color:#fff0ff}.welcome-story>p{color:#fff5ff}.story-features>div{padding:11px 13px;background:#ffffff12;border:1px solid #ffffff30;border-radius:16px}.story-features{gap:10px}.story-features small{color:#fff3ff}.story-signature{margin-top:20px}
@media(max-width:950px){.auth-story .welcome-photo{height:265px}.welcome-story{padding:8px 26px 28px}}
@media(max-width:760px){.auth-story .welcome-photo{height:auto;aspect-ratio:2/1;object-position:right top}.welcome-story{padding:2px 23px 23px;margin-top:-5px}.welcome-story>.eyebrow{margin-bottom:8px}.auth-story h2{font-size:27px}}
/* Fade the photograph into the logo's background without a hard image edge. */
.topbar{--banner-photo-width:800px;--banner-photo-height:320px;background-image:none;isolation:isolate}
.topbar::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/access-medical-20261011.webp?v=24') right top/auto var(--banner-photo-height) no-repeat;mask-image:linear-gradient(to right,transparent max(0px,calc(100% - var(--banner-photo-width))),#000 max(180px,calc(100% - var(--banner-photo-width) + 220px)));-webkit-mask-image:linear-gradient(to right,transparent max(0px,calc(100% - var(--banner-photo-width))),#000 max(180px,calc(100% - var(--banner-photo-width) + 220px)))}
@media(max-width:1080px){.topbar{--banner-photo-width:750px;--banner-photo-height:300px}}
@media(max-width:800px){.topbar{--banner-photo-width:663px;--banner-photo-height:265px}}
@media(max-width:560px){.topbar::before{bottom:auto;aspect-ratio:1983/793;background-size:100% 100%;mask-image:linear-gradient(to bottom,#000 0%,#000 55%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 55%,transparent 100%)}}

/* Trial status shares the established purple gradient design. */
.trial-banner{display:flex;align-items:center;gap:18px;margin:0 0 22px;padding:22px 26px;border:1px solid #ddc7f0;border-radius:26px;background:linear-gradient(115deg,#f5eaff,#fff1f9);box-shadow:0 8px 26px #6f32800a;color:#513067}
.trial-banner>div{flex:1;min-width:0}.trial-banner strong{font-size:1.03rem}.trial-banner p{margin:6px 0 0;color:#766182;line-height:1.5}.trial-banner .btn{flex-shrink:0}.trial-attention{border-color:#d7addd;background:linear-gradient(115deg,#f0dffe,#fce4f1)}
.trial-license-card{margin-bottom:22px}.trial-license-card .eyebrow{color:#a547b0}
@media(max-width:680px){.trial-banner{flex-wrap:wrap;padding:20px;gap:12px;border-radius:22px}.trial-banner>.mc-icon{display:none}.trial-banner>div{flex-basis:100%}.trial-banner .btn{width:100%}}

/* Prominent professional trial invitation, consistent with the Medical Care palette. */
.professional-trial-promo{position:relative;isolation:isolate;overflow:hidden;margin:0 0 26px;padding:28px 24px 25px;border:1px solid #ffffff70;border-radius:26px;background:radial-gradient(ellipse at 0 0,#aa78f76b,transparent 62%),linear-gradient(125deg,#6c31b3 0%,#9638b8 53%,#cc489f 100%);box-shadow:0 12px 28px #8737b52b,inset 0 1px 0 #ffffff38;color:#fff;text-align:center}
.professional-trial-promo::before{content:"";position:absolute;z-index:-1;width:220px;height:220px;right:-150px;top:-130px;border:1px solid #ffffff26;border-radius:50%;box-shadow:0 0 0 38px #ffffff05,0 0 0 76px #ffffff04;pointer-events:none}
.trial-promo-kicker{display:inline-block;max-width:100%;padding:6px 11px;border:1px solid #ffffff40;border-radius:99px;background:#ffffff10;font-size:9px;font-weight:750;letter-spacing:.1em;line-height:1.5;color:#fff;margin-bottom:17px}
.auth-card .professional-trial-promo h2{margin:0 0 23px;color:#fff;font-size:27px;line-height:1.24;letter-spacing:-.035em;font-weight:750;text-align:center}
.professional-trial-promo h2>span{display:flex;justify-content:center;align-items:baseline;gap:9px;font-size:22px;font-weight:500;margin-top:4px}.professional-trial-promo h2 strong{font-size:44px;font-weight:850;white-space:nowrap;letter-spacing:-.045em;line-height:1.15}
.trial-promo-cta{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;max-width:320px;min-height:48px;margin:0 auto;padding:12px 18px;border:1px solid #ffffffc7;border-radius:14px;background:#fff;color:#6c2bab;font:inherit;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 5px 16px #4820641a;transition:background .15s,box-shadow .15s}
.trial-promo-cta:hover{background:#fff4fc;box-shadow:0 7px 20px #48206433}.trial-promo-cta:focus-visible{outline:3px solid #fff;outline-offset:4px}.trial-promo-cta>span{font-size:23px;line-height:1}
@media(max-width:760px){.professional-trial-promo{padding:25px 18px 23px;margin-bottom:22px;border-radius:24px}.auth-card .professional-trial-promo h2{font-size:26px}.professional-trial-promo h2>span{font-size:21px}.professional-trial-promo h2 strong{font-size:42px}.trial-promo-kicker{font-size:8px;letter-spacing:.075em;padding:6px 9px}}

/* Live subtotal, IVA and total in the service form. */
.bill-calculation{padding:18px 20px;border:1px solid #e5d4ef;border-radius:16px;background:linear-gradient(120deg,#f8f2ff,#fff4fb);margin:6px 0;min-width:0}.bill-calculation>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:7px 0;font-size:14px;color:#6d537f}.bill-calculation output{font-weight:700;text-align:right;overflow-wrap:anywhere;min-width:0;font-variant-numeric:tabular-nums}.bill-calculation .bill-calculation-total{margin-top:9px;padding-top:15px;border-top:1px solid #e4d4ec;color:#6429a2;font-size:19px;font-weight:800}.bill-calculation-total output{font-size:24px}.bill-amount-cell strong,.bill-amount-cell small{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}.bill-amount-cell strong{color:#6429a2;font-size:15px}.bill-amount-cell small{font-size:11px;color:#7b6a85;margin-top:5px}@media(max-width:550px){.bill-calculation{padding:14px}.bill-calculation .bill-calculation-total{font-size:16px}.bill-calculation-total output{font-size:21px}}

.professional-trial-promo .subscription-price{color:#fff;font-size:20px;font-weight:750;text-align:center;margin:14px 0 20px;line-height:1.4}

/* support.css */
.support-card{padding:clamp(18px,3vw,40px)}.support-guide{border:1px solid #eadcf6;border-radius:20px;padding:18px 22px;background:#fcf8ff;margin:18px 0}.support-guide summary{cursor:pointer;color:#7438b0;font-weight:750}.support-guide h3{margin-bottom:6px}.support-filter{max-width:250px;margin:24px 0}.support-ticket{display:flex;justify-content:space-between;align-items:center;gap:18px}.support-ticket h3{margin:12px 0 6px}.support-ticket .badge{margin-right:7px}.support-conversation{display:grid;gap:12px;max-height:40vh;overflow:auto;padding:4px 4px 15px}.support-message{border:1px solid #e7def1;background:#fbf8ff;padding:16px;border-radius:18px}.support-message.supervisor,.support-message.agent{background:#f2eefc;margin-left:24px}.support-message small{display:block;margin-top:4px;color:#766a84}.support-message p,.support-agent p{white-space:pre-wrap;overflow-wrap:anywhere}.support-agent{padding:20px;border-radius:20px;background:linear-gradient(110deg,#f0e4ff,#fce8f4);margin:16px 0}.support-controls{margin-top:22px}.support-consent{display:flex;align-items:start;gap:9px;font-size:.92rem;margin:18px 0}.support-consent input{width:auto;margin-top:4px}.supervisor-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:640px){.support-ticket{align-items:start;flex-direction:column}.supervisor-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.support-controls .btn{width:100%}.support-message.supervisor,.support-message.agent{margin-left:10px}}

@media(max-width:420px){.bottom-nav .mc-nav-label{font-size:8px;letter-spacing:-.1px}.bottom-nav button{gap:5px}}

/* access-family-v1.css */
/* Bernard Health: shared public entrance. Scoped to the access layout only. */
:is(#authView,#authGate,body.auth-mode):has(.bh-entry){--bh-ink:#393142;--bh-muted:#786e80;--bh-line:#e8ddef;--bh-gradient:linear-gradient(125deg,#793ac2 0%,#a343b7 58%,#ce529f 100%);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 0 0,#eedff9,transparent 52%),radial-gradient(ellipse at 100% 95%,#f9e6f1,transparent 50%),#fcf9ff;color:var(--bh-ink)}
:is(#authView,#authGate):has(.bh-entry){padding:32px 24px;align-items:start;overflow:auto}
body.auth-mode:has(.bh-entry){padding:32px 24px}
body.auth-mode:has(.bh-entry)>main{width:100%;margin:0;min-height:0;padding:0}
body.auth-mode:has(.bh-entry)>.topbar{display:none}
:is(#authView,#authGate,body.auth-mode) .bh-entry{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:0;width:min(1180px,100%);max-width:1180px;margin:0 auto;padding:0;min-height:0;border:1px solid var(--bh-line);border-radius:28px;overflow:hidden;align-items:stretch;background:#fff;box-shadow:0 22px 64px #69388714}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.auth-story,.auth-intro,.senior-auth-story){position:relative;isolation:isolate;display:block;min-width:0;min-height:0;padding:0;border:0;border-radius:0;overflow:hidden;box-shadow:none;color:white;background:var(--bh-gradient)}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.auth-intro,.senior-auth-story)::after{display:none}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-photo{position:relative;inset:auto;height:auto;aspect-ratio:auto;overflow:hidden;mask-image:none;-webkit-mask-image:none}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-photo::after{display:none}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-photo,.auth-photo img,.senior-auth-story>img){position:relative;inset:auto;z-index:auto;display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center top;opacity:1;filter:none;mask-image:linear-gradient(#000 0%,#000 76%,transparent 100%);-webkit-mask-image:linear-gradient(#000 0%,#000 76%,transparent 100%)}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-story,.auth-intro-copy,.senior-auth-copy){position:relative;margin:0;padding:12px 36px 36px;background:none}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-story>h2,.auth-intro-copy>h1,.senior-auth-copy>h1){margin:22px 0 16px;font:750 clamp(30px,3.2vw,42px)/1.12 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.04em;color:#fff;text-shadow:none;max-width:100%}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-story,.auth-intro-copy,.senior-auth-copy)>p{font-size:15px;line-height:1.65;margin:0 0 24px;color:#fff2ff;text-shadow:none;max-width:440px}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-story>.eyebrow,.hero-tag,.senior-auth-copy>span){display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;font-size:10px;font-weight:750;line-height:1.5;letter-spacing:.12em;color:#fff;padding:7px 11px;border:1px solid #ffffff45;border-radius:10px;background:#ffffff12}
:is(#authView,#authGate,body.auth-mode) .bh-entry .hero-tag svg{height:18px;width:18px}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.auth-features,.senior-auth-tags){display:grid;gap:12px;margin-top:24px;font-size:13px}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.auth-features>span,.senior-auth-tags>span){display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #ffffff35;border-radius:14px;background:#ffffff0c;color:#fff;font-size:13px;line-height:1.5}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-card{width:100%;min-width:0;margin:0;padding:36px;align-self:stretch;border:0;border-radius:0;background:#fff;box-shadow:none;color:var(--bh-ink);text-align:left}
:is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand{display:flex;align-items:center;justify-content:flex-start;gap:14px;margin:0 0 28px;padding:0;background:none;border:0;box-shadow:none}
:is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand img{display:block;width:62px;height:62px;margin:0;border-radius:16px;object-fit:contain}
:is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand strong{display:block;font-size:27px;line-height:1.15;font-weight:800;letter-spacing:-.055em;background:var(--bh-gradient);background-clip:text;-webkit-background-clip:text;color:transparent}
:is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand :is(h1,span){display:block;margin:0;font:400 30px/1.1 Georgia,"Times New Roman",serif;letter-spacing:-.035em;color:#c026a3}
#authView .bh-entry #welcomeTitle{color:#85818e}
#authGate .bh-entry .bh-brand span{color:#ad7a16}
body.auth-mode .bh-entry .bh-brand:has(+.nurse-trial-offer) span{color:#b44266}
#authView .bh-entry #welcomeText{margin:-12px 0 24px;font-size:13px;color:var(--bh-muted);text-align:left}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.professional-trial-promo,.dental-trial-offer,.nurse-trial-offer,.senior-trial-offer){position:relative;isolation:isolate;overflow:hidden;margin:0 0 28px;padding:24px;border:1px solid #ffffff70;border-radius:20px;background:var(--bh-gradient);box-shadow:0 10px 28px #8737b51a;text-align:center;color:#fff}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.professional-trial-promo,.dental-trial-offer,.nurse-trial-offer,.senior-trial-offer)::before{content:"";position:absolute;z-index:-1;right:-95px;top:-135px;width:210px;height:210px;border:1px solid #ffffff25;border-radius:50%;box-shadow:0 0 0 38px #ffffff06,0 0 0 76px #ffffff04;pointer-events:none}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.trial-promo-kicker,.dental-trial-offer>span,.nurse-trial-offer>span,.senior-trial-offer>span){display:block;margin:0 0 14px;padding:0;border:0;border-radius:0;background:none;font:750 9px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.12em;color:#fff}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.professional-trial-promo>h2,.dental-trial-offer>strong,.nurse-trial-offer>h2,.senior-trial-offer>strong){display:block;font:750 27px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em;color:white;margin:0}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.professional-trial-promo h2>span,.professional-trial-promo h2 strong,.dental-trial-offer b,.senior-trial-offer b){display:block;font-size:34px;line-height:1.25;font-weight:800;color:#fff;margin:3px 0 0}
#authView .bh-entry .professional-trial-promo h2>span{display:flex;gap:8px;align-items:baseline;font-size:24px}
:is(#authView,#authGate,body.auth-mode) .bh-entry .subscription-price{display:block;width:fit-content;max-width:100%;margin:18px auto 0;padding:7px 13px;border-radius:10px;background:#fff5fb;font-size:17px;font-weight:650;color:#786e80;line-height:1.4}
#authView .bh-entry .trial-promo-cta{margin-top:18px;border-radius:12px;min-height:48px;font-size:15px}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.auth-card>h2,.auth-card>h3,.auth-intro h2,.access-heading h2){font-size:26px;line-height:1.25;letter-spacing:-.035em;color:var(--bh-ink);margin:0 0 12px;font-weight:750}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-card label{display:block;font-size:13px;font-weight:650;line-height:1.5;color:#665c70;margin:16px 0 7px}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-card :is(input:not([type="checkbox"]),select){display:block;width:100%;height:48px;min-height:48px;margin:7px 0 0;padding:11px 14px;border:1px solid #ded2e7;border-radius:12px;background:#fdfbff;color:#393142;box-shadow:none;font:400 16px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.btn.primary,.auth-primary){width:100%;min-height:48px;padding:12px 18px;margin-top:20px;border:0;border-radius:12px;background:var(--bh-gradient);box-shadow:0 7px 20px #7637b31a;color:#fff;font-size:15px;line-height:1.4;font-weight:750}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(.auth-links button,.auth-secondary){display:block;width:100%;min-height:44px;padding:10px 14px;border:1px solid #e7d9ef;border-radius:12px;background:#fcf8ff;color:#7c3dae;font-size:14px;font-weight:650;text-align:center;text-decoration:none;white-space:normal}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-links{display:grid;gap:10px;margin-top:16px}
:is(#authView,#authGate,body.auth-mode) .bh-entry :is(button,input,select,a):focus-visible{outline:3px solid #9766c6;outline-offset:3px}
#authGate .bh-entry .auth-intro{background:none;color:var(--bh-ink)}
#authGate .bh-entry .auth-intro p{font-size:14px;color:var(--bh-muted);line-height:1.6}
#authGate .bh-entry .auth-form label:has(input[type="checkbox"]){display:flex;align-items:center;gap:9px}
#authGate .bh-entry .auth-form input[type="checkbox"]{width:18px;height:18px;min-height:0;accent-color:#853fba}
#authGate .bh-entry .auth-secondary{margin-top:14px}
@media(max-width:800px){
 :is(#authView,#authGate):has(.bh-entry),body.auth-mode:has(.bh-entry){padding:16px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry{grid-template-columns:1fr;max-width:600px;border-radius:24px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry .auth-card{padding:28px 24px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-story,.auth-intro-copy,.senior-auth-copy){padding:8px 24px 28px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-story>h2,.auth-intro-copy>h1,.senior-auth-copy>h1){font-size:32px;margin:18px 0 14px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand strong{font-size:25px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand :is(h1,span){font-size:28px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand img{width:54px;height:54px;border-radius:14px}
 :is(#authView,#authGate,body.auth-mode) .bh-entry :is(.professional-trial-promo,.dental-trial-offer,.nurse-trial-offer,.senior-trial-offer){padding:23px 18px;border-radius:20px}
}
@media(prefers-reduced-motion:reduce){.bh-entry *{animation:none!important;transition:none!important}}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-card form{display:block}
:is(#authView,#authGate,body.auth-mode) .bh-entry .auth-links{grid-template-columns:1fr;align-items:stretch}
:is(#authView,#authGate,body.auth-mode) .bh-entry .bh-brand:has(+.nurse-trial-offer) span{color:#b44266}
:is(#authView,#authGate,body.auth-mode) .bh-entry .nurse-trial-offer h2 b{display:block;font-size:34px;line-height:1.25;font-weight:800;color:#fff;margin:3px 0 0}
:is(#authView,#authGate,body.auth-mode) .bh-entry .welcome-story>h2{max-width:440px}
/* Senior's legacy gate includes important declarations; keep these overrides scoped. */
#authGate:has(.bh-entry){padding:32px 24px!important}
#authGate .bh-entry .auth-card{margin:0!important;width:100%!important;border-radius:0!important;padding:36px!important}
#authGate .bh-entry .bh-brand{margin-bottom:28px!important}
@media(max-width:800px){#authGate:has(.bh-entry){padding:16px!important}#authGate .bh-entry .auth-card{padding:28px 24px!important}}
@media(max-width:800px){
 :is(#authView,#authGate,body.auth-mode) .bh-entry :is(.auth-features,.senior-auth-tags,.story-features,.story-signature){display:none}
 :is(#authView,#authGate,body.auth-mode) .bh-entry :is(.welcome-story,.auth-intro-copy,.senior-auth-copy)>p{display:block;font-size:14px;margin-bottom:0}
}

/* patient-hub.css */
.patient-hub{--ph-ink:#342447;--ph-muted:#746a80;--ph-line:#eadff1;color:var(--ph-ink);padding-bottom:105px}.patient-hub h1,.patient-hub h2,.patient-hub h3{letter-spacing:-.035em}.patient-hub h2{font-size:clamp(1.45rem,3vw,2rem);margin:.45rem 0 1rem}.patient-hub p{line-height:1.65}.ph-hero{display:grid;grid-template-columns:1.65fr 1fr;gap:36px;padding:clamp(24px,4vw,52px);margin:26px 0;border-radius:34px;background:radial-gradient(ellipse at 20% 0%,#b465dc66,transparent 55%),linear-gradient(115deg,#7f3dc6,#bb43ac 65%,#e35bab);color:#fff;box-shadow:0 18px 48px #7b3aab15}.ph-hero h1{font-size:clamp(1.8rem,3.7vw,3rem);line-height:1.13;color:#fff;margin:20px 0 14px}.ph-welcome{align-self:center;min-width:0}.ph-welcome>p{color:#fff;font-size:1.05rem}.ph-eyebrow{font-size:.72rem;letter-spacing:.13em;font-weight:800;display:block}.ph-next{background:#fff4fc;color:var(--ph-ink);border-radius:25px;padding:28px;min-width:0}.ph-next>strong{display:block;font-size:1.4rem;margin:16px 0 10px;line-height:1.3}.ph-next .ph-eyebrow{color:#9f458e}.ph-next p{color:var(--ph-muted)}.ph-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.ph-hero .btn{background:#fff;color:#8135b0;border:1px solid #ffffff80}.ph-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.ph-metric{display:flex;align-items:center;gap:18px;text-align:left;background:#fff;border:1px solid var(--ph-line);border-radius:23px;padding:24px;color:var(--ph-ink);cursor:pointer}.ph-metric svg{width:46px;height:46px;padding:10px;border-radius:15px;background:#f1e6fb;color:#8c42c3;flex-shrink:0}.ph-metric:nth-child(2) svg{background:#e6f6f0;color:#258768}.ph-metric:nth-child(3) svg{background:#fceaf6;color:#c34893}.ph-metric strong{font-size:1.8rem;display:block}.ph-metric small{font-size:.86rem;display:block;color:var(--ph-muted);margin-top:5px}.ph-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.ph-panel{background:linear-gradient(160deg,#fff,#fdfaff);border:1px solid var(--ph-line);padding:28px;border-radius:26px;min-width:0;box-shadow:0 12px 30px #4e286006}.ph-panel>p{color:var(--ph-muted)}.ph-panel h3{margin:4px 0 15px;font-size:1.2rem}.ph-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--ph-line)}.ph-row:last-child{border-bottom:0}.ph-row>div{min-width:0}.ph-row h3{margin:8px 0}.ph-row p{color:var(--ph-muted);white-space:pre-line}.ph-row .btn{flex-shrink:0}.ph-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px}.ph-heading p{margin:0;color:var(--ph-muted)}.ph-empty{border:1px dashed #e2d4ee;border-radius:18px;padding:22px;margin:18px 0;background:#fcfaff}.ph-empty strong{font-size:1rem}.ph-empty p{font-size:.92rem;margin:8px 0 0;color:var(--ph-muted)}.ph-status{display:inline-block;padding:8px 12px;border-radius:12px;background:#f3edf8;color:#695477;font-size:.88rem}.ph-note{font-size:.88rem;color:var(--ph-muted);margin-top:22px}.ph-payment{display:grid;grid-template-columns:48px 1fr auto;gap:20px;align-items:center;background:#fff;border:1px solid var(--ph-line);border-radius:23px;padding:25px;margin:14px 0}.ph-payment-icon svg{width:42px;height:42px;color:#ad429c;background:#f9eafa;border-radius:12px;padding:9px}.ph-payment h3{margin:8px 0;font-size:1.12rem}.ph-payment p{margin:6px 0;color:var(--ph-muted)}.ph-payment-total{display:grid;gap:15px;text-align:right}.ph-payment-total>strong{font-size:1.55rem;color:#64586e}.ph-receipt dl{display:grid;grid-template-columns:1fr 2fr;gap:15px}.ph-receipt dd{margin:0;overflow-wrap:anywhere}.patient-hub .portal-content{padding:clamp(18px,3vw,38px);border-radius:28px}.patient-hub .portal-request,.patient-hub .clinical-note{overflow-wrap:anywhere}.patient-hub-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;max-width:1200px}.patient-hub-nav .portal-nav{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;padding:12px 5px!important;border-radius:17px;font-size:.85rem!important;color:#71627e;min-width:0;cursor:pointer}.patient-hub-nav .portal-nav svg{width:25px;height:25px}.patient-hub-nav .portal-nav[aria-current]{background:#f1e4fb;color:#8236b0;font-weight:800}.patient-hub-nav .portal-nav:nth-child(2){color:#a76426}.patient-hub-nav .portal-nav:nth-child(3){color:#28876e}.patient-hub-nav .portal-nav:nth-child(4){color:#277e9c}.patient-hub-nav .portal-nav:nth-child(5){color:#b04490}.patient-hub button:focus-visible,.patient-hub-nav button:focus-visible{outline:3px solid #a244c8;outline-offset:3px}.patient-hub .btn{white-space:normal;line-height:1.35}.ph-doc-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.ph-results{border:1px solid var(--ph-line);border-radius:20px;padding:22px;margin:18px 0}.ph-results h3{margin-top:0}.patient-hub .paper{color:#30273b}.patient-hub .document-text{white-space:pre-wrap}.ph-nav-inline{position:sticky;top:10px;z-index:5;background:#ffffffed;border:1px solid #e8dbef;border-radius:23px;margin:20px auto;padding:6px;backdrop-filter:blur(10px)}
@media(max-width:800px){.ph-hero{grid-template-columns:1fr;gap:22px}.ph-next{padding:24px}.ph-grid{grid-template-columns:1fr}.ph-metrics{gap:10px}.ph-metric{padding:18px 12px;gap:10px}.ph-metric svg{width:36px;height:36px;padding:8px}.ph-heading{align-items:flex-start;flex-direction:column}.ph-nav-inline{top:5px}}
@media(max-width:480px){.ph-hero{border-radius:25px;padding:25px 21px;margin:18px 0}.ph-next{border-radius:20px;padding:22px}.ph-metric{flex-direction:column;align-items:flex-start;padding:16px 12px;border-radius:18px;gap:8px}.ph-metric strong{font-size:1.45rem}.ph-metric small{font-size:.73rem;line-height:1.35}.ph-panel{padding:22px;border-radius:22px}.ph-payment{grid-template-columns:1fr;gap:12px;padding:22px}.ph-payment-icon{display:none}.ph-payment-total{display:flex;align-items:center;justify-content:space-between;text-align:left;flex-wrap:wrap}.ph-row{align-items:flex-start;flex-direction:column}.ph-hero h1{font-size:2rem}.patient-hub-nav .portal-nav{font-size:.67rem!important;padding:10px 2px!important}.patient-hub-nav .portal-nav svg{width:23px;height:23px}.ph-actions .btn{flex:1}.ph-doc-heading{align-items:flex-start;flex-direction:column}.ph-receipt dl{grid-template-columns:1fr}.patient-hub input,.patient-hub select,.patient-hub textarea{max-width:100%;box-sizing:border-box}.patient-hub h1,.patient-hub h2,.patient-hub h3,.ph-contact{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.patient-hub *{scroll-behavior:auto;animation:none!important;transition:none!important}}
@media print{.ph-receipt{display:block}.ph-receipt~button,.patient-hub-nav{display:none!important}.ph-receipt dd{font-size:11pt}.ph-receipt{box-shadow:none!important}}

/* header-family-v1.css */
/* Shared product banner; decorative layers never intercept controls. */
html body header.bh-product-header{
 --bh-accent:#b86322;--bh-tint:#ad5518;--bh-filter:none;
 position:relative!important;isolation:isolate;box-sizing:border-box;
 display:block!important;width:min(1380px,92vw)!important;height:360px!important;min-height:360px!important;
 max-width:none!important;margin:24px auto!important;padding:0!important;overflow:hidden;
 border:1px solid #e8d9ed!important;border-radius:30px!important;
 background:#faf5f7!important;box-shadow:0 16px 42px #56306714!important;
 color:#392848!important;top:auto!important;gap:0!important;z-index:auto;
}
html body header.bh-product-header::before,html body header.bh-product-header::after{display:none!important}
html body header.bh-product-header[data-bh-product="medical"]{--bh-accent:#2462b3;--bh-tint:#235ca0;--bh-filter:hue-rotate(185deg) saturate(.72) brightness(1.08)}
html body header.bh-product-header[data-bh-product="dental"]{--bh-accent:#c026a3;--bh-tint:#aa247f;--bh-filter:hue-rotate(275deg) saturate(.8)}
html body header.bh-product-header[data-bh-product="nurse"]{--bh-accent:#b44266;--bh-tint:#a94264;--bh-filter:hue-rotate(305deg) saturate(.58) brightness(1.1)}
html body header.bh-product-header[data-bh-product="nutri"]{--bh-accent:#52772c;--bh-tint:#5b7b34;--bh-filter:hue-rotate(55deg) saturate(.52) brightness(1.02)}
html body header.bh-product-header[data-bh-product="senior"]{--bh-accent:#a67813;--bh-tint:#ac851a;--bh-filter:hue-rotate(18deg) saturate(.7) brightness(1.3)}
.bh-header-art{position:absolute;inset:0;pointer-events:none;z-index:0;background:var(--bh-tint)}
.bh-header-art::before{content:"";position:absolute;inset:0 35% 0 0;background:url('assets/technology-connections-v1.png') center/cover no-repeat;filter:var(--bh-filter)}
.bh-header-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 24%,var(--bh-tint) 70%);opacity:.25}
.bh-header-photo{position:absolute;inset:0 0 0 42%;z-index:1;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 28%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 28%)}
.bh-header-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 16%;border-radius:0!important;max-width:none}
[data-bh-product="senior"] .bh-header-photo img{object-position:center top}
[data-bh-product="medical"] .bh-header-photo{inset-inline-start:34%}
[data-bh-product="medical"] .bh-header-photo img{object-position:right center}
.bh-header-watermark{position:absolute;z-index:2;pointer-events:none;inset:0 52% 0 0;display:flex;align-items:center;justify-content:center;padding:15px;box-sizing:border-box;color:#fff;opacity:.15;font:400 clamp(38px,4.8vw,70px)/1 Georgia,'Times New Roman',serif;letter-spacing:-.055em;white-space:nowrap;text-shadow:none;user-select:none}
html body .bh-product-header .bh-header-content{position:relative;z-index:3;box-sizing:border-box;width:49%;height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:14px;padding:25px 28px;background:none}
html body .bh-product-header .bh-header-content>:is(.brand,.brand-card){display:flex!important;flex:none!important;align-items:center;gap:12px;width:fit-content;max-width:100%!important;min-width:0;margin:0!important;padding:12px 16px!important;background:#ffffffed!important;border:1px solid #ffffffb3!important;border-radius:22px!important;box-shadow:0 8px 28px #4c273a12;box-sizing:border-box;text-decoration:none;color:#392848}
html body .bh-product-header :is(.brand,.brand-card) img{width:52px!important;height:52px!important;object-fit:contain!important;padding:0!important;flex-shrink:0;border-radius:14px!important;background:#fff}
html body .bh-product-header :is(.brand>span,.brand>div,.brand-copy){min-width:0}
html body .bh-product-header :is(.brand strong:not(.product),.brand b,.brand-name,.brand-copy h1){display:block;font:800 25px/1.1 system-ui,sans-serif!important;letter-spacing:-.065em!important;margin:0!important;background:linear-gradient(90deg,#7939c4,#de4b9e)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;white-space:nowrap}
html body .bh-product-header .brand b>span{color:inherit}
html body .bh-product-header :is(.brand-product,.product-name,.brand .product){display:block;font:400 30px/1.1 Georgia,'Times New Roman',serif!important;letter-spacing:-.045em!important;text-transform:none!important;color:var(--bh-accent)!important;margin:2px 0 0!important}
html body .bh-product-header :is(.brand h1,.brand-card h1){margin:0!important;line-height:1.1}
html body .bh-product-header :is(.brand small,.brand-card small){color:#6e6078!important;font-size:11px!important;line-height:1.3;max-width:100%;margin-top:5px;overflow-wrap:anywhere}
.bh-header-lower{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
html body .bh-product-header .top-caption{align-self:flex-start!important;text-align:left!important;display:grid!important;gap:5px;margin:0!important;padding:10px 14px!important;max-width:100%!important;min-width:0;background:#fff0e8ed!important;border-radius:14px;box-shadow:0 5px 20px #54291a0a;color:#423047!important;box-sizing:border-box}
html body .bh-product-header .top-caption .eyebrow{color:#805b69!important;font-size:9px!important;letter-spacing:.12em}
html body .bh-product-header .top-caption>span:last-child{font-size:14px!important;line-height:1.35;overflow-wrap:anywhere;font-weight:650}
.bh-header-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:100%;min-width:0}
html body .bh-product-header :is(.actions,.top-actions){display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start!important;gap:8px;width:100%!important;max-width:none!important;min-width:0;flex:initial!important;margin:0!important}
html body .bh-product-header :is(button,select){box-sizing:border-box;max-width:100%;min-width:0;min-height:40px!important;height:auto;margin:0!important;padding:9px 13px!important;border:1px solid #ece0f1!important;border-radius:13px!important;background:#fffffff2!important;color:#653b81!important;font:700 12px/1.3 system-ui,sans-serif!important;box-shadow:0 4px 12px #48213510;cursor:pointer;text-decoration:none;white-space:normal;flex:none}
html body .bh-product-header select{max-width:250px;padding-right:28px!important}
html body .bh-product-header button[hidden]{display:none!important}
html body .bh-product-header :is(.header-date,.mc-clock){display:none!important}
html body .bh-product-header .avatar-button{display:flex;align-items:center;gap:8px;width:auto!important}
html body .bh-product-header .avatar-button small{display:none}
html body .bh-product-header #clinicName{display:block;color:#49334f;background:#ffffffeb;border-radius:10px;padding:8px 11px;font-size:13px;overflow-wrap:anywhere}
html body .bh-product-header #clinicName:empty{display:none}
html body .bh-product-header :is(button,select,a):focus-visible{outline:3px solid #663399;outline-offset:3px}
@media(min-width:1500px){html body header.bh-product-header{height:400px!important;min-height:400px!important}.bh-header-watermark{font-size:76px}}
@media(max-width:959px){
 html body header.bh-product-header{width:94vw!important;height:520px!important;min-height:520px!important;border-radius:26px!important;margin:18px auto!important}
 .bh-header-photo,[data-bh-product="medical"] .bh-header-photo{inset:0 0 auto;height:245px;mask-image:linear-gradient(0deg,transparent,#000 20%);-webkit-mask-image:linear-gradient(0deg,transparent,#000 20%)}
 .bh-header-photo img{object-position:center 18%}
 .bh-header-art::before{inset:165px 0 0}
 .bh-header-art::after{background:linear-gradient(0deg,transparent,var(--bh-tint));opacity:.13}
 .bh-header-watermark{inset:235px 0 0;font-size:clamp(45px,8vw,74px);align-items:center;opacity:.13}
 html body .bh-product-header .bh-header-content{width:100%;height:295px;margin-top:225px;padding:14px 23px 20px;gap:12px}
 html body .bh-product-header .bh-header-lower{gap:10px}
}
@media(max-width:480px){
 html body header.bh-product-header{height:500px!important;min-height:500px!important;border-radius:24px!important;margin:14px auto!important}
 .bh-header-photo,[data-bh-product="medical"] .bh-header-photo{height:210px}
 .bh-header-art::before{inset:150px 0 0}
 .bh-header-watermark{inset:190px 0 0;font-size:49px;letter-spacing:-.065em}
 html body .bh-product-header .bh-header-content{height:305px;margin-top:195px;padding:13px 17px 19px;gap:9px}
 html body .bh-product-header .bh-header-content>:is(.brand,.brand-card){padding:10px 12px!important;gap:10px;border-radius:18px!important}
 html body .bh-product-header :is(.brand,.brand-card) img{width:43px!important;height:43px!important}
 html body .bh-product-header :is(.brand strong:not(.product),.brand b,.brand-name,.brand-copy h1){font-size:22px!important}
 html body .bh-product-header :is(.brand-product,.product-name,.brand .product){font-size:27px!important}
 html body .bh-product-header :is(button,select){font-size:11px!important;padding:9px 11px!important}
 html body .bh-product-header select{max-width:100%}
 html body .bh-product-header .top-caption{padding:8px 11px!important}
}
@media(max-width:959px){[data-bh-product="medical"] .bh-header-photo{height:auto;aspect-ratio:2.5;mask-image:linear-gradient(0deg,transparent,#000 22%);-webkit-mask-image:linear-gradient(0deg,transparent,#000 22%)}[data-bh-product="medical"] .bh-header-photo img{width:100%;height:auto;object-fit:contain}}
html body header.bh-product-header[hidden]{display:none!important}
html body.auth-mode:has(.bh-entry)>header.bh-product-header{display:none!important}
@media print{html body header.bh-product-header{display:none!important}}

/* Product identity is limited to the main welcome surface. */
body:has(.bh-product-header[data-bh-product="medical"]) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome) {--bh-principal-a:#194f99;--bh-principal-b:#2875c4;--bh-principal-c:#68ade6;--bh-principal-light:#cce7ff;--bh-principal-shadow:36,99,174;}
body:has(.bh-product-header[data-bh-product="dental"]) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome) {--bh-principal-a:#a02382;--bh-principal-b:#c836a0;--bh-principal-c:#ec6bb1;--bh-principal-light:#ffd6ef;--bh-principal-shadow:188,64,137;}
body:has(.bh-product-header[data-bh-product="nurse"]) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome) {--bh-principal-a:#a32f68;--bh-principal-b:#c44a83;--bh-principal-c:#e781aa;--bh-principal-light:#ffdfec;--bh-principal-shadow:174,61,114;}
body:has(.bh-product-header[data-bh-product="nutri"]) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome) {--bh-principal-a:#226347;--bh-principal-b:#348762;--bh-principal-c:#77b891;--bh-principal-light:#def8e9;--bh-principal-shadow:42,115,80;}
body:has(.bh-product-header[data-bh-product="physio"]) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome) {--bh-principal-a:#a64d1f;--bh-principal-b:#c77736;--bh-principal-c:#e4a363;--bh-principal-light:#ffe8c6;--bh-principal-shadow:188,114,37;}
body:has(.bh-product-header[data-bh-product="senior"]) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome) {--bh-principal-a:#785316;--bh-principal-b:#987020;--bh-principal-c:#d6b956;--bh-principal-light:#fff0ba;--bh-principal-shadow:161,126,39;}
html body:has(.bh-product-header) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome) {
 position:relative;
 isolation:isolate;
 overflow:hidden;
 background:
  radial-gradient(ellipse at 28% -22%,#ffffff42,transparent 56%),
  linear-gradient(124deg,transparent 0%,transparent 61%,#ffffff12 61.1%,#ffffff04 73%,transparent 73.1%),
  linear-gradient(124deg,transparent 60.8%,#ffffff2b 61%,transparent 61.2%,transparent 73%,#ffffff21 73.1%,transparent 73.3%),
  linear-gradient(112deg,var(--bh-principal-a) 0%,var(--bh-principal-b) 52%,var(--bh-principal-c) 100%) !important;
 border:1px solid var(--bh-principal-light) !important;
 box-shadow:inset 0 1px 0 #ffffffb3,inset 0 0 0 1px #ffffff15,inset 0 -1px 0 #ffffff30,0 18px 42px rgba(var(--bh-principal-shadow),.18) !important;
}
html body:has(.bh-product-header) :is(#main > .hero, .mc-hero, .ph-hero, #mainContent > .admin-welcome)::before {border-color:#ffffff45;pointer-events:none;}

/* Agenda card inherits only the containing welcome banner identity. */
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) {
 --bh-agenda-ink:color-mix(in srgb,var(--bh-principal-a) 38%,#24303a);
 --bh-agenda-muted:color-mix(in srgb,var(--bh-principal-a) 25%,#657080);
 --bh-agenda-line:color-mix(in srgb,var(--bh-principal-a) 17%,white);
 --bh-agenda-wash:color-mix(in srgb,var(--bh-principal-a) 7%,white);
 background:linear-gradient(145deg,#ffffff 0%,var(--bh-agenda-wash) 100%);
 color:var(--bh-agenda-ink);
 border:1px solid color-mix(in srgb,var(--bh-principal-light) 55%,white);
 box-shadow:inset 0 1px 0 #fff,0 14px 32px rgba(var(--bh-principal-shadow),.12);
}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(h1,h2,h3,strong,b) {color:var(--bh-agenda-ink);}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(p,small) {color:var(--bh-agenda-muted);}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(.eyebrow,.ph-eyebrow,.focus-label,.mc-focus-top span), html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) > small {color:var(--bh-principal-a);}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(.focus-label,.mc-focus-top) {border-color:var(--bh-agenda-line);}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next).mc-focus > strong, html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next).hero-focus h3, html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next).ph-next > strong, html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) > b {color:var(--bh-principal-a);}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(.focus-count,.mc-focus-top b) {background:linear-gradient(120deg,var(--bh-principal-a),var(--bh-principal-b));color:#fff;box-shadow:inset 0 1px 0 #ffffff44;}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(button,a) {color:var(--bh-principal-a);border-color:var(--bh-agenda-line);}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(.btn.link,.mc-focus-link) {background:transparent;border-color:transparent;}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next).ph-next .btn {background:#fff;}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(button,a):hover {background:var(--bh-agenda-wash);color:var(--bh-principal-a);}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) :is(button,a):focus-visible {outline:3px solid var(--bh-principal-a);outline-offset:3px;}
html body:has(.bh-product-header) :is(.mc-hero > .mc-focus, #main > .hero > aside, .ph-hero > .ph-next) .focus-label svg {color:var(--bh-principal-a);}

/* White actions in the welcome surface follow the same product accent. */
html body:has(.bh-product-header) :is(.mc-hero, #main > .hero, .ph-hero) :is(.hero-actions .btn.white,.mc-hero-action.primary,.ph-actions .btn,.actions > button,.actions > .button) {
 color:var(--bh-principal-a);
 border-color:var(--bh-principal-light);
 background:#fff;
}
html body:has(.bh-product-header) .mc-hero .mc-hero-action.primary small {color:var(--bh-principal-a);opacity:.78;}
html body:has(.bh-product-header) :is(.mc-hero, #main > .hero, .ph-hero) :is(.hero-actions .btn.white,.mc-hero-action.primary,.ph-actions .btn,.actions > button,.actions > .button):focus-visible {outline:3px solid var(--bh-principal-light);outline-offset:3px;}

/* bh-access.css */
/* Shared access controls; signed-in product layouts retain their own styling. */
.bh-password{position:relative;display:block;width:100%;min-width:0}.bh-password input{width:100%;box-sizing:border-box;padding-right:3.6rem!important}.bh-password .bh-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:12px;background:transparent;color:#695079;cursor:pointer;box-shadow:none}.bh-eye svg{width:24px;height:24px}.bh-eye:focus-visible{outline:3px solid #8c49bb;outline-offset:1px}.bh-eye[aria-pressed=true]{background:#eee4f7}
.bh-unified-access{max-width:540px;min-width:0}.bh-unified-access h2{font-size:clamp(1.6rem,3vw,2rem);margin:12px 0}.bh-email-form{display:grid;gap:18px}.bh-email-form label{display:grid;gap:8px;font-size:16px;line-height:1.5}.bh-email-form input{font:inherit;min-height:50px;padding:12px 14px;border:1px solid #d9c9e8;border-radius:14px;min-width:0;max-width:100%;box-sizing:border-box}.bh-email-form .primary{min-height:50px;width:100%;font-size:17px}.bh-access-instruction{line-height:1.6}.bh-unified-access .auth-links{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.bh-unified-access .auth-links button{min-height:44px;padding:10px 14px;border:1px solid #dfcfec;background:#faf6ff;border-radius:12px;color:#724692;font:inherit;cursor:pointer}.bh-unified-access .muted{line-height:1.55;font-size:15px}.auth-mode .auth-card,.auth-layout .auth-card{min-width:0}.auth-mode .auth-links{flex-wrap:wrap}.bh-login-help{font-size:16px;line-height:1.6;margin:16px 0}
@media(max-width:768px){.auth-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important}.auth-layout .auth-card{width:100%;box-sizing:border-box;padding:24px!important}.auth-layout input,.auth-layout select{min-width:0;max-width:100%;box-sizing:border-box;font-size:16px}.auth-layout label{min-width:0;line-height:1.5}.auth-layout .form-grid{grid-template-columns:minmax(0,1fr)}.auth-layout .auth-intro h1{font-size:clamp(28px,7vw,40px)}}

#authView [hidden],.auth-layout [hidden]{display:none!important}

/* remember-user.css */
form label.bh-remember-user{display:flex!important;align-items:center;gap:12px;min-height:44px;margin:8px 0 16px;padding:4px 0;font:inherit;font-size:15px;line-height:1.5;font-weight:500;color:inherit;text-align:left;cursor:pointer;grid-column:1/-1}
form label.bh-remember-user>input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px!important;max-width:20px;padding:0!important;margin:0!important;accent-color:#943bb7}
form label.bh-remember-user>span{min-width:0;overflow-wrap:break-word}

/* product-access-theme.css */
/* Product identity is limited to signed-out access and registration. */
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]){--access-color:#86c9ee;--access-dark:#245f82;--access-tint:#eff9ff;--access-light:#ccecff;--access-gradient:linear-gradient(125deg,#bde7ff,#78bee9);--access-line:color-mix(in srgb,#86c9ee 32%,white)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]):has(.auth-layout),#authGate:has(.bh-entry){background:radial-gradient(ellipse at 0 0,var(--access-light),transparent 55%),var(--access-tint)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) :is(.auth-layout,.bh-entry){border-color:var(--access-line);box-shadow:0 22px 64px color-mix(in srgb,var(--access-color) 12%,transparent)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card{background:linear-gradient(145deg,#fff,var(--access-tint));border-color:var(--access-line)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .bh-entry :is(.auth-story,.auth-intro,.senior-auth-story){background:linear-gradient(135deg,var(--access-dark),var(--access-color))}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.professional-trial-promo,[class$="-trial-offer"],.auth-trial){background:var(--access-gradient);border-color:var(--access-line);color:#fff;box-shadow:0 10px 28px color-mix(in srgb,var(--access-color) 20%,transparent)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.professional-trial-promo,[class$="-trial-offer"],.auth-trial) :is(h2,h2 span,h2 strong,strong,b,.eyebrow),:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.professional-trial-promo,[class$="-trial-offer"],.auth-trial)>span{color:inherit}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.professional-trial-promo,[class$="-trial-offer"],.auth-trial) :is(.subscription-price,p){background:#ffffffed;color:var(--access-dark)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.bh-brand span,.bh-brand h1,.auth-brand b),#authView .bh-entry #welcomeTitle{color:var(--access-dark)!important}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(input:not([type="checkbox"]):not([type="radio"]),select){background:#fff;border-color:var(--access-line)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--access-dark)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.btn.primary,.auth-primary,.primary){background:linear-gradient(125deg,var(--access-dark),color-mix(in srgb,var(--access-dark) 75%,var(--access-color)));color:white;border-color:transparent;box-shadow:0 7px 20px color-mix(in srgb,var(--access-color) 18%,transparent)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.auth-links button,.auth-secondary,.text-btn){background:var(--access-tint);color:var(--access-dark);border-color:var(--access-line)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(a,.bh-eye,.password .icon-button,.eyebrow,.trial-promo-cta){color:var(--access-dark)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(button,input,select,a):focus-visible{outline-color:var(--access-dark)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card .bh-eye[aria-pressed="true"]{background:var(--access-light)}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.professional-trial-promo,[class$="-trial-offer"],.auth-trial){color:#194e6e}
:is(#authView,#authGate,body.auth-mode,body[data-auth="true"]) .auth-card :is(.bh-brand strong,.auth-brand strong){background:linear-gradient(125deg,#793ac2,#ce529f);background-clip:text;-webkit-background-clip:text;color:transparent}
