:root{--bg:#eefaff;--card:#fff;--text:#061826;--muted:#60758e;--line:#d8edf7;--brand:#075985;--brand2:#38bdf8;--dark:#061826;--soft:#e8f8ff;--ok:#10b981;--danger:#ef4444;--shadow:0 28px 80px rgba(8,47,73,.14);--r:28px}
[data-theme=dark]{--bg:#07131f;--card:#0f2234;--text:#f7fbff;--muted:#a9bdd0;--line:#203d55;--brand:#38bdf8;--brand2:#0ea5e9;--dark:#020914;--soft:#102a3e;--shadow:0 28px 80px rgba(0,0,0,.38)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;background:radial-gradient(circle at top left,var(--soft),var(--bg) 45%,var(--bg));color:var(--text)}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}.wrap{max-width:1180px;margin:auto;padding:0 22px}
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:blur(20px);border-bottom:1px solid var(--line)}[data-theme=dark] header{background:rgba(7,19,31,.86)}.top{height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:48px;height:48px;border-radius:15px;background:#fff;object-fit:contain}.brand b{display:block;font-size:19px}.brand span{display:block;font-size:11px;letter-spacing:.22em;color:var(--muted);text-transform:uppercase}nav{display:flex;gap:4px;border:1px solid var(--line);border-radius:999px;padding:6px;background:rgba(255,255,255,.58)}nav a{padding:11px 17px;border-radius:999px;color:var(--muted);font-size:14px;font-weight:850}nav a:hover{background:var(--dark);color:#fff}.actions{display:flex;gap:9px;align-items:center}.pill{border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text);padding:12px 16px;font-weight:900;cursor:pointer}.primary{background:linear-gradient(135deg,#082033,#075985);color:#fff;border:0;box-shadow:0 16px 38px rgba(7,89,133,.22)}
.hero{display:grid;grid-template-columns:1.04fr .96fr;gap:42px;align-items:center;padding:58px 0 42px}.badge{display:inline-flex;border:1px solid var(--line);border-radius:999px;background:var(--card);padding:10px 15px;color:var(--brand);font-size:13px;font-weight:950}h1{font-size:clamp(40px,5.4vw,72px);line-height:.98;letter-spacing:-.06em;margin:22px 0 18px}.lead{color:var(--muted);font-size:18px;line-height:1.75;max-width:650px}.heroBtns{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{border:0;border-radius:18px;padding:15px 20px;font-weight:950;cursor:pointer}.btn2{border:1px solid var(--line);background:var(--card);color:var(--text)}.heroCard{background:var(--card);border:1px solid var(--line);border-radius:38px;padding:24px;box-shadow:var(--shadow)}.heroCard img{width:100%;max-height:320px;object-fit:contain}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:24px;box-shadow:0 10px 35px rgba(8,47,73,.05)}.icon{width:52px;height:52px;border-radius:18px;background:linear-gradient(135deg,var(--brand2),#075985);display:grid;place-items:center;color:#fff;font-size:22px}.card h3{font-size:21px;margin:14px 0 8px}.card p{color:var(--muted);line-height:1.65}.section{padding:42px 0}.title{font-size:40px;letter-spacing:-.04em;margin:0 0 12px}.sub{color:var(--muted);font-size:17px;line-height:1.7;max-width:780px}
.loginBox{display:grid;grid-template-columns:.9fr 1.1fr;overflow:hidden;border:1px solid var(--line);border-radius:38px;background:var(--card);box-shadow:var(--shadow)}.loginSide{background:#061826;color:#fff;padding:38px}.loginSide img{width:78px;border-radius:20px;background:#fff;padding:5px}.loginSide h2{font-size:32px;margin:24px 0 12px}.loginSide p{color:#c2d7e7;line-height:1.7}.form{padding:34px}.tabs{display:flex;background:var(--soft);border-radius:18px;padding:5px;margin-bottom:14px}.tabs button{flex:1;border:0;background:transparent;border-radius:14px;padding:13px;font-weight:950;color:var(--muted);cursor:pointer}.tabs button.active{background:var(--card);color:var(--text);box-shadow:0 8px 24px rgba(0,0,0,.07)}input,textarea,select{width:100%;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:16px;padding:14px;margin:7px 0;outline:none}textarea{min-height:95px;resize:vertical}.full{width:100%;margin-top:8px}.google{background:#fff;color:#111;border:1px solid #ddd}.hidden{display:none!important}.msg{margin-top:10px;padding:13px;border-radius:16px;background:var(--soft);color:var(--muted);font-weight:800}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.portal{display:none;margin:24px 0;border:1px solid var(--line);border-radius:34px;background:var(--card);box-shadow:var(--shadow);padding:24px}.portal.active{display:block}.portalHead{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.workspace{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px}.panelBox{border:1px solid var(--line);background:var(--soft);border-radius:24px;padding:18px;margin-bottom:16px}.item{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:15px;margin:10px 0}.item small,.muted{color:var(--muted)}.itemActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.miniBtn{border:1px solid var(--line);background:var(--card);border-radius:12px;padding:9px 11px;font-weight:900;cursor:pointer}.donate{display:grid;grid-template-columns:1fr 220px;gap:22px;align-items:center}.donate img{width:220px;max-width:100%;border-radius:18px;border:1px solid var(--line)}.portal{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.94));}.portalHead{background:linear-gradient(135deg,var(--dark),#075985);color:#fff;border:0;border-radius:26px;padding:22px;margin:-4px 0 20px}.portalHead .muted{color:#d5ecf8}.panelBox{box-shadow:0 14px 38px rgba(7,89,133,.08)}.item{box-shadow:0 10px 28px rgba(8,47,73,.06)}.miniBtn:hover,.btn:hover,.pill:hover{transform:translateY(-1px)}.dashGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.dashCard{border:1px solid var(--line);background:var(--soft);border-radius:22px;padding:16px}.dashCard b{font-size:22px;display:block}.dashCard small{color:var(--muted);font-weight:800}.statusDot{display:inline-flex;align-items:center;gap:7px}.statusDot:before{content:"";width:9px;height:9px;border-radius:999px;background:var(--ok);display:inline-block}.pdfTag{display:inline-block;border:1px solid var(--line);background:var(--soft);border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;color:var(--brand);margin-bottom:8px}footer{margin-top:40px;border-top:1px solid var(--line);padding:30px;text-align:center;background:var(--card);color:var(--muted)}.toast{position:fixed;right:20px;bottom:20px;background:#061826;color:#fff;border-radius:18px;padding:15px 18px;box-shadow:var(--shadow);display:none;z-index:99;max-width:390px}
.heroHighlights{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}
.heroHighlights div{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px}
.heroHighlights b{display:block;font-size:20px;color:var(--brand)}
.heroHighlights span{display:block;color:var(--muted);font-size:13px;font-weight:800;margin-top:2px}
.professionalHeroCard{position:relative;min-height:360px;display:grid;place-items:center}
.professionalHeroCard img{max-height:230px}
.mockupCard{position:absolute;left:24px;right:24px;bottom:24px;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 18px 45px rgba(8,47,73,.10)}
[data-theme=dark] .mockupCard{background:rgba(15,34,52,.92)}
.mockupCard h3{margin:4px 0 6px;font-size:22px}
.mockupCard p{margin:0;color:var(--muted);line-height:1.55}
.usageGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.usageBox{background:var(--card);border:1px solid var(--line);border-radius:30px;padding:28px;box-shadow:0 14px 38px rgba(8,47,73,.06)}
.usageBox h2{font-size:30px;letter-spacing:-.035em;margin:8px 0 16px}
.usageBox ol{margin:0;padding-left:20px;color:var(--muted);line-height:1.9;font-weight:700}
@media(max-width:900px){.heroHighlights,.usageGrid{grid-template-columns:1fr}.professionalHeroCard{min-height:300px}.mockupCard{position:static;margin-top:16px}.heroCard img{max-height:180px}}


/* AZX Care v28 - login premium */
.loginBox.premiumLogin{grid-template-columns:0.95fr 1.05fr;border-radius:42px;overflow:hidden;position:relative;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(241,251,255,.96));}
.premiumLogin .loginSide{position:relative;overflow:hidden;background:radial-gradient(circle at 20% 10%,rgba(56,189,248,.22),transparent 32%),linear-gradient(160deg,#051625,#083c5c);padding:42px;display:flex;flex-direction:column;justify-content:space-between;min-height:620px}
.premiumLogin .loginSide:after{content:"";position:absolute;right:-80px;bottom:-80px;width:260px;height:260px;border-radius:50%;background:rgba(56,189,248,.13)}
.loginBrandBlock{position:relative;z-index:1}.loginBrandBlock img{width:84px;height:84px;object-fit:contain;border-radius:22px;background:#fff;padding:8px;box-shadow:0 18px 42px rgba(0,0,0,.18)}
.loginBrandBlock h2{font-size:36px;letter-spacing:-.04em;margin:26px 0 12px;color:#fff}.loginBrandBlock p{font-size:15px;color:#c6deec;line-height:1.75;max-width:410px}
.loginTrustGrid{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}.loginTrustGrid div{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:18px;padding:14px;color:#fff}.loginTrustGrid b{display:block;font-size:18px}.loginTrustGrid span{display:block;color:#c6deec;font-size:12px;margin-top:3px;font-weight:800}
.loginSessionCard{position:relative;z-index:1;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:22px;padding:16px;margin-top:24px;color:#fff}.loginSessionCard small{color:#c6deec}.loginSessionCard button{margin-top:12px}
.authPanel{padding:36px}.authHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.authKicker{display:inline-flex;border:1px solid var(--line);background:var(--soft);color:var(--brand);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:950}.authHeader h2{font-size:30px;letter-spacing:-.035em;margin:12px 0 6px}.authHeader p{margin:0;color:var(--muted);line-height:1.55}.secureBadge{white-space:nowrap;display:inline-flex;align-items:center;gap:7px;border:1px solid #bbf7d0;background:#ecfdf5;color:#047857;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:950}.secureBadge:before{content:"";width:8px;height:8px;background:#10b981;border-radius:999px}
.authTabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:var(--soft);border:1px solid var(--line);border-radius:22px;padding:6px;margin:18px 0}.authTabs button{border:0;background:transparent;border-radius:16px;padding:15px 12px;font-weight:950;color:var(--muted);cursor:pointer}.authTabs button.active{background:var(--card);color:var(--text);box-shadow:0 12px 26px rgba(8,47,73,.08)}
.loginHelpBox{border:1px solid var(--line);background:linear-gradient(135deg,var(--soft),rgba(255,255,255,.7));border-radius:22px;padding:16px;margin-bottom:16px}.loginHelpBox b{display:block;margin-bottom:8px;color:var(--brand)}.loginHelpBox ul{margin:0;padding-left:18px;color:var(--muted);line-height:1.75;font-weight:750}.loginHelpBox .miniNote{margin-top:10px;color:var(--text);font-weight:900}
.inputGroup{display:grid;gap:10px}.inputGroup input,.inputGroup select{margin:0;border-radius:17px;padding:15px 15px;background:rgba(255,255,255,.92)}.inputGroup input:focus,.inputGroup select:focus,.inputGroup textarea:focus{border-color:var(--brand2);box-shadow:0 0 0 4px rgba(56,189,248,.16)}.professionalFieldsCard{border:1px solid var(--line);background:rgba(232,248,255,.72);border-radius:22px;padding:14px;margin-top:10px}.professionalFieldsCard h4{margin:0 0 10px;font-size:15px;color:var(--brand)}
.authActions{display:grid;gap:10px;margin-top:14px}.authActions .btn{border-radius:17px;padding:15px 18px}.authDivider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;font-weight:900;margin:8px 0}.authDivider:before,.authDivider:after{content:"";height:1px;background:var(--line);flex:1}.statusPremium{border:1px solid var(--line);background:#f8fdff;color:var(--muted);border-radius:18px;padding:13px 14px;font-weight:800;margin-top:12px}.quickSteps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.quickSteps div{border:1px solid var(--line);background:var(--card);border-radius:16px;padding:12px}.quickSteps b{display:grid;place-items:center;width:26px;height:26px;border-radius:999px;background:var(--soft);color:var(--brand);font-size:13px;margin-bottom:7px}.quickSteps span{display:block;color:var(--muted);font-size:12px;font-weight:850;line-height:1.35}
[data-theme=dark] .statusPremium,[data-theme=dark] .quickSteps div,[data-theme=dark] .inputGroup input,[data-theme=dark] .inputGroup select{background:rgba(15,34,52,.92)}
@media(max-width:900px){.premiumLogin .loginSide{min-height:auto;padding:28px}.loginTrustGrid,.quickSteps{grid-template-columns:1fr}.authPanel{padding:24px}.authHeader{display:block}.secureBadge{margin-top:12px}.loginBox.premiumLogin{border-radius:30px}}
@media(max-width:900px){nav{display:none}.hero,.loginBox,.workspace,.donate{grid-template-columns:1fr}.cards,.grid2,.grid3{grid-template-columns:1fr}.top{height:auto;padding:14px 0}.brand span{display:none}.actions{gap:5px}.pill{padding:10px 12px}.hero{padding:30px 0}h1{font-size:42px}}

/* AZX Care v29 - correção de clique e login compacto */
#login{scroll-margin-top:96px;}
.loginBox.premiumLogin{isolation:isolate;}
.authPanel,.authPanel *{position:relative;z-index:3;pointer-events:auto;}
.authActions{position:relative;z-index:10;}
.authActions button{cursor:pointer;min-height:52px;}
.authPanel{max-height:none;overflow:visible;}
@media(min-width:901px){
  .premiumLogin .loginSide{min-height:560px;}
  .authPanel{padding:28px 34px;}
  .authHeader{margin-bottom:12px;}
  .authHeader h2{font-size:28px;margin:8px 0 4px;}
  .loginHelpBox{padding:13px;margin-bottom:12px;}
  .inputGroup{gap:8px;}
  .inputGroup input,.inputGroup select{padding:13px 14px;}
  .authActions{gap:8px;margin-top:12px;}
  .quickSteps{display:none;}
}


/* AZX Care v30 - clique garantido no login */
#login{position:relative;z-index:20;}
#login .premiumLogin{position:relative;z-index:21;overflow:visible;}
#login .authPanel{position:relative!important;z-index:999!important;pointer-events:auto!important;}
#login .authPanel *,#login button,#login input,#login select,#login textarea{pointer-events:auto!important;}
#login .loginSide:after,#login .premiumLogin:before,#login .premiumLogin:after{pointer-events:none!important;}
#login .authTabs button,#login .authActions button{user-select:none;-webkit-user-select:none;touch-action:manipulation;}
#login .authActions button{display:block;width:100%;position:relative!important;z-index:1000!important;}
#login .inputGroup{position:relative;z-index:1000;}
#login .loginBox.premiumLogin{grid-template-columns:0.85fr 1.15fr;}
#login .authPanel{padding:26px 34px 30px;}
#login .loginHelpBox{max-height:none;}
#login .premiumLogin .loginSide{min-height:520px;}
@media(max-width:900px){#login .loginBox.premiumLogin{grid-template-columns:1fr;}#login .premiumLogin .loginSide{min-height:auto}#login .authPanel{padding:22px}}


/* AZX Care v36 - painel do paciente premium */
.patientPremiumTools{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:10px;margin:0 0 16px}
.patientPremiumTools input,.patientPremiumTools select{margin:0}
.patientStatsGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.patientStat{border:1px solid var(--line);background:linear-gradient(135deg,var(--soft),rgba(255,255,255,.84));border-radius:22px;padding:16px;box-shadow:0 12px 28px rgba(8,47,73,.05)}
.patientStat b{display:block;font-size:21px}.patientStat small{color:var(--muted);font-weight:850}
.patientNotification{border-left:4px solid var(--brand);position:relative}.patientNotification.unread{background:linear-gradient(135deg,#fff,#e8f8ff)}
.readBadge{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;color:var(--muted);background:var(--card);margin-left:6px}
.patientTimelineHeader{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 12px}.patientTimelineHeader h3{margin:0}
.emptyState{border:1px dashed var(--line);border-radius:22px;padding:24px;text-align:center;color:var(--muted);background:rgba(255,255,255,.55)}
.patientDocCard{border-left:4px solid var(--brand)}
@media(max-width:900px){.patientPremiumTools,.patientStatsGrid{grid-template-columns:1fr}.patientTimelineHeader{display:block}.patientTimelineHeader .miniBtn{margin-top:8px}}


/* AZX Care v38 - cards inteligentes expansíveis */
.smartDocCard{border-left:4px solid var(--brand);position:relative;overflow:hidden;padding:0;background:var(--card);}
.smartDocHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 14px;cursor:pointer;user-select:none;}
.smartDocHeader:hover{background:rgba(232,248,255,.55)}
.smartDocMain{min-width:0;display:grid;gap:7px}
.smartDocTop{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.smartDocTitle{font-size:16px;font-weight:950;color:var(--text);line-height:1.25;word-break:break-word}
.smartDocExcerpt{color:var(--muted);font-size:13px;line-height:1.45;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.smartDocRight{display:flex;align-items:center;gap:10px;flex-shrink:0}
.smartDocArrow{width:34px;height:34px;border:1px solid var(--line);border-radius:999px;background:var(--soft);display:grid;place-items:center;font-weight:950;color:var(--brand);transition:.22s ease}
.smartDocBody{max-height:0;overflow:hidden;transition:max-height .28s ease, opacity .22s ease, padding .22s ease;opacity:0;padding:0 16px}
.smartDocCard.expanded .smartDocBody{max-height:1100px;opacity:1;padding:0 16px 16px}
.smartDocCard.expanded .smartDocArrow{transform:rotate(180deg);background:var(--brand);color:#fff;border-color:var(--brand)}
.smartDocText{font-size:15px;line-height:1.75;margin:4px 0 12px;white-space:pre-wrap;color:var(--text)}
.smartDocInfo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;padding-top:12px;border-top:1px solid var(--line)}
.smartDocInfo p{margin:0;border:1px solid var(--line);background:rgba(232,248,255,.55);border-radius:14px;padding:10px;line-height:1.45;font-size:13px;word-break:break-word}
.smartDocInfo strong{display:block;color:var(--brand);font-size:11px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:3px}
.patientDocToolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.patientTimelineHeader{align-items:flex-start}
@media(max-width:900px){.smartDocHeader{align-items:flex-start}.smartDocRight{display:grid;justify-items:end}.smartDocInfo{grid-template-columns:1fr}.smartDocTitle{font-size:15px}.patientDocToolbar .miniBtn{width:100%;text-align:center}.patientTimelineHeader{display:block}}



/* AZX Care v40 - Painel profissional premium */
.proV40Hero{background:linear-gradient(135deg,#061826,#075985);color:#fff;border-radius:28px;padding:24px;margin-bottom:18px;box-shadow:var(--shadow)}
.proV40Hero h2{margin:0 0 6px;font-size:28px}.proV40Hero p{margin:0;color:#d5ecf8}
.proV40Modules{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
.proV40Modules a{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:14px;font-weight:950;color:var(--brand);box-shadow:0 10px 25px rgba(8,47,73,.05)}
.proV40Filters{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:10px;margin:10px 0 14px}.proV40Filters input,.proV40Filters select{margin:0}
.proV40Doc{border:1px solid var(--line);background:var(--card);border-radius:22px;margin:12px 0;overflow:hidden;box-shadow:0 12px 32px rgba(8,47,73,.06)}
.proV40DocHead{display:flex;justify-content:space-between;gap:12px;padding:16px;cursor:pointer}.proV40DocHead:hover{background:rgba(232,248,255,.58)}
.proV40DocTitle{font-weight:950;font-size:16px}.proV40DocText{color:var(--muted);font-size:13px;line-height:1.45;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.proV40Arrow{width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:var(--soft);color:var(--brand);display:grid;place-items:center;font-weight:950;transition:.2s}
.proV40DocBody{display:none;padding:0 16px 16px;border-top:1px solid var(--line)}.proV40Doc.open .proV40DocBody{display:block}.proV40Doc.open .proV40Arrow{transform:rotate(180deg);background:var(--brand);color:#fff;border-color:var(--brand)}
.proV40Meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.proV40Meta div{border:1px solid var(--line);background:var(--soft);border-radius:14px;padding:10px;font-size:13px;word-break:break-word}.proV40Meta b{display:block;color:var(--brand);font-size:11px;text-transform:uppercase;margin-bottom:3px}
.proV40Danger{background:#fef2f2!important;color:#b91c1c!important;border-color:#fecaca!important}.proV40Danger:hover{background:#fee2e2!important}
@media(max-width:900px){.proV40Modules,.proV40Filters,.proV40Meta{grid-template-columns:1fr}}



/* AZX Care v43 - painéis profissional e paciente modernos, largos e organizados */
:root{--v43-blue:#075985;--v43-navy:#061826;--v43-soft:#f4fbff;--v43-line:#d8edf7}

#proPanel.v43Panel,#patientPanel.v43Panel{
  padding:0;
  overflow:hidden;
  border-radius:34px;
  background:#fff;
  box-shadow:0 28px 80px rgba(8,47,73,.12);
  border:1px solid var(--line);
}

.v43Body{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  min-height:720px;
  background:#fff;
}

.v43Sidebar{
  background:radial-gradient(circle at 20% 0%,rgba(56,189,248,.16),transparent 32%),linear-gradient(180deg,#061826,#062f4d 55%,#041f32);
  color:#fff;
  padding:26px 24px;
}

.v43Sidebar img{
  width:58px;
  height:58px;
  object-fit:contain;
  background:#fff;
  border-radius:18px;
  padding:6px;
  margin-bottom:26px;
}

.v43Sidebar h3{
  margin:0 0 10px;
  font-size:24px;
  letter-spacing:-.03em;
}

.v43Sidebar p{
  margin:0 0 24px;
  color:#d8edf7;
  line-height:1.6;
  font-size:15px;
}

.v43Nav{
  display:grid;
  gap:12px;
}

.v43Nav a,.v43Nav button{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  color:#fff;
  border-radius:16px;
  padding:14px 15px;
  font-weight:950;
  text-align:left;
  cursor:pointer;
}

.v43Nav a.active,.v43Nav a:hover,.v43Nav button:hover{
  background:linear-gradient(135deg,#0b78b7,#075985);
  border-color:rgba(255,255,255,.24);
}

.v43Nav .ico{
  width:24px;
  display:inline-grid;
  place-items:center;
  font-size:18px;
}

.v43Content{
  padding:28px 30px 36px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  min-width:0;
}

.v43Hero{
  margin:0 0 24px;
  border-radius:24px;
  background:linear-gradient(135deg,#061826,#075985);
  color:#fff;
  padding:28px 30px;
  box-shadow:0 22px 54px rgba(7,89,133,.16);
}

.v43Hero h2{
  margin:0 0 8px;
  font-size:27px;
  letter-spacing:-.03em;
}

.v43Hero p,.v43Hero .muted{
  margin:0;
  color:#d9edf8;
}

.v43Stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:26px;
}

.v43Stat{
  display:flex;
  align-items:center;
  gap:15px;
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px 20px;
  background:linear-gradient(135deg,#fff,#f7fcff);
  box-shadow:0 14px 35px rgba(8,47,73,.07);
  min-width:0;
}

.v43Icon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  color:#075985;
  background:#f1fbff;
  font-weight:950;
  font-size:19px;
  flex:0 0 38px;
}

.v43Stat b{
  display:block;
  font-size:19px;
  line-height:1.15;
  word-break:break-word;
}

.v43Stat small{
  color:#415979;
  font-size:12px;
  font-weight:850;
}

.v43Section{
  margin-top:20px;
}

.v43Section h3{
  margin:0 0 14px;
  font-size:20px;
  letter-spacing:-.02em;
}

.v43WideEmpty{
  border:1px solid var(--line);
  border-radius:22px;
  min-height:86px;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--muted);
  box-shadow:0 12px 30px rgba(8,47,73,.04);
}

.v43HistoryHead{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  margin:24px 0 14px;
}

.v43HistoryHead h3{
  margin:0;
}

.v43Filters{
  display:grid;
  grid-template-columns:320px 150px 150px;
  gap:10px;
  align-items:center;
}

.v43Filters input,.v43Filters select{
  height:46px;
  margin:0!important;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(8,47,73,.04);
}

.v43Grid{
  display:grid;
  grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr);
  gap:20px;
  align-items:start;
}

.v43Box{
  border:1px solid var(--line);
  background:linear-gradient(135deg,#f7fcff,#fff);
  border-radius:24px;
  padding:20px;
  box-shadow:0 14px 35px rgba(8,47,73,.06);
  margin-bottom:16px;
}

.v43Box h3{
  margin:0 0 12px;
  font-size:19px;
}

.v43Box input,.v43Box select,.v43Box textarea{
  margin:6px 0;
}

.v43PrimaryBtn{
  border-radius:16px!important;
  min-height:50px;
}

.v43ListBlock{
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  padding:20px;
  box-shadow:0 14px 35px rgba(8,47,73,.05);
  margin-bottom:18px;
}

.v43ListBlock h3{
  margin:0 0 12px;
}

.v43Timeline .smartDocCard,.v43Timeline .proV40Doc{
  border-radius:22px;
  border-left:4px solid #075985;
  margin:14px 0;
  box-shadow:0 14px 34px rgba(8,47,73,.06);
}

.v43Timeline .smartDocHeader,.v43Timeline .proV40DocHead{
  padding:18px 20px;
  min-height:82px;
}

.v43Timeline .smartDocArrow,.v43Timeline .proV40Arrow{
  background:#e8f8ff;
  color:#075985;
  border:0;
}

.patientDocToolbar{display:none!important}

@media(max-width:1180px){
  .v43Stats{grid-template-columns:1fr 1fr}
  .v43Grid{grid-template-columns:1fr}
  .v43HistoryHead{grid-template-columns:1fr}
  .v43Filters{grid-template-columns:1fr 1fr 1fr;width:100%}
}

@media(max-width:900px){
  .v43Body{grid-template-columns:1fr}
  .v43Sidebar{padding:22px}
  .v43Content{padding:20px}
  .v43Hero{padding:22px}
  .v43Stats,.v43Filters{grid-template-columns:1fr}
  .v43Stat{padding:16px}
}


/* AZX Care v44 - acabamento premium SaaS */
.v44ActionBar{
  margin:0 0 24px;
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:14px;
  align-items:stretch;
}

.v44PrimaryCTA,.v44SecondaryCTA{
  border:0;
  border-radius:22px;
  padding:18px 20px;
  font-size:16px;
  font-weight:950;
  cursor:pointer;
  transition:.2s ease;
}

.v44PrimaryCTA{
  background:linear-gradient(135deg,#0ea5e9,#075985);
  color:#fff;
  box-shadow:0 18px 45px rgba(14,165,233,.25);
}

.v44SecondaryCTA{
  background:#fff;
  color:#075985;
  border:1px solid var(--line);
  box-shadow:0 14px 35px rgba(8,47,73,.06);
}

.v44PrimaryCTA:hover,.v44SecondaryCTA:hover{
  transform:translateY(-2px);
}

.v43Hero{
  position:relative;
  overflow:hidden;
}

.v43Hero:after{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-90px;
  width:260px;
  height:260px;
  border-radius:999px;
  background:rgba(56,189,248,.16);
}

.v43Hero h2,.v43Hero p{
  position:relative;
  z-index:1;
}

.v43Stat{
  background:linear-gradient(135deg,#ffffff,#f1fbff)!important;
  border:1px solid #e0f2fe!important;
  transition:all .2s ease;
}

.v43Stat:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 45px rgba(8,47,73,.12);
}

.v43Icon{
  background:linear-gradient(135deg,#e8f8ff,#fff);
  box-shadow:inset 0 0 0 1px rgba(7,89,133,.05);
}

.v43Box,.v43ListBlock{
  background:#fff;
  border:1px solid #eef6fb;
  box-shadow:0 16px 45px rgba(8,47,73,.055);
}

.v43Box input,.v43Box textarea,.v43Box select,
.v43ListBlock input,.v43ListBlock select,
.v43Filters input,.v43Filters select{
  background:#f8fcff;
  border-color:#dff1fa;
}

.v43Box input:focus,.v43Box textarea:focus,.v43Box select:focus,
.v43Filters input:focus,.v43Filters select:focus{
  border-color:#38bdf8;
  box-shadow:0 0 0 4px rgba(56,189,248,.14);
}

.v43Grid{
  gap:22px;
}

.v43Timeline{
  margin-top:10px;
}

.v43Timeline .smartDocCard,.v43Timeline .proV40Doc{
  transition:all .2s ease;
}

.v43Timeline .smartDocCard:hover,.v43Timeline .proV40Doc:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 45px rgba(8,47,73,.11);
}

.v43Nav a,.v43Nav button{
  backdrop-filter:blur(8px);
  transition:.2s ease;
}

.v43Sidebar{
  position:relative;
  overflow:hidden;
}

.v43Sidebar:after{
  content:"";
  position:absolute;
  left:80px;
  bottom:-90px;
  width:250px;
  height:250px;
  border-radius:999px;
  background:rgba(56,189,248,.11);
  pointer-events:none;
}

.v43Sidebar > *{
  position:relative;
  z-index:1;
}

.v44ProFocus{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:18px;
}

.v44MiniInsight{
  border:1px solid #e0f2fe;
  background:linear-gradient(135deg,#f8fcff,#fff);
  border-radius:20px;
  padding:16px;
  box-shadow:0 12px 30px rgba(8,47,73,.045);
}

.v44MiniInsight b{
  display:block;
  font-size:15px;
  margin-bottom:5px;
}

.v44MiniInsight small{
  color:var(--muted);
  font-weight:800;
}

@media(max-width:900px){
  .v44ActionBar,.v44ProFocus{
    grid-template-columns:1fr;
  }
}


/* AZX Care v45 - Layout amplo no painel profissional */
.v43Grid{
  grid-template-columns:380px minmax(0,1fr)!important;
  align-items:start;
}

.v43ListBlock{
  min-width:0;
}

.v43HistoryHead{
  grid-template-columns:220px minmax(0,1fr)!important;
  align-items:center;
}

.v43HistoryHead h3{
  line-height:1.15;
}

.v43Filters{
  grid-template-columns:minmax(260px,1fr) 150px 150px!important;
  min-width:0;
}

.v43Filters input,
.v43Filters select{
  min-width:0;
}

.v43Timeline .smartDocTitle,
.v43Timeline .proV40DocTitle{
  white-space:normal!important;
  word-break:break-word!important;
}

.v43Timeline .smartDocExcerpt,
.v43Timeline .proV40DocText{
  white-space:normal!important;
  word-break:break-word!important;
}

.v43Timeline .smartDocHeader,
.v43Timeline .proV40DocHead{
  align-items:flex-start;
}

.v43Timeline .smartDocMain{
  min-width:0;
}

.v45FullHistoryBtn{
  border:1px solid var(--line);
  background:#fff;
  color:#075985;
  border-radius:16px;
  padding:12px 14px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(8,47,73,.04);
}

body.v45-history-focus #proPanel .v43Grid{
  grid-template-columns:1fr!important;
}

body.v45-history-focus #proPanel .v43Grid > div:first-child{
  display:none!important;
}

body.v45-history-focus #proPanel .v43HistoryHead{
  grid-template-columns:220px minmax(0,1fr) auto!important;
}

@media(max-width:1180px){
  .v43Grid{grid-template-columns:1fr!important}
  .v43HistoryHead{grid-template-columns:1fr!important}
  .v43Filters{grid-template-columns:1fr 1fr 1fr!important}
}

@media(max-width:900px){
  .v43Filters{grid-template-columns:1fr!important}
}


/* AZX Care v45 - campos mais confortáveis */
#criarItem textarea#itemText{
  min-height:130px;
}

#proPanel .v43Box{
  overflow:visible;
}

#proPanel .v43ListBlock{
  overflow:visible;
}


/* AZX Care v47 - após login mostra somente o painel */
body.azxLoggedIn{
  background:radial-gradient(circle at top left,#e8f8ff,#eefaff 45%,#eefaff)!important;
}

body.azxLoggedIn header,
body.azxLoggedIn #home > section:not(#login),
body.azxLoggedIn footer{
  display:none!important;
}

body.azxLoggedIn #login{
  padding:24px 0 40px!important;
}

body.azxLoggedIn #login > .loginBox{
  display:none!important;
}

body.azxLoggedIn #setupPanel:not(.active),
body.azxLoggedIn #proPanel:not(.active),
body.azxLoggedIn #patientPanel:not(.active),
body.azxLoggedIn #pendingPanel:not(.active){
  display:none!important;
}

body.azxLoggedIn .portal.active{
  margin-top:0!important;
}

#azxFloatingLogout{
  position:fixed;
  top:18px;
  right:22px;
  z-index:9999;
  border:1px solid #d8edf7;
  background:linear-gradient(135deg,#061826,#075985);
  color:#fff;
  border-radius:999px;
  padding:12px 18px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 18px 45px rgba(8,47,73,.18);
  display:none;
}

body.azxLoggedIn #azxFloatingLogout{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

#azxFloatingLogout:hover{
  transform:translateY(-1px);
}

body.azxLoggedIn #proPanel.v43Panel,
body.azxLoggedIn #patientPanel.v43Panel{
  margin-top:12px!important;
}

@media(max-width:900px){
  #azxFloatingLogout{
    top:12px;
    right:12px;
    padding:10px 14px;
  }
  body.azxLoggedIn #login{
    padding-top:56px!important;
  }
}


/* AZX Care v48 - Fullscreen real após login */
body.azxLoggedIn{
  min-height:100vh!important;
  overflow-x:hidden!important;
}

body.azxLoggedIn #login{
  max-width:none!important;
  width:100%!important;
  padding:0!important;
  margin:0!important;
}

body.azxLoggedIn .wrap{
  max-width:none!important;
  width:100%!important;
  padding:0!important;
}

body.azxLoggedIn #proPanel.v43Panel,
body.azxLoggedIn #patientPanel.v43Panel{
  width:100vw!important;
  max-width:none!important;
  min-height:100vh!important;
  margin:0!important;
  border-radius:0!important;
  border:0!important;
  box-shadow:none!important;
  transform:none!important;
}

body.azxLoggedIn #proPanel .v43Body,
body.azxLoggedIn #patientPanel .v43Body{
  min-height:100vh!important;
  grid-template-columns:280px minmax(0,1fr)!important;
}

body.azxLoggedIn #proPanel .v43Content,
body.azxLoggedIn #patientPanel .v43Content{
  padding:28px 76px 44px 34px!important;
  min-width:0!important;
}

body.azxLoggedIn #proPanel .v43Grid{
  grid-template-columns:390px minmax(0,1fr)!important;
  gap:28px!important;
}

body.azxLoggedIn #proPanel .v43HistoryHead{
  grid-template-columns:190px minmax(0,1fr)!important;
}

body.azxLoggedIn #proPanel .v43Filters{
  grid-template-columns:minmax(420px,1fr) 160px 160px!important;
}

body.azxLoggedIn #patientPanel .v43HistoryHead{
  grid-template-columns:240px minmax(0,1fr)!important;
}

body.azxLoggedIn #patientPanel .v43Filters{
  grid-template-columns:minmax(420px,1fr) 160px 160px!important;
}

body.azxLoggedIn .v43Hero{
  margin-top:0!important;
}

body.azxLoggedIn .v43Timeline .proV40Doc,
body.azxLoggedIn .v43Timeline .smartDocCard{
  width:100%!important;
}

#azxFloatingLogout{
  top:24px!important;
  right:26px!important;
}

@media(max-width:1280px){
  body.azxLoggedIn #proPanel .v43Content,
  body.azxLoggedIn #patientPanel .v43Content{
    padding:24px 68px 36px 26px!important;
  }

  body.azxLoggedIn #proPanel .v43Grid{
    grid-template-columns:370px minmax(0,1fr)!important;
  }

  body.azxLoggedIn #proPanel .v43Filters,
  body.azxLoggedIn #patientPanel .v43Filters{
    grid-template-columns:minmax(260px,1fr) 145px 145px!important;
  }
}

