/* v0.99.16, visual oficial com as funcionalidades do backend clínico real. */
#stef-demo-runtime.stef16-app{min-height:calc(100vh - 50px);background:#faf9f6;color:#303936;font-family:inherit}
#stef-demo-runtime.stef16-app *{box-sizing:border-box}
#stef-demo-runtime.stef16-app a{text-decoration:none}
#stef-demo-runtime.stef16-app .demo-topbar{position:relative;z-index:2}
#stef-demo-runtime.stef16-app .stef-real-pill{background:#315d58;color:#fff;border-radius:999px;padding:6px 11px;font-size:10px;letter-spacing:.09em}
#stef-demo-runtime.stef16-app .stef16-toplinks a{font-size:13px;color:#315d58;font-weight:700;text-decoration:underline;text-underline-offset:3px}
#stef-demo-runtime.stef16-app .demo-wordmark{display:flex;align-items:center;gap:12px}
#stef-demo-runtime.stef16-app .stef-brand-symbol{width:39px;height:39px;flex-shrink:0;color:#315d58}
#stef-demo-runtime.stef16-app .stef-wordmark-text{display:flex;flex-direction:column}
#stef-demo-runtime.stef16-app .stef-wordmark-text strong{font-size:19px;color:#315d58}
#stef-demo-runtime.stef16-app .stef-wordmark-text small{font-size:11px;color:#667a6b}
#stef-demo-runtime.stef16-app .demo-nav-link{display:block}
#stef-demo-runtime.stef16-app .demo-nav-link.active{background:#e4eee7;color:#315d58;font-weight:800}
#stef-demo-runtime.stef16-app .demo-side-note{font-size:11px;color:#77867e;padding:16px 12px;line-height:1.55}
#stef-demo-runtime.stef16-app .demo-page-head{margin:0 0 14px}
#stef-demo-runtime.stef16-app .demo-btn{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;max-width:100%}
#stef-demo-runtime.stef16-app .demo-btn.is-primary{color:#fff;background:#315d58;border-color:#315d58}
#stef-demo-runtime.stef16-app .demo-btn.is-primary:hover{background:#294f4a}
#stef-demo-runtime.stef16-app .demo-item-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#stef-demo-runtime.stef16-app .demo-item-actions form{margin:0}
#stef-demo-runtime.stef16-app .stef16-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
#stef-demo-runtime.stef16-app .stef16-metrics article{background:#fff;border:1px solid #e1e8e1;border-radius:15px;padding:20px;display:grid;gap:9px}
#stef-demo-runtime.stef16-app .stef16-metrics span{color:#65796e;font-size:12px}
#stef-demo-runtime.stef16-app .stef16-metrics strong{font-size:30px;color:#315d58}
#stef-demo-runtime.stef16-app .stef16-warning{background:#fff8ec;border-color:#edcca2}
#stef-demo-runtime.stef16-app .stef16-muted,#stef-demo-runtime.stef16-app .stef16-footnote{color:#667b70;font-size:12px;line-height:1.7}
#stef-demo-runtime.stef16-app .stef16-footnote{margin-top:32px}
#stef-demo-runtime.stef16-app .stef16-notice{padding:12px 0;border-bottom:1px solid #e9ede9}
#stef-demo-runtime.stef16-app .stef16-notice strong,#stef-demo-runtime.stef16-app .stef16-notice small{display:block}
#stef-demo-runtime.stef16-app .stef16-notice small{color:#66776d;font-size:12px;margin-top:5px}
#stef-demo-runtime.stef16-app .stef16-calendar-head{display:flex;gap:15px;justify-content:center;align-items:center;margin:18px 0}
#stef-demo-runtime.stef16-app .stef16-calendar-head h2{font-size:20px;min-width:180px;text-align:center;margin:0}
#stef-demo-runtime.stef16-app .stef16-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
#stef-demo-runtime.stef16-app .stef16-cal-week{text-align:center;font-size:11px;font-weight:700;color:#6c7b72;padding:8px}
#stef-demo-runtime.stef16-app .stef16-cal-day{display:flex;flex-direction:column;gap:9px;min-height:80px;background:#f7faf8;border:1px solid #e7ebe6;border-radius:9px;padding:9px;color:#385e4f;font-weight:700;transition:background .15s}
#stef-demo-runtime.stef16-app .stef16-cal-day small{display:inline-block;color:#3f7563;font-size:10px;font-weight:700;overflow-wrap:anywhere}
#stef-demo-runtime.stef16-app .stef16-cal-day:hover{background:#e8f1ea}
#stef-demo-runtime.stef16-app .stef16-cal-day.is-today{border-color:#75a08c}
#stef-demo-runtime.stef16-app .stef16-cal-day.is-selected{background:#315d58;color:#fff}
#stef-demo-runtime.stef16-app .stef16-cal-day.is-selected small{color:#e0efe6}
#stef-demo-runtime.stef16-app .stef16-switch{display:flex;gap:6px}
#stef-demo-runtime.stef16-app .stef16-date-select{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0}
#stef-demo-runtime.stef16-app .stef16-date-select .demo-field{margin:0}
#stef-demo-runtime.stef16-app .stef16-hours-row{display:grid;grid-template-columns:1.3fr repeat(4,1fr);gap:12px;padding:15px 0;border-bottom:1px solid #e6ece8;align-items:end}
#stef-demo-runtime.stef16-app .stef16-hours-row label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650}
#stef-demo-runtime.stef16-app .stef16-hours-row label:first-child{display:flex;flex-direction:row;align-items:center}
#stef-demo-runtime.stef16-app .stef16-hours-row input[type=time]{width:100%;min-width:0;padding:8px;border:1px solid #cad9d0;border-radius:8px;background:white}
#stef-demo-runtime.stef16-app .stef16-hours-row input[type=checkbox]{accent-color:#315d58;width:17px;height:17px}
#stef-demo-runtime.stef16-app .stef16-hours-row+button{margin-top:18px}
#stef-demo-runtime.stef16-app .stef16-back{display:inline-block;color:#315d58;font-size:13px;font-weight:700;margin-bottom:12px}
#stef-demo-runtime.stef16-app .stef16-patient-head{display:flex;align-items:center;gap:16px}
#stef-demo-runtime.stef16-app .stef16-patient-head>div{flex:1}
#stef-demo-runtime.stef16-app .stef16-patient-head h2{margin:0 0 5px}
#stef-demo-runtime.stef16-app .stef16-patient-head p{font-size:12px;color:#6c7a70;margin:0}
#stef-demo-runtime.stef16-app .stef16-tabs{display:flex;gap:7px;overflow-x:auto;padding:4px 0 11px}
#stef-demo-runtime.stef16-app .stef16-tab{white-space:nowrap;color:#557368;border-radius:9px;padding:10px 13px;font-size:12px;font-weight:700;background:#f1f5f1;border:1px solid #e3eae4}
#stef-demo-runtime.stef16-app .stef16-tab.active{background:#315d58;color:#fff}
#stef-demo-runtime.stef16-app .stef16-table-wrap{width:100%;overflow-x:auto}
#stef-demo-runtime.stef16-app .stef16-table{width:100%;border-collapse:collapse;min-width:500px}
#stef-demo-runtime.stef16-app .stef16-table th,#stef-demo-runtime.stef16-app .stef16-table td{padding:12px;border-bottom:1px solid #e2e9e4;text-align:left;font-size:13px}
#stef-demo-runtime.stef16-app .stef16-table th{background:#f3f7f4;color:#48685b}
#stef-demo-runtime.stef16-app .stef16-alert{border-radius:10px;background:#fff4ed;border:1px solid #f2ccbb;padding:12px 15px;font-size:13px;line-height:1.5}
#stef-demo-runtime.stef16-app .stef16-ok,#stef-demo-runtime.stef16-app .stef16-feedback{border-radius:10px;background:#eaf4ed;border:1px solid #cfe4d4;padding:12px 15px;font-size:13px;line-height:1.5;margin:12px 0}
#stef-demo-runtime.stef16-app .stef16-danger{background:#8d4538;color:white;border-color:#8d4538}
#stef-demo-runtime.stef16-app .stef16-clean summary{cursor:pointer;font-size:13px;font-weight:750;color:#315d58}
#stef-demo-runtime.stef16-app .stef16-clean p{font-size:13px;line-height:1.6}
#stef-demo-runtime.stef16-app [hidden]{display:none!important}
#stef-demo-runtime.stef16-app .demo-field input,#stef-demo-runtime.stef16-app .demo-field textarea,#stef-demo-runtime.stef16-app .demo-field select{max-width:100%}
@media(max-width:1100px){#stef-demo-runtime.stef16-app .stef16-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#stef-demo-runtime.stef16-app .stef16-hours-row{grid-template-columns:repeat(2,minmax(0,1fr))}#stef-demo-runtime.stef16-app .stef16-hours-row label:first-child{grid-column:1/-1}}
@media(max-width:670px){#stef-demo-runtime.stef16-app .stef16-cal-day{min-height:50px;padding:5px;font-size:12px;gap:3px}#stef-demo-runtime.stef16-app .stef16-cal-day small{font-size:9px}#stef-demo-runtime.stef16-app .stef16-calendar{gap:3px}#stef-demo-runtime.stef16-app .stef16-metrics article{padding:13px}#stef-demo-runtime.stef16-app .stef16-metrics strong{font-size:23px}#stef-demo-runtime.stef16-app .stef16-patient-head{flex-wrap:wrap}#stef-demo-runtime.stef16-app .stef16-patient-head .demo-btn{width:100%}#stef-demo-runtime.stef16-app .stef16-hours-row{grid-template-columns:1fr 1fr;gap:7px}#stef-demo-runtime.stef16-app .stef16-cal-week{padding:4px 0;font-size:9px}#stef-demo-runtime.stef16-app .stef16-calendar-head h2{min-width:130px;font-size:16px}}
#stef-demo-runtime.stef16-app .stef16-vaccine{border-top:1px solid #e4eae5;padding:12px 0}
#stef-demo-runtime.stef16-app .stef16-vaccine summary{display:flex;gap:10px;flex-wrap:wrap;align-items:center;cursor:pointer;font-size:13px;color:#344f45}
#stef-demo-runtime.stef16-app .stef16-vaccine summary strong{min-width:120px}
#stef-demo-runtime.stef16-app .stef16-vaccine summary span{flex:1}
#stef-demo-runtime.stef16-app .stef16-vaccine summary small{font-size:11px;color:#61796c;background:#f0f5f2;border-radius:30px;padding:5px 8px}
#stef-demo-runtime.stef16-app .stef16-vaccine-form{margin:15px 0;padding:15px;background:#f7faf7;border-radius:12px}

/* v0.99.25: responsive type, spacing and touch targets on the official and demo shells. */
@media(max-width:720px){
 #stef-demo-runtime .demo-page-head,#stef-demo-runtime .demo-page-head h1,#stef-demo-runtime .demo-page-head p{margin-left:auto!important;margin-right:auto!important;text-align:center!important}
 #stef-demo-runtime .demo-page-head h1{font-size:clamp(25px,7.2vw,34px)!important;line-height:1.15!important}
 #stef-demo-runtime .demo-section-head{flex-wrap:wrap;gap:8px;justify-content:center;text-align:center}
 #stef-demo-runtime .demo-section-head>div{min-width:0}
 #stef-demo-runtime .demo-section-head h2,#stef-demo-runtime .demo-panel>h2{font-size:clamp(17px,4.6vw,23px);line-height:1.25;text-align:center}
 #stef-demo-runtime .demo-section-head p,#stef-demo-runtime .demo-panel>p{text-align:center}
 #stef-demo-runtime .demo-shortcuts{justify-content:center;flex-wrap:wrap}
 #stef-demo-runtime .demo-item{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
 #stef-demo-runtime .demo-item-body{text-align:center;flex:1 1 100%;max-width:100%}
 #stef-demo-runtime .demo-item .demo-btn{min-height:42px;white-space:normal}
 #stef-demo-runtime .demo-item-actions{justify-content:center}
 #stef-demo-runtime .stef21-list .demo-item{gap:10px}
 #stef-demo-runtime .stef21-list .demo-item>a.demo-btn{width:min(100%,210px);margin:0 auto}
 #stef-demo-runtime .stef16-patient-head{justify-content:center;text-align:center;flex-wrap:wrap}
 #stef-demo-runtime .stef16-patient-head>div{flex:1 1 100%;min-width:0}
 #stef-demo-runtime .stef16-patient-head>.demo-btn{margin:0 auto}
 #stef-demo-runtime .stef16-tabs{scrollbar-width:thin;scroll-snap-type:x proximity}
 #stef-demo-runtime .stef16-tabs .stef16-tab{scroll-snap-align:center;min-height:40px}
 #stef-demo-runtime .stef21-metrics article{text-align:center}
 #stef-demo-runtime .stef24-agenda-toolbar{justify-content:center;text-align:center}
 #stef-demo-runtime .stef24-period-switch{justify-content:center;width:100%}
 #stef-demo-runtime .stef24-period-head h2{min-width:0!important;flex:1 1 150px}
 #stef-demo-runtime .stef24-day-title{justify-content:center;text-align:center}
 #stef-demo-runtime .stef24-appointment{justify-content:center;text-align:center}
 #stef-demo-runtime .stef24-appointment-body{text-align:center}
 #stef-demo-runtime .stef24-appointment-actions{justify-content:center}
 #stef-demo-runtime .stef24-appointment-actions>.demo-btn{min-height:42px}
 #stef-demo-runtime input,#stef-demo-runtime select,#stef-demo-runtime textarea{font-size:max(16px,1em)}
 #stef-demo-runtime .stef25-filterbar select,#stef-demo-runtime .stef25-filterbar input{font-size:16px!important}
 #stef-demo-runtime .demo-form label,#stef-demo-runtime .demo-field,#stef-demo-runtime .stef21-form label{text-align:left}
 #stef-demo-runtime .demo-form .demo-btn.is-primary{min-height:44px}
}
@media(max-width:400px){
 #stef-demo-runtime .demo-panel{padding:clamp(12px,4vw,18px)}
 #stef-demo-runtime .stef24-period-head{gap:6px}
 #stef-demo-runtime .stef24-month-day{min-width:0!important}
}

/* v0.99.31 — status inequívoco do cadastro de consultas */
#stef-demo-runtime .stef31-booking-success{border:1px solid #a1c8b0;background:#eaf6ed;color:#24543b;margin-bottom:18px;padding:14px 18px;border-radius:12px}
#stef-demo-runtime .stef31-booking-error{border:1px solid #dfaa9e;background:#fff1ec;color:#913e32;margin-bottom:18px;padding:14px 18px;border-radius:12px}
