
:root{color-scheme:dark;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#eff4f7;background:#080e1b;font-synthesis:none;--cyan:#58d9d7;--gold:#e4ba75;--muted:#9aaebc;--line:rgba(191,215,230,.15)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 100% 0%,#10323e80,transparent 55%),radial-gradient(ellipse at 10% 100%,#0a253640,transparent 55%),#080e1b}button,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}.topbar{height:106px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid #ffffff08}.brand{display:flex;align-items:center;gap:17px;font-size:36px;font-weight:700;letter-spacing:-1.4px}.brand-logo{position:relative;width:83px;height:67px;overflow:hidden;flex-shrink:0;border-radius:13px}.brand-logo img{position:absolute;width:240px;height:auto;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}.brand small{display:block;font-size:10px;letter-spacing:2.8px;font-weight:500;color:var(--muted);margin:5px 0 0 2px}.session{display:flex;align-items:center;gap:9px;color:#b4c9d3;font-size:12px;padding:9px 14px;border:1px solid var(--line);border-radius:100px;background:#ffffff04}.session i{width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 12px #58d9d755}.shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:106px minmax(0,1fr);min-height:calc(100vh - 106px)}.rail{border-right:1px solid #ffffff08;padding:30px 10px}.rail-item{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;font-size:11px;color:var(--cyan);background:linear-gradient(100deg,#5ad9d718,#ffffff03);border-left:2px solid var(--cyan);border-radius:0 8px 8px 0;min-height:89px}.rail-item svg{width:23px;height:23px}.rail-track{height:1px;width:32px;margin:28px auto;background:var(--line)}.rail-caption{text-align:center;font-size:10px;color:#748798;letter-spacing:1.2px;writing-mode:vertical-rl;margin:25px auto}.workspace{padding:32px 32px 38px;min-width:0}.page-heading{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:23px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:var(--cyan);margin:0 0 9px}.page-heading h1{font-size:25px;font-weight:600;letter-spacing:-.7px;margin:0}.page-heading p{font-size:12px;color:var(--muted);margin:8px 0 0}.workspace-label{font-size:11px;color:#7892a0;white-space:nowrap}.grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.card{background:linear-gradient(125deg,rgba(48,65,79,.68),rgba(23,36,49,.8));backdrop-filter:blur(16px);border:1px solid rgba(187,212,231,.2);border-radius:17px;box-shadow:0 12px 38px #00000026,inset 0 1px 0 #ffffff07;padding:23px;min-width:0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}.card-title{font-size:18px;font-weight:600;margin:0;letter-spacing:-.4px}.card-subtitle{font-size:11px;color:var(--muted);margin-top:6px}.dot{display:inline-block;width:6px;height:6px;background:var(--cyan);border-radius:50%;margin-right:7px}.text-button{background:none;color:#9ab4bf;border:none;padding:5px 0;font-size:12px}.text-button:hover{color:white}.input-label{font-size:11px;display:block;color:#c4d2db;margin:0 0 8px;font-weight:600}textarea{resize:vertical;display:block;width:100%;height:310px;min-height:180px;overflow-y:auto;border:1px solid #829dad40;border-radius:10px;padding:16px;font-size:14px;line-height:1.75;color:#e5edf3;background:#0b172480;transition:border-color .2s,box-shadow .2s}textarea::placeholder{color:#7f94a4}textarea:focus,#soapOutput:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px #58d9d710}.clinical-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:17px}.clinical-fields textarea{height:96px;min-height:80px;font-size:13px;padding:12px}.field-code{font-size:10px;color:var(--gold);margin-right:6px;font-weight:700}.actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:17px;flex-wrap:wrap}button{font-weight:600;border:1px solid transparent;border-radius:8px;padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;transition:background .2s,transform .2s}button svg{width:15px;height:15px;flex-shrink:0}.primary{background:linear-gradient(110deg,#42ced5 0%,#79d1c6 42%,#e4ba75 100%);color:#07151e;box-shadow:0 3px 18px #56d6d515}.primary:hover{filter:brightness(1.1)}.primary:active{transform:translateY(1px)}.secondary{background:#ffffff03;border:1px solid #61c6ce66;color:#77d3d7}.secondary:hover{background:#58d9d70c}.compact{padding:8px 11px;font-size:11px}.note-foot{display:flex;align-items:center;gap:10px;font-size:11px;color:#a6c2c8;border:1px solid #58d9d715;border-radius:10px;background:linear-gradient(100deg,#36bfc00e,#d6b46c08);padding:13px 14px;margin-top:18px}.note-foot svg{width:19px;height:19px;color:var(--cyan);flex-shrink:0}.result-card{padding-bottom:19px}.result-card .card-header{margin-bottom:18px}#soapOutput{font:14px/1.8 Inter,"Segoe UI",system-ui;white-space:pre-wrap;overflow-wrap:anywhere;height:65vh;min-height:435px;max-height:720px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;outline:none;border:1px solid transparent;border-radius:10px;padding:1px 4px 1px 1px;scrollbar-width:thin;scrollbar-color:#6c9ca855 transparent}.soap-section{position:relative;background:linear-gradient(110deg,#627e8f21,#6ba1aa1a);border:1px solid #bad9eb17;border-radius:11px;padding:17px 18px;min-height:95px}.soap-section+.soap-section{margin-top:12px}.soap-section h2{font-size:12px;font-weight:700;letter-spacing:.4px;margin:0 0 12px;color:var(--cyan);padding-right:24px}.soap-section:nth-child(3) h2,.soap-section:nth-child(4) h2{color:var(--gold)}.soap-section:after{position:absolute;right:16px;top:12px;font-size:22px;font-weight:650;color:var(--cyan);opacity:.8}.soap-section:nth-child(1):after{content:'S';color:#57dcac}.soap-section:nth-child(2):after{content:'O'}.soap-section:nth-child(3):after{content:'A';color:var(--gold)}.soap-section:nth-child(4):after{content:'P';color:var(--gold)}.soap-topic{margin:0 0 9px;line-height:1.7;font-size:13px;color:#c5d4de}.soap-topic:last-child{margin:0}.soap-topic strong{font-weight:650;color:#edf3f7}.empty{font-size:12px;color:#94a9b9;margin:0}.output-footer{border-top:1px solid #ffffff0a;margin-top:15px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.output-footer .actions{margin:0}#copyStatus,#status{font-size:12px;color:#b6d6d9}#status{line-height:1.6;margin-bottom:0}.result-caption{font-size:10px;color:#8fa4b2}.only-result{display:none}
@media(min-width:1450px){.workspace{padding:40px 45px}.grid{gap:28px}.card{padding:26px}}@media(max-width:1050px){.shell{grid-template-columns:78px 1fr}.workspace{padding:26px 22px}.card{padding:18px}.card-title{font-size:16px}.grid{gap:16px}.workspace-label{display:none}.clinical-fields{grid-template-columns:1fr}.clinical-fields textarea{height:82px}.card-header{flex-wrap:wrap}.brand{font-size:30px}}@media(max-width:800px){.shell{display:block}.rail{display:none}.grid{grid-template-columns:1fr}.topbar{height:90px;padding:0 22px}.workspace{padding:25px 18px 40px}.brand-logo{width:61px;height:54px}.brand-logo img{width:180px}.brand{gap:11px;font-size:28px}.brand small{font-size:8px;letter-spacing:2px}.session{font-size:10px;padding:7px 10px}.page-heading h1{font-size:24px}.clinical-fields{grid-template-columns:1fr 1fr}textarea{height:265px}#soapOutput{height:auto;max-height:720px;min-height:435px}.output-footer{align-items:flex-start;flex-direction:column}.output-footer .actions{width:100%;justify-content:space-between}}@media(max-width:430px){.session{display:none}.clinical-fields{grid-template-columns:1fr}.card-header{align-items:start}.result-card .card-header .compact{font-size:10px}.card-title{font-size:16px}.card{padding:17px}.page-heading p{line-height:1.6}}

/* Single-screen consultation flow, designed for touch. */
.topbar{height:92px;padding:0 24px}.brand{font-size:29px;gap:11px}.brand-logo{width:66px;height:55px}.brand-logo img{width:195px}.shell{display:block;min-height:calc(100vh - 92px)}.workspace{max-width:780px;margin:auto;padding:28px 20px 44px}.grid{display:block}.card{padding:23px}.clinical-fields{grid-template-columns:1fr 1fr}.page-heading{margin-bottom:23px}.page-heading h1{font-size:26px}.actions button{min-height:44px}.primary{min-height:48px;font-size:14px;width:100%}textarea{height:360px;min-height:220px;font-size:16px;line-height:1.7}.clinical-fields textarea{font-size:16px;height:100px;min-height:86px}.input-label{font-size:13px}.card-title{font-size:19px}.text-button{min-height:44px;font-size:13px;padding:8px 10px}.account-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;color:#bad5de;text-decoration:none;background:#ffffff04}.account-link:hover{border-color:var(--cyan)}.account-link svg{width:16px;height:16px}#soapOutput{height:65vh;max-height:720px;min-height:280px;font-size:16px}.soap-topic{font-size:15px}.soap-section h2{font-size:14px}.output-footer{align-items:stretch;flex-direction:column}.output-footer .actions{justify-content:space-between;width:100%}.result-card .card-header{align-items:center}.login-page{max-width:440px;margin:auto;padding:55px 20px}.login-page h1{font-size:27px;letter-spacing:-.6px;margin:13px 0}.login-page p{font-size:14px;color:#b2c5d2;line-height:1.7}.login-page .card{text-align:center;padding:30px 25px}.login-page .brand{justify-content:center;margin-bottom:26px}.login-action{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:24px;border-radius:9px;text-decoration:none;font-size:14px;font-weight:650}.login-secondary{color:#b4c7d4;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;margin-top:14px}.login-secondary:hover{color:var(--cyan)}.login-email{overflow-wrap:anywhere}.account-name{font-size:17px;font-weight:650;overflow-wrap:anywhere}.login-lock{color:var(--gold);font-size:10px;text-transform:uppercase;letter-spacing:1.8px}
@media(max-width:550px){.topbar{height:78px;padding:0 15px}.brand{font-size:25px}.brand small{font-size:8px;letter-spacing:1.6px}.brand-logo{width:51px;height:46px}.brand-logo img{width:151px}.workspace{padding:24px 14px 36px}.card{padding:18px}.clinical-fields{grid-template-columns:1fr}.clinical-fields textarea{height:95px}.page-heading h1{font-size:24px}.page-heading p{font-size:13px}.result-card .card-header{flex-wrap:nowrap}.card-title{font-size:18px}.result-card .card-subtitle{font-size:10px}.result-card .card-header .compact{font-size:11px;min-height:44px}.account-link{font-size:11px;padding:8px}.soap-section{padding:16px 13px}.soap-section h2{font-size:13px}#soapOutput{max-height:720px;height:65vh;min-height:280px}.note-foot{font-size:11px}.login-page{padding-top:35px}}

/* Centered, larger AnamiMed identity. */
.topbar{display:grid;grid-template-columns:1fr auto 1fr;height:134px;padding:0 28px}.topbar .brand{grid-column:2;justify-self:center;font-size:42px;gap:16px}.topbar .brand-logo{width:96px;height:82px}.topbar .brand-logo img{width:285px}.topbar .brand small{font-size:10px;letter-spacing:2.8px}.topbar .account-link{grid-column:3;justify-self:end}.shell{min-height:calc(100vh - 134px)}.login-page .brand{font-size:36px;gap:15px}.login-page .brand-logo{width:88px;height:76px}.login-page .brand-logo img{width:260px}.register-form{margin-top:24px;text-align:left}.register-form label{display:block;font-size:13px;margin-bottom:8px;color:#dce8ee}.register-form input{width:100%;min-height:48px;font:16px inherit;font-family:inherit;font-size:16px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#0b1724;color:#eff4f7}.register-form input:focus{outline:2px solid var(--cyan)}.register-form button{margin-top:16px}.login-note{font-size:12px!important;line-height:1.6!important}.login-page .brand{margin-bottom:30px}
@media(max-width:550px){.topbar{height:128px;grid-template-columns:1fr;padding:14px 16px 10px;gap:5px}.topbar .brand{grid-column:1;grid-row:1;font-size:33px;gap:12px}.topbar .brand-logo{width:74px;height:62px}.topbar .brand-logo img{width:219px}.topbar .account-link{grid-column:1;grid-row:2;justify-self:center;min-height:36px;font-size:12px;padding:5px 11px}.topbar .brand small{font-size:8px;letter-spacing:2px}.shell{min-height:calc(100vh - 128px)}.login-page .brand{font-size:33px}.login-page .brand-logo{width:74px;height:65px}.login-page .brand-logo img{width:219px}}

.app-nav{display:flex;justify-content:center;gap:8px;margin:18px auto 0;padding:0 12px;max-width:780px;flex-wrap:wrap}.app-nav a{display:inline-flex;align-items:center;min-height:44px;padding:9px 18px;text-decoration:none;color:#b8cbd5;border:1px solid var(--line);border-radius:9px;font-size:13px;background:#ffffff03}.app-nav a:hover,.app-nav a[aria-current="page"]{color:var(--cyan);border-color:#58d9d750;background:#58d9d709}.account-row{border:1px solid var(--line);background:#ffffff03;border-radius:10px;text-align:left;padding:15px;margin-top:12px}.account-row strong{color:#eef5f8;display:block}.account-row span{display:block;font-size:12px;color:#a9c3d0;overflow-wrap:anywhere;line-height:1.6}.role-label{font-size:11px;color:var(--gold)!important}.register-form input[readonly]{opacity:.75}.form-error{color:#ffd2b6!important}.account-note{font-size:12px!important}.login-page .app-nav{padding:0;margin:15px 0 0;gap:7px}.login-page .app-nav a{font-size:12px;padding:7px 10px}.account-actions{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}

/* Borders follow the cyan-to-gold identity of the primary button. */
.card{border:1px solid transparent;background:linear-gradient(130deg,#253747,#142331) padding-box,linear-gradient(135deg,#4cd8d899,#80beb944,#e4ba7580) border-box}.soap-section{border:1px solid transparent;background:linear-gradient(120deg,#283e4d,#233945) padding-box,linear-gradient(135deg,#58d9d740,#80b9b22b,#e4ba7540) border-box}textarea,.register-form input{border:1px solid transparent;background:linear-gradient(#0b1724,#0b1724) padding-box,linear-gradient(135deg,#4cd8d875,#80beb938,#e4ba7570) border-box}.register-form input:focus,textarea:focus{border-color:transparent;box-shadow:0 0 0 3px #58d9d715;outline:none;background:linear-gradient(#0b1724,#0b1724) padding-box,linear-gradient(135deg,#58d9d7,#9dd2bc,#e4ba75) border-box}.clinical-space{color:#c3d6df!important;font-size:14px!important;margin:17px 0 5px}.login-page h1{margin-top:9px}
.login-page h2{font-size:18px;font-weight:600;margin:22px 0 12px;color:#d9e8ed} .login-page .register-form{margin-top:22px}

/* Square logo displayed in full, without cropping the uploaded artwork. */
.brand-logo img,.topbar .brand-logo img,.login-page .brand-logo img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none}.topbar .brand-logo{width:104px;height:104px;background:transparent}.login-page .brand-logo{width:96px;height:96px;background:transparent}.brand-logo{background:transparent}.brand-logo img{border-radius:12px}@media(max-width:550px){.topbar{height:148px}.topbar .brand-logo,.login-page .brand-logo{width:76px;height:76px}.shell{min-height:calc(100vh - 148px)}}

.auth-tabs{display:flex;gap:8px;margin:22px 0}.auth-tabs a{flex:1;display:flex;justify-content:center;align-items:center;min-height:46px;border:1px solid var(--line);border-radius:9px;color:#b2c5d2;text-decoration:none;font-size:14px}.auth-tabs a[aria-current]{color:var(--cyan);border-color:var(--cyan);background:#58d9d70c}.register-form label:not(:first-child){margin-top:18px}.logout-form .login-secondary{background:none;border:0;color:#b4c7d4;cursor:pointer;font-size:13px}.register-form input:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}


/* Compra de plano: uma escolha, um cupom e um botão. */
.account-layout:has(.plan-selector) .register-form{margin-top:16px}
.register-form .billing-coupon{min-width:0;margin:0 0 14px;padding:0;border:0}
.register-form .billing-coupon label{display:block;font-weight:600;margin:0 0 8px}
.register-form .billing-coupon label span{font-weight:400;opacity:.78}
.register-form .billing-coupon input{margin-bottom:4px}
.register-form .billing-coupon small{display:block;color:#adbfd0;font-size:12px}
.register-form .billing-summary{padding:12px 14px;border:1px solid #65738e88;border-radius:10px;color:#edf3f7;font-size:15px;margin:12px 0 18px!important}
.register-form button.billing-buy{width:100%;min-height:48px}
.register-form .plan-choice .plan-period{margin:0}

/* One cyan-to-gold fade for every outlined surface. */
:root{--border-fade:linear-gradient(110deg,#42ced58c 0%,#79d1c652 42%,#e4ba758c 100%);--border-fade-focus:linear-gradient(110deg,#42ced5 0%,#79d1c6 42%,#e4ba75 100%)}
.card,.soap-section,textarea,.register-form input,.auth-tabs a,.app-nav a,.account-link,.account-row,.secondary,.note-foot,#soapOutput{border:1px solid transparent;background:var(--border-surface,linear-gradient(#10202e,#10202e)) padding-box,var(--border-fade) border-box}
.card{--border-surface:linear-gradient(130deg,#253747,#142331)}
.soap-section{--border-surface:linear-gradient(120deg,#283e4d,#233945)}
textarea,.register-form input{--border-surface:linear-gradient(#0b1724,#0b1724)}
#soapOutput{--border-surface:linear-gradient(#152634,#152634);padding:12px}
.auth-tabs a[aria-current],.app-nav a[aria-current="page"]{--border-surface:linear-gradient(#142f37,#142f37);color:var(--cyan)}
.auth-tabs a:hover,.app-nav a:hover,.account-link:hover,.secondary:hover,.register-form input:focus,textarea:focus,#soapOutput:focus{border-color:transparent;background:var(--border-surface,linear-gradient(#10202e,#10202e)) padding-box,var(--border-fade-focus) border-box}
.register-form input:focus,textarea:focus,#soapOutput:focus{box-shadow:0 0 0 3px #58d9d715}
.primary{border:1px solid transparent;background:linear-gradient(110deg,#42ced5 0%,#79d1c6 42%,#e4ba75 100%) padding-box,var(--border-fade-focus) border-box}
.topbar{border-bottom:1px solid;border-image:var(--border-fade) 1}
.output-footer{border-top:1px solid;border-image:var(--border-fade) 1}

#clear,#clearResult,.clear-button{min-height:44px;color:#12202a;border:1px solid transparent;background:linear-gradient(110deg,#efd297,#e4ba75) padding-box,var(--border-fade-focus) border-box;font-weight:650;box-shadow:0 3px 16px #e4ba7514}
#clear:hover,#clearResult:hover,.clear-button:hover{filter:brightness(1.08)}
.calc-list{display:grid;gap:16px}.calc-choice{display:block;color:inherit;text-decoration:none;position:relative;padding-right:46px}.calc-choice:hover{box-shadow:0 0 0 2px #58d9d725}.calc-choice h2{font-size:18px;margin:10px 0;color:#e9f2f6;line-height:1.4}.calc-choice p,.calc-helper{color:#a9c2ce;font-size:13px;line-height:1.65;margin:8px 0 0}.calc-tag{color:var(--cyan);font-size:11px;font-weight:700;letter-spacing:1px}.calc-arrow{position:absolute;right:22px;top:50%;color:var(--gold);font-size:25px;transform:translateY(-50%)}
.calc-back{color:var(--cyan);text-decoration:none;font-size:13px;display:inline-flex;align-items:center;min-height:44px;margin-bottom:16px}.calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.calc-field label{display:block;color:#dce8ee;font-size:13px;font-weight:600;margin-bottom:8px}.calc-field input,.calc-field select{width:100%;min-height:48px;font:16px/1.4 inherit;font-family:inherit;font-size:16px;color:#eff4f7;border:1px solid transparent;border-radius:10px;padding:12px;background:linear-gradient(#0b1724,#0b1724) padding-box,var(--border-fade) border-box;color-scheme:dark}.calc-field input:focus,.calc-field select:focus{outline:2px solid var(--cyan);outline-offset:2px}.calc-field input[type=date]{min-width:0}.calc-full{grid-column:1/-1}.calc-method-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;grid-column:1/-1}.calc-controls{display:flex;gap:12px;align-items:center;margin-top:22px}.calc-controls .primary{flex:1;min-height:48px}.calc-controls .clear-button{min-width:94px}.calc-error{color:#ffd2b6;font-size:14px;line-height:1.6;margin:16px 0 0}.calc-result{margin-top:20px;padding:24px;border:1px solid transparent;border-radius:15px;background:linear-gradient(#16333d,#182c37) padding-box,var(--border-fade-focus) border-box}.calc-result:focus{outline:2px solid var(--cyan);outline-offset:3px}.calc-result .eyebrow{margin:0 0 12px}.calc-value{display:block;font-size:38px;font-weight:700;letter-spacing:-1px;color:var(--cyan);line-height:1.3}.calc-unit{display:block;font-size:13px;color:var(--gold);margin:4px 0 17px}.calc-details p{font-size:14px;color:#bad0da;line-height:1.65;margin:9px 0}.calc-details strong{color:#e4edf3;font-weight:600}.calc-source{margin-top:18px;font-size:11px;color:#9fb7c4;line-height:1.6}.calc-source a{color:#86b9c6;text-underline-offset:3px}.calc-heading h1{line-height:1.3}
@media(max-width:700px){.calc-fields,.calc-method-fields{grid-template-columns:1fr}.calc-full{grid-column:auto}.calc-choice h2{font-size:17px}.calc-controls{flex-wrap:wrap}.calc-controls .clear-button{min-width:80px}.calc-value{font-size:30px}.calc-result{padding:20px 16px}.calc-field input[type=date]{font-size:16px;width:100%}.calc-details p{font-size:13px}}

/* Glasgow: explicit light surfaces prevent pale text on native white menus. */
#gcsEye,#gcsVerbal,#gcsMotor,#curbConfusion,#curbUreaUnit{color-scheme:light;color:#10202e;background:linear-gradient(#f3f7fb,#f3f7fb) padding-box,var(--border-fade-focus) border-box;font-weight:500}
#gcsEye option,#gcsVerbal option,#gcsMotor option,#curbConfusion option,#curbUreaUnit option{color:#10202e;background-color:#f3f7fb}
#gcsEye option:disabled,#gcsVerbal option:disabled,#gcsMotor option:disabled{color:#465f6f}
.score-fields select{color-scheme:light;color:#10202e;background:linear-gradient(#f3f7fb,#f3f7fb) padding-box,var(--border-fade-focus) border-box;font-weight:500}.score-fields select option{color:#10202e;background:#f3f7fb}.score-fields select option:disabled{color:#465f6f}
.tool-search{margin-bottom:18px}.tool-search .clear-button{margin-top:16px;min-height:44px}.tool-search #toolCount{font-size:13px;color:#bad0da;margin:14px 0 0}.tool-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tool-list .calc-choice{padding:20px 40px 20px 20px}.tool-list .calc-choice h2{font-size:17px}.tool-list .calc-choice[hidden]{display:none}.tool-more{display:block;margin:20px auto 0;min-height:48px}.tool-more[hidden]{display:none}#toolCategory{color-scheme:light;color:#10202e;background:linear-gradient(#f3f7fb,#f3f7fb) padding-box,var(--border-fade-focus) border-box}#toolCategory option{color:#10202e;background:#f3f7fb}@media(max-width:700px){.tool-list{grid-template-columns:1fr}}
.tool-kind{font-size:11px!important;color:#e4ba75!important;margin-top:7px!important}.official-resource{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;margin:20px 0 10px;text-decoration:none}.calc-field[hidden]{display:none!important}.calc-value{overflow-wrap:anywhere}.calc-fields{align-items:start}
.score-evidence{margin:0 0 20px;padding:16px 20px;overflow-wrap:anywhere}.score-evidence summary{cursor:pointer;font-weight:600;min-height:32px}.score-evidence dt{font-weight:600;margin-top:14px}.score-evidence dd{margin:4px 0 0;line-height:1.6}.score-evidence li{margin:8px 0}.score-evidence summary:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}
.lab-paste{margin-bottom:18px}.lab-paste summary{cursor:pointer;font-weight:600;color:#dce8ee;min-height:44px;display:flex;align-items:center}.lab-paste textarea{width:100%;box-sizing:border-box;font:15px/1.5 inherit;font-family:inherit;color:#eff4f7;border:1px solid transparent;border-radius:10px;padding:12px;background:linear-gradient(#0b1724,#0b1724) padding-box,var(--border-fade) border-box;resize:vertical}.lab-paste textarea:focus{outline:2px solid var(--cyan);outline-offset:2px}
.lab-paste .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.lab-photo{display:inline-flex;align-items:center;justify-content:center;min-height:48px;cursor:pointer}.lab-photo-input:focus-visible + .lab-photo{outline:3px solid var(--ux-primary);outline-offset:3px}.lab-paste .calc-controls{flex-wrap:wrap}
.lab-report-list{margin-top:18px}.lab-report-group{font-size:15px;color:#dce8ee;margin:22px 0 8px}.lab-report-item{border:1px solid transparent;border-radius:12px;background:linear-gradient(#0b1724,#0b1724) padding-box,var(--border-fade) border-box;margin:8px 0}.lab-report-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 14px;cursor:pointer;color:#eff4f7;font-weight:600;list-style-position:inside}.lab-report-chip{font-size:12px;font-weight:600;border-radius:999px;padding:3px 10px;background:#1c2f3b;color:#bad0da;white-space:nowrap}.lab-alto .lab-report-chip,.lab-baixo .lab-report-chip{background:#4a2a18;color:#ffd2b6}.lab-normal .lab-report-chip{background:#163a2c;color:#b6f0d2}.lab-report-body{padding:0 14px 12px}.lab-report-body p{font-size:14px;color:#bad0da;line-height:1.6;margin:6px 0}.lab-report-link{display:inline-flex;min-height:44px;align-items:center;color:var(--cyan);text-decoration:none;font-size:14px}
.lab-report-queue{list-style:none;padding:0;margin:8px 0}.lab-report-queue li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;font-size:14px;color:#bad0da}


/* Subabas de Análise Laboratorial: contraste legível em temas claro/escuro,
   navegação por links (sem implementar role=tab sem painel JS). */
/* Subabas no mesmo padrão das abas de Interações medicamentosas (botão secundário global). */
.lab-subtabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.lab-subtab{min-height:44px;padding:10px 18px;border-radius:10px;font:inherit;font-weight:400;text-decoration:none}
.lab-subtab:focus-visible{outline:2px solid var(--cyan,#58d9d7);outline-offset:3px}
html:root body a.lab-subtab[aria-current="page"]{border-color:var(--cyan,#58d9d7)}
.lab-guide-title{margin:14px 0 4px;font-weight:700}
.lab-guide-list{margin:0;padding-left:20px;display:grid;gap:6px}
.lab-guide-list .lab-report-link{display:inline-block;min-height:32px;padding:4px 0}
.lab-report-item.lab-related-high{border-color:#e05252}
.lab-score-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.lab-score-name{flex:1 1 160px}.lab-score-value{font-weight:700}.lab-score-missing{font-size:13px;opacity:.75;font-weight:400}
.lab-lipid-plan{margin-top:12px;padding:12px;border:1px solid var(--line,rgba(191,215,230,.25));border-radius:12px}.lab-lipid-fields{margin:8px 0}.lab-lipid-risk{font-size:18px;font-weight:700;margin:10px 0 4px}.lab-lipid-indication{font-weight:600;margin:8px 0}
.lab-score-meaning{margin:2px 0 6px;font-size:14px;line-height:1.45;padding-left:10px;border-left:3px solid var(--line,#567183)}.lab-score-alto{border-left-color:#e07a52}.lab-score-atencao{border-left-color:#d8b545}.lab-score-ok{border-left-color:#4caf7a}.lab-score-baixo{border-left-color:#e07a52}

/* Laudo — layout em caixas */
.lab-compact .lab-ref-line{margin:0;font-size:13px;opacity:.85}.lab-compact .lab-about{margin:2px 0 8px;font-size:13px;opacity:.7}
.lab-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:6px 0 10px}
.lab-tile{border:1px solid var(--line,rgba(191,215,230,.25));border-left-width:4px;border-radius:10px;padding:0;background:rgba(127,127,127,.06)}
.lab-tile>summary,.lab-tiles-static .lab-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:2px;padding:9px 10px;cursor:pointer;list-style:none}
.lab-tile>summary::-webkit-details-marker{display:none}
.lab-tile-name{font-size:12px;line-height:1.3;opacity:.8}.lab-tile-value{font-size:19px;font-weight:700;line-height:1.2}
.lab-tile-tag{align-self:flex-start;font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(127,127,127,.18)}
.lab-tile-body{padding:0 10px 10px;font-size:13px;line-height:1.45}.lab-tile-body p{margin:4px 0}
.lab-tile[open]{grid-column:1/-1}
.lab-tile-ok{border-left-color:#4caf7a}.lab-tile-ok .lab-tile-tag{background:rgba(76,175,122,.2)}
.lab-tile-atencao{border-left-color:#d8b545}.lab-tile-atencao .lab-tile-tag{background:rgba(216,181,69,.22)}
.lab-tile-alto,.lab-tile-baixo{border-left-color:#e07a52}.lab-tile-alto .lab-tile-tag,.lab-tile-baixo .lab-tile-tag{background:rgba(224,122,82,.22)}
.lab-tile-missing{border-left-color:#7d8b99;opacity:.85}
.lab-tile-wide{border:1px solid var(--line,rgba(191,215,230,.25));border-radius:12px;margin:6px 0 10px}
.lab-tile-wide>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-weight:600}
.lab-mini-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin:6px 0 10px}
.lab-mini-field{display:flex;flex-direction:column;gap:3px;font-size:12px}.lab-mini-field input,.lab-mini-field select{min-height:40px;padding:6px 8px;border-radius:8px;font:inherit;font-size:15px}
.lab-indication{border-radius:10px;padding:10px 12px;margin:4px 0 8px;background:rgba(88,217,215,.1);border:1px solid rgba(88,217,215,.35)}.lab-indication p{margin:4px 0 0;font-size:14px}
.lab-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.lab-chip{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid var(--line,#567183);text-decoration:none;color:inherit;font-size:13px;font-weight:600}
.lab-chip-protocol{border-color:#e07a52}
.lab-cutoffs{margin:4px 0}.lab-cutoffs>summary{cursor:pointer;font-size:13px;font-weight:600;min-height:36px;display:flex;align-items:center}
.lab-values{display:grid;gap:4px;margin:0 0 8px}.lab-value-row{display:grid;grid-template-columns:1fr auto 18px;gap:2px 8px;align-items:baseline;padding:6px 0;border-bottom:1px solid rgba(127,127,127,.15)}
.lab-value-name{font-weight:600}.lab-value-num{font-weight:700;text-align:right}.lab-value-arrow{font-size:12px;text-align:center}.lab-arrow-alto,.lab-arrow-baixo{color:#e07a52}
.lab-value-ref{grid-column:1/-1;font-size:12px;opacity:.7}
.lab-tile-value-text{font-size:15px}

/* Painel de exames: legibilidade responsiva, compatível com temas claro/escuro. */
.lab-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:14px 0 20px}
.lab-overview-tile{border:1px solid var(--line,rgba(127,127,127,.32));border-radius:12px;padding:14px;background:var(--surface,transparent);display:flex;flex-direction:column;gap:6px;min-width:0}
.lab-overview-number{font-size:clamp(22px,3vw,32px);font-weight:800;line-height:1.1;color:inherit;font-variant-numeric:tabular-nums}
.lab-overview-label{font-size:13px;line-height:1.4;color:inherit;opacity:.86}
.lab-overview-altered{border-inline-start:4px solid #bf6a30}
.lab-overview-pending{border-inline-start:4px solid #af843b}
.lab-insight-summary{margin:22px 0}
.lab-score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin:18px 0 24px}
.lab-score-card{border:1px solid var(--line,rgba(127,127,127,.32));border-radius:14px;padding:18px;background:var(--surface,transparent);display:flex;flex-direction:column;gap:10px;min-width:0}
.lab-score-title{font-size:15px;line-height:1.4;margin:0;font-weight:700}
.lab-score-value{font-size:clamp(18px,2.5vw,25px);font-weight:800;line-height:1.25;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.lab-score-note{font-size:13px;line-height:1.5;opacity:.85;margin:0;flex:1}
#labRecordText{width:100%;max-width:100%;min-height:190px;line-height:1.6;box-sizing:border-box}
@media(max-width:520px){.lab-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lab-overview-tile{padding:11px}.lab-score-card{padding:14px}}

/* Enviar exames — recuperar as entradas de foto, PDF e câmera no fluxo real. */
.lab-upload-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0 8px}
.lab-upload-actions .lab-photo,.lab-upload-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:9px;padding:10px 16px;cursor:pointer;font-size:14px;line-height:1.4;text-align:center}
.lab-upload-actions .lab-photo:focus-within{outline:3px solid currentColor;outline-offset:3px}
.lab-report-queue{display:grid;gap:8px;margin:12px 0;padding:0;list-style:none}
.lab-report-queue li{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;background:var(--surface,transparent);border:1px solid var(--line,rgba(127,127,127,.3));border-radius:9px;font-size:13px;overflow-wrap:anywhere}
.lab-copy-results{margin-top:20px;padding:18px;border:1px solid var(--line,rgba(127,127,127,.3));border-radius:12px;background:var(--surface,transparent)}
.lab-copy-results[hidden]{display:none!important}
.lab-copy-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.lab-copy-heading h2{margin:0;font-size:19px;line-height:1.35}
.lab-copy-results textarea{width:100%;box-sizing:border-box;line-height:1.6;font-family:ui-monospace,Consolas,monospace;font-size:12px;resize:vertical;min-height:210px}
.lab-copy-results textarea:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:600px){.lab-upload-actions{display:grid;grid-template-columns:1fr 1fr}.lab-upload-actions button{grid-column:1 / -1}.lab-upload-actions .lab-photo{padding:10px 8px}.lab-copy-results{padding:12px}.lab-copy-heading button{width:100%}}

.lab-score-reading{margin:0;font-size:15px;font-weight:700;line-height:1.45;padding:8px 10px;border-radius:10px;border-left:4px solid}
.lab-score-ok{border-color:#2e9d5b;background:rgba(46,157,91,.12)}
.lab-score-warn{border-color:#d49a1e;background:rgba(212,154,30,.13)}
.lab-score-high{border-color:#d1463c;background:rgba(209,70,60,.13)}

/* Persistent side navigation, compact on phones. */
.shell{display:grid;grid-template-columns:184px minmax(0,1fr);max-width:1180px;margin:auto;align-items:start;min-height:calc(100vh - 134px)}
.sidebar{display:flex;flex-direction:column;gap:12px;position:sticky;top:20px;margin:28px 0;padding:0 12px;min-width:0}
.sidebar a{display:flex;align-items:center;gap:12px;min-height:54px;padding:12px;color:#b8cbd5;text-decoration:none;border:1px solid transparent;border-radius:11px;background:linear-gradient(#10202e,#10202e) padding-box,var(--border-fade) border-box;font-size:14px}
.sidebar svg{width:23px;height:23px;flex-shrink:0}
.sidebar a[aria-current],.sidebar a:hover{color:var(--cyan);background:linear-gradient(#15313b,#15313b) padding-box,var(--border-fade-focus) border-box}
.workspace{width:100%;max-width:780px;margin:0 auto}
.topbar{grid-template-columns:1fr}.topbar .brand{grid-column:1}
.account-layout{display:grid;grid-template-columns:184px minmax(0,1fr);max-width:1180px;margin:auto;min-height:100vh;align-items:start}
.account-layout .sidebar{margin-top:55px}.account-layout .login-page{width:100%;max-width:480px}.guest-layout .login-page{width:100%}
@media(max-width:700px){
 .shell,.account-layout{grid-template-columns:72px minmax(0,1fr)}
 .sidebar{top:12px;padding:0 6px;gap:10px;margin-top:24px}.sidebar a{flex-direction:column;justify-content:center;gap:7px;padding:10px 2px;min-height:72px;font-size:10px;line-height:1.3;text-align:center}.sidebar svg{width:22px;height:22px}.sidebar span{overflow-wrap:anywhere}
 .workspace{padding:24px 12px 36px}.workspace .card{padding:16px}.workspace .page-heading h1{font-size:22px}
 .clinical-fields{grid-template-columns:1fr}.result-card .card-header{flex-wrap:wrap}.output-footer .actions{gap:8px}
 .account-layout .login-page{padding:30px 12px}.account-layout .login-page .card{padding:23px 16px}.account-layout .sidebar{margin-top:30px}.account-layout .login-page .brand{font-size:27px;gap:8px}.account-layout .login-page .brand-logo{width:60px;height:60px}.account-layout .login-page .brand small{font-size:8px;letter-spacing:1.6px}
 .topbar{height:116px;padding:12px}.shell{min-height:calc(100vh - 116px)}
}
@media(max-width:380px){.shell,.account-layout{grid-template-columns:64px minmax(0,1fr)}.sidebar{padding:0 4px}.account-layout .login-page .brand{font-size:24px}.account-layout .login-page .brand-logo{width:52px;height:52px}}
.brand-anami{color:#23c7f3}.brand-med{color:#e4ba75}

/* Transição entre documentos da mesma origem (quando o navegador suporta).
 * Visual suave sem transformar rotas autenticadas em SPA nem armazenar páginas.
 * O tempo extra é limitado a 90 ms e respeita movimento reduzido. */
@view-transition{navigation:auto}
@keyframes am-page-in{from{opacity:.88}to{opacity:1}}
@keyframes am-page-out{from{opacity:1}to{opacity:1}}
::view-transition-old(root){animation:90ms ease-out both am-page-out}
::view-transition-new(root){animation:90ms ease-out both am-page-in}
@media(prefers-reduced-motion:reduce){
 ::view-transition-old(root),::view-transition-new(root){animation:none}
}

/* Shared identity and divider across guest and authenticated pages. */
.topbar{--header-height:134px;display:flex;align-items:center;justify-content:center;height:var(--header-height);padding:14px 20px;border-bottom:1px solid transparent;border-image:var(--border-fade) 1}
.topbar .brand{color:inherit;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:16px;margin:0;font-size:42px;font-weight:700;line-height:1.1;letter-spacing:-1.4px}
.topbar .brand-logo{position:relative;display:block;flex:0 0 104px;width:104px;height:104px;overflow:hidden;border-radius:13px;background:transparent}
.topbar .brand-logo img{position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none;border-radius:12px}
.topbar .brand small{display:block;font-size:10px;line-height:1.4;letter-spacing:2.8px;font-weight:500;color:var(--muted);margin:5px 0 0 2px}
.shell,.account-layout{min-height:calc(100vh - 134px)}
.account-layout .sidebar{margin-top:28px}
.login-page,.account-layout .login-page{padding-top:28px}
@media(max-width:700px){
 .topbar{--header-height:116px;padding:12px}
 .topbar .brand{font-size:33px;gap:12px}
 .topbar .brand-logo{flex-basis:76px;width:76px;height:76px}
 .topbar .brand small{font-size:8px;letter-spacing:2px}
 .shell,.account-layout{min-height:calc(100vh - 116px)}
 .account-layout .sidebar{margin-top:24px}
 .login-page,.account-layout .login-page{padding-top:24px}
}

/* Return actions use the same gold treatment as the site's primary buttons. */
a.calc-back,
button#edit,
.login-page a.login-secondary,
a.secondary[href="/"],
a.login-action[href="/"],
.sca-actions a[href="/protocolos"],
.sca-actions a[href="/protocolos/sca?etapa=ecg"],
.sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"],
.sca-actions a[href="/protocolos/tep"]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 16px;border:1px solid transparent;border-radius:9px;background:linear-gradient(110deg,#efd297,#e4ba75) padding-box,var(--border-fade-focus) border-box;color:#12202a;font-size:14px;font-weight:650;line-height:1.4;text-align:center;text-decoration:none;box-shadow:0 3px 16px #e4ba7514}
a.calc-back:hover,
button#edit:hover,
.login-page a.login-secondary:hover,
a.secondary[href="/"]:hover,
a.login-action[href="/"]:hover,
.sca-actions a[href="/protocolos"]:hover,
.sca-actions a[href="/protocolos/sca?etapa=ecg"]:hover,
.sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"]:hover,
.sca-actions a[href="/protocolos/tep"]:hover{background:linear-gradient(110deg,#f5dca8,#edc785) padding-box,var(--border-fade-focus) border-box;color:#12202a}
a.calc-back:focus-visible,
button#edit:focus-visible,
.login-page a.login-secondary:focus-visible,
a.secondary[href="/"]:focus-visible,
a.login-action[href="/"]:focus-visible,
.sca-actions a[href="/protocolos"]:focus-visible,
.sca-actions a[href="/protocolos/sca?etapa=ecg"]:focus-visible,
.sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"]:focus-visible,
.sca-actions a[href="/protocolos/tep"]:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* The login's midnight, blue and gold identity continues through the clinical workspace. */
body[data-authenticated="true"]{position:relative;isolation:isolate;--cyan:#52b8e7;--gold:#dfb979;--muted:#a6afc5;--line:#26334a;--border-fade:linear-gradient(#26334a,#26334a);--border-fade-focus:linear-gradient(#52b8e7,#52b8e7);background:#070c18;color:#eef0f8;font-size:15px;line-height:1.6}
body[data-authenticated="true"]::before{content:"";position:fixed;inset:0;z-index:-1;background:url("/assets/a39b00bfb270444afaf95072ba0258295a8b429a0422d3867500248c2fafa6d7.png") center center/min(78vw,680px) auto no-repeat;opacity:.09;pointer-events:none}
body[data-authenticated="true"] .topbar{position:relative;isolation:isolate;overflow:hidden;height:120px;padding:18px 24px;border-bottom:1px solid #1b2538;border-image:none;background:#070c18}

body[data-authenticated="true"] .topbar .brand{font-size:36px;gap:14px;letter-spacing:-1.4px}
body[data-authenticated="true"] .brand-anami{color:#50b8e7}body[data-authenticated="true"] .brand-med{color:#dfb979}
body[data-authenticated="true"] .topbar .brand-logo{flex-basis:76px;width:76px;height:76px;border-radius:16px}
body[data-authenticated="true"] .topbar .brand small{font-size:12px;font-weight:400;letter-spacing:.25px;color:var(--muted);margin-top:7px}
body[data-authenticated="true"] :is(.shell,.account-layout){min-height:calc(100vh - 120px);max-width:1180px;grid-template-columns:190px minmax(0,1fr)}
body[data-authenticated="true"] .workspace{max-width:860px;padding:32px 24px 48px}
body[data-authenticated="true"] .page-heading{margin-bottom:26px;align-items:start}
body[data-authenticated="true"] .page-heading h1{font-size:clamp(24px,3vw,30px);font-weight:600;letter-spacing:-.7px;line-height:1.3;overflow-wrap:anywhere}
body[data-authenticated="true"] .page-heading p:not(.eyebrow){font-size:14px;color:var(--muted);line-height:1.7}
body[data-authenticated="true"] .eyebrow{font-size:11px;font-weight:650;letter-spacing:1.3px;color:var(--gold)}
body[data-authenticated="true"] .sidebar{margin-top:32px;gap:8px;padding:0 12px;scrollbar-width:thin;scrollbar-color:#3c4b63 transparent}
body[data-authenticated="true"] .sidebar a{min-height:54px;padding:13px 12px;gap:11px;border:1px solid transparent;border-radius:14px;background:transparent;color:#a6afc5;font-size:13px;line-height:1.4}
body[data-authenticated="true"] .sidebar a:hover{color:var(--cyan);background:#101b2c;border-color:#26334a}
body[data-authenticated="true"] .sidebar a[aria-current]{color:var(--gold);border-color:#dfb97955;background:#dfb9790b}
body[data-authenticated="true"] .sidebar svg{width:22px;height:22px}
body[data-authenticated="true"] :is(.card,.protocol-link,.sca-choice,.account-row){background:#0c1423;border:1px solid #26334a;border-radius:20px;box-shadow:none;backdrop-filter:none}
body[data-authenticated="true"] .card{padding:24px}
body[data-authenticated="true"] :is(.card-title,.calc-choice h2,.protocol-link h3,.ab-card h2){color:#eef0f8;font-weight:600;letter-spacing:-.35px;line-height:1.45}
body[data-authenticated="true"] .card-title{font-size:20px}
body[data-authenticated="true"] :is(.card-subtitle,.calc-helper,.calc-source,.dict-help,.dict-count,.vaccination-note,.sca-context){color:#a6afc5;line-height:1.75}
body[data-authenticated="true"] :is(.calc-choice,.protocol-link,.sca-choice):hover{background:#101b2c;border-color:#52b8e770;box-shadow:none;filter:none}
body[data-authenticated="true"] :is(.soap-section,.calc-result,.vaccination-item,.ab-treatment,.hf-drug,.ab-management-step){background:#0a1220;border:1px solid #26334a;border-radius:16px;box-shadow:none}
body[data-authenticated="true"] .ab-second{border-color:#dfb97955;background:#dfb97908}
body[data-authenticated="true"] .calc-result{border-color:#52b8e755;padding:24px}
body[data-authenticated="true"] :is(.soap-section h2,.dict-code,.calc-value,.protocol-open){color:var(--cyan)}
body[data-authenticated="true"] .soap-section:nth-child(n+3) h2{color:var(--gold)}
body[data-authenticated="true"] :is(.input-label,.calc-field label,.dict-field label,.register-form label,.protocol-search label){font-size:14px;font-weight:500;color:#adb7cc;line-height:1.6}
body[data-authenticated="true"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),select,#abQuery,#abSpecialty,#toolCategory,#toolType,#gcsEye,#gcsVerbal,#gcsMotor,#curbConfusion,#curbUreaUnit){min-width:0;min-height:48px;padding:12px 4px;border:0;border-bottom:1px solid #65738e;border-radius:0;background:#0c1423;color:#eef0f8;font-family:inherit;font-size:16px;box-shadow:none;color-scheme:dark}
body[data-authenticated="true"] :is(select,#abSpecialty,#toolCategory,#toolType,#gcsEye,#gcsVerbal,#gcsMotor,#curbConfusion,#curbUreaUnit) option{background:#0c1423;color:#eef0f8}
body[data-authenticated="true"] select option:disabled{color:#a6afc5}
body[data-authenticated="true"] :is(textarea,#soapOutput){background:#090f1b;border:1px solid #34415a;border-radius:14px;color:#eef0f8;font-size:16px;line-height:1.8;box-shadow:none}
body[data-authenticated="true"] textarea::placeholder,body[data-authenticated="true"] input::placeholder{color:#8b98b0;opacity:1}
body[data-authenticated="true"] :is(input,select,textarea,#soapOutput):focus-visible{outline:2px solid var(--cyan);outline-offset:3px;border-color:var(--cyan);box-shadow:none}
body[data-authenticated="true"] :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--gold)}
body[data-authenticated="true"] :is(.primary,#clear,#clearResult,.clear-button,.calc-back,#edit,.login-action,.login-secondary,a.secondary[href="/"],.sca-actions a[href="/protocolos"],.sca-actions a[href="/protocolos/sca?etapa=ecg"],.sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"],.sca-actions a[href="/protocolos/tep"]){min-height:48px;padding:12px 20px;border:1px solid transparent;border-radius:999px;background:#dfb979;color:#11141c;font-size:14px;font-weight:650;line-height:1.5;box-shadow:none;text-decoration:none}
body[data-authenticated="true"] :is(.primary,#clear,#clearResult,.clear-button,.calc-back,#edit,.login-action,.login-secondary,a.secondary[href="/"],.sca-actions a[href="/protocolos"],.sca-actions a[href="/protocolos/sca?etapa=ecg"],.sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"],.sca-actions a[href="/protocolos/tep"]):hover{background:#edc98f;color:#11141c;filter:none}
body[data-authenticated="true"] .primary{min-height:54px;font-size:16px;font-weight:700}
body[data-authenticated="true"] :is(.secondary,.protocol-search button,.dict-copy,.ab-management-tools a,.ab-protocol-link,.sca-steps a){min-height:44px;padding:10px 16px;border:1px solid #436580;border-radius:999px;background:transparent;color:var(--cyan);box-shadow:none;font-size:13px}
body[data-authenticated="true"] :is(.secondary,.protocol-search button,.dict-copy,.ab-management-tools a,.ab-protocol-link,.sca-steps a):hover{background:#52b8e70c;border-color:var(--cyan)}
body[data-authenticated="true"] :is(#edit,a.secondary[href="/"]){background:#dfb979;color:#11141c;border-color:transparent}
body[data-authenticated="true"] :is(#edit,a.secondary[href="/"]):hover{background:#edc98f;color:#11141c}
body[data-authenticated="true"] :is(.sca-steps a[aria-current],.sca-step.current){color:var(--gold);border-color:#dfb97988;background:#dfb9790b}
body[data-authenticated="true"] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
body[data-authenticated="true"] button:disabled{opacity:.45;cursor:not-allowed}
body[data-authenticated="true"] :is(.note-foot,.sca-check){background:#52b8e706;border:1px solid #52b8e72b;border-radius:14px;color:#adb7cc}
body[data-authenticated="true"] .output-footer{border-top:1px solid #26334a;border-image:none;padding-top:20px;margin-top:20px}
body[data-authenticated="true"] .account-layout .login-page{max-width:560px;padding:32px 24px 48px}
body[data-authenticated="true"] .account-layout .login-page h1{font-size:25px;font-weight:500;letter-spacing:-.4px}
body[data-authenticated="true"] .account-row{padding:18px}.account-layout .account-actions{gap:12px}
@media(max-width:700px){
 body[data-authenticated="true"] .topbar{height:104px;padding:12px 16px}
 body[data-authenticated="true"] .topbar .brand{font-size:30px;gap:10px}
 body[data-authenticated="true"] .topbar .brand-logo{flex-basis:64px;width:64px;height:64px}
 body[data-authenticated="true"] .topbar .brand small{font-size:11px}
 body[data-authenticated="true"] :is(.shell,.account-layout){display:block;min-height:calc(100vh - 104px);width:100%;min-width:0}
 body[data-authenticated="true"] .sidebar{display:flex;flex-direction:row;position:sticky;top:0;z-index:10;gap:8px;width:100%;max-width:100%;margin:0;padding:10px 14px;overflow-x:auto;overscroll-behavior-x:contain;border-bottom:1px solid #1b2538;background:#070c18;scroll-padding-inline:14px}
 body[data-authenticated="true"] .sidebar a{flex:0 0 auto;flex-direction:column;min-width:82px;max-width:115px;min-height:64px;padding:8px 10px;gap:5px;border-radius:12px;font-size:11px;text-align:center}
 body[data-authenticated="true"] .sidebar svg{width:20px;height:20px}
 body[data-authenticated="true"] .workspace,body[data-authenticated="true"] .account-layout .login-page{width:100%;max-width:100%;padding:26px 16px 40px}
 body[data-authenticated="true"] .workspace .card,body[data-authenticated="true"] .account-layout .login-page .card{padding:20px 18px;border-radius:18px}
 body[data-authenticated="true"] .page-heading{margin-bottom:22px}
 body[data-authenticated="true"] .page-heading h1{font-size:24px}
 body[data-authenticated="true"] .page-heading p:not(.eyebrow){font-size:13px}
 body[data-authenticated="true"] .card-title{font-size:18px}
 body[data-authenticated="true"] .calc-result{padding:20px 16px}
 body[data-authenticated="true"] .calc-controls{gap:10px}
 body[data-authenticated="true"] .ab-card{padding:20px 18px!important}
 body[data-authenticated="true"] .output-footer .actions{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){body[data-authenticated="true"] *{scroll-behavior:auto;transition:none}}

.reference-detail-header{margin-bottom:20px}.reference-detail-header .calc-back{margin-bottom:14px}.reference-detail-header .eyebrow{margin:0}.dict-open{margin-top:16px}.ab-results:has(.ab-card:only-child){margin-top:0}.reference-detail-header[hidden]{display:none!important}


.usage-notice{margin:22px 0 16px;padding:0 15px;border:1px solid #26334a;border-radius:14px;text-align:left;background:#0c1423}.usage-notice summary{min-height:48px;padding:12px 0;color:var(--gold);font-size:14px;line-height:1.6;cursor:pointer}.usage-notice p{font-size:13px!important;line-height:1.8!important;color:#b8c3d8!important}.usage-notice strong{color:#edf1fa}.usage-notice a{color:var(--cyan);overflow-wrap:anywhere}.register-form label.usage-check{display:flex;gap:12px;align-items:flex-start;margin:16px 0 8px;font-size:13px;line-height:1.7;color:#c6cfe0}.register-form .usage-check input[type="checkbox"]{appearance:auto!important;flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px!important;margin:3px 0 0;padding:0!important;border:0!important;border-radius:3px!important;background:transparent!important;box-shadow:none!important;accent-color:var(--gold)}.usage-check input:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}


/* Dynamic procedure return keeps the gold return-action treatment. */
body[data-authenticated="true"] .sca-actions #procedureBack{min-height:48px;padding:12px 20px;border:1px solid transparent;border-radius:999px;background:#dfb979;color:#11141c;font-size:14px;font-weight:650;line-height:1.5;text-decoration:none}body[data-authenticated="true"] .sca-actions #procedureBack:hover{background:#edc98f;color:#11141c}


/* Reference login: midnight canvas, oversized identity and gold touch targets. */
.auth-identity,.auth-legal{display:none}
body[data-authenticated="false"]{background:#070c18;color:#eef0f8;--cyan:#52b8e7;--muted:#a6afc5;--gold:#dfb979}
body[data-authenticated="false"]>.topbar{display:none}
.guest-layout .login-page{position:relative;max-width:460px;padding:0 28px 30px;isolation:isolate}
.guest-layout .login-page .card{position:relative;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;text-align:center}
.guest-layout .login-lock{display:none}
.guest-layout .auth-identity{position:relative;display:flex;align-items:flex-end;justify-content:center;height:280px;padding-bottom:14px;margin:0 -28px;overflow:hidden}
.auth-art{position:absolute;z-index:-1;inset:-68px -34px -38px;width:calc(100% + 68px);height:calc(100% + 106px);object-fit:cover;opacity:.48;filter:blur(1.5px);mask-image:linear-gradient(#000 55%,transparent 96%);pointer-events:none}
.auth-wordmark{font-size:36px;font-weight:750;line-height:1.15;letter-spacing:-1.6px}
.auth-wordmark .brand-anami{color:#50b8e7}.auth-wordmark .brand-med{color:#dfb979}
.guest-layout .login-page h1{font-size:24px;font-weight:500;letter-spacing:0;line-height:1.4;margin:0 0 34px}
.guest-layout .auth-tabs{display:none}
.guest-layout .login-form-title{display:none}
.guest-layout .login-page .register-form{margin:0;text-align:left}
.guest-layout .register-form label{font-size:14px;font-weight:400;color:#adb7cc;margin:0 0 8px}
.guest-layout .register-form label:not(:first-child){margin-top:22px}
.guest-layout .register-form input:not([type="hidden"]){display:block;width:100%;min-width:0;height:50px;min-height:50px;padding:8px 0 12px;border:0;border-bottom:1px solid #65738e;border-radius:0;background:transparent;color:#f1f3fa;font-family:inherit;font-size:16px;box-shadow:none;transition:border-color .15s}
.guest-layout .register-form input:focus{outline:0;border-color:#52b8e7;box-shadow:0 1px 0 #52b8e7;background:transparent}
.guest-layout .register-form input:focus-visible{outline:2px solid #52b8e7;outline-offset:5px}
.password-field{position:relative}.password-field input{padding-right:52px!important}
.password-toggle{position:absolute;right:0;bottom:5px;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0!important;padding:10px;background:transparent;border:0;border-radius:8px;color:#adb7cc}
.password-toggle svg{width:23px;height:23px}.password-toggle:hover{color:#52b8e7;background:#52b8e70a}
.guest-layout .register-form .primary,.guest-layout a.primary.login-action{width:100%;min-height:56px;margin-top:28px;padding:14px 20px;border:0;border-radius:999px;background:#dfb979;color:#11141c;font-size:18px;font-weight:700;box-shadow:none}
.guest-layout .register-form .primary:hover,.guest-layout a.primary.login-action:hover{background:#edc98f;filter:none}
.guest-layout .auth-security-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:14px 0 8px;font-size:12px;color:#a6afc5;line-height:1.5}
.auth-security-note svg{width:16px;height:16px;flex-shrink:0}
.guest-layout .login-page a.forgot-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px;background:transparent;border:0;box-shadow:none;color:#52b8e7;font-size:15px;font-weight:500;text-decoration:none}
.guest-layout .login-page a.forgot-link:hover{background:transparent;color:#8bd5f7;text-decoration:underline}
.guest-layout .signup-prompt{margin:8px 0 0;padding:14px 0 0;border-top:1px solid #1b2538}
.guest-layout .signup-prompt p{margin:0;color:#a6afc5;font-size:14px}
.guest-layout .signup-prompt a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px;color:#dfb979;font-size:17px;font-weight:650;text-decoration:none}
.guest-layout .signup-prompt a:hover{text-decoration:underline}
.guest-layout .auth-legal{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:4px 20px;margin:20px 0 0;color:#a6afc5;font-size:12px}
.auth-legal details{max-width:100%;text-align:left}.auth-legal summary{min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.auth-legal details[open]{flex-basis:100%}.auth-legal details p{font-size:12px!important;line-height:1.6!important;margin:0 0 10px}
.guest-layout .form-error{padding:12px 14px;margin:0 0 18px!important;background:#5e263333;border:1px solid #d58b8b55;border-radius:10px;text-align:left}
@media(max-height:740px){.guest-layout .auth-identity{height:210px}.guest-layout .login-page h1{margin-bottom:24px}}
@media(min-width:700px){.guest-layout .login-page{padding-top:20px;padding-bottom:40px}.guest-layout .auth-identity{height:260px}}

.account-layout:has(.plan-selector) .login-page{max-width:700px;width:100%}
.plan-selector{min-width:0;margin:0 0 18px;padding:0;border:0;text-align:left}.plan-selector legend{font-size:17px;font-weight:650;color:#edf3f7;margin-bottom:14px}.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.register-form label.plan-choice{position:relative;display:flex;flex-direction:column;gap:8px;margin:0!important;padding:20px 14px 16px;border:1px solid #65738e88;border-radius:14px;background:#131f3180;cursor:pointer;color:#c6d1e0;min-width:0;transition:border-color .15s,background .15s}
.register-form label.plan-choice:has(input:checked){border:2px solid #dfb979;padding:19px 13px 15px;background:#dfb9790d}.register-form label.plan-choice:focus-within{outline:2px solid #52b8e7;outline-offset:4px}
.register-form .plan-choice input[type=radio]{position:absolute;top:15px;right:12px;display:block;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:#dfb979;box-shadow:none;border:0}
.plan-name{font-size:17px;font-weight:700;color:#edf3f7;padding-right:22px}.plan-price{font-size:23px;line-height:1.2;color:#dfb979;white-space:nowrap}.plan-period{font-size:12px;color:#c3ccdc}.plan-features{font-size:13px;line-height:1.55;margin-top:6px}.plan-saving{font-size:11px;font-weight:650;line-height:1.5;color:#8de0c5}.plan-equivalent{font-size:11px;line-height:1.5;color:#adb7cc}.plan-explainer{font-size:12px!important;line-height:1.7!important;margin:14px 0 0!important;color:#aebfd0!important}.plan-setup{padding:14px;border:1px solid #dfb97966;border-radius:10px}
.register-form label.billing-consent{display:flex;align-items:flex-start;gap:12px;font-size:13px;line-height:1.6}.register-form .billing-consent input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin-top:3px;accent-color:#dfb979}
.guest-layout .register-form>.usage-check input[type=checkbox]{height:20px;min-height:20px;width:20px;flex:0 0 20px}
@media(max-width:600px){.plan-grid{grid-template-columns:1fr}.register-form label.plan-choice{padding:17px 18px;gap:5px}.register-form label.plan-choice:has(input:checked){padding:16px 17px}.plan-price{font-size:24px}.plan-features{margin-top:0}}
.guest-layout .account-actions{display:grid;gap:14px;width:100%;margin:18px auto 22px}.guest-layout .account-actions>.login-action{margin:0;min-height:48px}.guest-layout details.account-action{margin:0;border:1px solid #52b8e755;border-radius:999px;background:#ffffff04;text-align:left}.guest-layout details.account-action>summary{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;color:#77d3d7;cursor:pointer;list-style:none;font-size:14px;font-weight:650}.guest-layout details.account-action>summary::-webkit-details-marker{display:none}.guest-layout details.account-action>summary::after{content:'+';margin-left:8px;color:#dfb979}.guest-layout details.account-action[open]>summary::after{content:'−'}.guest-layout .account-action-panel{padding:4px 18px 18px}.guest-layout .account-action-panel h2{font-size:17px;color:#edf3f7}.guest-layout .account-action-panel form{max-width:100%;text-align:left}.guest-layout .account-action-panel form button{margin-top:18px}.guest-layout .logout-form{display:flex;justify-content:center;margin-top:4px}.guest-layout .logout-form button{min-height:48px;padding:10px 24px}.guest-layout.account-layout{position:relative;z-index:1}.guest-layout .auth-art{display:none}body[data-authenticated="false"]::before{content:"";position:fixed;inset:0;z-index:0;background:url('/assets/a39b00bfb270444afaf95072ba0258295a8b429a0422d3867500248c2fafa6d7.png') center center/min(88vw,760px) auto no-repeat;opacity:.09;pointer-events:none}.guest-layout{position:relative;z-index:1}
/* UX Excellence — visual unificado, sem alterar autenticação ou lógica clínica. */
:root{--ux-bg:#070c18;--ux-panel:#0c1423;--ux-line:#26334a;--ux-blue:#52b8e7;--ux-gold:#dfb979;--ux-muted:#a6afc5}
body{background-color:var(--ux-bg);color:#eef0f8}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--ux-blue);outline-offset:3px}
.login-page{width:100%;max-width:510px;margin-inline:auto}.login-page .card{background:var(--ux-panel);border:1px solid var(--ux-line);border-radius:22px;box-shadow:0 14px 40px #0002}.login-page .brand-logo img{object-fit:contain}.login-page .register-form{max-width:100%}.login-page .register-form input{min-height:50px;background:#090f1b;border:1px solid #34415a;border-radius:10px;color:#eef0f8}.login-page .register-form input:focus-visible{border-color:var(--ux-blue)}.login-page .register-form label{color:#c9d3e4}.login-page .register-form .primary,.login-page .login-action{min-height:50px;background:var(--ux-gold);color:#101827;border-radius:999px;font-weight:700}.login-page .auth-tabs{border-color:var(--ux-line)}.login-page .forgot-link{color:var(--ux-blue)}.login-page .signup-prompt a{color:var(--ux-gold)}.login-page .login-note,.login-page .auth-security-note{color:var(--ux-muted)}
@media(max-width:700px){.guest-layout{display:block!important}.guest-layout .sidebar{display:none!important}.guest-layout .login-page{max-width:510px;padding:18px 16px 38px}.guest-layout .login-page .card{padding:23px 18px}.login-page .register-form input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.login-page *, .login-page *::before,.login-page *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Desktop login refinement. Mobile and tablet layouts remain unchanged. */
@media (min-width: 901px) {
  body[data-authenticated="false"] .guest-layout:not(.account-layout) {
    width:100%;
    min-height:calc(100dvh - 80px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:36px 32px 64px;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page {
    width:min(100%, 980px);
    max-width:980px;
    margin:0 auto;
    padding:0;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card {
    display:grid;
    grid-template-columns:minmax(260px, 38%) minmax(0, 1fr);
    column-gap:0;
    align-items:center;
    padding:0;
    overflow:hidden;
    border:1px solid var(--ux-line);
    border-radius:24px;
    background:#141f32;
    box-shadow:0 24px 64px #0003;
    text-align:center;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>.auth-identity {
    grid-column:1;
    grid-row:1 / span 20;
    align-self:stretch;
    min-height:540px;
    height:auto;
    margin:0;
    padding:40px 24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:16px;
    background:linear-gradient(155deg,#203957,#192b46);
    border-right:1px solid #ffffff12;
    overflow:hidden;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>.auth-identity .auth-mark img {
    width:100px;
    height:100px;
    object-fit:contain;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>.auth-identity .auth-wordmark {
    font-size:32px;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card> :not(.auth-identity) {
    grid-column:2;
    min-width:0;
    margin-left:44px;
    margin-right:44px;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>h1 {
    margin-top:42px;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card> :last-child {
    margin-bottom:42px;
  }
  body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page .register-form input {
    width:100%;
  }
}

/* Desktop-only blue login design, scoped to the sign-in screen. */
@media(min-width:901px){
body[data-authenticated="false"]{background:radial-gradient(ellipse at 50% 0%,#12306288,transparent 62%),#07101f}
body[data-authenticated="false"]::before{background:url('/assets/a39b00bfb270444afaf95072ba0258295a8b429a0422d3867500248c2fafa6d7.png') center/min(95vw,1250px) auto no-repeat;opacity:.055}
body[data-authenticated="false"] .guest-layout:not(.account-layout){min-height:calc(100dvh - 80px);display:flex;align-items:center;justify-content:center;padding:36px 24px 54px}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page{width:min(100%,1020px);max-width:1020px;margin:auto;padding:0}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card{display:grid;grid-template-columns:46% minmax(0,54%);align-items:center;min-height:650px;padding:0;overflow:hidden;border:1px solid #456ba47d;border-radius:22px;background:#0e1a2e;box-shadow:0 24px 65px #0006;text-align:left}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>.auth-identity{grid-column:1;grid-row:1 / span 20;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:650px;height:auto;gap:12px;margin:0;padding:42px 32px;background:linear-gradient(135deg,#183965,#10284e);border-right:1px solid #74a2ec1c;overflow:hidden}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>.auth-identity .auth-mark img{width:112px;height:112px;object-fit:contain}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .auth-wordmark{font-size:48px;letter-spacing:-2px;line-height:1.1}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .brand-anami{color:#f0f5ff}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .brand-med{color:#7caeff}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .auth-tagline{display:block;margin:0 0 23px;color:#cfdbef;font-size:17px}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card> :not(.auth-identity){grid-column:2;min-width:0;margin-left:48px;margin-right:48px}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>.login-lock{display:inline-flex;justify-content:center;width:max-content;margin-top:36px;padding:6px 15px;border-radius:999px;background:#2a55944a;color:#9fc7ff;font-size:11px;letter-spacing:1.5px}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card>h1{font-size:28px;font-weight:750;margin-top:12px;margin-bottom:22px;line-height:1.25}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .auth-tabs{display:flex;margin:18px 0 24px;padding:0;gap:0;border-radius:11px;overflow:hidden;background:#1b304f}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .auth-tabs a{min-height:48px;border:0;border-radius:0;color:#bfcee8}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .auth-tabs a[aria-current]{background:#224f99;color:white;box-shadow:inset 0 0 0 1px #5d99f3}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .register-form label{font-weight:650;color:#e3eafa}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .register-form input:not([type="hidden"]){height:52px;min-height:52px;padding:12px 15px;border:1px solid #526d96;border-radius:11px;background:#172b47;color:#fff;box-shadow:none}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .register-form input:focus-visible{border-color:#70a6ff;outline:2px solid #70a6ff;outline-offset:2px}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .register-form .primary,body[data-authenticated="false"] .guest-layout:not(.account-layout) a.primary.login-action{min-height:54px;border:1px solid #70a6ff;border-radius:11px;background:linear-gradient(180deg,#307dff,#2466dd);color:#fff;font-size:17px;box-shadow:0 8px 24px #2861c53b}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .register-form .primary:hover{background:linear-gradient(180deg,#438aff,#3172e9)}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .forgot-link,body[data-authenticated="false"] .guest-layout:not(.account-layout) .signup-prompt a{color:#77b1ff}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .signup-prompt{border-top:1px solid #526b9144;margin-top:16px}
body[data-authenticated="false"] .guest-layout:not(.account-layout) .login-page>.card> :last-child{margin-bottom:36px}
}
@media(max-width:900px){.auth-tagline{display:none!important}}
.remember-password-option{display:flex!important;align-items:center;gap:10px;margin:16px 0 4px!important;cursor:pointer;font-size:13px!important;color:#d6e1f0!important}.remember-password-option input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important;accent-color:#52b8e7;flex:none}.remember-password-help{font-size:11px!important;line-height:1.5!important;color:#a6afc5!important;text-align:left;margin:0 0 12px!important}
.guest-layout .login-page>.card>.login-lock{display:none!important}body[data-authenticated="false"] .guest-layout .register-form select{width:100%;min-height:48px;padding:10px 12px;font:inherit;font-size:16px;border:1px solid #526d96;border-radius:10px;background:#172b47;color:#f1f3fa}body[data-authenticated="false"] .guest-layout .register-form label{font-size:14px;line-height:1.5}body[data-authenticated="false"] .guest-layout .register-form{max-width:100%;min-width:0}body[data-authenticated="false"] .guest-layout .login-page .card{min-width:0;max-width:100%;overflow-wrap:anywhere}@media(max-width:700px){body[data-authenticated="false"] .guest-layout .login-page{width:100%;max-width:560px;margin-inline:auto;padding:16px 12px 28px}body[data-authenticated="false"] .guest-layout .login-page .card{padding:20px 16px}}

/* AnamiMed — tema claro unificado (aplicado por último em todas as páginas internas, login e cadastro).
   Só aparência: não altera rotas, autenticação, cálculos nem conteúdo clínico. */
:root{--ux-star:var(--ux-primary);--ux-radius:14px;--ux-side:256px;--ux-top:132px;
 --cyan:var(--ux-primary);--gold:var(--ux-primary);--muted:var(--ux-muted);--line:var(--ux-line);--border-fade:linear-gradient(var(--ux-line),var(--ux-line));--border-fade-focus:linear-gradient(var(--ux-primary),var(--ux-primary))}
/* ---------- Legado dourado → azul padrão (gerado a partir da varredura de todo o CSS servido) ---------- */
html:root body .article-filter-options summary,
html:root body .auth-wordmark .brand-med,
html:root body .brand-med,
html:root body .dict-ambiguity,
html:root body .guest-layout .signup-prompt a,
html:root body .guest-layout details.account-action>summary::after,
html:root body .interaction-alert[data-category=duplicidade] .interaction-badge,
html:root body .interaction-alert[data-category=evitar] .interaction-badge,
html:root body .interaction-review,
html:root body .plan-price,
html:root body .protocol-search .protocol-clear,
html:root body .sca-actions .sca-urgent-link,
html:root body .sca-risk,
html:root body .soap-conflict,
html:root body .source-status,
html:root body .tool-kind,
html:root body[data-authenticated="true"] .brand-med{color:var(--ux-primary)!important}
html:root body .card,
html:root body .interaction-alert[data-category=duplicidade] .interaction-badge,
html:root body .login-page a.login-secondary:hover,
html:root body .note-foot,
html:root body .protocol-link,
html:root body .register-form input,
html:root body .register-form label.plan-choice:has(input:checked),
html:root body .sca-actions a[href="/protocolos"]:hover,
html:root body .sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"]:hover,
html:root body .sca-actions a[href="/protocolos/sca?etapa=ecg"]:hover,
html:root body .sca-actions a[href="/protocolos/tep"]:hover,
html:root body .sca-choice,
html:root body .sca-risk,
html:root body .soap-section,
html:root body a.calc-back:hover,
html:root body a.login-action[href="/"]:hover,
html:root body a.secondary[href="/"]:hover,
html:root body button#edit:hover,
html:root body textarea,
html:root body[data-authenticated="true"] .ab-second,
html:root body[data-authenticated="true"] .sidebar a[aria-current],
html:root body[data-authenticated="true"] :is(.sca-steps a[aria-current],.sca-step.current){background:var(--ux-soft)!important}
html:root body #clear,
html:root body #clearResult,
html:root body .clear-button,
html:root body .guest-layout .register-form .primary,
html:root body .guest-layout .register-form .primary:hover,
html:root body .guest-layout a.primary.login-action,
html:root body .guest-layout a.primary.login-action:hover,
html:root body .login-page a.login-secondary,
html:root body .primary,
html:root body .sca-actions a[href="/protocolos"],
html:root body .sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"],
html:root body .sca-actions a[href="/protocolos/sca?etapa=ecg"],
html:root body .sca-actions a[href="/protocolos/tep"],
html:root body .skip-content,
html:root body a.calc-back,
html:root body a.login-action[href="/"],
html:root body a.secondary[href="/"],
html:root body button#edit,
html:root body[data-authenticated="true"] .sca-actions #procedureBack,
html:root body[data-authenticated="true"] .sca-actions #procedureBack:hover,
html:root body[data-authenticated="true"] :is(#edit,a.secondary[href="/"]),
html:root body[data-authenticated="true"] :is(#edit,a.secondary[href="/"]):hover,
html:root body[data-authenticated="true"] :is(.primary,#clear,#clearResult,.clear-button,.calc-back,#edit,.login-action,.login-secondary,a.secondary[href="/"],.sca-actions a[href="/protocolos"],.sca-actions a[href="/protocolos/sca?etapa=ecg"],.sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"],.sca-actions a[href="/protocolos/tep"]),
html:root body[data-authenticated="true"] :is(.primary,#clear,#clearResult,.clear-button,.calc-back,#edit,.login-action,.login-secondary,a.secondary[href="/"],.sca-actions a[href="/protocolos"],.sca-actions a[href="/protocolos/sca?etapa=ecg"],.sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"],.sca-actions a[href="/protocolos/tep"]):hover{background:var(--ux-action)!important;color:#fff!important;border-color:var(--ux-primary)!important}
html:root body .ab-second,
html:root body .article-workspace .article-open,
html:root body .interaction-alert[data-category=duplicidade],
html:root body .interaction-review,
html:root body .interaction-unknown,
html:root body .plan-setup,
html:root body .protocol-search .protocol-clear,
html:root body .register-form label.plan-choice:has(input:checked),
html:root body .sca-actions .sca-urgent-link,
html:root body .sca-risk,
html:root body .sca-step.current,
html:root body .source-notice,
html:root body[data-authenticated="true"] .ab-second,
html:root body[data-authenticated="true"] .sidebar a[aria-current],
html:root body[data-authenticated="true"] :is(.sca-steps a[aria-current],.sca-step.current){border-color:var(--ux-warn-line)!important}
html:root body .protocol-search :focus-visible,
html:root body .sca-choice:focus-visible,
html:root body .sca-steps a:focus-visible,
html:root body .source-card a:focus-visible,
html:root body .source-card summary:focus-visible,
html:root body .source-filters :focus-visible{outline-color:var(--ux-primary)!important}
html:root body #clear,
html:root body #clearResult,
html:root body .clear-button,
html:root body .login-page a.login-secondary,
html:root body .sca-actions a[href="/protocolos"],
html:root body .sca-actions a[href="/protocolos/insuficiencia-cardiaca-aguda?etapa=avaliacao"],
html:root body .sca-actions a[href="/protocolos/sca?etapa=ecg"],
html:root body .sca-actions a[href="/protocolos/tep"],
html:root body a.calc-back,
html:root body a.login-action[href="/"],
html:root body a.secondary[href="/"],
html:root body button#edit{box-shadow:0 0 0 3px #1d5fd133!important}
html:root body .register-form .billing-consent input[type=checkbox],
html:root body .register-form .plan-choice input[type=radio],
html:root body .sca-check input{accent-color:var(--ux-primary)!important}
html:root body{background:var(--ux-bg)!important;color:var(--ux-text);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif}
html:root body::before,html:root body::after{display:none!important}
html:root body :focus-visible{outline:3px solid var(--ux-primary)!important;outline-offset:2px}

/* ---------- Marca no topo do menu lateral ---------- */
html:root body .topbar{position:fixed;top:0;left:0;z-index:40;width:var(--ux-side);height:var(--ux-top);padding:0 22px;display:flex;align-items:center;justify-content:flex-start;background:var(--ux-panel);border:0;border-right:1px solid var(--ux-line);border-image:none}
html:root body .topbar .brand{gap:12px;font-size:28px;font-weight:750;letter-spacing:-.8px;justify-content:flex-start}
html:root body .topbar .brand-logo{flex:0 0 44px;width:44px;height:44px;border-radius:0;background:transparent;overflow:visible;display:grid;place-items:center}
html:root body .topbar .brand-logo svg,html:root body .topbar .brand-logo .am-logo{width:44px;height:44px;object-fit:contain;border-radius:10px}
html:root body .topbar .brand small{display:none}
html:root body .brand-anami{color:var(--ux-ink)}html:root body .brand-med{color:var(--ux-primary)}

/* ---------- Estrutura: menu lateral fixo + área de trabalho ---------- */
html:root body .shell,html:root body .account-layout{display:grid;grid-template-columns:var(--ux-side) minmax(0,1fr);max-width:none;margin:0;min-height:100vh;align-items:start}
html:root body .sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;margin:0!important;padding:calc(var(--ux-top) + 14px) 14px 20px;display:flex;flex-direction:column;gap:2px;background:var(--ux-panel);border-right:1px solid var(--ux-line)}
html:root body .sidebar a{min-height:42px;padding:9px 12px;gap:12px;border:0;border-radius:10px;background:transparent!important;color:var(--ux-text);font-size:14px;font-weight:500;flex-direction:row;justify-content:flex-start;text-align:left}
html:root body .sidebar a svg{width:20px;height:20px;color:var(--ux-muted)}
html:root body .sidebar a:hover{background:var(--ux-hover)!important;color:var(--ux-ink)}
html:root body .sidebar a[aria-current]{background:var(--ux-primary-soft)!important;color:var(--ux-primary);font-weight:600}
html:root body .sidebar a[aria-current] svg{color:var(--ux-primary)}
html:root body .sidebar a[href="/minha-conta"]{margin-top:10px;border-top:1px solid var(--ux-line);border-radius:0 0 10px 10px;padding-top:14px}
html:root body .workspace{width:100%;max-width:1180px;margin:0 auto;padding:32px 36px 48px}
html:root body .account-layout .login-page{max-width:640px;margin:0 auto;padding:40px 36px}

/* ---------- Títulos ---------- */
html:root body .page-heading{margin-bottom:22px}
html:root body .page-heading h1,html:root body .workspace h1{color:var(--ux-ink);font-size:28px;font-weight:700;letter-spacing:-.6px}
html:root body .page-heading p:not(.eyebrow){color:var(--ux-muted);font-size:15px}
html:root body .eyebrow{color:var(--ux-primary);letter-spacing:1.2px}
html:root body .workspace h2,html:root body .workspace h3,html:root body .workspace h4{color:var(--ux-ink)}
html:root body .workspace p,html:root body .workspace li,html:root body .workspace dd,html:root body .workspace dt,html:root body .workspace td,html:root body .workspace th,html:root body .workspace label,html:root body .workspace summary,html:root body .workspace small,html:root body .workspace figcaption,html:root body .workspace legend{color:var(--ux-text)}
html:root body .card-subtitle,html:root body .calc-helper,html:root body .workspace .muted,html:root body .workspace .hint,html:root body .workspace .note{color:var(--ux-muted)}
html:root body .workspace a:not(.primary):not(.secondary):not(.calc-choice):not(.card){color:var(--ux-primary)}

/* ---------- Cartões e superfícies ---------- */
html:root body .card,html:root body .soap-section,html:root body .note-foot,html:root body .account-row,html:root body .workspace details,html:root body .workspace fieldset{background:var(--ux-panel)!important;border:1px solid var(--ux-line)!important;border-radius:var(--ux-radius);box-shadow:var(--ux-shadow);backdrop-filter:none;color:var(--ux-text)}
html:root body .card .card,html:root body .card details{box-shadow:none}
html:root body .card-title{color:var(--ux-ink)}
html:root body .workspace hr{border:0;border-top:1px solid var(--ux-line)}

/* ---------- Campos ---------- */
html:root body textarea,html:root body input:not([type=checkbox]):not([type=radio]):not([type=range]),html:root body select,html:root body #soapOutput{background:var(--ux-panel)!important;color:var(--ux-ink)!important;border:1px solid var(--ux-line-strong)!important;border-radius:10px;box-shadow:none}
html:root body textarea::placeholder,html:root body input::placeholder{color:var(--ux-placeholder)}
html:root body textarea:focus,html:root body input:focus,html:root body select:focus,html:root body #soapOutput:focus{border-color:var(--ux-primary)!important;box-shadow:0 0 0 3px var(--ux-focus)!important;outline:none!important}
html:root body .input-label,html:root body .calc-field label,html:root body .register-form label{color:var(--ux-ink);font-weight:600}
html:root body input[type=checkbox],html:root body input[type=radio]{accent-color:var(--ux-primary)}

/* ---------- Botões ---------- */
html:root body .primary,html:root body button.primary,html:root body a.primary,html:root body .login-action,html:root body .register-form .primary,html:root body .tool-more{background:var(--ux-action)!important;color:#fff!important;border:1px solid var(--ux-primary)!important;border-radius:10px;box-shadow:0 2px 6px #1d5fd133;font-weight:600;filter:none}
html:root body .primary:hover,html:root body .login-action:hover{background:var(--ux-action-hover)!important}
html:root body .secondary,html:root body button.secondary,html:root body a.secondary,html:root body .clear-button,html:root body .login-secondary,html:root body .workspace button:not(.primary):not(.text-button){background:var(--ux-panel)!important;color:var(--ux-ink)!important;border:1px solid var(--ux-line-strong)!important;border-radius:10px;box-shadow:none}
html:root body .secondary:hover,html:root body .clear-button:hover,html:root body .workspace button:not(.primary):not(.text-button):hover{background:var(--ux-hover)!important;border-color:var(--ux-line-strong)!important}
html:root body .text-button{color:var(--ux-primary)!important;background:none!important}
html:root body .workspace button[aria-pressed=true],html:root body .workspace button[aria-selected=true],html:root body .workspace [role=tab][aria-selected=true]{background:var(--ux-action)!important;color:#fff!important;border-color:var(--ux-primary)!important}

/* ---------- Listas de ferramentas e calculadoras ---------- */
html:root body .calc-choice{background:var(--ux-panel)!important;border:1px solid var(--ux-line)!important;border-radius:var(--ux-radius);box-shadow:var(--ux-shadow);color:var(--ux-text);transition:border-color .15s,box-shadow .15s,transform .15s}
html:root body .calc-choice:hover{border-color:var(--ux-warn-line)!important;box-shadow:0 8px 22px rgba(29,95,209,.12);transform:translateY(-1px)}
html:root body .calc-choice h2{color:var(--ux-ink)}
html:root body .calc-tag,html:root body .tool-kind{color:var(--ux-primary);background:var(--ux-primary-soft);border:0;border-radius:999px;padding:3px 10px;display:inline-block}
html:root body .calc-arrow{color:var(--ux-primary)}
html:root body .workspace table{background:var(--ux-panel);border-collapse:collapse}
html:root body .workspace th{background:var(--ux-hover);color:var(--ux-ink)}
html:root body .workspace td,html:root body .workspace th{border-color:var(--ux-line)!important}
html:root body .workspace [class*=alert],html:root body .workspace [class*=warning],html:root body .workspace .sca-risk{background:var(--ux-warn-bg)!important;border:1px solid var(--ux-warn-line)!important;color:var(--ux-warn-text)!important;border-radius:12px}
html:root body .workspace [class*=alert] *,html:root body .workspace [class*=warning] *,html:root body .workspace .sca-risk *{color:var(--ux-warn-text)!important}
html:root body .workspace [class*=result],html:root body .workspace output{color:var(--ux-ink)}

/* ---------- Login e cadastro ---------- */
html:root body .login-page .card{background:var(--ux-panel)!important;border:1px solid var(--ux-line)!important;border-radius:18px;box-shadow:0 10px 30px rgba(16,32,64,.08)}
html:root body .login-page,html:root body .login-page p,html:root body .login-page label,html:root body .login-page li{color:var(--ux-text)}
html:root body .login-page h1,html:root body .login-page h2,html:root body .login-form-title{color:var(--ux-ink)}
html:root body .auth-wordmark .brand-anami{color:var(--ux-ink)}html:root body .auth-wordmark .brand-med{color:var(--ux-primary)}
html:root body .auth-tabs{background:var(--ux-hover);border:0!important;border-radius:12px;padding:4px}
html:root body .auth-tabs a{background:transparent!important;border:0!important;color:var(--ux-muted)!important;border-radius:9px}
html:root body .auth-tabs a[aria-current]{background:var(--ux-panel)!important;color:var(--ux-ink)!important;box-shadow:0 1px 3px rgba(16,32,64,.12)}
html:root body .login-lock{color:var(--ux-primary);background:var(--ux-primary-soft);border:0}
html:root body .login-note,html:root body .auth-security-note{color:var(--ux-muted)}
html:root body .forgot-link,html:root body .login-page a:not(.primary):not(.login-action){color:var(--ux-primary)}
html:root body .form-error{background:var(--ux-error-bg);color:var(--ux-error-text);border:1px solid var(--ux-error-line);border-radius:10px}
html:root body .plan-choice,html:root body .register-form label.plan-choice{background:var(--ux-panel)!important;border:1px solid var(--ux-line-strong)!important;color:var(--ux-text)}
html:root body .register-form label.plan-choice:has(input:checked){border-color:var(--ux-primary)!important;box-shadow:0 0 0 3px #1d5fd122}
html:root body .plan-price{color:var(--ux-ink)}
html:root body .guest-layout .auth-art{display:none}
html:root body .guest-layout details.account-action,html:root body .account-layout details.account-action{border:1px solid var(--ux-line-strong);background:var(--ux-panel)!important;border-radius:12px}
html:root body details.account-action>summary{color:var(--ux-ink)!important;padding:12px 16px;cursor:pointer;font-weight:600}
html:root body .account-layout .login-page details{margin:12px 0;text-align:left;border-radius:12px}
html:root body .account-layout .login-page details>summary{padding:12px 16px;cursor:pointer;font-weight:600;color:var(--ux-ink)}
html:root body .usage-notice{background:var(--ux-soft)!important;border:1px solid var(--ux-line)!important;border-radius:12px}
html:root body .skip-content{background:var(--ux-action)!important;color:#fff!important}

/* ---------- Visitante (login, cadastro, recuperação): marca centralizada ---------- */
html:root body[data-authenticated="false"] .topbar{position:static;width:100%;height:84px;justify-content:center;border-right:0;border-bottom:1px solid var(--ux-line)}
html:root body[data-authenticated="false"] .topbar .brand{font-size:30px}
html:root body .guest-layout{display:block}
html:root body .guest-layout .login-page{max-width:480px;margin:0 auto;padding:36px 16px 56px}
html:root body .login-page .card{padding:32px 30px;text-align:left}
html:root body .login-page .auth-identity{height:auto!important;margin:0 0 6px;text-align:center}
html:root body .login-page .auth-art{display:none!important}
html:root body .login-page .login-lock{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600}
html:root body .login-page h1{text-align:center;font-size:22px;margin:10px 0 18px}
html:root body .login-page .login-form-title{display:none}
html:root body .login-page .register-form{text-align:left}
html:root body .login-page .register-form input:not([type=radio]):not([type=checkbox]){width:100%;min-height:48px;padding:0 14px}
html:root body .login-page .register-form>label:not(.plan-choice):not(.usage-check):not(.billing-consent){display:block;margin:14px 0 6px;font-size:14px}
html:root body .login-page .register-form legend,html:root body .login-page .plan-legend,html:root body .login-page .register-form h3{color:var(--ux-ink)!important}
html:root body .login-page .forgot-link,html:root body .login-page .signup-prompt{display:block;text-align:center}
html:root body .login-page .account-actions{text-align:center}
html:root body .login-page .primary,html:root body .login-page .login-action{width:100%;min-height:48px;margin-top:18px;font-size:15px}
html:root body .login-page hr,html:root body .login-page .signup-prompt{border-color:var(--ux-line)!important}
html:root body .login-page .auth-tabs{display:flex;margin-bottom:6px}
html:root body .login-page .auth-tabs a{flex:1;text-align:center;padding:10px 0;font-weight:600;text-decoration:none}

/* ---------- Celular: barra superior + navegação inferior ---------- */
@media (max-width:760px){
 html:root body .topbar{position:sticky;width:100%;height:64px;padding:0 16px;border-right:0;border-bottom:1px solid var(--ux-line)}
 html:root body .topbar .brand{font-size:24px}html:root body .topbar .brand-logo,html:root body .topbar .brand-logo svg,html:root body .topbar .brand-logo .am-logo{flex-basis:36px;width:36px;height:36px}
 html:root body .shell,html:root body .account-layout{display:block;min-height:0}
 html:root body .sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:50;height:auto;flex-direction:row;gap:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));overflow-x:auto;overflow-y:hidden;border:0;border-top:1px solid var(--ux-line);box-shadow:0 -4px 16px rgba(16,32,64,.06);scrollbar-width:none}
 html:root body .sidebar::-webkit-scrollbar{display:none}
 html:root body .sidebar a{flex:0 0 76px;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:56px;padding:6px 2px;font-size:10.5px;line-height:1.2;text-align:center;border-radius:10px}
 html:root body .sidebar a svg{width:22px;height:22px}
 html:root body .sidebar a span{overflow-wrap:normal;white-space:normal}
 html:root body .sidebar a[href="/minha-conta"]{margin-top:0;border-top:0;padding-top:6px;border-radius:10px}
 html:root body .workspace{padding:20px 16px 104px}
 html:root body .account-layout .login-page{padding:20px 16px 104px}
 html:root body .page-heading h1,html:root body .workspace h1{font-size:23px}
}

/* ---------- Planos no cadastro ---------- */
html:root body .plan-choice .plan-name{color:var(--ux-primary)!important;font-weight:700;text-transform:none}
html:root body .plan-choice .plan-period,html:root body .plan-choice .plan-equivalent,html:root body .plan-explainer{color:var(--ux-muted)!important}
html:root body .plan-choice .plan-features{color:var(--ux-text)!important}
html:root body .plan-choice .plan-saving{color:var(--ux-success)!important}
html:root body .register-form input[type=radio],html:root body .register-form input[type=checkbox]{accent-color:var(--ux-primary)!important}

/* ---------- Componentes legados (protocolos, prescrição, interações, dicionário, vacinação, fontes, artigos) ---------- */
html:root body :is(.sca-choice,.protocol-link,.ab-card,.ab-treatment,.ab-management-step,.ab-second,.hf-drug,.calc-result,.vaccination-item,.interaction-review,.interaction-footer,.interaction-suggestions,.interaction-alert,.source-card,.article-result,.pwa-dialog,.sca-check,.ab-intro,.ab-coverage,.ab-scope,.ab-source-section,.calc-details,.dict-meaning,.dict-reference){background:var(--ux-panel)!important;border:1px solid var(--ux-line)!important;color:var(--ux-text)!important;box-shadow:none;border-radius:12px}
html:root body :is(.sca-choice,.protocol-link,.calc-choice,.source-card,.article-result):hover{border-color:var(--ux-warn-line)!important;background:var(--ux-panel)!important}
html:root body :is(.sca-choice strong,.protocol-link h3,.ab-card h2,.ab-agent h4,.ab-management-drug h4,.vaccination-item h4,.calc-details strong,.ab-card strong,.soap-topic strong,.account-row strong,.article-result h2 a,.protocols-empty h3){color:var(--ux-ink)!important}
html:root body :is(.sca-choice span,.ab-card p,.ab-context,.ab-drug,.ab-treatment-note,.ab-intro p,.ab-coverage,.ab-scope,.ab-search-footer p,.calc-choice p,.calc-details p,.calc-helper,.calc-source,.clinical-space,.dict-alias,.dict-ambiguity,.dict-category,.dict-count,.dict-empty,.dict-help,.dict-meaning,.dict-reference,.empty,.hf-drug p,.hf-list,.interaction-entry #interactionHelp,.interaction-footer small,.interaction-review,.interaction-source,.interaction-suggestion,.protocol-search p,.result-caption,.sca-context,.sca-list,.sca-reference,.sca-summary,.soap-topic,.source-status,.tool-search #toolCount,.usage-notice p,.vaccination-details p,.vaccination-item p,.vaccination-note,.workspace-label,.account-row span,.ab-search-help,.ab-support-label,.ab-step-sources>summary,.source-card summary,.ab-management-step>summary,.ab-intro>summary,.session){color:var(--ux-text)!important}
html:root body :is(.calc-helper,.calc-source,.dict-help,.dict-count,.vaccination-note,.sca-context,.result-caption,.interaction-entry #interactionHelp,.interaction-footer small,.tool-search #toolCount,.ab-search-help){color:var(--ux-muted)!important}
html:root body :is(.calc-source a,.dict-reference a,.interaction-source a,.interaction-footer a,.source-actions a,.source-card li a,.sca-urgent-link,.article-workspace .source-chip){color:var(--ux-primary)!important}
html:root body :is(.sca-steps a,.sca-actions a,.protocol-search button,.protocol-clear,.ab-management-tools a,.ab-protocol-link,.dict-copy,.source-actions a){background:var(--ux-panel)!important;color:var(--ux-ink)!important;border:1px solid var(--ux-line-strong)!important;border-radius:999px!important;box-shadow:none!important}
html:root body :is(.sca-steps a[aria-current],.sca-step.current){background:var(--ux-action)!important;color:#fff!important;border-color:var(--ux-primary)!important}
html:root body :is(#edit,a.secondary[href="/"],.sca-actions #procedureBack){background:var(--ux-action)!important;color:#fff!important;border-color:var(--ux-primary)!important}
html:root body .interaction-badge{background:var(--ux-primary-soft)!important;color:var(--ux-primary)!important;border:0!important}
html:root body .interaction-alert[data-category=evitar] .interaction-badge{background:var(--ux-error-bg)!important;color:var(--ux-error-text)!important}
html:root body .interaction-alert[data-category=ajustar_monitorar] .interaction-badge{background:var(--ux-primary-soft)!important;color:var(--ux-warn-text)!important}
html:root body :is(.calc-error,.form-error){color:var(--ux-error-text)!important}
html:root body .password-toggle{color:var(--ux-muted)!important;background:transparent!important;border:0!important}
html:root body .soap-conflict{color:var(--ux-warn-text)!important}
html:root body .workspace select option{background:var(--ux-panel);color:var(--ux-ink)}
html:root body .workspace .secondary{border-radius:10px!important}
html:root body :is(.calc-tag,.dict-category){border:0!important}
html:root body .calc-back{background:var(--ux-panel)!important;color:var(--ux-ink)!important;border:1px solid var(--ux-line-strong)!important;border-radius:999px!important;box-shadow:none!important;min-height:38px;padding:7px 14px;font-size:13px}
html:root body .calc-back:hover{border-color:var(--ux-line-strong)!important;background:var(--ux-hover)!important}
html:root body :is(#clear,#clearResult){background:transparent!important;color:var(--ux-primary)!important;border:0!important;box-shadow:none!important}
html:root body :is(.sca-actions a[href="/protocolos"],.sca-actions a[href^="/protocolos/"],.sca-actions a[href="/prescricao"]){background:var(--ux-panel)!important;color:var(--ux-ink)!important;border:1px solid var(--ux-line-strong)!important}
html:root body .article-workspace .article-open{border-color:var(--ux-line-strong)!important;color:var(--ux-primary)!important}
html:root body .article-filter-options summary{color:var(--ux-primary)!important}
html:root body .plan-price{color:var(--ux-ink)!important}
html:root body .register-form label.plan-choice:has(input:checked){border:2px solid var(--ux-primary)!important;background:var(--ux-soft)!important}
html:root body .plan-setup{border-color:var(--ux-line-strong)!important}
html:root body .ab-second{border-color:var(--ux-line-strong)!important;background:var(--ux-soft)!important}
html:root body .guest-layout .signup-prompt a{color:var(--ux-primary)!important}
html:root body .guest-layout details.account-action>summary::after{color:var(--ux-primary)!important}

/* ---------- Ajustes dos testes de usabilidade (contraste AA) ---------- */
html:root body .field-code{color:var(--ux-primary)!important}
html:root body :is(.sca-step,.sca-steps a){color:var(--ux-text)!important;opacity:1!important}
html:root body .usage-notice summary,html:root body .usage-notice strong,html:root body .usage-notice p{color:var(--ux-text)!important}
html:root body .usage-notice summary{color:var(--ux-primary)!important;font-weight:600}

/* ---------- Marca no login ---------- */
html:root body .login-page .auth-mark{display:flex;justify-content:center;margin:0 0 6px}
html:root body .login-page .auth-mark svg,html:root body .login-page .auth-mark .am-logo{width:72px;height:72px;object-fit:contain;border-radius:16px}
html:root body .login-page .auth-wordmark{font-size:36px;font-weight:750;letter-spacing:-1px}
html:root body .login-page .auth-identity{display:flex!important;flex-direction:column;align-items:center;gap:6px}
html:root body .login-page a.forgot-link{background:transparent!important;color:var(--ux-primary)!important;border:0!important;box-shadow:none!important;min-height:44px;display:flex;align-items:center;justify-content:center;font-weight:600}
html:root body .login-page a.forgot-link:hover{text-decoration:underline}
html:root body[data-authenticated] .workspace :is(span.sca-step.current,.sca-steps a[aria-current]){background:var(--ux-action)!important;color:#fff!important;border-color:var(--ux-primary)!important}

/* ---------- Visitante em computador: identidade lateral + formulário, em vez do cartão único do celular ---------- */
@media(min-width:840px){
 html:root body .guest-layout .login-page{max-width:920px;padding:48px 28px 64px}
 html:root body .guest-layout .login-page .card{position:relative;padding:0;overflow:hidden}
 html:root body .guest-layout .login-page .auth-identity{position:absolute;left:0;top:0;bottom:0;width:280px;margin:0;padding:40px 30px;background:var(--ux-primary-soft);display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;text-align:left}
 html:root body .guest-layout .login-page .auth-mark{justify-content:flex-start}
 html:root body .guest-layout .login-page .auth-wordmark{font-size:27px}
 html:root body .guest-layout .login-page .card>*:not(.auth-identity){margin-left:280px;padding:0 40px}
 html:root body .guest-layout .login-page .card>h1{margin-top:40px}
 html:root body .guest-layout .login-page .card>*:not(.auth-identity):last-child{margin-bottom:40px}
 html:root body .guest-layout .login-page .forgot-link,html:root body .guest-layout .login-page .signup-prompt{text-align:left}
 html:root body .guest-layout .login-page .register-form .plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Indicação de recursos incluídos nos planos pagos para contas Free. */
html:root body .sidebar a.nav-premium{color:var(--ux-muted)}
html:root body .sidebar a.nav-premium:hover{background:var(--ux-hover)!important;color:var(--ux-primary)}
html:root body .sidebar .nav-plan-badge{flex:0 0 auto;margin-left:auto;padding:3px 7px;border:1px solid #d8e3f7;border-radius:999px;background:#f5f8fe;color:#315da8;font-size:10px;font-weight:700;line-height:1.25;white-space:nowrap}

/* Configurações da conta: seções em coluna e formulários com largura própria. */
html:root body .account-layout:has(.account-action) .login-page{width:100%;max-width:820px;padding:36px 32px 104px}
html:root body .account-layout:has(.account-action) .login-page>.card{padding:0;background:transparent!important;border:0!important;box-shadow:none;text-align:left}
html:root body .account-layout:has(.account-action) :is(.auth-identity,.login-lock){display:none!important}
html:root body .account-layout:has(.account-action) .login-page h1{margin:0 0 12px;text-align:left;font-size:28px;font-weight:700;letter-spacing:-.6px}
html:root body .account-layout:has(.account-action) .account-name{margin:0 0 4px;font-size:17px;font-weight:600;color:var(--ux-ink)}
html:root body .account-layout:has(.account-action) .login-email{margin:0 0 24px;overflow-wrap:anywhere;color:var(--ux-muted);font-size:14px}
html:root body .account-layout:has(.account-action) .account-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;width:100%;text-align:left}
html:root body .account-layout:has(.account-action) .account-actions>.login-action{width:100%;min-height:48px;margin:0;border-radius:12px!important}
html:root body .account-layout:has(.account-action) details.account-action{min-width:0;margin:0;overflow:hidden;background:var(--ux-panel)!important;border:1px solid var(--ux-line)!important;border-radius:14px}
html:root body .account-layout:has(.account-action) details.account-action>summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:18px 20px;list-style:none;font-size:15px}
html:root body .account-layout:has(.account-action) details.account-action>summary::-webkit-details-marker{display:none}
html:root body .account-layout:has(.account-action) details.account-action>summary::after{content:'+';margin-left:auto;font-size:20px;line-height:1;color:var(--ux-muted)}
html:root body .account-layout:has(.account-action) details.account-action[open]>summary{border-bottom:1px solid var(--ux-line)}
html:root body .account-layout:has(.account-action) details.account-action[open]>summary::after{content:'−'}
html:root body .account-layout:has(.account-action) .account-action-panel{padding:20px}
html:root body .account-layout:has(.account-action) .account-action-panel h2{display:none}
html:root body .account-layout:has(.account-action) .account-action-panel .login-note{margin:0 0 20px;font-size:14px!important;color:var(--ux-muted)}
html:root body .account-layout:has(.account-action) .account-action-panel .register-form{display:grid;grid-template-columns:minmax(0,1fr);gap:0;width:100%;min-width:0;max-width:none;margin:0;text-align:left}
html:root body .account-layout:has(.account-action) .account-action-panel .register-form label{display:block;margin:18px 0 8px;font-size:14px}
html:root body .account-layout:has(.account-action) .account-action-panel .register-form label:first-of-type{margin-top:0}
html:root body .account-layout:has(.account-action) .account-action-panel :is(input:not([type=hidden]),select){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:10px 14px!important;border-radius:10px!important;border-image:none;font:inherit;font-size:16px;color-scheme:inherit!important}
html:root body .account-layout:has(.account-action) .account-action-panel button[type=submit]{justify-self:start;width:auto;min-height:44px;margin:20px 0 0;padding:10px 18px}
html:root body .account-layout:has(.account-action) .logout-form{display:flex;justify-content:flex-start;margin-top:24px;padding-top:20px;border-top:1px solid var(--ux-line)}
html:root body .account-layout:has(.account-action) #main-content .logout-form .login-secondary{width:auto;min-height:44px;margin:0;padding:10px 16px;background:transparent!important;color:var(--ux-muted)!important;border:1px solid var(--ux-line-strong)!important;border-radius:10px;box-shadow:none}
@media(max-width:760px){
 html:root body .account-layout:has(.account-action) .login-page{padding:24px 16px 104px}
 html:root body .account-layout:has(.account-action) .login-page h1{font-size:24px}
 html:root body .account-layout:has(.account-action) .account-action-panel{padding:18px 16px}
 html:root body .account-layout:has(.account-action) .account-action-panel button[type=submit]{width:100%}
}


/* Mensagem discreta: aparece APENAS ao hover, foco ou tentativa de clique/toque.
   O controle Free/Plus usa aria-disabled; o servidor segue recusando a API. */
html:root body .workspace .soap-header-actions .soap-mic-entitlement-tip{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  z-index:40;
  width:max-content;
  max-width:min(260px, calc(100vw - 32px));
  padding:10px 12px;
  border-radius:9px;
  border:1px solid var(--ux-line-strong);
  background:var(--ux-panel);
  color:var(--ux-ink);
  box-shadow:0 8px 24px #0003;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
  text-align:left;
  white-space:normal;
  pointer-events:none;
  visibility:hidden;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .12s ease,transform .12s ease,visibility .12s ease;
}
html:root body .workspace .soap-header-actions .soap-mic-locked-wrapper:hover .soap-mic-entitlement-tip,
html:root body .workspace .soap-header-actions .soap-mic-locked-wrapper:focus-within .soap-mic-entitlement-tip,
html:root body .workspace .soap-header-actions .soap-mic-locked-wrapper[data-tip-open="true"] .soap-mic-entitlement-tip{
  visibility:visible;
  opacity:1;
  transform:translateY(0);
}

/* SOAP: Limpar discreto (ação destrutiva não compete com o conteúdo) e aviso com Desfazer. */
html:root body #clear,html:root body #clearResult{background:transparent!important;color:var(--ux-muted)!important;border:1px solid var(--ux-line-strong)!important;box-shadow:none!important;font-weight:500!important}
html:root body #clear:hover,html:root body #clearResult:hover{background:var(--ux-hover)!important;color:var(--ux-ink)!important}
html:root body .clear-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 14px;border-radius:12px;background:var(--ux-primary-soft);color:var(--ux-ink);font-size:15px;font-weight:500}
html:root body .clear-undo-button{min-height:40px;padding:0 16px!important;border-radius:10px!important;background:var(--ux-primary)!important;color:#fff!important;border:0!important;font-weight:700!important;cursor:pointer}

/* Navigation components: shared tokens, no per-screen color overrides. */
html:root body .mobile-bar{display:none}
html:root body .ui-section-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
html:root body .ui-link-button{min-height:44px;padding:8px 12px;border:1px solid var(--ux-line-strong);border-radius:10px;background:var(--ux-panel);color:var(--ux-primary);font:inherit;cursor:pointer}
html:root body .feature-preview,html:root body .clinical-navigation{padding:16px;margin:16px 0;border:1px solid var(--ux-line-strong);border-radius:14px;background:var(--ux-soft);color:var(--ux-text)}
html:root body .feature-preview h3{margin:4px 0;font-size:20px;color:var(--ux-ink)}
html:root body .ui-eyebrow{font-size:12px;font-weight:650;color:var(--ux-primary)}
html:root body .clinical-navigation{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html:root body .clinical-navigation a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--ux-line-strong);border-radius:10px;background:var(--ux-panel);text-decoration:none;color:var(--ux-primary)}
html:root body .sidebar a.nav-locked{cursor:pointer}
html:root body .sidebar .nav-plan-badge{margin-left:auto;white-space:nowrap}
html:root body .sidebar a.nav-locked:hover{color:var(--ux-primary)}
html:root body .home-search,html:root body #recentes{scroll-margin-top:90px}
@media(max-width:760px){
 html:root body .sidebar{display:none}
 html:root body .mobile-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:60;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--ux-line-strong);background:var(--ux-panel);box-shadow:0 -4px 18px #10204012}
 html:root body .mobile-bar>a,html:root body .mobile-more>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;padding:4px 2px;border-radius:10px;color:var(--ux-muted);font-size:11px;font-weight:600;line-height:1.2;text-decoration:none;list-style:none;cursor:pointer}
 html:root body .mobile-more>summary:focus-visible{outline:3px solid var(--ux-primary);outline-offset:2px}
 html:root body .mobile-more>summary::-webkit-details-marker{display:none}
 html:root body .mobile-bar>a[aria-current],html:root body .mobile-more-active>summary,html:root body .mobile-more[open]>summary{color:var(--ux-primary);background:var(--ux-primary-soft)}
 html:root body .mobile-bar svg{width:22px;height:22px;flex-shrink:0}
 html:root body .mobile-more-panel{position:absolute;inset:auto 8px calc(100% + 8px);max-height:min(70dvh,620px);overflow-y:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--ux-line-strong);border-radius:18px;background:var(--ux-panel);box-shadow:0 8px 36px #0003}
 html:root body .mobile-more-panel h2{margin:0;font-size:18px;color:var(--ux-ink)}
 html:root body .mobile-more-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
 html:root body .mobile-more-links a{display:flex;align-items:center;gap:8px;min-height:56px;padding:10px;border:1px solid var(--ux-line);border-radius:10px;color:var(--ux-text);text-decoration:none;font-size:13px;overflow-wrap:anywhere}
 html:root body .mobile-more-links a[aria-current]{background:var(--ux-primary-soft);color:var(--ux-primary)}
 html:root body .mobile-more-links .nav-plan-badge{margin-left:auto}
 html:root body .workspace,html:root body .account-layout .login-page{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
}

/* Escriba por voz: fala crua enquanto grava */
.soap-voice-ao-vivo{margin:8px 0;min-height:1.5em;max-height:7.5em;overflow:auto;font-size:.9rem;color:var(--ux-muted,#5b6b74);white-space:pre-wrap;overflow-wrap:anywhere}
.soap-voice-ao-vivo:empty{display:none}
.soap-voice-criticos label{display:flex;gap:8px;align-items:center;min-height:36px}

/* ---------- Contraste do tema CLARO — aplicação global, sem afetar modo escuro ----------
   As cores legadas de componentes dark-only prevaleciam sobre a paleta do tema.
   Valores de texto / link / placeholder mantêm ao menos 4,5:1 sobre #fff
   e não modificam o significado visual de alertas clínicos. */
html:root[data-theme="light"]{
  --ux-ink:#10213a;
  --ux-text:#24344d;
  --ux-muted:#52627a;
  --ux-placeholder:#53647c;
  --ux-primary:#174fa6;
  --ux-primary-hover:#123d84;
  --ux-action:#1e56b5;
  --ux-action-hover:#17458f;
  --ux-line-strong:#8293ac;
  --ux-focus:#1e56b533;
}
/* Títulos, rótulos e textos auxiliares neutros; não atingir avisos/indicadores
   de gravidade, nem o texto branco de botões primários. */
html:root[data-theme="light"] body .workspace :is(
  .ab-search-heading h2,
  .ab-management h3,
  .ab-management-drug h4,
  .interaction-ranking-help strong,
  .interaction-entry h2,
  .dict-meaning h3,
  .source-card h3,
  .protocols-empty h3
){color:var(--ux-ink)!important}
html:root[data-theme="light"] body .workspace :is(
  .ab-search-row .calc-field label,
  .interactions-page label,
  .protocol-search label,
  .tool-search label,
  .calc-field label,
  .dict-search label,
  .register-form label:not(.plan-choice)
){color:var(--ux-text)!important}
html:root[data-theme="light"] body .workspace :is(
  .ab-search-help-row small,
  .ab-search-footer p,
  .ab-search-help,
  .ab-card .ab-context,
  .ab-treatment-note,
  .ab-support-label,
  .ab-step-sources>summary,
  .interaction-ranking-help,
  .interaction-risk-guide .interaction-risk-note,
  .interaction-entry #interactionHelp,
  .interaction-footer small,
  .dict-help,
  .dict-count,
  .vaccination-note,
  .calc-helper,
  .calc-source,
  .sca-context,
  .article-result .article-meta
){color:var(--ux-muted)!important}
/* Prescrição: correção do texto branco da PR #670 em ambos os viewports. */
html:root[data-theme="light"] body #abSearchPanel .ab-search-heading h2{color:var(--ux-ink)!important}
html:root[data-theme="light"] body #abSearchPanel .ab-search-row .calc-field label{color:var(--ux-text)!important}
html:root[data-theme="light"] body #abSearchPanel :is(#abAutocompleteHelp,#abCount){color:var(--ux-muted)!important}
html:root[data-theme="light"] body #abSearchPanel .ab-search-icon{
  background:var(--ux-primary-soft)!important;
  border-color:var(--ux-line-strong)!important;
  color:var(--ux-primary)!important;
}
html:root[data-theme="light"] body #abSearchPanel :is(#abQuery,#abSpecialty){
  background:var(--ux-panel)!important;
  color:var(--ux-ink)!important;
  border-color:var(--ux-line-strong)!important;
  color-scheme:light!important;
}
html:root[data-theme="light"] body #abSearchPanel #abClear{
  background:var(--ux-panel)!important;
  color:var(--ux-primary)!important;
  border-color:var(--ux-primary)!important;
}
html:root[data-theme="light"] body #abSearchPanel #abClear:hover{
  background:var(--ux-primary-soft)!important;
}
/* Autocomplete da prescrição e das interações: não usar texto branco em
   superfície branca; manter hover, seleção por teclado e foco visíveis. */
html:root[data-theme="light"] body #abSuggestions,
html:root[data-theme="light"] body .interactions-page .interaction-suggestions{
  background:var(--ux-panel)!important;
  border-color:var(--ux-line-strong)!important;
  color:var(--ux-ink)!important;
}
html:root[data-theme="light"] body #abSuggestions .ab-suggestion,
html:root[data-theme="light"] body .interactions-page .interaction-suggestion{
  background:var(--ux-panel)!important;
  color:var(--ux-text)!important;
}
html:root[data-theme="light"] body #abSuggestions .ab-suggestion:is(:hover,:focus-visible,[aria-selected="true"]),
html:root[data-theme="light"] body .interactions-page .interaction-suggestion:is(:hover,:focus-visible,[aria-selected="true"]){
  background:var(--ux-primary-soft)!important;
  color:var(--ux-ink)!important;
  outline-color:var(--ux-primary)!important;
}
html:root[data-theme="light"] body .interactions-page .interaction-ranking-help strong{
  color:var(--ux-ink)!important;
}
/* Campos de todas as abas usam a paleta clara; caixas de seleção e sinais
   semânticos permanecem intactos. */
html:root[data-theme="light"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){
  color-scheme:light!important;
}
html:root[data-theme="light"] body :is(input,textarea)::placeholder{
  color:var(--ux-placeholder)!important;
  opacity:1!important;
}
/* A sinalização de gravidade de interações mantém as próprias cores. */

/* Microfone SOAP · Pro anual: contraste e estado real em temas claro/escuro.
   O botão bloqueado permanece visível (Free/Plus), porém não é interativo. */
html:root body .workspace .soap-header-actions button.soap-mic-button--active{
  background:var(--ux-primary-soft)!important;
  color:var(--ux-primary)!important;
  border:1px solid var(--ux-primary)!important;
  box-shadow:0 0 0 2px var(--ux-focus)!important;
  opacity:1!important;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
html:root body .workspace .soap-header-actions button.soap-mic-button--active:is(:hover,[aria-expanded="true"]){
  background:var(--ux-hover)!important;
  border-color:var(--ux-primary)!important;
  transform:translateY(-1px);
}
html:root body .workspace .soap-header-actions button.soap-mic-button--active:focus-visible{
  outline:3px solid var(--ux-primary)!important;
  outline-offset:3px;
}
html:root body .workspace .soap-header-actions .soap-mic-locked-wrapper{
  position:relative;
  display:inline-flex;
  align-items:center;
  cursor:help;
}
html:root body .workspace .soap-header-actions button.soap-mic-button--locked,
html:root body .workspace .soap-header-actions button.soap-mic-button--locked:hover{
  background:var(--ux-panel)!important;
  color:var(--ux-muted)!important;
  border:1px solid var(--ux-line-strong)!important;
  box-shadow:none!important;
  opacity:.65!important;
  cursor:help;
  transform:none!important;
}


/* M6.03 — SOAP productivity controls, scoped to the existing workspace.
   Use theme tokens; do not override hidden states or clinical severity colors. */
html:root body .workspace :is(#soapNeutralPrompts,#soapProductivityReview,#soapWorkflowLinks){
  box-sizing:border-box;min-width:0;max-width:100%;margin:12px 0;padding:12px 14px;
  border:1px solid var(--ux-line-strong);border-radius:12px;background:var(--ux-panel);color:var(--ux-text);
}
html:root body .workspace :is(#soapNeutralPrompts,#soapProductivityReview,#soapWorkflowLinks)>summary{
  min-height:44px;line-height:1.5;padding:10px 0;cursor:pointer;color:var(--ux-ink);font-weight:650;
}
html:root body .workspace :is(#soapNeutralPrompts,#soapProductivityReview,#soapWorkflowLinks) :is(p,pre){
  overflow-wrap:anywhere;white-space:pre-wrap;color:var(--ux-text);
}
html:root body .workspace #soapPromptKind,html:root body .workspace #soapCopySection{
  box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;padding:8px 12px;font:inherit;
  color-scheme:inherit!important;
}
html:root body .workspace #soapPromptKind{width:100%}
html:root body .workspace #soapProductivityReview label{
  display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 0;
  color:var(--ux-text);line-height:1.5;overflow-wrap:anywhere;
}
html:root body .workspace #soapProductivityReview input[type=checkbox]{
  flex:0 0 20px;width:20px;height:20px;margin:2px 0 0;accent-color:var(--ux-primary);
}
html:root body .workspace :is(.soap-save-actions,#soapWorkflowActions){
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;max-width:100%;
}
html:root body .workspace :is(.soap-save-actions,#soapWorkflowActions)>button{
  min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
html:root body .workspace #soapCopyManual{
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:8px 0;
}
html:root body .workspace :is(#soapPromptPreview,#soapCopyManual,#soapNeutralPrompts,#soapProductivityReview,#soapWorkflowLinks)[hidden]{display:none!important}
@media(max-width:480px){
  html:root body .workspace .soap-save-actions{width:100%}
  html:root body .workspace :is(.soap-save-actions,#soapWorkflowActions)>button{flex:1 1 140px}
  html:root body .workspace #soapCopySection{flex:1 1 140px}
}


/* M6.03 — later SOAP review panels: preserve native controls and theme tokens. */
html:root body .workspace :is(#soapDocumentDraft,#soapPrescriptionLookup,#soapMedicationHandoff){
 box-sizing:border-box;min-width:0;max-width:100%;margin:12px 0;padding:12px 14px;
 border:1px solid var(--ux-line-strong);border-radius:12px;background:var(--ux-panel);color:var(--ux-text);
}
html:root body .workspace :is(#soapDocumentDraft,#soapPrescriptionLookup,#soapMedicationHandoff)>summary{
 min-height:44px;box-sizing:border-box;padding:10px 0;line-height:1.5;cursor:pointer;color:var(--ux-ink);overflow-wrap:anywhere;
}
html:root body .workspace :is(#soapDocumentDraft,#soapPrescriptionLookup,#soapMedicationHandoff) :is(p,label,li,a){
 overflow-wrap:anywhere;min-width:0;max-width:100%;
}
html:root body .workspace :is(#soapDocumentDraft,#soapPrescriptionLookup,#soapMedicationHandoff) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
 box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;font:inherit;
}
html:root body .workspace :is(#soapDocumentDraft,#soapPrescriptionLookup,#soapMedicationHandoff) button{
 box-sizing:border-box;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
html:root body .workspace :is(#soapDocumentDraft,#soapPrescriptionLookup,#soapMedicationHandoff)[hidden]{display:none!important}
@media(max-width:760px){
 html:root body .workspace :is(#soapDocumentDraft,#soapPrescriptionLookup,#soapMedicationHandoff) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 html:root body .workspace .soap-header-actions button.soap-mic-button--active{transition:none;transform:none}
 html:root body .workspace .soap-header-actions button.soap-mic-button--active:is(:hover,[aria-expanded="true"]){transform:none}
}

/* M6.04–06 — responsive layout only; preserve clinical palettes and semantics. */
@media(max-width:760px){
 html:root{scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
 html:root body .mobile-more-panel{
  box-sizing:border-box;
  max-height:min(65vh,620px);
  max-height:min(65dvh,620px);
  padding:12px;overflow-x:hidden;
 }
 html:root body .mobile-more-links a{min-width:0;align-items:flex-start}
 html:root body .mobile-more-links a span{min-width:0;overflow-wrap:anywhere}
 html:root body .mobile-more-panel [data-close-more]{min-height:44px}
}
@media(max-width:380px){
 html:root body .mobile-more-links{grid-template-columns:minmax(0,1fr)}
}
/* Keep inputs native, excluding non-text controls. */
html:root body .workspace :is(.calc-field,.ab-search-row,.protocol-search,.tool-search,.dict-search,.home-search-box){
 min-width:0;max-width:100%;box-sizing:border-box;
}
html:root body .workspace :is(.calc-field,.ab-search-row,.protocol-search,.tool-search,.dict-search,.home-search-box) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),select,textarea){
 min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;
}
html:root body .workspace :is(.calc-field,.ab-search-row,.protocol-search,.tool-search,.dict-search) label{
 overflow-wrap:anywhere;line-height:1.45;
}
@media(max-width:760px){
 html:root body .workspace :is(.calc-field,.ab-search-row,.protocol-search,.tool-search,.dict-search,.home-search-box) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),select,textarea){font-size:16px}
}
/* Natural wrapping for descriptive text; keep native table layout. */
html:root body .workspace :is(.ab-card,.calc-details,.source-card,.article-result,.vaccination-item,.dict-meaning,.dict-reference,.protocol-link){
 min-width:0;max-width:100%;box-sizing:border-box;
}
html:root body .workspace :is(.ab-card,.calc-details,.source-card,.article-result,.vaccination-item,.dict-meaning,.dict-reference,.protocol-link) :is(h2,h3,h4,p,li,a){
 overflow-wrap:anywhere;
}
html:root body .workspace :is(.ab-card,.calc-details,.source-card,.article-result,.vaccination-item,.dict-meaning,.dict-reference) :is(th,td){
 vertical-align:top;
}