@media(max-width:980px){
  body.azxLoggedIn #proPanel .v43Body,
  body.azxLoggedIn #patientPanel .v43Body{
    grid-template-columns:1fr!important;
  }

  body.azxLoggedIn #proPanel .v43Content,
  body.azxLoggedIn #patientPanel .v43Content{
    padding:68px 18px 32px!important;
  }

  body.azxLoggedIn #proPanel .v43Grid,
  body.azxLoggedIn #proPanel .v43HistoryHead,
  body.azxLoggedIn #patientPanel .v43HistoryHead,
  body.azxLoggedIn #proPanel .v43Filters,
  body.azxLoggedIn #patientPanel .v43Filters{
    grid-template-columns:1fr!important;
  }

  body.azxLoggedIn #proPanel.v43Panel,
  body.azxLoggedIn #patientPanel.v43Panel{
    width:100%!important;
  }

  #azxFloatingLogout{
    top:12px!important;
    right:12px!important;
  }
}


/* AZX Care v49 - profissional completo corrigido */
.v49TopTools{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:-8px 0 18px;
}

.v49GhostBtn{
  border:1px solid var(--line);
  background:#fff;
  color:#075985;
  border-radius:16px;
  padding:11px 14px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(8,47,73,.04);
}

.v49GhostBtn:hover{transform:translateY(-1px)}

