.hf-theme-toggle{border:1px solid #34363b;border-radius:9px;padding:10px 12px;background:transparent;color:#fff;white-space:nowrap;cursor:pointer}
.hf-field-help{display:block;margin:-5px 0 13px 28px;color:#70757e;font-size:12px;font-weight:400}
.hf-reschedule-note{padding:13px 15px;border-radius:10px;background:#f0f2f5;color:#555b65}
.hf-builder-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.hf-form-builder article{cursor:grab}.hf-form-builder article.dragging{opacity:.45;border-color:#111}.hf-drag{cursor:grab;user-select:none}.hf-form-preview{position:sticky;top:105px;background:#fff;border:1px solid #e0e2e6;border-radius:16px;padding:24px}.hf-form-preview>small{letter-spacing:.12em;color:#737984}.hf-form-preview h3{margin:7px 0 20px}.hf-form-preview label{margin:12px 0}.hf-form-preview input,.hf-form-preview select,.hf-form-preview textarea{opacity:1;background:#f7f8f9}
.hf-public-services+ .hf-public-services{margin-top:20px}.hf-public-services em{display:block;margin-top:3px;color:#737984;font-size:11px;font-style:normal;font-weight:400}.hf-booking-instructions{margin:28px 0 0;padding:20px;text-align:left;background:#f3f4f6;border-radius:14px}.hf-booking-instructions h2{margin:0 0 9px;font-size:19px}.hf-booking-instructions p{margin:0;line-height:1.6;white-space:normal}
.hf-intern-patients{display:grid;gap:10px}.hf-intern-patients article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px;background:#fff;border:1px solid #e0e2e6;border-radius:13px}.hf-intern-patients article>div{display:flex;gap:7px;flex-wrap:wrap}.hf-intern-patients button{border:1px solid #d9dce1;background:#fff;border-radius:8px;padding:9px 11px;cursor:pointer}
[data-theme="dark"] .hf-form-preview,[data-theme="dark"] .hf-intern-patients article{background:#191b1f;border-color:#30333a}[data-theme="dark"] .hf-form-preview input,[data-theme="dark"] .hf-form-preview select,[data-theme="dark"] .hf-form-preview textarea,[data-theme="dark"] .hf-intern-patients button{background:#22252a;color:#f5f6f7;border-color:#3b3f47}[data-theme="dark"] .hf-reschedule-note,[data-theme="dark"] .hf-booking-instructions{background:#24272c;color:#e7e9ed}
@media(max-width:860px){.hf-theme-toggle{margin-left:auto}.hf-builder-layout{grid-template-columns:1fr}.hf-form-preview{position:static}.hf-intern-patients article{align-items:flex-start;flex-direction:column}.hf-intern-patients article>div{width:100%;display:grid}.hf-agenda-head .hf-theme-toggle{order:2}.hf-agenda-head nav{order:4}}
.hf-intern-restricted .hf-workspace-nav-item[data-workspace-section]:not([data-workspace-section="anthropometry"]):not([data-workspace-section="anthropometry-results"]):not([data-workspace-section="diet"]):not([data-workspace-section="energy"]),.hf-intern-restricted [data-workspace-section="overview"],.hf-intern-restricted .hf-workspace-prescriptions-submenu{display:none!important}.hf-intern-restricted .anthro-history-card button,.hf-intern-restricted .hf-professional-anthropometry-results button.danger{display:none!important}
.hf-required{color:#d32636}.hf-field-actions{align-items:center!important;flex-wrap:wrap}.hf-inline-required{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;font-size:12px!important;font-weight:500!important}.hf-inline-required input{width:16px!important;margin:0}.hf-builder-help{margin:12px 3px;color:#70757e;font-size:12px}.hf-form-preview [data-live-preview]{display:grid;gap:2px}
@media(max-width:640px){.hf-field-actions{grid-column:1/-1}.hf-inline-required{margin-right:auto!important}}
.hf-service-group{margin:0 0 24px}.hf-service-group>header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 2px 12px}.hf-service-group>header small{letter-spacing:.12em;color:#777d86}.hf-service-group>header h3{margin:4px 0 0;font-size:20px}.hf-service-group>header p{margin:0;color:#70757e;font-size:13px}.hf-agenda-actions .confirm{border-color:#8ed7b3;color:#087f47}

/* Modo escuro unificado da Agenda */
[data-theme="dark"] .hf-agenda-overlay{background:#090a0b;color:#fff}
[data-theme="dark"] .hf-agenda-toolbar p,[data-theme="dark"] .hf-service-group>header p,[data-theme="dark"] .hf-builder-help,[data-theme="dark"] .hf-field-help{color:#aeb3bb}
[data-theme="dark"] .hf-agenda-head{background:#050607;border-bottom:1px solid #25282e}
[data-theme="dark"] .hf-agenda-head nav button.active,[data-theme="dark"] .hf-agenda-head nav button:hover{background:#25282e;color:#fff}
[data-theme="dark"] .hf-theme-toggle,[data-theme="dark"] .hf-agenda-exit{background:#0d0f12;color:#fff;border-color:#3a3e46}
[data-theme="dark"] .hf-agenda-page .hf-agenda-item,[data-theme="dark"] .hf-agenda-empty,[data-theme="dark"] .hf-settings-list article,[data-theme="dark"] .hf-public-link,[data-theme="dark"] .hf-public-config,[data-theme="dark"] .hf-week-list>section,[data-theme="dark"] .hf-form-builder article,[data-theme="dark"] .hf-form-preview,[data-theme="dark"] .hf-intern-patients article{background:#111316!important;color:#fff!important;border-color:#32363e!important}
[data-theme="dark"] .hf-agenda-daystrip button{background:#111316!important;color:#c8ccd3!important;border-color:#343841!important}
[data-theme="dark"] .hf-agenda-daystrip button.active{background:#292d33!important;color:#fff!important;border-color:#666d78!important}
[data-theme="dark"] .hf-agenda-daystrip button b,[data-theme="dark"] .hf-agenda-daystrip button.active b{color:#fff!important}
[data-theme="dark"] .hf-agenda-person h3,[data-theme="dark"] .hf-agenda-item time b,[data-theme="dark"] .hf-settings-list b,[data-theme="dark"] .hf-settings-list span,[data-theme="dark"] .hf-week-list b,[data-theme="dark"] .hf-form-builder b,[data-theme="dark"] .hf-service-group h3{color:#fff}
[data-theme="dark"] .hf-agenda-person p,[data-theme="dark"] .hf-settings-list small,[data-theme="dark"] .hf-week-list small,[data-theme="dark"] .hf-week-list>section>div>p,[data-theme="dark"] .hf-form-builder small{color:#b5bac3!important}
[data-theme="dark"] .hf-agenda-person span{background:#292d33!important;color:#f4f5f7!important;border:1px solid #424750}
[data-theme="dark"] .status-confirmed .hf-agenda-person span{background:#123d2a!important;color:#79e2ac!important;border-color:#226b49}
[data-theme="dark"] .status-cancelled .hf-agenda-person span{background:#47171d!important;color:#ff9da7!important;border-color:#7e2934}
[data-theme="dark"] .hf-free-slot .hf-agenda-person span{background:#24282e!important;color:#d5d9df!important;border-color:#41464f}
[data-theme="dark"] .hf-agenda-actions a,[data-theme="dark"] .hf-agenda-actions button,[data-theme="dark"] .hf-settings-list button,[data-theme="dark"] .hf-public-link button,[data-theme="dark"] .hf-week-list button,[data-theme="dark"] .hf-form-builder button,[data-theme="dark"] .hf-intern-patients button,[data-theme="dark"] .hf-agenda-overlay .ghost{background:#15181c!important;color:#fff!important;border-color:#3b4049!important}
[data-theme="dark"] .hf-agenda-actions .confirm{background:#123d2a!important;color:#8ce8b8!important;border-color:#287651!important}
[data-theme="dark"] .hf-agenda-actions .danger,[data-theme="dark"] .hf-settings-list .danger,[data-theme="dark"] .hf-form-builder .danger,[data-theme="dark"] .hf-team-actions .danger,[data-theme="dark"] .hf-week-list article button{color:#ff9da7!important;border-color:#713039!important}
[data-theme="dark"] .hf-agenda-overlay input,[data-theme="dark"] .hf-agenda-overlay select,[data-theme="dark"] .hf-agenda-overlay textarea,[data-theme="dark"] .hf-public-link code{background:#0b0d10!important;color:#fff!important;border-color:#3a3f48!important;box-shadow:none!important}
[data-theme="dark"] .hf-agenda-overlay input::placeholder,[data-theme="dark"] .hf-agenda-overlay textarea::placeholder{color:#858b95}
[data-theme="dark"] .hf-agenda-modal form{background:#111316!important;color:#fff;border:1px solid #343841}
[data-theme="dark"] .hf-agenda-modal header button{background:#25292f!important;color:#fff!important}
[data-theme="dark"] .hf-service-picker,[data-theme="dark"] .hf-public-services{border-color:#373c45}
[data-theme="dark"] .hf-service-picker label,[data-theme="dark"] .hf-public-services label{background:#101216;color:#fff;border-color:#343943}
[data-theme="dark"] .hf-public-total,[data-theme="dark"] .hf-reschedule-note,[data-theme="dark"] .hf-booking-instructions{background:#181b20;color:#fff;border:1px solid #343943}
[data-theme="dark"] .hf-week-list article{border-color:#333842}
[data-theme="dark"] .hf-inline-required{color:#fff!important}
[data-theme="dark"] .hf-drag{color:#c5cad2}
[data-theme="dark"] .hf-preview-banner{background:#3c310f;color:#ffe59a}
[data-theme="dark"] .hf-agenda-overlay .primary,[data-theme="dark"] .hf-agenda-overlay a.primary{background:#050607;color:#fff;border:1px solid #454a54}
[data-theme="dark"] .hf-booking{background:#0d0f12;color:#fff;border:1px solid #343943}[data-theme="dark"] .hf-booking>form{background:#0d0f12}[data-theme="dark"] .hf-booking-data{border-color:#343943}[data-theme="dark"] .hf-booked a{color:#fff}
@media(max-width:700px){.hf-service-group>header{align-items:flex-start;flex-direction:column;gap:5px}}

/* Acessos, horários individuais e calendário de datas livres */
.hf-access-gate{position:fixed;inset:0;z-index:999999;display:grid;place-content:center;justify-items:center;gap:14px;background:#090a0b;color:#fff;font:600 15px/1.4 Inter,system-ui,sans-serif}.hf-access-gate svg{width:42px;height:42px}.hf-access-gate p{margin:0}.hf-access-gate:after{content:"";width:28px;height:28px;border:3px solid #4b4f57;border-top-color:#fff;border-radius:50%;animation:hf-spin .8s linear infinite}@keyframes hf-spin{to{transform:rotate(360deg)}}
.hf-label-line{display:inline-flex!important;align-items:baseline;gap:4px;line-height:1.35}.hf-label-line .hf-required{display:inline!important;margin:0!important;line-height:1!important}
.hf-slot-week>section{display:grid;grid-template-columns:minmax(145px,190px) 1fr;gap:15px;align-items:center}.hf-slot-week>section>header{display:flex;flex-direction:column;align-items:flex-start;gap:9px}.hf-slot-week>section>header button{white-space:nowrap}.hf-slot-chips{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hf-slot-chips>p{margin:0;color:#747a84;font-weight:400}.hf-slot-chip{display:inline-flex;align-items:center;gap:8px;padding:9px 10px 9px 13px;border:1px solid #d9dce1;border-radius:999px;background:#f7f8f9}.hf-slot-chip b{font-size:13px}.hf-slot-chip button{width:23px;height:23px;padding:0!important;border-radius:50%!important;line-height:1}.hf-modal-helper{margin:4px 0 15px;color:#6f7580;font-size:13px;line-height:1.5}
.hf-available-calendar{margin:22px 0}.hf-available-calendar h2{font-size:18px;margin:0 0 12px}.hf-public-days{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 13px;scroll-snap-type:x proximity;scrollbar-width:thin}.hf-public-days>p{flex:1;margin:0;padding:15px;border:1px dashed #d5d8de;border-radius:10px;color:#6d737d}.hf-public-days button{flex:0 0 82px;display:grid;justify-items:center;gap:2px;padding:12px 8px;border:1px solid #d9dce2;border-radius:12px;background:#fff;color:#111;cursor:pointer;scroll-snap-align:start}.hf-public-days button small{text-transform:uppercase;font-size:11px}.hf-public-days button b{font-size:22px}.hf-public-days button span{font-size:12px;color:#6c727c}.hf-public-days button.active,.hf-public-days button:hover{background:#111;color:#fff;border-color:#111}.hf-public-days button.active span,.hf-public-days button:hover span{color:#dfe2e7}
.hf-access-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:900px}.hf-access-options>button{display:flex;align-items:center;gap:18px;padding:25px;text-align:left;background:#fff;color:#111;border:1px solid #dfe2e7;border-radius:16px;cursor:pointer}.hf-access-options>button:hover{border-color:#111;transform:translateY(-1px)}.hf-access-options svg{width:38px;height:38px;flex:0 0 auto}.hf-access-options span{display:grid;gap:5px}.hf-access-options b{font-size:20px}.hf-access-options small{color:#6f7580;font-size:13px;line-height:1.45}
[data-theme="dark"] .hf-slot-chip,[data-theme="dark"] .hf-public-days button,[data-theme="dark"] .hf-access-options>button{background:#111316;color:#fff;border-color:#343943}[data-theme="dark"] .hf-slot-chips>p,[data-theme="dark"] .hf-modal-helper,[data-theme="dark"] .hf-access-options small{color:#aeb3bb}[data-theme="dark"] .hf-public-days>p{color:#aeb3bb;border-color:#3a3f48}[data-theme="dark"] .hf-public-days button span{color:#aeb3bb}[data-theme="dark"] .hf-public-days button.active,[data-theme="dark"] .hf-public-days button:hover{background:#292d33!important;border-color:#686f7a!important}[data-theme="dark"] .hf-slot-chip button{background:#202329!important;color:#fff!important;border-color:#414650!important}
@media(max-width:700px){.hf-slot-week>section{grid-template-columns:1fr}.hf-slot-week>section>header{flex-direction:row;justify-content:space-between;align-items:center}.hf-access-options{grid-template-columns:1fr}}

/* Evita o salto visual dos atalhos no carregamento do painel */
html:not(.hf-agenda-actions-ready) main.admin:has(.patient-list) .admin-head-actions{visibility:hidden}
.diet-builder-title-actions{display:flex!important;align-items:center;gap:8px}.hf-diet-pdf-button{white-space:nowrap}.hf-diet-pdf-button:disabled{opacity:.6;cursor:wait}[data-theme="dark"] .hf-diet-pdf-button{background:#15181c!important;color:#fff!important;border-color:#3b4049!important}

/* Fechamentos programados */
.hf-agenda-closures{margin:28px 0 10px;padding:22px;border:1px solid #dde0e5;border-radius:16px;background:#fff}.hf-agenda-closures>header{display:flex;justify-content:space-between;align-items:center;gap:20px}.hf-agenda-closures h2{margin:4px 0}.hf-agenda-closures header small{letter-spacing:.12em;color:#737984}.hf-agenda-closures header p{margin:0;color:#70757e}.hf-closure-list{display:grid;gap:9px;margin-top:18px}.hf-closure-list article{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;border:1px solid #e1e3e7;border-radius:11px}.hf-closure-list article>div{display:flex;align-items:center;gap:9px}.hf-closure-list article span{color:#777d86;font-weight:400}.hf-closure-list button{padding:8px 11px;border:1px solid #dfb6bb;border-radius:8px;background:transparent;color:#b51f31;cursor:pointer}.hf-closure-warning{margin:17px 0 0;padding:13px;border-radius:9px;background:#fff4d7;color:#795500}
.hf-week-picker{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:-12px 0 13px}.hf-week-picker>button{width:38px;height:38px;border:1px solid #d9dce1;border-radius:9px;background:#fff;font-size:24px;cursor:pointer}.hf-week-picker label{display:flex!important;align-items:center!important;gap:9px!important;margin:0!important}.hf-week-picker input{width:auto!important;padding:8px 10px!important}.hf-slot-range small{font-weight:400;color:#737984}.hf-slot-range button+button{margin-left:-4px}
[data-theme="dark"] .hf-week-picker>button,[data-theme="dark"] .hf-week-picker input{background:#111316!important;color:#fff!important;border-color:#343943!important}[data-theme="dark"] .hf-slot-range small{color:#aeb3bb}
[data-theme="dark"] .hf-agenda-closures,[data-theme="dark"] .hf-closure-list article{background:#111316;color:#fff;border-color:#343943}[data-theme="dark"] .hf-agenda-closures header p,[data-theme="dark"] .hf-closure-list article span{color:#aeb3bb}[data-theme="dark"] .hf-closure-list button{background:#15181c;color:#ff9da7;border-color:#713039}

/* Agenda mensal otimizada para smartphone */
.hf-mobile-calendar,.hf-mobile-selected-day,.hf-mobile-day-view{display:none}.hf-mobile-hidden{display:none!important}
@media(max-width:700px){
  .hf-open-agenda{display:flex!important}.hf-agenda-page{padding:16px!important}.hf-agenda-head nav{display:none}.hf-agenda-head{gap:9px}.hf-agenda-brand h1{font-size:18px}.hf-agenda-head .hf-theme-toggle{font-size:0;padding:9px}.hf-agenda-head .hf-theme-toggle:before{content:"◐";font-size:19px}.hf-agenda-exit{font-size:12px;padding:9px!important}
  .hf-agenda-page>.hf-agenda-toolbar,.hf-week-picker{display:none}.hf-agenda-daystrip{display:none!important}.hf-mobile-calendar{display:block;margin-bottom:17px;border:1px solid #dfe2e7;border-radius:15px;overflow:hidden;background:#fff}.hf-mobile-calendar>header{display:flex;align-items:center;justify-content:space-between;padding:14px}.hf-mobile-calendar>header>button{width:38px;height:38px;border:1px solid #d9dce2;border-radius:50%;background:#fff;font-size:26px;cursor:pointer}.hf-mobile-calendar>header>div{display:flex;align-items:center;gap:10px;text-transform:capitalize}.hf-mobile-calendar>header>div>button{border:0;background:#edf0f3;border-radius:999px;padding:7px 10px;cursor:pointer}.hf-mobile-weekdays,.hf-mobile-month-grid{display:grid;grid-template-columns:repeat(7,1fr)}.hf-mobile-weekdays span{text-align:center;padding:7px 2px;color:#747a84;font-size:10px;text-transform:uppercase}.hf-mobile-month-grid>button{min-width:0;min-height:102px;padding:5px 3px;border:0;border-top:1px solid #eceef1;border-right:1px solid #eceef1;background:#fff;color:#111;text-align:left;overflow:hidden;cursor:pointer}.hf-mobile-month-grid>button:nth-child(7n){border-right:0}.hf-mobile-month-grid>button>span{display:grid;place-content:center;width:23px;height:23px;margin:0 auto 4px;border-radius:50%;font-size:11px}.hf-mobile-month-grid>button.selected>span{background:#111;color:#fff}.hf-mobile-month-grid>button.outside{opacity:.35}.hf-mobile-month-grid>button>div{display:grid;gap:2px}.hf-mobile-month-grid i{display:block;overflow:hidden;padding:3px 4px;border-radius:4px;background:#e9eaed;color:#292c31;font-size:9px;line-height:1.15;font-style:normal;white-space:nowrap;text-overflow:ellipsis}.hf-mobile-month-grid i.status-confirmed{background:#c9f1dc;color:#075c35}.hf-mobile-month-grid i.status-cancelled{background:#ffd8dc;color:#8b1522}.hf-mobile-month-grid small{font-size:9px;text-align:center}.hf-agenda-page>.hf-agenda-list{display:none!important}
  .hf-mobile-day-view{display:block}.hf-mobile-day-view>header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;margin-bottom:18px}.hf-mobile-day-view>header>button:first-child{border:1px solid #d9dce2;border-radius:10px;background:#fff;padding:10px 12px}.hf-mobile-day-view>header>div{display:flex;align-items:baseline;gap:7px;text-transform:capitalize}.hf-mobile-day-view>header small{font-size:12px;text-transform:uppercase}.hf-mobile-day-view>header b{font-size:27px}.hf-mobile-day-view>header span{font-size:14px}.hf-mobile-day-view>header .primary{width:46px;height:46px;padding:0;border-radius:50%;font-size:26px}.hf-mobile-time-grid{display:grid;border-top:1px solid #dfe2e7}.hf-mobile-time-row{display:grid;grid-template-columns:58px 1fr;min-height:64px}.hf-mobile-time-row>time{padding:10px 8px 0 0;text-align:right;color:#6f7580;font-size:12px}.hf-mobile-time-row>div{display:grid;gap:4px;padding:4px;border-left:1px solid #dfe2e7;border-bottom:1px solid #dfe2e7}.hf-mobile-event,.hf-mobile-free{width:100%;min-height:54px;border:0;border-radius:8px;padding:7px 9px;text-align:left}.hf-mobile-event{background:#dfe3ea;color:#181a1e;border-left:5px solid #69717d}.hf-mobile-event.status-confirmed{background:#c9f1dc;color:#075c35;border-left-color:#19a463}.hf-mobile-event b,.hf-mobile-event small{display:block}.hf-mobile-event small{margin-top:3px;opacity:.8}.hf-mobile-free{background:transparent;color:#747a84;border:1px dashed #cfd4da}.hf-mobile-event-modal>section{width:min(520px,100%);background:#fff;border-radius:18px;padding:22px}.hf-mobile-event-modal>section>header{display:flex;justify-content:space-between;gap:14px}.hf-mobile-event-modal header h2{margin:5px 0}.hf-mobile-event-modal header p{margin:0;color:#70757e}.hf-mobile-event-modal header>button{width:34px;height:34px;border:0;border-radius:50%;font-size:22px}.hf-mobile-event-actions{display:grid;gap:8px;margin-top:20px}.hf-mobile-event-actions a,.hf-mobile-event-actions button{border:1px solid #d9dce1;background:#fff;color:#202226;border-radius:9px;padding:11px;text-align:center;text-decoration:none}.hf-mobile-event-actions .confirm{background:#dff7ea;color:#087f47;border-color:#8ed7b3}.hf-mobile-event-actions .danger{color:#bd2332}
  .hf-agenda-closures{padding:16px}.hf-agenda-closures>header{align-items:flex-start;flex-direction:column}.hf-closure-list article{align-items:flex-start}.hf-closure-list article>div{align-items:flex-start;flex-direction:column;gap:2px}
  [data-theme="dark"] .hf-mobile-calendar,[data-theme="dark"] .hf-mobile-calendar>header>button,[data-theme="dark"] .hf-mobile-month-grid>button,[data-theme="dark"] .hf-mobile-day-view>header>button:first-child,[data-theme="dark"] .hf-mobile-event-modal>section{background:#111316;color:#fff;border-color:#343943}[data-theme="dark"] .hf-mobile-calendar>header>div>button{background:#292d33;color:#fff}[data-theme="dark"] .hf-mobile-month-grid>button,[data-theme="dark"] .hf-mobile-time-grid,[data-theme="dark"] .hf-mobile-time-row>div{border-color:#292d33}[data-theme="dark"] .hf-mobile-month-grid>button.selected>span{background:#fff;color:#111}[data-theme="dark"] .hf-mobile-month-grid i{background:#292d33;color:#e8eaee}[data-theme="dark"] .hf-mobile-month-grid i.status-confirmed,[data-theme="dark"] .hf-mobile-event.status-confirmed{background:#123d2a;color:#8ce8b8}[data-theme="dark"] .hf-mobile-event{background:#24282e;color:#fff}[data-theme="dark"] .hf-mobile-free{color:#aeb3bb;border-color:#41464f}[data-theme="dark"] .hf-mobile-event-actions a,[data-theme="dark"] .hf-mobile-event-actions button{background:#15181c;color:#fff;border-color:#3b4049}
}

/* V19 — faixa compacta da próxima consulta e modal organizado. */
.hf-record-day-panel{padding:12px 14px!important}.hf-record-day-layout{display:grid;grid-template-columns:minmax(360px,1fr) minmax(170px,210px) auto;align-items:end;gap:12px}.hf-record-day-choice{min-width:0}.hf-record-day-choice h4{margin:0 0 7px;text-transform:capitalize;font-size:15px}.hf-record-day-choice .hf-record-free-slots{margin:0}.hf-record-free-slots p{margin:8px 0;color:#6f7580;font-weight:400}.hf-record-extra-time{display:grid!important;gap:6px!important;margin:0!important}.hf-record-extra-time span{font-size:12px;font-weight:600}.hf-record-extra-time input{height:42px}.hf-record-extra-confirm{height:42px;padding:8px 15px;border:1.5px solid #19a463;border-radius:9px;background:#19a463;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}.hf-record-extra-confirm:disabled{background:transparent;color:#168454;opacity:.68;cursor:not-allowed}.hf-record-existing{margin:10px 0 0!important;padding-top:10px;border-top:1px solid #dde1e6}
.hf-record-month-grid>button.selected b{background:#111!important;color:#fff!important;outline:1px solid #111!important}.hf-record-booking-modal{padding:18px}.hf-record-booking-modal>form{width:min(760px,100%);padding:26px;border-radius:20px;box-shadow:0 24px 70px #0005}.hf-record-booking-modal>form>header{align-items:flex-start;padding-bottom:18px;border-bottom:1px solid #e1e4e8}.hf-record-booking-modal>form>header h2{margin:5px 0 3px;font-size:28px}.hf-record-booking-modal>form>header p{margin:0;color:#6f7580;font-size:13px}.hf-record-booking-modal>form>header>[data-dismiss]{width:38px;height:38px;border:1px solid #d9dde2;border-radius:50%;background:#f0f2f4;color:#202226;font-size:24px}.hf-record-patient-summary{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin:18px 0}.hf-record-patient-summary b{overflow-wrap:anywhere}.hf-record-booking-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.hf-record-booking-fields label{display:grid;align-content:start;gap:7px;margin:0!important;font-size:13px;font-weight:600}.hf-record-booking-fields label:first-child:last-child{grid-column:1/-1}.hf-record-booking-fields label>span{display:block}.hf-record-booking-fields select,.hf-record-booking-fields input{width:100%;height:46px;padding:10px 12px;border:1px solid #cfd4da;border-radius:10px;background:#fff;color:#17191d;font-size:15px}.hf-record-booking-fields label small{color:#6f7580;font-size:11px;font-weight:400}.hf-record-booking-modal .actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:17px;border-top:1px solid #e1e4e8}.hf-record-booking-modal .actions button{min-height:43px;padding:10px 16px;border-radius:10px}.hf-record-booking-modal .actions .ghost{border:1px solid #cfd4da;background:#fff;color:#25282d}.hf-record-booking-modal .actions .primary{background:#111;color:#fff}
[data-theme="dark"] .hf-record-month-grid>button.selected b{background:#fff!important;color:#111!important;outline-color:#fff!important}[data-theme="dark"] .hf-record-extra-confirm{border-color:#34c77d;background:#20a464;color:#fff}[data-theme="dark"] .hf-record-extra-confirm:disabled{background:transparent;color:#72dda7}[data-theme="dark"] .hf-record-existing{border-color:#343943}[data-theme="dark"] .hf-record-booking-modal>form{background:#111316;color:#f5f6f7}[data-theme="dark"] .hf-record-booking-modal>form>header,[data-theme="dark"] .hf-record-booking-modal .actions{border-color:#343943}[data-theme="dark"] .hf-record-booking-modal>form>header p,[data-theme="dark"] .hf-record-booking-fields label small{color:#aeb3bb}[data-theme="dark"] .hf-record-booking-modal>form>header>[data-dismiss]{background:#22262c;color:#fff;border-color:#3b4049}[data-theme="dark"] .hf-record-booking-fields select,[data-theme="dark"] .hf-record-booking-fields input{background:#0d0f12;color:#fff;border-color:#3b4049}[data-theme="dark"] .hf-record-booking-modal .actions .ghost{background:#15181c;color:#fff;border-color:#3b4049}[data-theme="dark"] .hf-record-booking-modal .actions .primary{background:#fff;color:#111}
@media(max-width:900px){.hf-record-day-layout{grid-template-columns:1fr minmax(160px,200px)}.hf-record-extra-confirm{grid-column:1/-1;width:100%}}
@media(max-width:700px){.hf-record-day-layout{grid-template-columns:1fr}.hf-record-day-choice,.hf-record-extra-time,.hf-record-extra-confirm{grid-column:auto}.hf-record-booking-modal{padding:10px}.hf-record-booking-modal>form{padding:18px;border-radius:16px}.hf-record-booking-modal>form>header h2{font-size:22px}.hf-record-booking-fields{grid-template-columns:1fr}.hf-record-booking-fields label:first-child:last-child{grid-column:auto}.hf-record-booking-modal .actions{display:grid;grid-template-columns:1fr}.hf-record-booking-modal .actions .primary{grid-row:1}.hf-record-booking-modal .actions .ghost{grid-row:2}}

/* V13 — calendário mensal profissional e página pública estilo YouCanBookMe */
.hf-agenda-page>.hf-mobile-calendar{display:block;margin-bottom:20px;border:1px solid #dfe2e7;border-radius:16px;overflow:hidden;background:#fff}.hf-agenda-page>.hf-mobile-calendar>header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px}.hf-agenda-page>.hf-mobile-calendar>header>button{width:40px;height:40px;border:1px solid #d9dce2;border-radius:50%;background:#fff;font-size:26px;cursor:pointer}.hf-agenda-page>.hf-mobile-calendar>header>div{display:flex;align-items:center;gap:12px;text-transform:capitalize}.hf-agenda-page>.hf-mobile-calendar>header>div>button{border:0;border-radius:999px;padding:7px 11px;background:#eef0f3}.hf-agenda-page .hf-mobile-weekdays,.hf-agenda-page .hf-mobile-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.hf-agenda-page .hf-mobile-weekdays span{text-align:center;padding:9px;color:#727883;font-size:11px;text-transform:uppercase}.hf-agenda-page .hf-mobile-month-grid>button,.hf-month-blank{min-width:0;min-height:112px;border:0;border-top:1px solid #eceef1;border-right:1px solid #eceef1;background:#fff;color:#111;text-align:left;padding:7px;overflow:hidden}.hf-agenda-page .hf-mobile-month-grid>button{cursor:pointer}.hf-agenda-page .hf-mobile-month-grid>button:nth-child(7n),.hf-month-blank:nth-child(7n){border-right:0}.hf-agenda-page .hf-mobile-month-grid>button>span{display:grid;place-content:center;width:26px;height:26px;margin:0 auto 5px;border-radius:50%;font-size:12px}.hf-agenda-page .hf-mobile-month-grid>button.selected>span{background:#111;color:#fff}.hf-agenda-page .hf-mobile-month-grid>button>div{display:grid;gap:3px}.hf-agenda-page .hf-mobile-month-grid i{display:block;overflow:hidden;padding:4px 6px;border-radius:5px;background:#e9ebef;color:#25282d;font-size:11px;line-height:1.15;font-style:normal;white-space:nowrap;text-overflow:ellipsis}.hf-agenda-page .hf-mobile-month-grid i.status-confirmed{background:#c9f1dc;color:#075c35}.hf-agenda-page>.hf-mobile-day-view{display:block}.hf-agenda-page>.hf-week-picker,.hf-agenda-page>.hf-agenda-daystrip,.hf-agenda-page>.hf-agenda-list{display:none!important}.hf-agenda-page>.hf-mobile-day-view>header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;margin:4px 0 18px}.hf-agenda-page>.hf-mobile-day-view>header>button:first-child{border:1px solid #d9dce2;border-radius:10px;background:#fff;padding:10px 12px}.hf-agenda-page>.hf-mobile-day-view>header>div{display:flex;align-items:baseline;gap:7px;text-transform:capitalize}.hf-agenda-page>.hf-mobile-day-view>header b{font-size:28px}.hf-agenda-page>.hf-mobile-day-view>header .primary{width:46px;height:46px;padding:0;border-radius:50%;font-size:26px}.hf-agenda-page .hf-mobile-time-grid{display:grid;border-top:1px solid #dfe2e7}.hf-agenda-page .hf-mobile-time-row{display:grid;grid-template-columns:70px 1fr;min-height:66px}.hf-agenda-page .hf-mobile-time-row>time{padding:11px 10px 0 0;text-align:right;color:#6f7580;font-size:13px}.hf-agenda-page .hf-mobile-time-row>div{display:grid;gap:5px;padding:5px;border-left:1px solid #dfe2e7;border-bottom:1px solid #dfe2e7}.hf-agenda-page .hf-mobile-event,.hf-agenda-page .hf-mobile-free{width:100%;min-height:54px;border-radius:8px;padding:8px 10px;text-align:left}.hf-agenda-page .hf-mobile-event{border:0;border-left:5px solid #69717d;background:#dfe3ea;color:#181a1e}.hf-agenda-page .hf-mobile-event.status-confirmed{background:#c9f1dc;color:#075c35;border-left-color:#19a463}.hf-agenda-page .hf-mobile-event b,.hf-agenda-page .hf-mobile-event small{display:block}.hf-agenda-page .hf-mobile-free{border:1px dashed #cfd4da;background:transparent;color:#747a84}.hf-mobile-hidden{display:none!important}
.hf-booking{width:min(1120px,calc(100% - 28px))}.hf-public-booking-layout{display:grid;grid-template-columns:minmax(300px,38%) 1fr;padding:0!important}.hf-public-booking-summary{padding:38px;background:#111316;color:#fff}.hf-public-booking-summary>header>span svg{width:48px}.hf-public-booking-summary>header small{display:block;margin-top:16px;letter-spacing:.15em;color:#aeb3bb}.hf-public-booking-summary>header h1{margin:7px 0;font-size:32px}.hf-public-booking-summary>header p{color:#c8cbd1;line-height:1.5}.hf-public-booking-summary .hf-public-services{border-color:#3c414a}.hf-public-booking-summary .hf-public-services label{background:#181b20;color:#fff;border-color:#3c414a}.hf-public-booking-scheduler{padding:34px}.hf-public-month-head{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:12px}.hf-public-month-head h2{margin:0;text-align:center;text-transform:capitalize}.hf-public-month-head button{height:42px;border:1px solid #d7dbe1;border-radius:50%;background:#fff;font-size:25px}.hf-public-days{display:block;overflow:visible;padding:0}.hf-public-weekdays,.hf-public-month-grid{display:grid;grid-template-columns:repeat(7,1fr)}.hf-public-weekdays span{text-align:center;padding:16px 2px 9px;font-size:11px;text-transform:uppercase;color:#737984}.hf-public-month-grid>span,.hf-public-month-grid>button{aspect-ratio:1;min-width:0;border:0;background:transparent}.hf-public-month-grid>button{position:relative;border-radius:50%;color:#9a9fa8;cursor:default}.hf-public-month-grid>button.available{color:#111;font-weight:700;cursor:pointer}.hf-public-month-grid>button.available:hover,.hf-public-month-grid>button.active{outline:2px solid #20a464;background:#e9f8f0}.hf-public-month-grid>button i{position:absolute;bottom:14%;left:50%;width:5px;height:5px;transform:translateX(-50%);border-radius:50%;background:#20a464}.hf-public-slots h3{margin:18px 0 10px}.hf-public-slots button{cursor:pointer}
[data-theme="dark"] .hf-agenda-page>.hf-mobile-calendar,[data-theme="dark"] .hf-agenda-page>.hf-mobile-calendar>header>button,[data-theme="dark"] .hf-agenda-page .hf-mobile-month-grid>button,[data-theme="dark"] .hf-month-blank,[data-theme="dark"] .hf-agenda-page>.hf-mobile-day-view>header>button:first-child{background:#111316;color:#fff;border-color:#343943}[data-theme="dark"] .hf-agenda-page .hf-mobile-month-grid>button,[data-theme="dark"] .hf-month-blank,[data-theme="dark"] .hf-agenda-page .hf-mobile-time-grid,[data-theme="dark"] .hf-agenda-page .hf-mobile-time-row>div{border-color:#292d33}[data-theme="dark"] .hf-agenda-page .hf-mobile-month-grid i{background:#292d33;color:#e8eaee}[data-theme="dark"] .hf-agenda-page .hf-mobile-month-grid i.status-confirmed{background:#123d2a;color:#8ce8b8}[data-theme="dark"] .hf-agenda-page .hf-mobile-event{background:#24282e;color:#fff}[data-theme="dark"] .hf-agenda-page .hf-mobile-free{color:#aeb3bb;border-color:#41464f}[data-theme="dark"] .hf-public-booking-scheduler{background:#0d0f12}[data-theme="dark"] .hf-public-month-head button{background:#15181c;color:#fff;border-color:#3b4049}[data-theme="dark"] .hf-public-month-grid>button.available{color:#fff}[data-theme="dark"] .hf-public-month-grid>button.available:hover,[data-theme="dark"] .hf-public-month-grid>button.active{background:#123d2a}
@media(max-width:700px){.hf-public-booking-layout{grid-template-columns:1fr}.hf-public-booking-summary,.hf-public-booking-scheduler{padding:25px 20px}.hf-agenda-page .hf-mobile-month-grid>button,.hf-month-blank{min-height:82px;padding:4px 2px}.hf-agenda-page .hf-mobile-month-grid i{font-size:9px;padding:3px}.hf-agenda-page>.hf-agenda-toolbar{display:flex}.hf-agenda-page>.hf-agenda-toolbar>div{display:none}.hf-agenda-page>.hf-agenda-toolbar .primary{margin-left:auto}}

/* V14 — maior densidade visual e marcação dentro da ficha */
@media(min-width:701px){.hf-agenda-page .hf-mobile-month-grid>button,.hf-agenda-page .hf-month-blank{min-height:72px;padding:5px 6px}.hf-agenda-page .hf-mobile-month-grid>button>span{width:25px;height:25px;margin:0 0 3px;font-size:14px;font-weight:700}.hf-agenda-page .hf-mobile-month-grid i{padding:2px 5px;font-size:10px}.hf-agenda-page>.hf-mobile-calendar>header{padding:10px 15px}.hf-agenda-page .hf-mobile-weekdays span{padding:6px 2px}.hf-agenda-page{padding-top:23px}.hf-agenda-toolbar{margin-bottom:16px}}
.appointment-admin:has(.hf-record-agenda)>input,.appointment-admin:has(.hf-record-agenda)>button.primary,.appointment-admin:has(.hf-record-agenda)>.appointment-current{display:none!important}.appointment-admin .hf-record-agenda{grid-column:1/-1;width:100%;margin:6px 0 0}.hf-record-agenda>header{justify-content:flex-start!important}.hf-record-agenda>header>button{margin:0}.hf-record-calendar{margin-top:16px;padding:16px;border:1px solid #e0e3e7;border-radius:14px}.hf-record-calendar-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:10px}.hf-record-calendar-head b{text-align:center;text-transform:capitalize;font-size:18px}.hf-record-calendar-head button{height:36px;border:1px solid #d8dce2;border-radius:50%;background:#fff;font-size:22px}.hf-record-weekdays,.hf-record-month-grid{display:grid;grid-template-columns:repeat(7,1fr)}.hf-record-weekdays span{text-align:center;padding:12px 2px 7px;color:#747a84;font-size:10px;text-transform:uppercase}.hf-record-month-grid>span,.hf-record-month-grid>button{min-height:52px;border:0;border-top:1px solid #eceef1;border-right:1px solid #eceef1;background:#fff}.hf-record-month-grid>button{position:relative;padding:6px;text-align:left;cursor:pointer}.hf-record-month-grid>button b{display:grid;place-content:center;width:25px;height:25px;border-radius:50%}.hf-record-month-grid>button.selected b{background:#111;color:#fff}.hf-record-month-grid>button i{position:absolute;left:50%;bottom:7px;width:5px;height:5px;border-radius:50%;background:#19a463}.hf-record-day-panel{margin-top:15px;padding:15px;border-radius:12px;background:#f5f6f8}.hf-record-day-panel header h4{margin:3px 0 12px;text-transform:capitalize}.hf-record-day-panel header small{letter-spacing:.12em}.hf-record-existing,.hf-record-free-slots{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.hf-record-existing span{padding:8px 10px;border-radius:8px;background:#e6e9ed}.hf-record-free-slots button{border:1px solid #cfd4da;border-radius:9px;padding:9px 12px;background:#fff}.hf-record-free-slots button.selected{background:#111;color:#fff}.hf-record-day-panel label{display:grid;gap:6px;margin:10px 0;font-size:13px;font-weight:700}.hf-record-day-panel input,.hf-record-day-panel select{width:100%;padding:10px;border:1px solid #d4d8de;border-radius:9px;background:#fff}.hf-record-save-appointment{margin-top:6px}.hf-record-booking-notice{margin:10px 0 0;color:#b32636}.hf-record-booking-notice.success{color:#087f47}
[data-theme="dark"] .hf-record-calendar{border-color:#343943}[data-theme="dark"] .hf-record-calendar-head button,[data-theme="dark"] .hf-record-month-grid>span,[data-theme="dark"] .hf-record-month-grid>button,[data-theme="dark"] .hf-record-day-panel input,[data-theme="dark"] .hf-record-day-panel select,[data-theme="dark"] .hf-record-free-slots button{background:#111316;color:#fff;border-color:#343943}[data-theme="dark"] .hf-record-day-panel{background:#191c21}[data-theme="dark"] .hf-record-existing span{background:#292d33}[data-theme="dark"] .hf-record-free-slots button.selected{background:#fff;color:#111}
@media(max-width:700px){.hf-record-calendar{padding:10px}.hf-record-month-grid>span,.hf-record-month-grid>button{min-height:44px}.hf-record-month-grid>button{padding:3px}.hf-record-month-grid>button b{width:23px;height:23px;font-size:11px}.hf-record-weekdays span{font-size:9px}.hf-record-day-panel{padding:12px}}
.hf-public-month-grid>button.available{outline:2px solid #20a464;outline-offset:-7px}.hf-public-month-grid>button.available:hover,.hf-public-month-grid>button.active{background:#e9f8f0}[data-theme="dark"] .hf-public-month-grid>button.available:hover,[data-theme="dark"] .hf-public-month-grid>button.active{background:#123d2a}
.hf-record-month-grid>button.available b{outline:1px solid #20a464}.hf-record-month-grid>button.available:hover{background:#e9f8f0}[data-theme="dark"] .hf-record-month-grid>button.available:hover{background:#123d2a}

/* V15 — agenda interna mais direta e temas consistentes. */
[data-theme="dark"] .hf-agenda-page>.hf-mobile-calendar>header>div>button{background:#25292f!important;color:#f5f6f7!important;border:1px solid #3b4049!important}
.hf-agenda-page .hf-mobile-time-row>div:has(.hf-extra-slot){padding:0}.hf-agenda-page .hf-extra-slot{min-height:65px;border:0;border-radius:0;text-align:left;padding:10px;color:#7a8089}.hf-agenda-page .hf-extra-slot:hover{background:#f1f3f5;color:#111316}
.hf-record-month-grid>span,.hf-record-month-grid>button{min-height:58px!important}.hf-record-month-grid>button{overflow:hidden}.hf-record-day-names{display:grid;gap:2px;margin-top:1px}.hf-record-day-names em{display:block;overflow:hidden;padding:2px 4px;border-radius:4px;background:#e9ebef;color:#25282d;font-size:8px;font-style:normal;line-height:1.1;white-space:nowrap;text-overflow:ellipsis}.hf-record-day-names small{font-size:8px;color:#666}
[data-theme="dark"] .appointment-admin:has(.hf-record-agenda),[data-theme="dark"] .hf-record-agenda{background:#111316!important;color:#f5f6f7!important;border-color:#343943!important}[data-theme="dark"] .hf-record-calendar{background:#0d0f12!important;border-color:#343943!important}[data-theme="dark"] .hf-record-day-names em{background:#292d33;color:#e8eaee}[data-theme="dark"] .hf-record-day-names small{color:#aeb3bb}[data-theme="dark"] .hf-agenda-page .hf-extra-slot:hover{background:#24282e;color:#fff}
.hf-record-agenda-loading{min-height:70px;display:flex;align-items:center}.hf-record-agenda-loading button{opacity:.75}

/* V16 — página pública, ações desktop e marcação pela ficha. */
.hf-public-booking-summary .hf-public-total{background:#24282e!important;color:#fff!important;border:1px solid #3c414a!important}.hf-public-booking-summary .hf-public-total b{color:#fff!important}.hf-public-booking-summary .hf-public-total small{color:#c8cdd5!important}
.hf-public-month-grid>button{display:grid;place-items:center}.hf-public-month-grid>button b{display:grid;place-items:center;width:100%;height:100%;line-height:1}.hf-public-month-grid>button i{display:none!important}.hf-public-month-grid>button.available{outline:2px solid #20a464;outline-offset:-7px}
.hf-desktop-event{display:none}.hf-record-extra-slot{display:grid;grid-template-columns:minmax(160px,240px) auto;align-items:end;gap:10px;margin-top:12px}.hf-record-extra-slot label{margin:0}.hf-record-extra-slot button{min-height:41px}.hf-record-patient-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:15px}.hf-record-patient-summary span{display:grid;gap:3px;padding:11px;border:1px solid #dde1e6;border-radius:10px;background:#f5f6f8}.hf-record-patient-summary small{color:#6f7580}
@media(min-width:701px){.hf-mobile-event-trigger{display:none!important}.hf-desktop-event{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:14px;width:100%;min-height:58px;padding:8px 10px;border-left:5px solid #69717d;border-radius:8px;background:#dfe3ea;color:#181a1e}.hf-desktop-event.status-confirmed{border-left-color:#19a463;background:#c9f1dc;color:#075c35}.hf-desktop-event>div{display:grid;gap:2px}.hf-desktop-event>div small{opacity:.8}.hf-desktop-event>div span{font-size:10px;font-weight:700;text-transform:uppercase}.hf-desktop-event nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.hf-desktop-event nav a,.hf-desktop-event nav button{border:1px solid #c8cdd4;border-radius:7px;background:#fff;color:#202226;padding:7px 8px;text-decoration:none;cursor:pointer}.hf-desktop-event nav .confirm{border-color:#79cba4;color:#087f47}.hf-desktop-event nav .danger{border-color:#e3aeb5;color:#b32233}}
[data-theme="dark"] .hf-record-patient-summary span{background:#191c21;border-color:#343943}[data-theme="dark"] .hf-record-patient-summary small{color:#aeb3bb}[data-theme="dark"] .hf-desktop-event{background:#24282e;color:#fff}[data-theme="dark"] .hf-desktop-event.status-confirmed{background:#123d2a;color:#8ce8b8}[data-theme="dark"] .hf-desktop-event nav a,[data-theme="dark"] .hf-desktop-event nav button{background:#15181c;color:#fff;border-color:#3b4049}
@media(max-width:700px){.hf-record-extra-slot{grid-template-columns:1fr}.hf-record-patient-summary{grid-template-columns:1fr}.hf-desktop-event{display:none!important}}

/* V18 — calendários compactos e tipografia da página pública. */
.appointment-admin.hf-record-agenda-active>input,.appointment-admin.hf-record-agenda-active>button.primary,.appointment-admin.hf-record-agenda-active>.appointment-current{display:none!important}
.appointment-admin .hf-record-agenda{margin-top:0!important}.hf-record-calendar{margin-top:0!important}.hf-record-month-grid>button.available b{outline:0!important}.hf-record-month-grid>button.available:hover{background:inherit!important}

/* V221 — atendimento atual e ações no cabeçalho da próxima consulta. */
.appointment-admin:has(.hf-record-agenda){grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center}.hf-record-current-appointment{grid-column:3;display:flex;align-items:center;gap:14px;max-width:760px;padding:10px 12px;border:1px solid #cfd4da;border-radius:13px;background:#fff}.hf-record-current-appointment>div{display:grid;gap:2px;min-width:max-content}.hf-record-current-appointment small{color:#747a84;font-size:9px;letter-spacing:.11em}.hf-record-current-appointment strong{font-size:13px;text-transform:capitalize;white-space:nowrap}.hf-record-current-appointment nav{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}.hf-record-current-appointment nav :is(a,button,span){display:inline-flex;min-height:32px;align-items:center;justify-content:center;padding:6px 9px;border:1px solid #31353b;border-radius:8px;background:transparent;color:#17191d;font:inherit;font-size:10px;font-weight:700;text-decoration:none;white-space:nowrap}.hf-record-current-appointment nav button{cursor:pointer}.hf-record-current-appointment nav [data-record-confirm]{background:#17191d;color:#fff}.hf-record-current-appointment nav .hf-record-confirmed{border-color:#1a9455;background:#e6f5ec;color:#176b3c}.hf-record-current-appointment nav .danger{border-color:#c43f4d;background:#c43f4d;color:#fff}
[data-theme="dark"] .hf-record-current-appointment{border-color:#3b4049;background:#15181c}[data-theme="dark"] .hf-record-current-appointment small{color:#aeb3bb}[data-theme="dark"] .hf-record-current-appointment nav :is(a,button){border-color:#60656d;color:#f5f6f7}[data-theme="dark"] .hf-record-current-appointment nav [data-record-confirm]{border-color:#f1f2f3;background:#f1f2f3;color:#111}[data-theme="dark"] .hf-record-current-appointment nav .hf-record-confirmed{border-color:#319d61;background:#143421;color:#83d5a5}[data-theme="dark"] .hf-record-current-appointment nav .danger{border-color:#d34b59;background:#c43f4d;color:#fff}
@media(max-width:1150px){.hf-record-current-appointment{grid-column:1/-1;width:100%;max-width:none;justify-content:space-between}.appointment-admin .hf-record-agenda{grid-column:1/-1}}
@media(max-width:700px){.hf-record-current-appointment{display:grid;gap:9px}.hf-record-current-appointment nav{justify-content:stretch;flex-wrap:wrap}.hf-record-current-appointment nav :is(a,button,span){flex:1}.hf-record-current-appointment>div{min-width:0}}
.hf-public-booking-summary .hf-public-services label,.hf-public-booking-summary .hf-public-services label b,.hf-public-booking-summary .hf-public-services label small,.hf-public-booking-summary .hf-public-total,.hf-public-booking-summary .hf-public-total b,.hf-public-booking-summary .hf-public-total small,.hf-public-month-head h2,.hf-public-month-grid>button,.hf-public-month-grid>button.available,.hf-public-slots button,.hf-booking-data{font-weight:400!important}
.hf-public-booking-summary>header h1,.hf-public-services legend{font-weight:700!important}
@media(max-width:700px){
 .hf-agenda-page:has(>.hf-mobile-calendar:not(.hf-mobile-hidden)){padding-top:0!important;padding-bottom:0!important}
 .hf-agenda-page>.hf-mobile-calendar:not(.hf-mobile-hidden){height:calc(100dvh - 151px);margin:0!important;border-radius:0 0 16px 16px;display:grid!important;grid-template-rows:auto auto minmax(0,1fr)}
 .hf-agenda-page>.hf-mobile-calendar>header{padding:9px 12px!important}
 .hf-agenda-page .hf-mobile-weekdays span{padding:6px 1px!important}
 .hf-agenda-page .hf-mobile-month-grid{height:100%;grid-template-rows:repeat(6,minmax(0,1fr))}
 .hf-agenda-page .hf-mobile-month-grid>button,.hf-agenda-page .hf-month-blank{min-height:0!important;height:auto!important;padding:3px 2px!important}
 .hf-agenda-page .hf-mobile-month-grid>button>span{width:23px;height:23px;margin:0 auto 2px;font-size:12px}
 .hf-agenda-page .hf-mobile-month-grid i{padding:2px 3px!important;font-size:8px!important}
 .hf-public-month-grid>button,.hf-public-month-grid>button.available{font-size:14px!important;font-weight:400!important}
}

/* atendimento para duas pessoas */
.hf-pair-person,.hf-record-companion,.hf-public-companion{margin:14px 0;padding:16px;border:1px solid rgba(0,0,0,.16);border-radius:16px;background:rgba(127,127,127,.06)}
.hf-pair-person[hidden],.hf-record-companion[hidden],.hf-public-companion[hidden]{display:none!important}
.hf-pair-person h3,.hf-record-companion h3,.hf-public-companion h3{margin:0 0 6px;font-size:18px}
.hf-pair-person p,.hf-record-companion p,.hf-public-companion p{margin:0 0 12px;opacity:.72}
.hf-record-companion{grid-column:1/-1}.hf-companion-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.hf-companion-mode label{display:flex!important;grid-auto-flow:column;grid-template-columns:auto 1fr;align-items:center!important;justify-content:flex-start;gap:8px!important;min-height:46px;padding:10px 12px;border:1px solid #cfd4da;border-radius:10px;background:#fff;cursor:pointer}.hf-companion-mode input{width:18px!important;height:18px!important;margin:0}.hf-record-companion [data-companion-registered][hidden],.hf-record-companion [data-companion-new][hidden]{display:none!important}[data-theme="dark"] .hf-companion-mode label{background:#0d0f12;border-color:#3b4049}@media(max-width:700px){.hf-companion-mode{grid-template-columns:1fr}}
/* HF V249 - contraste consistente das ações da próxima consulta. */
[data-theme="light"] .hf-record-current-appointment nav :is(a,button):not(.danger),
[data-theme="dark"] .hf-record-current-appointment nav [data-record-confirm]{border-color:#111214!important;background:#111214!important;color:#fff!important}
/* HF V266 - editor da mensagem de confirmação do WhatsApp. */
.hf-whatsapp-template-card{margin-top:28px;padding:22px;border:1px solid #d9dce1;border-radius:18px;background:#fff}.hf-whatsapp-template-card header h2{margin:4px 0 6px}.hf-whatsapp-template-card header p{margin:0;color:#6b7179}.hf-whatsapp-template-card form{display:grid;gap:13px;margin-top:18px}.hf-whatsapp-template-card label{display:grid;gap:7px;font-weight:750}.hf-whatsapp-template-card textarea{width:100%;min-height:154px;box-sizing:border-box;padding:13px 14px;border:1px solid #aeb4ba;border-radius:12px;background:#fff;color:#17191d;font:inherit;line-height:1.55;resize:vertical}.hf-whatsapp-token-help{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hf-whatsapp-token-help>span{font-size:12px;color:#666d75}.hf-whatsapp-token-help button{padding:7px 10px;border:1px solid #aeb4ba;border-radius:999px;background:#f3f4f5;color:#17191d;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.hf-whatsapp-helper{color:#6b7179;line-height:1.45}.hf-whatsapp-preview{padding:15px 16px;border:1px solid #d9dce1;border-radius:13px;background:#f5f6f7}.hf-whatsapp-preview>small{font-size:10px;letter-spacing:.1em;color:#687079}.hf-whatsapp-preview p{margin:8px 0 0;line-height:1.55;white-space:pre-wrap}.hf-whatsapp-template-actions{display:flex;justify-content:flex-end;gap:9px}.hf-whatsapp-template-notice{min-height:18px;margin:0}.hf-whatsapp-template-notice.error{color:#b33a47}.hf-whatsapp-template-notice.success{color:#21814d}
[data-theme="dark"] .hf-whatsapp-template-card{border-color:#363a41;background:#15181c}[data-theme="dark"] .hf-whatsapp-template-card header p,[data-theme="dark"] .hf-whatsapp-helper,[data-theme="dark"] .hf-whatsapp-token-help>span{color:#aeb3bb}[data-theme="dark"] .hf-whatsapp-template-card textarea{border-color:#4a4f57;background:#0f1114;color:#f5f6f7}[data-theme="dark"] .hf-whatsapp-token-help button{border-color:#555b64;background:#24272c;color:#f5f6f7}[data-theme="dark"] .hf-whatsapp-preview{border-color:#3c4148;background:#202329}[data-theme="dark"] .hf-whatsapp-preview>small{color:#aeb3bb}
@media(max-width:700px){.hf-whatsapp-template-card{padding:16px}.hf-whatsapp-template-actions{flex-direction:column}.hf-whatsapp-template-actions button{width:100%}}

/* HF V267 - variáveis do WhatsApp como blocos protegidos e móveis. */
.hf-whatsapp-editor{width:100%;min-height:154px;box-sizing:border-box;padding:13px 14px;border:1px solid #aeb4ba;border-radius:12px;background:#fff;color:#17191d;font:inherit;font-weight:400;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}.hf-whatsapp-editor:focus{border-color:#17191d;box-shadow:0 0 0 3px rgba(17,18,20,.1)}.hf-whatsapp-protected-token,.hf-whatsapp-token-sample{display:inline-flex;align-items:center;max-width:100%;box-sizing:border-box;padding:4px 9px;border:1px solid #7b828a;border-radius:999px;background:#e4e7ea;color:#111214;font-size:11px!important;font-weight:850;line-height:1.35;vertical-align:baseline;white-space:nowrap;user-select:all}.hf-whatsapp-protected-token{margin:0 2px;cursor:grab}.hf-whatsapp-protected-token:active{cursor:grabbing}.hf-whatsapp-token-help>span:first-child{font-size:12px;color:#666d75}[data-theme="dark"] .hf-whatsapp-editor{border-color:#4a4f57;background:#0f1114;color:#f5f6f7}[data-theme="dark"] .hf-whatsapp-editor:focus{border-color:#7a818b;box-shadow:0 0 0 3px rgba(255,255,255,.08)}[data-theme="dark"] .hf-whatsapp-protected-token,[data-theme="dark"] .hf-whatsapp-token-sample{border-color:#707780;background:#2b2f35;color:#fff}


/* HF V284 - Próxima consulta: exibe todos os pacientes agendados em cada dia. */
.hf-record-month-grid{align-items:stretch}
.hf-record-month-grid>button{height:auto!important;min-height:58px!important;overflow:visible!important}
.hf-record-day-names{display:grid;gap:2px;margin-top:1px}
.hf-record-day-names em{display:block;min-width:0;overflow:hidden;padding:2px 4px;border-radius:4px;background:#e9ebef;color:#25282d;font-size:8px;font-style:normal;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}
[data-theme="dark"] .hf-record-day-names em{background:#292d33;color:#e8eaee}

/* V285 — Próxima consulta: horário visível junto ao paciente no calendário */
.hf-record-day-names .hf-record-day-time{font-size:7px;font-weight:700;letter-spacing:-.01em}


/* V286 — Agenda mobile: todos os pacientes do dia + horário na grade mensal.
   Restrito a smartphone; desktop permanece inalterado. */
@media(max-width:700px){
  .hf-agenda-page:has(>.hf-mobile-calendar:not(.hf-mobile-hidden)){
    padding-top:0!important;
    padding-bottom:24px!important;
  }
  .hf-agenda-page>.hf-mobile-calendar:not(.hf-mobile-hidden){
    height:auto!important;
    min-height:0!important;
    margin:0 0 18px!important;
    display:block!important;
    overflow:visible!important;
  }
  .hf-agenda-page .hf-mobile-month-grid{
    height:auto!important;
    grid-template-rows:none!important;
    align-items:stretch;
  }
  .hf-agenda-page .hf-mobile-month-grid>button,
  .hf-agenda-page .hf-month-blank{
    min-height:86px!important;
    height:auto!important;
    padding:3px 2px 5px!important;
    overflow:visible!important;
  }
  .hf-agenda-page .hf-mobile-month-grid>button>div{
    gap:2px!important;
  }
  .hf-agenda-page .hf-mobile-month-grid i{
    display:flex!important;
    align-items:baseline;
    gap:2px;
    min-width:0;
    padding:2px 3px!important;
    font-size:7.2px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  .hf-agenda-page .hf-mobile-month-grid i .hf-mobile-appt-time{
    flex:0 0 auto;
    font-size:6.6px!important;
    font-weight:800!important;
    line-height:1!important;
    letter-spacing:-.02em;
  }
  .hf-agenda-page .hf-mobile-month-grid i .hf-mobile-appt-time::after{
    content:" -";
  }
  .hf-agenda-page .hf-mobile-month-grid i em{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font:inherit;
    font-style:normal;
  }
}

/* V287 — Agenda mobile: hora compacta (14 - Nome), sem negrito e fonte 1px menor. */
@media(max-width:700px){
  .hf-agenda-page .hf-mobile-month-grid i{
    font-size:6.2px!important;
    gap:1px!important;
    padding:2px 2px!important;
  }
  .hf-agenda-page .hf-mobile-month-grid i .hf-mobile-appt-time{
    flex:0 0 auto;
    font-size:5.6px!important;
    font-weight:400!important;
    line-height:1!important;
    letter-spacing:0;
  }
  .hf-agenda-page .hf-mobile-month-grid i .hf-mobile-appt-time::after{
    content:" -";
  }
}
