:root{--green:#477F78;--green-dark:#315d58;--ink:#303936;--muted:#68736f;--cream:#F3F0EA;--line:#e4e6e2;--paper:#fff;--bg:#fafbf9;--radius:17px}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #82b8af;outline-offset:2px}button:disabled{cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,2.4vw,35px);letter-spacing:-.04em;margin-bottom:0}h2{font-size:19px;letter-spacing:-.02em}a{color:var(--green-dark)}.demo-topbar{min-height:59px;background:#263e39;color:#fff;padding:10px clamp(14px,2.5vw,32px);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;position:sticky;top:0;z-index:9}.demo-top-brand,.demo-top-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.demo-top-brand{font-size:12px;color:#d7e7e2}.demo-pill{font-size:10px;font-weight:800;letter-spacing:.1em;background:#e4f0ec;color:#244d45;border-radius:20px;padding:8px 10px}.demo-top-actions button{border:1px solid #68877e;background:transparent;color:#f5faf7;font-size:12px;font-weight:700;padding:9px 12px;border-radius:9px}.demo-top-actions button:hover,.demo-top-actions button.is-active{background:#f3f8f6;color:#23443e}.demo-top-actions .demo-top-reset{color:#e2eee7}.demo-layout{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:calc(100vh - 59px)}.demo-sidebar{background:var(--cream);border-right:1px solid #e7e0d6;padding:30px 17px;display:flex;flex-direction:column;gap:28px}.demo-wordmark{display:flex;flex-direction:column;padding:6px 13px}.demo-wordmark strong{color:var(--green-dark);font-size:22px;letter-spacing:-.05em}.demo-wordmark small{color:var(--muted);margin-top:5px;font-size:11px}.demo-sidebar nav{display:grid;gap:7px}.demo-nav-link{display:block;width:100%;text-align:left;border:0;border-radius:11px;padding:13px 15px;background:transparent;color:#425a51;font-size:14px;font-weight:700}.demo-nav-link:hover{background:#e7eae3}.demo-nav-link.is-active{background:var(--green-dark);color:white}.demo-side-note{margin-top:auto;border-top:1px solid #e0d8cb;padding:19px 10px 0;font-size:12px;line-height:1.6;color:#75766f}#demo-main{width:100%;max-width:1200px;margin:auto;align-self:start;padding:clamp(18px,3.4vw,44px);min-width:0}.demo-page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.demo-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--green);text-transform:uppercase;margin-bottom:10px}.demo-hero{border-radius:var(--radius);background:linear-gradient(135deg,#ecf4ef,#f5f1e9);border:1px solid #dfebe4;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.demo-hero h2{font-size:clamp(19px,2vw,27px);margin-bottom:8px}.demo-hero p:last-child{font-size:14px;color:#53655f;margin-bottom:0}.demo-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 22px}.demo-btn{border:1px solid #d2dcd6;border-radius:10px;background:#fff;color:var(--green-dark);font-weight:700;font-size:13px;padding:11px 16px;min-height:42px;white-space:normal;text-align:center}.demo-btn:hover{background:#ecf4ef}.demo-btn.is-primary{background:var(--green);color:white;border-color:var(--green)}.demo-btn.is-primary:hover{background:var(--green-dark)}.demo-btn.is-light{background:#fff;border-color:#d4ddd5}.demo-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 6px 20px rgba(30,70,48,.035);padding:22px;margin:15px 0;min-width:0}.demo-panel h2{margin-bottom:17px}.demo-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.demo-section-head span,.demo-muted{font-size:12px;color:var(--muted);line-height:1.6}.demo-item{display:flex;align-items:center;gap:15px;padding:16px 3px;border-top:1px solid #eff0ee;min-width:0}.demo-item:first-of-type{border-top:0}.demo-time{font-size:13px;font-weight:800;color:var(--green-dark);min-width:47px}.demo-item-body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;flex:1}.demo-item-body strong{font-size:15px;overflow-wrap:anywhere}.demo-item-body small{color:var(--muted);font-size:12px;line-height:1.5}.demo-item-actions{flex-shrink:0}.demo-status{display:inline-block;font-size:10px;font-weight:800;border-radius:25px;padding:5px 9px;background:#eef2ed;color:#5a6d65}.demo-status.is-live{background:#e1f0ed;color:#2d6b63}.demo-status.is-done{background:#eff1ef;color:#69766e}.demo-toolbar{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:0 0 18px}.demo-toolbar p{font-size:13px;color:var(--muted);margin:0}.demo-search-label{font-size:12px;color:var(--muted);flex:1;max-width:370px}.demo-search-label input{display:block;width:100%;margin-top:7px}.demo-avatar{background:#e8f0ec;color:var(--green-dark);border-radius:13px;width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;font-weight:bold}.demo-empty{font-size:13px;color:#75817b;padding:22px 12px;text-align:center}.demo-hint{font-size:12px;color:#7a807b;line-height:1.5;padding:12px}.demo-details{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.demo-details div{display:flex;flex-direction:column;gap:7px}.demo-details dt{font-size:12px;color:var(--muted)}.demo-details dd{font-size:13px;font-weight:bold;margin:0;overflow-wrap:anywhere}.demo-form{max-width:800px}.demo-form h2:not(:first-child){padding-top:10px;margin-top:20px;border-top:1px solid var(--line)}.demo-form h3{font-size:14px;margin-top:22px}.demo-field{display:block;margin:14px 0;font-size:13px;color:#52645d;font-weight:700}.demo-field>span{display:block;margin-bottom:8px}.demo-field input,.demo-field textarea,.demo-field select,.demo-search-label input{border:1px solid #cad9d0;border-radius:10px;background:#fff;color:#26352f;padding:12px;width:100%;min-width:0}.demo-field textarea{resize:vertical;min-height:82px;line-height:1.5}.demo-field input:disabled,.demo-field textarea:disabled{background:#f4f5f2;color:#5d6960}.demo-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.demo-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.demo-checkbox{display:flex;gap:10px;align-items:flex-start;font-weight:600;font-size:13px;margin:18px 0;color:#40564b}.demo-checkbox input{width:18px;height:18px;flex:0 0 18px}.demo-save-status{font-size:12px;color:var(--green-dark);margin:15px 0}.demo-consult-info{border:1px solid #d6e7df;background:#edf5ef;border-radius:13px;padding:14px 16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.demo-consult-info span:first-child{font-weight:bold}.demo-consult-info small{color:var(--muted)}.demo-family-picker{max-width:340px}.demo-shared{padding:13px 2px;border-top:1px solid #edf0ed}.demo-shared strong{display:block;margin-bottom:5px}.demo-shared small{color:var(--muted)}.demo-shared p{font-size:13px;white-space:pre-wrap;line-height:1.6;margin:11px 0 0;overflow-wrap:anywhere}.demo-toast{position:fixed;right:20px;bottom:20px;max-width:min(440px,calc(100vw - 40px));background:#315d58;color:#fff;border-radius:13px;padding:15px 18px;box-shadow:0 15px 45px #1a3a3160;font-size:13px;line-height:1.5;z-index:30}.demo-toast.is-error{background:#823b33}.demo-toast[hidden],[hidden]{display:none!important}@media(max-width:900px){.demo-layout{grid-template-columns:186px minmax(0,1fr)}.demo-sidebar{padding:20px 9px}.demo-wordmark{padding:6px 9px}.demo-wordmark strong{font-size:19px}#demo-main{padding:22px}.demo-hero{padding:20px}}@media(max-width:670px){.demo-topbar{position:static;align-items:stretch;gap:9px}.demo-top-brand{justify-content:center}.demo-top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.demo-top-actions button{font-size:10px;padding:10px 6px;line-height:1.4}.demo-layout{display:block}.demo-sidebar{border-right:0;border-bottom:1px solid #e7e0d6;padding:12px}.demo-wordmark{display:none}.demo-sidebar nav{display:flex;gap:6px}.demo-nav-link{text-align:center;padding:10px 6px;font-size:12px;flex:1}.demo-side-note{display:none}#demo-main{padding:18px 14px}.demo-hero{flex-direction:column;align-items:stretch}.demo-hero .demo-btn{width:100%}.demo-shortcuts{display:grid;grid-template-columns:1fr 1fr}.demo-shortcuts .demo-btn:last-child:nth-child(odd){grid-column:span 2}.demo-item{gap:9px;flex-wrap:wrap}.demo-item-body{flex-basis:calc(100% - 70px)}.demo-item-actions{margin-left:auto}.demo-section-head{align-items:flex-start;flex-wrap:wrap}.demo-panel{padding:17px 14px}.demo-form-grid,.demo-details{grid-template-columns:1fr;gap:0}.demo-toolbar{flex-wrap:wrap}.demo-toolbar .demo-btn{width:100%}.demo-family-picker{max-width:none}.demo-toast{right:10px;bottom:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* v0.93.0 — login demonstrativo, sem coleta de senha ou envio de e-mails. */
#stef-demo-runtime.is-demo-access .demo-sidebar{display:none}#stef-demo-runtime.is-demo-access .demo-layout{display:block;min-height:calc(100vh - 59px)}#stef-demo-runtime.is-demo-access #demo-main{max-width:1140px;margin:auto}.demo-access-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid #dce6df;border-radius:19px;overflow:hidden;background:white;min-height:490px}.demo-access-brand{padding:clamp(28px,4vw,55px);background:#315d58;color:white;display:flex;flex-direction:column;justify-content:center}.demo-access-brand .demo-eyebrow{color:#d6e6df}.demo-access-brand h1{font-size:clamp(28px,3vw,40px);color:white}.demo-access-brand p{font-size:14px;line-height:1.7;color:#e5eee9;margin-top:17px}.demo-access-box{padding:clamp(27px,4vw,50px);display:flex;flex-direction:column;justify-content:center;gap:12px}.demo-access-box h2{font-size:clamp(22px,2.4vw,30px);margin:0}.demo-access-box>p{font-size:13px;line-height:1.7;color:#68736f}.demo-access-choices{display:grid;gap:10px;margin-top:10px}.demo-access-choices .demo-btn{text-align:left}.demo-access-recovery{margin-top:22px;border-top:1px solid #e6eee8;padding-top:16px}.demo-access-recovery .demo-btn{width:100%}@media(max-width:700px){.demo-access-page{grid-template-columns:1fr}.demo-access-brand{padding:28px}.demo-access-brand h1{font-size:26px}.demo-access-box{padding:28px}}@media(max-width:670px){.demo-top-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.97.0: prontuário da demo com hierarquia clínica mais clara */
.demo-form h2:not(:first-child){color:#315d58;letter-spacing:-.025em;padding-top:18px}.demo-consult-info{position:relative}.demo-consult-info::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#477f78;border-radius:8px 0 0 8px}.demo-save-status{display:inline-block;background:#edf6f0;border:1px solid #d7e8dc;border-radius:10px;padding:10px 14px}.demo-field textarea:focus-visible{outline:2px solid #477f78;outline-offset:1px}

/* v0.98.0 Portal do Responsável demonstrativo */
.demo-portal-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.demo-portal-controls .demo-field{max-width:none}
.demo-portal-welcome{padding:clamp(20px,3vw,35px);background:linear-gradient(125deg,#e7f0e9,#f6f0e8);border:1px solid #d6e5da;border-radius:19px;display:flex;gap:20px;align-items:center;justify-content:space-between}.demo-portal-welcome h2{font-size:clamp(22px,3vw,32px);margin:7px 0}.demo-portal-welcome p:last-child{font-size:14px;color:#53655f}
.demo-portal-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.demo-portal-highlights article{display:grid;gap:9px;padding:19px;background:white;border:1px solid #e0e7df;border-radius:15px;min-width:0}.demo-portal-highlights span{font-size:11px;color:#596d61}.demo-portal-highlights strong{font-size:18px;color:#315d58;overflow-wrap:anywhere}.demo-portal-highlights small{font-size:12px;color:#687870}.demo-portal-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.demo-portal-privacy{font-size:12px;color:#677b72;line-height:1.5;padding:10px 2px}
@media(max-width:670px){.demo-portal-controls,.demo-portal-highlights{grid-template-columns:1fr}.demo-portal-welcome{display:block}.demo-portal-welcome button{width:100%;margin-top:12px}.demo-portal-highlights article{padding:15px}.demo-portal-shortcuts{display:grid;grid-template-columns:1fr 1fr}.demo-portal-shortcuts button:last-child:nth-child(odd){grid-column:span 2}}