.v49MetricMini{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

.v49MetricMini span{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:7px 10px;
}

body.v49-sidebar-collapsed #proPanel .v43Body,
body.v49-sidebar-collapsed #patientPanel .v43Body{
  grid-template-columns:84px minmax(0,1fr)!important;
}

body.v49-sidebar-collapsed .v43Sidebar{
  padding:20px 12px!important;
}

body.v49-sidebar-collapsed .v43Sidebar h3,
body.v49-sidebar-collapsed .v43Sidebar p{
  display:none!important;
}

body.v49-sidebar-collapsed .v43Sidebar img{
  width:48px!important;
  height:48px!important;
  margin:0 auto 18px!important;
}

body.v49-sidebar-collapsed .v43Nav a,
body.v49-sidebar-collapsed .v43Nav button{
  justify-content:center!important;
  padding:14px 8px!important;
  font-size:0!important;
}

body.v49-sidebar-collapsed .v43Nav .ico{
  font-size:20px!important;
}

.v49PatientDrawer{
  position:fixed;
  top:0;
  right:-440px;
  width:min(420px,92vw);
  height:100vh;
  background:#fff;
  z-index:9998;
  box-shadow:-24px 0 70px rgba(8,47,73,.18);
  border-left:1px solid var(--line);
  transition:.25s ease;
  padding:24px;
  overflow:auto;
}

.v49PatientDrawer.open{right:0}

.v49DrawerHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding-bottom:16px;
  margin-bottom:16px;
}

.v49DrawerHead h3{margin:0 0 5px}

.v49DrawerClose{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  width:38px;
  height:38px;
  font-weight:950;
  cursor:pointer;
}

.v49DrawerInfo{display:grid;gap:10px}

.v49DrawerInfo div{
  border:1px solid var(--line);
  background:#f8fcff;
  border-radius:16px;
  padding:12px;
}

.v49DrawerInfo b{
  display:block;
  color:#075985;
  font-size:12px;
  margin-bottom:4px;
  text-transform:uppercase;
}

.v49DrawerActions{
  display:grid;
  gap:10px;
  margin-top:16px;
}

.v49DrawerActions button{
  border:0;
  border-radius:16px;
  padding:13px;
  font-weight:950;
  cursor:pointer;
}

.v49DrawerActions .primary{
  background:linear-gradient(135deg,#0ea5e9,#075985);
  color:#fff;
}

.v49DrawerActions .secondary{
  background:#f1fbff;
  color:#075985;
  border:1px solid var(--line);
}

@media(max-width:980px){
  .v49TopTools{margin-top:56px}
  body.v49-sidebar-collapsed #proPanel .v43Body,
  body.v49-sidebar-collapsed #patientPanel .v43Body{
    grid-template-columns:1fr!important;
  }
}


/* AZX Care v50 - mercado seguro */
.v50LegalBox{
  border:1px solid #d8edf7;
  background:linear-gradient(135deg,#f8fcff,#ffffff);
  border-radius:18px;
  padding:13px 14px;
  margin-top:12px;
  color:#415979;
  font-size:13px;
  line-height:1.55;
  font-weight:800;
}
.v50LegalBox label{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.v50LegalBox input{
  width:auto!important;
  margin:3px 0 0!important;
}
.v50LegalBox a{
  color:#075985;
  font-weight:950;
  text-decoration:underline;
}
.v50MarketNotice{
  border:1px solid #fde68a;
  background:#fffbeb;
  color:#92400e;
  border-radius:18px;
  padding:13px 14px;
  margin:10px 0 12px;
  font-size:13px;
  font-weight:850;
  line-height:1.55;
}
.v50FooterLinks{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:8px;
}
.v50FooterLinks a{
  color:#075985;
  font-weight:950;
}


/* AZX Care v53 - UI profissional completa corrigida */
#azxFloatingLogout{display:none!important}

.v53ProfileCard{
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.08);
  border-radius:20px;
  padding:14px;
  margin:0 0 18px;
  display:flex;
  align-items:center;
  gap:12px;
}
.v53Avatar{
  width:42px;height:42px;border-radius:15px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#38bdf8,#075985);
  color:#fff;font-weight:950;flex:0 0 42px;
}
.v53ProfileCard b{
  display:block;color:#fff;font-size:14px;line-height:1.2;
  max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.v53ProfileCard small{display:block;color:#d8edf7;font-size:11px;font-weight:800;margin-top:3px}
.v53SidebarFooter{
  margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.13);
  display:grid;gap:10px;
}
.v53LogoutBtn{
  width:100%;border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);color:#fff;border-radius:16px;
  padding:14px 15px;font-weight:950;text-align:left;cursor:pointer;
  display:flex;align-items:center;gap:12px;
}
.v53LogoutBtn:hover{background:rgba(239,68,68,.18);border-color:rgba(254,202,202,.35)}
.v53Version{color:#9cc9df;font-size:11px;font-weight:800;padding:0 4px}
#proPanel .v43Sidebar,#patientPanel .v43Sidebar{display:flex;flex-direction:column}
#proPanel .v43Nav,#patientPanel .v43Nav{flex:1;align-content:start}
#patientsList .item{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#patientsList .item .itemActions{justify-content:flex-start!important;align-items:flex-start!important;width:100%;margin-top:12px}
#patientsList .item .miniBtn{min-width:150px}
.v53TopUser{
  position:absolute;right:22px;top:22px;display:flex;align-items:center;gap:10px;z-index:2;
  border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:#fff;
  border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;backdrop-filter:blur(8px);
}
.v53TopUser .dot{width:8px;height:8px;border-radius:999px;background:#10b981}
body.v49-sidebar-collapsed .v53ProfileCard b,
body.v49-sidebar-collapsed .v53ProfileCard small,
body.v49-sidebar-collapsed .v53SidebarFooter .v53Version,
body.v49-sidebar-collapsed .v53LogoutBtn span:not(.ico){display:none!important}
body.v49-sidebar-collapsed .v53ProfileCard{justify-content:center;padding:10px 6px}
body.v49-sidebar-collapsed .v53LogoutBtn{justify-content:center!important;padding:14px 8px!important}
@media(max-width:980px){.v53TopUser{display:none}}


/* AZX Care v54 - estabilidade, feedback e mobile */
.v54Saving{
  opacity:.72!important;
  pointer-events:none!important;
  position:relative;
}

.v54Saving::after{
  content:"";
  width:16px;
  height:16px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  display:inline-block;
  margin-left:10px;
  vertical-align:-3px;
  animation:v54spin .75s linear infinite;
}

@keyframes v54spin{to{transform:rotate(360deg)}}

.toast.success{
  background:linear-gradient(135deg,#064e3b,#047857)!important;
}

.toast.error{
  background:linear-gradient(135deg,#7f1d1d,#b91c1c)!important;
}

.toast.info{
  background:linear-gradient(135deg,#061826,#075985)!important;
}

.v54TodaySummary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:18px;
}

.v54TodayCard{
  border:1px solid #e0f2fe;
  background:linear-gradient(135deg,#f8fcff,#fff);
  border-radius:20px;
  padding:16px;
  box-shadow:0 12px 30px rgba(8,47,73,.045);
}

.v54TodayCard b{
  display:block;
  font-size:18px;
  margin-bottom:4px;
}

.v54TodayCard small{
  color:var(--muted);
  font-weight:850;
}

@media(max-width:900px){
  body.azxLoggedIn #proPanel .v43Body,
  body.azxLoggedIn #patientPanel .v43Body{
    grid-template-columns:1fr!important;
  }

  body.azxLoggedIn #proPanel .v43Content,
  body.azxLoggedIn #patientPanel .v43Content{
    padding:68px 16px 30px!important;
  }

  body.azxLoggedIn #proPanel .v43Grid,
  body.azxLoggedIn #patientPanel .v43Grid,
  body.azxLoggedIn #proPanel .v43Stats,
  body.azxLoggedIn #patientPanel .v43Stats,
  body.azxLoggedIn #proPanel .v44ActionBar,
  body.azxLoggedIn #patientPanel .v44ActionBar,
  body.azxLoggedIn #proPanel .v44ProFocus,
  body.azxLoggedIn #proPanel .v43Filters,
  body.azxLoggedIn #patientPanel .v43Filters,
  .v54TodaySummary{
    grid-template-columns:1fr!important;
  }

  .v43Sidebar{
    min-height:auto!important;
  }

  .v43Nav{
    grid-template-columns:1fr 1fr;
  }

  .v53SidebarFooter{
    margin-top:12px;
  }

  .v43Hero{
    padding:22px!important;
  }

  .v43Hero h2{
    font-size:23px!important;
  }
}


/* AZX Care v56 - ICP-Brasil básico manual */
.v56SignatureBox{
  border:1px solid #bae6fd;
  background:linear-gradient(135deg,#f0f9ff,#ffffff);
  border-radius:18px;
  padding:14px;
  margin:14px 0;
  color:#075985;
  font-size:13px;
  line-height:1.55;
  font-weight:850;
}

.v56SignatureBox strong{
  display:block;
  font-size:14px;
  color:#064e7a;
  margin-bottom:5px;
}

.v56SignatureStatus{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
  margin:6px 0;
}

.v56Unsigned{
  background:#fffbeb;
  color:#92400e;
  border:1px solid #fde68a;
}

.v56Signed{
  background:#ecfdf5;
  color:#047857;
  border:1px solid #bbf7d0;
}

.v56SignatureActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.v56SignatureActions .miniBtn{
  background:#fff;
}

.v56SignedUrlInput{
  margin-top:10px!important;
}


/* AZX Care v57 - exportação profissional */
.v57ExportBar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:0 0 16px;
}

.v57ExportBtn{
  border:1px solid #d8edf7;
  background:#fff;
  color:#075985;
  border-radius:16px;
  padding:11px 14px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(8,47,73,.04);
}

.v57ExportBtn:hover{
  transform:translateY(-1px);
  background:#f8fcff;
}

.v57ExportHint{
  color:#60758e;
  font-size:12px;
  font-weight:850;
}


/* AZX Care v58 - painel do paciente leve */
#patientPanel .v56SignatureActions{
  margin-top:8px;
}

#patientPanel .v56SignatureActions:empty{
  display:none;
}

#patientPanel .v56SignatureBox{
  background:linear-gradient(135deg,#f8fcff,#fff);
}


/* AZX Care v59 - limpeza final para beta */
body.azxLoggedIn header,
body.azxLoggedIn footer,
body.azxLoggedIn #home > section:not(#login){
  display:none!important;
}

#azxFloatingLogout{
  display:none!important;
}

#patientPanel .v56SignatureActions button{
  display:none!important;
}

#patientPanel .v56SignatureActions:empty{
  display:none!important;
}

.v57ExportBar{
  margin-top:0;
}

#patientsList .item .itemActions{
  justify-content:flex-start!important;
}

@media(max-width:900px){
  body.azxLoggedIn #proPanel .v43Content,
  body.azxLoggedIn #patientPanel .v43Content{
    padding:68px 16px 30px!important;
  }

  body.azxLoggedIn #proPanel .v43Grid,
  body.azxLoggedIn #patientPanel .v43Grid,
  body.azxLoggedIn #proPanel .v43Stats,
  body.azxLoggedIn #patientPanel .v43Stats,
  body.azxLoggedIn #proPanel .v44ActionBar,
  body.azxLoggedIn #patientPanel .v44ActionBar,
  body.azxLoggedIn #proPanel .v43Filters,
  body.azxLoggedIn #patientPanel .v43Filters{
    grid-template-columns:1fr!important;
  }
}


/* AZX Care v59 - segurança de clique no login */
#login .authPanel,
#login .authPanel *,
#login button,
#login input,
#login select,
#login textarea{
  pointer-events:auto!important;
}
#login .authActions button{
  position:relative!important;
  z-index:1000!important;
}


/* AZX Care v60 - experiência perfeita corrigida */
.v60Loading{opacity:.72!important;pointer-events:none!important;position:relative}
.v60Loading::after{content:"";width:16px;height:16px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;border-radius:999px;display:inline-block;margin-left:8px;vertical-align:-3px;animation:v60spin .75s linear infinite}
@keyframes v60spin{to{transform:rotate(360deg)}}
.toast.v60Success{background:linear-gradient(135deg,#064e3b,#047857)!important}
.toast.v60Error{background:linear-gradient(135deg,#7f1d1d,#b91c1c)!important}
.v60HumanNote{border:1px solid #bae6fd;background:#f0f9ff;color:#075985;border-radius:18px;padding:12px 14px;margin:10px 0;font-size:13px;font-weight:850;line-height:1.5}


/* AZX Care v61 - logo personalizada do profissional */
.v61LogoBox{
  border:1px solid #d8edf7;
  background:linear-gradient(135deg,#f8fcff,#ffffff);
  border-radius:20px;
  padding:16px;
  margin:0 0 18px;
  box-shadow:0 12px 30px rgba(8,47,73,.045);
}
.v61LogoBox h3{
  margin:0 0 8px;
  font-size:18px;
}
.v61LogoPreview{
  display:flex;
  align-items:center;
  gap:14px;
  margin:12px 0;
}
.v61LogoPreview img{
  width:72px;
  height:72px;
  object-fit:contain;
  border:1px solid #d8edf7;
  background:#fff;
  border-radius:18px;
  padding:6px;
}
.v61LogoActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.v61LogoActions input{
  margin:0!important;
}
.v61LogoActions button{
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:950;
  cursor:pointer;
  background:linear-gradient(135deg,#0ea5e9,#075985);
  color:#fff;
}
.v61LogoActions .secondary{
  background:#fff;
  color:#075985;
  border:1px solid #d8edf7;
}
.v61DocLogo{
  width:36px;
  height:36px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  border:1px solid #d8edf7;
  padding:3px;
  vertical-align:middle;
  margin-right:8px;
}


/* AZX Care v62 - logo por link sem Storage */
#v62LogoUrlInput{min-width:280px;flex:1}


/* AZX Care v63 - correção logo e visualizador */
.v63PreviewOverlay{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(6,24,38,.55);
  display:none;
  padding:26px;
  overflow:auto;
}
.v63PreviewOverlay.active{
  display:block;
}
.v63PreviewCard{
  max-width:920px;
  margin:0 auto;
  background:#fff;
  color:#061826;
  border-radius:28px;
  border:1px solid #d8edf7;
  box-shadow:0 30px 90px rgba(0,0,0,.22);
  padding:26px;
}
.v63PreviewHead{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  border-bottom:1px solid #d8edf7;
  padding-bottom:14px;
  margin-bottom:18px;
}
.v63PreviewClose{
  border:0;
  background:#061826;
  color:#fff;
  border-radius:14px;
  padding:11px 14px;
  font-weight:950;
  cursor:pointer;
}
.v63PreviewLogo{
  width:64px;
  height:64px;
  object-fit:contain;
  border:1px solid #d8edf7;
  border-radius:16px;
  padding:5px;
  background:#fff;
}
.v63PreviewGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:16px 0;
}
.v63PreviewBox{
  border:1px solid #d8edf7;
  border-radius:16px;
  background:#f8fcff;
  padding:13px;
}
.v63PreviewBox span{
  display:block;
  color:#075985;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  margin-bottom:4px;
}
.v63PreviewText{
  border:1px solid #d8edf7;
  border-radius:18px;
  min-height:160px;
  padding:16px;
  white-space:pre-wrap;
  line-height:1.7;
  background:#fff;
}
.v63PreviewActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}
.v63PreviewActions button{
  border:1px solid #d8edf7;
  background:#fff;
  color:#075985;
  border-radius:13px;
  padding:10px 12px;
  font-weight:950;
  cursor:pointer;
}
@media(max-width:760px){
  .v63PreviewOverlay{padding:12px}
  .v63PreviewGrid{grid-template-columns:1fr}
}


/* AZX Care v64 - identidade profissional */
.v64BrandFields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:12px 0 0;
}
.v64BrandFields input{
  margin:0!important;
}
.v64BrandPreview{
  display:flex;
  align-items:center;
  gap:12px;
}
.v64BrandPreviewText b{
  display:block;
  font-size:16px;
  color:#061826;
}
.v64BrandPreviewText small{
  display:block;
  color:#60758e;
  font-weight:850;
  margin-top:3px;
}
.v64BrandActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.v64BrandActions button{
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:950;
  cursor:pointer;
  background:linear-gradient(135deg,#0ea5e9,#075985);
  color:#fff;
}
.v64BrandActions .secondary{
  background:#fff;
  color:#075985;
  border:1px solid #d8edf7;
}
@media(max-width:760px){
  .v64BrandFields{grid-template-columns:1fr}
}


/* AZX Care v65 - identidade corrigida */
.v65IdentityBox{
  border-top:1px solid #d8edf7;
  margin-top:14px;
  padding-top:14px;
}
.v65IdentityBox h3{
  margin:0 0 6px;
  font-size:17px;
}
.v64BrandFields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:10px 0;
}
.v64BrandFields input{
  margin:0!important;
}
.v64BrandActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.v64BrandActions button{
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:950;
  cursor:pointer;
  background:linear-gradient(135deg,#0ea5e9,#075985);
  color:#fff;
}
.v64BrandActions .secondary{
  background:#fff;
  color:#075985;
  border:1px solid #d8edf7;
}
@media(max-width:760px){
  .v64BrandFields{grid-template-columns:1fr}
}


/* AZX Care v66 - identidade no documento e paciente corrigida */
.v66BrandHeader{
  display:flex;
  align-items:center;
  gap:10px;
}
.v66BrandHeader img{
  width:38px;
  height:38px;
  object-fit:contain;
  border-radius:10px;
  border:1px solid #d8edf7;
  background:#fff;
  padding:3px;
}
.v66BrandHeader b{
  display:block;
  font-size:15px;
}
.v66BrandHeader small{
  display:block;
  color:#60758e;
  font-weight:850;
  font-size:11px;
}


/* AZX Care v67 - fluxo inteligente automático */
.v67LogoutTop{
  position:fixed;
  top:18px;
  right:18px;
  z-index:99999;
  border:1px solid #d8edf7;
  background:#fff;
  color:#075985;
  border-radius:999px;
  padding:10px 18px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 14px 34px rgba(8,47,73,.10);
}
.v67LogoutTop:hover{
  background:#f8fcff;
  transform:translateY(-1px);
}
.v67WaitingCard{
  background:#fff;
  border:1px solid #d8edf7;
  border-radius:28px;
  padding:34px;
  margin:22px auto;
  max-width:860px;
  text-align:center;
  box-shadow:0 22px 70px rgba(8,47,73,.10);
}
.v67WaitingIcon{
  width:72px;
  height:72px;
  margin:0 auto 18px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#e8f8ff,#d8edf7);
  color:#075985;
  font-size:34px;
  font-weight:950;
}
.v67WaitingCard h2{
  margin:0 0 10px;
  color:#061826;
  font-size:28px;
}
.v67WaitingCard p{
  color:#60758e;
  line-height:1.7;
  margin:0 auto 18px;
  max-width:620px;
}
.v67WaitingActions{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
.v67WaitingActions button{
  border:0;
  border-radius:16px;
  padding:13px 18px;
  font-weight:950;
  cursor:pointer;
}
.v67Primary{
  background:linear-gradient(135deg,#061826,#075985);
  color:#fff;
}
.v67Secondary{
  background:#fff;
  color:#075985;
  border:1px solid #d8edf7!important;
}
.v67StatusPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #fde68a;
  background:#fffbeb;
  color:#92400e;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  font-size:12px;
  margin-bottom:16px;
}
.v67StatusPill:before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background:currentColor;
}


/* AZX Care v68 - tradutor corrigido + app paciente com notificação */
.v68PatientAppCard{
  border:1px solid #d8edf7;
  background:linear-gradient(135deg,#f8fcff,#ffffff);
  border-radius:22px;
  padding:16px;
  margin:0 0 16px;
  box-shadow:0 14px 38px rgba(8,47,73,.05);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}
.v68PatientAppCard h3{
  margin:0 0 4px;
  font-size:18px;
}
.v68PatientAppCard p{
  margin:0;
  color:#60758e;
  font-weight:800;
  line-height:1.45;
}
.v68PatientAppActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.v68PatientAppActions button{
  border:1px solid #d8edf7;
  background:#fff;
  color:#075985;
  border-radius:14px;
  padding:11px 13px;
  font-weight:950;
  cursor:pointer;
}
.v68PatientAppActions .primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#0ea5e9,#075985);
}
.v68NotifyStatus{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:950;
  margin-top:8px;
  background:#fffbeb;
  color:#92400e;
  border:1px solid #fde68a;
}
.v68NotifyStatus.ok{
  background:#ecfdf5;
  color:#047857;
  border-color:#bbf7d0;
}
.v68NotifyStatus:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:currentColor;
}
@media(max-width:760px){
  .v68PatientAppCard{
    display:block;
  }
  .v68PatientAppActions{
    justify-content:flex-start;
    margin-top:12px;
  }
}


/* AZX Care v69 - tradutor revisado + app paciente instalável */
.v69InstallHelp{
  border:1px solid #d8edf7;
  background:#f8fcff;
  border-radius:16px;
  padding:10px 12px;
  margin-top:10px;
  color:#60758e;
  font-size:12px;
  font-weight:850;
  line-height:1.5;
}
.v69PatientAppCard{
  border:1px solid #d8edf7;
  background:linear-gradient(135deg,#f8fcff,#ffffff);
  border-radius:22px;
  padding:16px;
  margin:0 0 16px;
  box-shadow:0 14px 38px rgba(8,47,73,.05);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}
.v69PatientAppCard h3{margin:0 0 4px;font-size:18px}
.v69PatientAppCard p{margin:0;color:#60758e;font-weight:800;line-height:1.45}
.v69PatientAppActions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.v69PatientAppActions button{
  border:1px solid #d8edf7;
  background:#fff;
  color:#075985;
  border-radius:14px;
  padding:11px 13px;
  font-weight:950;
  cursor:pointer;
}
.v69PatientAppActions .primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#0ea5e9,#075985);
}
.v69NotifyStatus{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:950;
  margin-top:8px;
  background:#fffbeb;
  color:#92400e;
  border:1px solid #fde68a;
}
.v69NotifyStatus.ok{background:#ecfdf5;color:#047857;border-color:#bbf7d0}
.v69NotifyStatus:before{content:"";width:8px;height:8px;border-radius:999px;background:currentColor}
@media(max-width:760px){
  .v69PatientAppCard{display:block}
  .v69PatientAppActions{justify-content:flex-start;margin-top:12px}
}


/* AZX Care v70 - PWA Paciente */
.v70PwaPatientCard{
  border:1px solid #d8edf7;
  background:linear-gradient(135deg,#ffffff,#f0f9ff);
  border-radius:24px;
  padding:18px;
  margin:0 0 18px;
  box-shadow:0 16px 40px rgba(8,47,73,.06);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.v70PwaPatientCard h3{
  margin:0 0 5px;
  font-size:19px;
}
.v70PwaPatientCard p{
  margin:0;
  color:#60758e;
  font-weight:800;
  line-height:1.5;
}
.v70PwaActions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.v70PwaActions button{
  border:1px solid #d8edf7;
  background:#fff;
  color:#075985;
  border-radius:15px;
  padding:12px 14px;
  font-weight:950;
  cursor:pointer;
}
.v70PwaActions .primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#0ea5e9,#075985);
}
.v70PwaStatus{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:950;
  margin-top:9px;
  background:#fffbeb;
  color:#92400e;
  border:1px solid #fde68a;
}
.v70PwaStatus.ok{
  background:#ecfdf5;
  color:#047857;
  border-color:#bbf7d0;
}
.v70PwaStatus:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:currentColor;
}
.v70PwaHelp{
  margin-top:10px;
  border:1px dashed #d8edf7;
  background:#f8fcff;
  color:#60758e;
  border-radius:16px;
  padding:10px 12px;
  font-size:12px;
  font-weight:850;
  line-height:1.5;
}
@media(max-width:760px){
  .v70PwaPatientCard{display:block}
  .v70PwaActions{justify-content:flex-start;margin-top:12px}
}

@media print{header,.hero,.section,#login,footer,.toast,.noPrint,.itemActions{display:none!important}body{background:white;color:black}.printArea{display:block!important}.printDoc{border:0!important;box-shadow:none!important}.portal{display:block!important;border:0!important;box-shadow:none!important}}
