/* Shell de Modais e Popups.
 * Camada visual progressiva: não remove HTML legado e não troca handlers AJAX/PHP.
*/
html[data-tb-react-modalshell="ready"] body.tb-modal-shell-active{
  overflow:hidden;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell{
  box-sizing:border-box;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell,
html[data-tb-react-modalshell="ready"] .tb-modal-shell *{
  box-sizing:border-box;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell:where(.tb-modal,#tbModal,#tbActivityTemplateModal){
  position:fixed;
  inset:0;
  z-index:2147483400;
  padding:clamp(12px,2.2vw,24px);
  overflow:hidden;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-modal-backdrop,
html[data-tb-react-modalshell="ready"] .tb-goal-editor-backdrop{
  background:rgba(15,23,42,.58);
  backdrop-filter:saturate(120%) blur(3px);
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell-card:where(.tb-modal-card,.tb-journey-anchor-card,.tb-dialog-card,.tb-session-form-card,.tb-push-modal-card){
  width:min(960px,100%);
  max-width:100%;
  max-height:calc(100dvh - 32px);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:24px;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-modal-header,
html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-goal-summary-head,
html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-journey-config-panel-head{
  position:sticky;
  top:0;
  z-index:5;
  background:inherit;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell-scroll{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-modal-body.tb-modal-shell-scroll{
  flex:1 1 auto;
  max-height:calc(100dvh - 148px);
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell-actions{
  position:sticky;
  bottom:0;
  z-index:6;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  padding-top:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 40%);
  border-top:1px solid rgba(37,50,99,.12);
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell-close{
  flex:0 0 auto;
  touch-action:manipulation;
}

html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-shell.is-open{
  position:fixed;
  inset:0;
  z-index:2147483600;
  overflow:hidden;
}

html[data-tb-react-modalshell="ready"] #tbGoalEditorModal .tb-goal-editor-dialog{
  inset:clamp(12px,2vw,24px);
  display:flex;
  align-items:stretch;
  justify-content:center;
  overflow:hidden;
}

html[data-tb-react-modalshell="ready"] #tbGoalEditorModal .tb-goal-editor-modal-content{
  width:min(1180px,100%);
  max-width:100%;
  max-height:100%;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  overflow-x:hidden;
  border-radius:24px;
}

html[data-tb-react-modalshell="ready"] #tbGoalEditorModal .tb-goal-card.is-editing{
  min-height:0;
}

html[data-tb-react-modalshell="ready"] #tbGoalEditorModal .tb-goal-card-footer-actions{
  margin-top:auto;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),textarea,select){
  max-width:100%;
}

html[data-tb-react-modalshell="ready"] .tb-modal-shell textarea{
  min-height:120px;
  resize:vertical;
}

html[data-tb-react-modalshell="ready"] #tbActivityTemplateModal .tb-activity-template-modal-card{
  width:min(980px,100%);
}

html[data-tb-react-modalshell="ready"] #tbActivityTemplateModal .tb-activity-template-modal-body{
  flex:1 1 auto;
}

html[data-tb-react-modalshell="ready"] .tb-journey-anchor-modal.tb-modal-shell:target{
  display:block;
  position:fixed;
  inset:0;
  z-index:2147483300;
  padding:20px;
  overflow:auto;
}

html[data-tb-react-modalshell="ready"] .tb-journey-anchor-modal .tb-journey-anchor-card{
  margin:0 auto;
}

@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] .tb-modal-shell:where(.tb-modal,#tbModal,#tbActivityTemplateModal),
  html[data-tb-react-modalshell="ready"] .tb-journey-anchor-modal.tb-modal-shell:target{
    padding:0 !important;
    width:100dvw !important;
    max-width:100dvw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow:hidden !important;
  }

  html[data-tb-react-modalshell="ready"] .tb-modal-shell-card:where(.tb-modal-card,.tb-journey-anchor-card,.tb-dialog-card,.tb-session-form-card,.tb-push-modal-card){
    width:100dvw !important;
    max-width:100dvw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
    border-radius:0 !important;
    border-left:0 !important;
    border-right:0 !important;
  }

  html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-modal-body.tb-modal-shell-scroll{
    max-height:none !important;
    flex:1 1 auto;
    padding-bottom:calc(16px + env(safe-area-inset-bottom));
  }

  html[data-tb-react-modalshell="ready"] .tb-modal-shell-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    align-items:stretch !important;
    padding:12px 14px max(12px, env(safe-area-inset-bottom)) !important;
  }

  html[data-tb-react-modalshell="ready"] .tb-modal-shell-actions :where(button,.tb-btn,a){
    width:100% !important;
    justify-content:center !important;
  }

  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal .tb-goal-editor-dialog{
    inset:0 !important;
    width:100dvw !important;
    max-width:100dvw !important;
  }

  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal .tb-goal-editor-modal-content{
    width:100dvw !important;
    max-width:100dvw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    border-radius:0 !important;
  }

  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal .tb-goal-card.is-editing .tb-goal-form-grid,
  html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-form-grid,
  html[data-tb-react-modalshell="ready"] .tb-modal-shell .tb-journey-config-grid{
    grid-template-columns:1fr !important;
  }
}

/* Popups de Agendamento e Programação por etapas, com rolagem interna controlada.*/
html[data-tb-react-modalshell="ready"] .tb-modal-steps-rail{display:grid;gap:10px;align-content:start;padding:16px;background:linear-gradient(180deg,#eef4ff 0%,#f8fafc 100%);border-right:1px solid rgba(37,50,99,.12);color:#253263;box-sizing:border-box}
html[data-tb-react-modalshell="ready"] .tb-modal-steps-rail-title{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#667085}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip{display:flex;align-items:center;gap:9px;min-height:38px;padding:8px 10px;border:1px solid rgba(37,50,99,.14);border-radius:14px;background:#fff;color:#253263;font-size:12px;font-weight:850;line-height:1.2;text-align:left;box-sizing:border-box}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip span:first-child{width:20px;height:20px;min-width:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#253263;color:#fff;font-size:11px}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{display:grid!important;grid-template-columns:minmax(190px,250px) minmax(0,1fr)!important;align-items:stretch!important;overflow:hidden!important}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-steps-rail{grid-column:1!important;grid-row:1!important;height:100%!important;overflow:auto!important}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing{grid-column:2!important;min-width:0!important;max-height:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell{position:fixed!important;inset:0!important;z-index:2147483300!important;padding:clamp(10px,2vw,20px)!important;background:rgba(15,23,42,.58)!important;overflow:hidden!important;box-sizing:border-box!important}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card{width:min(1160px,100%)!important;height:calc(100dvh - 40px)!important;max-height:calc(100dvh - 40px)!important;margin:0 auto!important;display:grid!important;grid-template-columns:minmax(190px,250px) minmax(0,1fr)!important;align-items:start!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:24px!important;box-shadow:0 28px 80px rgba(15,23,42,.45)!important}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail{position:sticky!important;top:0!important;height:calc(100dvh - 40px)!important;overflow:auto!important;grid-column:1!important;grid-row:1 / span 20!important}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > :not(.tb-modal-steps-rail){grid-column:2!important;min-width:0!important;margin-left:16px!important;margin-right:16px!important}
@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{grid-template-columns:1fr!important;width:100dvw!important;height:100dvh!important}
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-steps-rail{grid-column:1!important;height:auto!important;max-height:92px!important;display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:10px calc(10px + env(safe-area-inset-right)) 10px calc(10px + env(safe-area-inset-left))!important;border-right:0!important;border-bottom:1px solid rgba(37,50,99,.12)!important}
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-steps-rail-title{display:none!important}
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-chip{min-width:132px!important}
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing{grid-column:1!important;height:calc(100dvh - 92px)!important}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell{padding:0!important}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card{width:100dvw!important;max-width:100dvw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;grid-template-columns:1fr!important;overflow:auto!important}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail{grid-column:1!important;grid-row:auto!important;position:sticky!important;top:0!important;z-index:4!important;height:auto!important;max-height:92px!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;border-right:0!important;border-bottom:1px solid rgba(37,50,99,.12)!important;padding:10px calc(10px + env(safe-area-inset-right)) 10px calc(10px + env(safe-area-inset-left))!important}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail .tb-modal-steps-rail-title{display:none!important}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail .tb-modal-step-chip{min-width:132px!important}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > :not(.tb-modal-steps-rail){grid-column:1!important;margin-left:12px!important;margin-right:12px!important}
}

/* Etapas reais para Agendamento de Sessão e Programação Comportamental.
 * Mantém os campos e handlers legados, mas controla navegação, altura e rolagem interna.
*/
html[data-tb-react-modalshell="ready"] .tb-modal-step-root,
html[data-tb-react-modalshell="ready"] .tb-modal-steps-ready{
  min-height:0!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-steps-rail{
  position:relative!important;
  display:grid!important;
  gap:10px!important;
  align-content:start!important;
  padding:16px!important;
  background:linear-gradient(180deg,#eef4ff 0%,#f8fafc 100%)!important;
  border-right:1px solid rgba(37,50,99,.12)!important;
  color:#253263!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip{
  appearance:none!important;
  border:1px solid rgba(37,50,99,.16)!important;
  width:100%!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:40px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#253263!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:left!important;
  box-shadow:0 8px 20px rgba(37,50,99,.05)!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip span:first-child{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#253263!important;
  color:#fff!important;
  font-size:11px!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip.is-active,
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip[aria-current="step"]{
  background:#253263!important;
  border-color:#253263!important;
  color:#fff!important;
  box-shadow:0 14px 32px rgba(37,50,99,.22)!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip.is-active span:first-child,
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip[aria-current="step"] span:first-child{
  background:#fff!important;
  color:#253263!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-workspace{
  min-width:0!important;
  min-height:0!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  align-content:start!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel[hidden]{
  display:none!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel > :where(.tb-goal-field-description,[style*="grid-column:1 / -1"],#tbSessFinalReportWrap,.tb-codebox,.tb-session-alt-wrap){
  grid-column:1 / -1!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel .tb-goal-field-description,
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel > div:has(#tbSessNotes),
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel > div:has(#tbSessWhatsappText),
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel > div:has(#tbSessFinalSummary),
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel > div:has(#tbSessAllowAlt){
  grid-column:1 / -1!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-actions{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  background:linear-gradient(180deg,rgba(255,255,255,.92),#fff 42%)!important;
  border-top:1px solid rgba(37,50,99,.12)!important;
  z-index:8!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-nav{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-right:auto!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-nav .tb-btn[disabled]{
  opacity:.45!important;
  cursor:not-allowed!important;
  pointer-events:none!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell{
  position:fixed!important;
  inset:0!important;
  z-index:2147483300!important;
  padding:clamp(10px,2vw,20px)!important;
  background:rgba(15,23,42,.58)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card{
  width:min(1160px,100%)!important;
  height:calc(100dvh - 40px)!important;
  max-height:calc(100dvh - 40px)!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(190px,250px) minmax(0,1fr)!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
  align-items:stretch!important;
  overflow:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:24px!important;
  box-shadow:0 28px 80px rgba(15,23,42,.45)!important;
  padding:0!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail{
  grid-column:1!important;
  grid-row:1 / -1!important;
  height:100%!important;
  overflow:auto!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-static{
  grid-column:2!important;
  min-width:0!important;
  margin-left:16px!important;
  margin-right:16px!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-cycle-note{
  margin-top:16px!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header{
  margin-top:10px!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"]{
  grid-column:2!important;
  min-height:0!important;
  overflow:auto!important;
  margin:12px 16px 0!important;
  padding:0 0 18px!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions{
  grid-column:2!important;
  position:sticky!important;
  bottom:0!important;
  margin:0 16px 16px!important;
  padding:12px 0 0!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
  display:grid!important;
  grid-template-columns:minmax(190px,250px) minmax(0,1fr)!important;
  align-items:stretch!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content > .tb-modal-steps-rail{
  grid-column:1!important;
  grid-row:1!important;
  height:100%!important;
  overflow:auto!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing{
  grid-column:2!important;
  min-width:0!important;
  max-height:100%!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing .tb-goal-card-body{
  min-height:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-builder-layout,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-form-shell,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel{
  min-height:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel .tb-goal-summary-head{
  flex:0 0 auto!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-form-grid.tb-modal-step-form-grid{
  min-height:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-workspace[data-tb-step-workspace="program"]{
  flex:1 1 auto!important;
  padding:12px 0 18px!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-feedback-section-inline{
  max-height:22vh!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-actions.tb-modal-step-actions{
  position:sticky!important;
  bottom:0!important;
  margin-top:0!important;
  padding:12px!important;
}
@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] .tb-modal-step-panel{
    grid-template-columns:1fr!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-actions,
  html[data-tb-react-modalshell="ready"] .tb-modal-step-nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-actions :where(button,.tb-btn,a){
    width:100%!important;
    justify-content:center!important;
    text-align:center!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell{
    padding:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card{
    width:100dvw!important;
    max-width:100dvw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto minmax(0,1fr) auto!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail{
    grid-column:1!important;
    grid-row:1!important;
    position:sticky!important;
    top:0!important;
    z-index:8!important;
    height:auto!important;
    max-height:94px!important;
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    border-right:0!important;
    border-bottom:1px solid rgba(37,50,99,.12)!important;
    padding:10px calc(10px + env(safe-area-inset-right)) 10px calc(10px + env(safe-area-inset-left))!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-steps-rail-title,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-steps-rail-title{
    display:none!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-chip,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-chip{
    min-width:132px!important;
    white-space:normal!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-static,
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"],
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions{
    grid-column:1!important;
    margin-left:12px!important;
    margin-right:12px!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions{
    margin-bottom:max(10px, env(safe-area-inset-bottom))!important;
    padding:10px 0 0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
    grid-template-columns:1fr!important;
    width:100dvw!important;
    height:100dvh!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content > .tb-modal-steps-rail{
    grid-column:1!important;
    grid-row:1!important;
    height:auto!important;
    max-height:94px!important;
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:10px calc(10px + env(safe-area-inset-right)) 10px calc(10px + env(safe-area-inset-left))!important;
    border-right:0!important;
    border-bottom:1px solid rgba(37,50,99,.12)!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing{
    grid-column:1!important;
    height:calc(100dvh - 94px)!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-actions.tb-modal-step-actions{
    padding:10px calc(12px + env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))!important;
  }
}

html[data-tb-react-modalshell="ready"] .tb-modal-step-panel > .tb-modal-step-wide{grid-column:1 / -1!important;}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-row.tb-modal-step-actions:last-child{
  grid-column:2!important;
  position:sticky!important;
  bottom:0!important;
  margin:0 16px 16px!important;
  padding:12px 0 0!important;
  background:linear-gradient(180deg,rgba(255,255,255,.92),#fff 42%)!important;
  border-top:1px solid rgba(37,50,99,.12)!important;
}
@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-row.tb-modal-step-actions:last-child{
    grid-column:1!important;
    margin-left:12px!important;
    margin-right:12px!important;
    margin-bottom:max(10px, env(safe-area-inset-bottom))!important;
  }
}

/* Refinamento visual das popups de Programação e Agendamento.
 * Objetivo: remover efeito de iframe/área presa, proteger rodapé e igualar padrão visual.
*/
html[data-tb-react-modalshell="ready"] .tb-session-modal-fixed-host-reset{
  transform:none!important;
  filter:none!important;
  -webkit-filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  perspective:none!important;
  contain:initial!important;
  will-change:auto!important;
  isolation:auto!important;
  overflow:visible!important;
}
body.tb-session-step-modal-active{
  overflow:hidden!important;
  overscroll-behavior:contain!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell{
  position:fixed!important;
  inset:0!important;
  width:100dvw!important;
  height:100dvh!important;
  z-index:2147483500!important;
  padding:clamp(12px,2vw,24px)!important;
  background:rgba(15,23,42,.62)!important;
  backdrop-filter:saturate(120%) blur(4px)!important;
  -webkit-backdrop-filter:saturate(120%) blur(4px)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
  width:min(1180px,calc(100dvw - 32px))!important;
  height:min(820px,calc(100dvh - 32px))!important;
  max-width:calc(100dvw - 32px)!important;
  max-height:calc(100dvh - 32px)!important;
  margin:0 auto!important;
  background:#fff!important;
  border:1px solid rgba(37,50,99,.12)!important;
  border-radius:24px!important;
  box-shadow:0 30px 90px rgba(15,23,42,.42)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card{
  display:grid!important;
  grid-template-columns:minmax(190px,236px) minmax(0,1fr)!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
  align-items:stretch!important;
  padding:0!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content > .tb-modal-steps-rail{
  grid-column:1!important;
  grid-row:1 / -1!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  padding:18px 16px!important;
  overflow:auto!important;
  background:linear-gradient(180deg,#f3f7ff 0%,#eef4ff 45%,#f8fafc 100%)!important;
  border-right:1px solid rgba(37,50,99,.12)!important;
  border-bottom:0!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-steps-rail-title{
  margin:0 0 6px!important;
  color:#667085!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip{
  min-height:42px!important;
  border-radius:13px!important;
  border:1px solid rgba(37,50,99,.14)!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-static{
  grid-column:2!important;
  min-width:0!important;
  margin-left:18px!important;
  margin-right:18px!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-cycle-note{
  margin-top:18px!important;
  padding:12px 14px!important;
  border:1px solid rgba(37,50,99,.10)!important;
  border-radius:15px!important;
  background:#f8fbff!important;
  color:#334155!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header{
  margin-top:10px!important;
  padding:0!important;
  align-items:center!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header > b{
  font-size:18px!important;
  color:#111827!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell #tbSessClose,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-close,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready [data-tb-goal-close="1"]{
  border:1px solid rgba(37,50,99,.16)!important;
  background:#fff!important;
  color:#111827!important;
  border-radius:12px!important;
  min-height:40px!important;
  padding:9px 14px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"]{
  grid-column:2!important;
  grid-row:3!important;
  min-height:0!important;
  overflow:auto!important;
  margin:14px 18px 0!important;
  padding:0 2px 18px!important;
  -webkit-overflow-scrolling:touch!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-panel{
  align-content:start!important;
  gap:14px!important;
  padding:2px 0!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-panel > *{
  margin-top:0!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel label{
  display:block!important;
  margin:0 0 6px!important;
  color:#334155!important;
  font-size:13px!important;
  font-weight:800!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel :where(.tb-input,.tb-textarea,select,input[type="text"],input[type="url"],input[type="datetime-local"]){
  width:100%!important;
  min-height:42px!important;
  border:1px solid rgba(37,50,99,.16)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#334155!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel textarea.tb-textarea{
  min-height:118px!important;
  resize:vertical!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-actions.tb-modal-step-actions{
  position:relative!important;
  grid-column:2!important;
  grid-row:4!important;
  bottom:auto!important;
  margin:0!important;
  padding:14px 18px calc(14px + env(safe-area-inset-bottom))!important;
  background:linear-gradient(180deg,rgba(255,255,255,.94) 0%,#fff 46%)!important;
  border-top:1px solid rgba(37,50,99,.12)!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-actions :where(button,.tb-btn,a){
  min-height:42px!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  white-space:normal!important;
  text-align:center!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-nav{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-right:auto!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready{
  position:fixed!important;
  inset:0!important;
  z-index:2147483400!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-dialog{
  inset:0!important;
  width:100dvw!important;
  height:100dvh!important;
  max-width:100dvw!important;
  max-height:100dvh!important;
  padding:clamp(12px,2vw,24px)!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing{
  min-width:0!important;
  height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-workspace[data-tb-step-workspace="program"]{
  padding:14px 18px 18px!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-actions.tb-modal-step-actions{
  grid-column:auto!important;
  flex:0 0 auto!important;
}
@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-dialog{
    padding:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
    width:100dvw!important;
    max-width:100dvw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto minmax(0,1fr) auto!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content > .tb-modal-steps-rail{
    grid-column:1!important;
    grid-row:1!important;
    height:auto!important;
    max-height:86px!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:10px calc(10px + env(safe-area-inset-right)) 10px calc(10px + env(safe-area-inset-left))!important;
    border-right:0!important;
    border-bottom:1px solid rgba(37,50,99,.12)!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-steps-rail-title{display:none!important;}
  html[data-tb-react-modalshell="ready"] .tb-modal-step-chip{
    min-width:128px!important;
    width:auto!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-static,
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"],
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions{
    grid-column:1!important;
    margin-left:12px!important;
    margin-right:12px!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-cycle-note{grid-row:2!important;margin-top:12px!important;}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header{grid-row:3!important;}
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"]{
    grid-row:4!important;
    margin-top:12px!important;
    padding-bottom:14px!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-actions.tb-modal-step-actions{
    grid-row:5!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    padding:10px calc(12px + env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-nav{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    grid-column:1 / -1!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-actions :where(button,.tb-btn,a){
    width:100%!important;
    justify-content:center!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing{
    grid-column:1!important;
    height:100%!important;
    min-height:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-workspace[data-tb-step-workspace="program"]{
    padding:12px!important;
  }
}

/* Padronização final das popups de Agendamento e Programação.
 * Mantém handlers e dados legados; corrige layout mobile/desktop, X no topo e rodapé seguro.
*/
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready{
  --tb-modal-blue:#253263;
  --tb-modal-border:rgba(37,50,99,.14);
  --tb-modal-muted:#667085;
  --tb-modal-text:#111827;
  --tb-modal-soft:#f6f9ff;
  --tb-modal-danger:#b91c1c;
  --tb-modal-danger-soft:#fff5f5;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
  width:min(1180px,calc(100dvw - 32px))!important;
  height:min(780px,calc(100dvh - 32px))!important;
  min-height:min(620px,calc(100dvh - 32px))!important;
  background:#fff!important;
  border:1px solid var(--tb-modal-border)!important;
  border-radius:22px!important;
  box-shadow:0 32px 90px rgba(15,23,42,.38)!important;
  overflow:hidden!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
  grid-template-columns:minmax(188px,236px) minmax(0,1fr)!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content > .tb-modal-steps-rail{
  padding:18px 16px!important;
  background:linear-gradient(180deg,#f3f7ff 0%,#eef4ff 52%,#f8fafc 100%)!important;
  border-right:1px solid rgba(37,50,99,.12)!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip{
  min-height:40px!important;
  padding:8px 10px!important;
  border-radius:13px!important;
  font-size:12px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.04)!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip.is-active,
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip[aria-current="step"]{
  background:var(--tb-modal-blue)!important;
  border-color:var(--tb-modal-blue)!important;
  color:#fff!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip.is-active span:first-child,
html[data-tb-react-modalshell="ready"] .tb-modal-step-chip[aria-current="step"] span:first-child{
  background:#fff!important;
  color:var(--tb-modal-blue)!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel .tb-goal-summary-head{
  min-height:88px!important;
  padding:20px 24px!important;
  margin:0!important;
  border-bottom:1px solid rgba(37,50,99,.10)!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  position:relative!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header > b,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel .tb-goal-section-title{
  display:block!important;
  margin:0!important;
  color:var(--tb-modal-text)!important;
  font-size:25px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel .tb-goal-section-desc{
  color:#475569!important;
  font-size:15px!important;
  line-height:1.45!important;
  margin-top:6px!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-cycle-note{
  margin:18px 24px 0!important;
  padding:12px 14px!important;
  border:1px solid rgba(37,50,99,.10)!important;
  border-radius:15px!important;
  background:#f8fbff!important;
  color:#334155!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"],
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-workspace[data-tb-step-workspace="program"]{
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
  padding:18px 24px 24px!important;
  min-height:0!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"]{
  margin:0!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-form-grid.tb-modal-step-form-grid{
  min-height:0!important;
  flex:1 1 auto!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-panel,
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-panel{
  gap:16px!important;
  align-content:start!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-panel :where(.tb-input,.tb-textarea,select,input[type="text"],input[type="url"],input[type="date"],input[type="time"],input[type="datetime-local"],input[type="number"]){
  min-height:42px!important;
  border-radius:12px!important;
  border:1px solid rgba(37,50,99,.16)!important;
  background:#fff!important;
  box-shadow:none!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell #tbSessClose,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-cancel{
  flex:0 0 auto!important;
  border:1px solid rgba(37,50,99,.18)!important;
  background:#fff!important;
  color:var(--tb-modal-text)!important;
  border-radius:12px!important;
  min-height:42px!important;
  padding:9px 14px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-actions.tb-modal-step-actions{
  flex:0 0 auto!important;
  position:relative!important;
  bottom:auto!important;
  margin:0!important;
  padding:14px 24px calc(14px + env(safe-area-inset-bottom))!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96) 0%,#fff 42%)!important;
  border-top:1px solid rgba(37,50,99,.12)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  overflow:visible!important;
}
html[data-tb-react-modalshell="ready"] .tb-modal-step-nav{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin-right:auto!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-right{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tbGoalSaveMeta{
  min-width:220px!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tbRemoveGoal{
  min-width:180px!important;
  border:1px solid rgba(185,28,28,.24)!important;
  background:var(--tb-modal-danger-soft)!important;
  color:var(--tb-modal-danger)!important;
}
@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-dialog{
    padding:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content{
    width:100dvw!important;
    max-width:100dvw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto minmax(0,1fr) auto!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-editor-modal-content > .tb-modal-steps-rail{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:auto!important;
    max-height:82px!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:10px calc(12px + env(safe-area-inset-right)) 10px calc(12px + env(safe-area-inset-left))!important;
    border-right:0!important;
    border-bottom:1px solid rgba(37,50,99,.12)!important;
    scrollbar-width:thin!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-steps-rail-title{
    display:none!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-chip{
    min-width:132px!important;
    min-height:48px!important;
    padding:9px 11px!important;
    border-radius:16px!important;
    font-size:13px!important;
    white-space:nowrap!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-chip span:first-child{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    font-size:12px!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel .tb-goal-summary-head{
    grid-column:1!important;
    grid-row:2!important;
    min-height:auto!important;
    padding:18px calc(54px + env(safe-area-inset-right)) 16px calc(18px + env(safe-area-inset-left))!important;
    border-bottom:1px solid rgba(37,50,99,.10)!important;
    align-items:flex-start!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-header > b,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel .tb-goal-section-title{
    font-size:24px!important;
    line-height:1.14!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel .tb-goal-section-desc{
    font-size:15px!important;
    line-height:1.45!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell #tbSessClose,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-cancel{
    position:absolute!important;
    top:14px!important;
    right:calc(14px + env(safe-area-inset-right))!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    padding:0!important;
    border-radius:999px!important;
    font-size:0!important;
    line-height:1!important;
    color:transparent!important;
    overflow:hidden!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell #tbSessClose::before,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-cancel::before{
    content:"×";
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    color:#253263!important;
    font-size:28px!important;
    font-weight:500!important;
    line-height:1!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-cycle-note{
    display:none!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"],
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-workspace[data-tb-step-workspace="program"]{
    grid-column:1!important;
    grid-row:3!important;
    margin:0!important;
    padding:16px calc(18px + env(safe-area-inset-right)) 18px calc(18px + env(safe-area-inset-left))!important;
    overflow:auto!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing{
    grid-column:1!important;
    height:100%!important;
    min-height:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card.is-editing .tb-goal-card-body,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-builder-layout,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-form-shell,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-edit-panel,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-form-grid.tb-modal-step-form-grid{
    min-height:0!important;
    height:100%!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-actions.tb-modal-step-actions{
    grid-column:1!important;
    grid-row:4!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:12px calc(18px + env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left))!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-nav{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    width:100%!important;
    margin:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-right{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    width:100%!important;
    margin:0!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-card-footer-right .tb-goal-card-save-msg{
    grid-column:1 / -1!important;
    order:3!important;
    font-size:13px!important;
    line-height:1.35!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tbGoalSaveMeta,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tbRemoveGoal{
    min-width:0!important;
    width:100%!important;
    min-height:50px!important;
    justify-content:center!important;
    font-size:16px!important;
  }
  html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell .tb-modal-step-actions > :not(.tb-modal-step-nav){
    width:100%!important;
  }
  html[data-tb-react-modalshell="ready"] .tb-modal-step-actions :where(button,.tb-btn,a){
    width:100%!important;
    justify-content:center!important;
    text-align:center!important;
  }
}

/* Correção mobile do Agendamento de Sessão.
 * O legado renderiza múltiplos hosts com o mesmo ID na lista de clientes. As regras abaixo
 * usam seletor por atributo para cobrir o host visível correto e reforçam fullscreen real no celular.
*/
html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  width:100dvw!important;
  height:100vh!important;
  height:100dvh!important;
  z-index:2147483500!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell .tb-session-form-card{
  box-sizing:border-box!important;
  min-width:0!important;
}
@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell{
    padding:0!important;
    margin:0!important;
    background:rgba(15,23,42,.68)!important;
  }
  html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell .tb-session-form-card{
    width:100vw!important;
    width:100dvw!important;
    max-width:100vw!important;
    max-width:100dvw!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    max-height:100vh!important;
    max-height:100dvh!important;
    margin:0!important;
    border-radius:0!important;
    border:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto minmax(0,1fr) auto!important;
    overflow:hidden!important;
  }
  @supports (height: 100svh){
    html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell,
    html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell .tb-session-form-card{
      height:100svh!important;
      min-height:100svh!important;
      max-height:100svh!important;
    }
  }
  html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail{
    grid-column:1!important;
    grid-row:1!important;
    position:relative!important;
    top:auto!important;
    max-height:78px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell .tb-modal-step-header{
    grid-column:1!important;
    grid-row:2!important;
    margin:0!important;
  }
  html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"]{
    grid-column:1!important;
    grid-row:3!important;
    min-height:0!important;
    height:auto!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
  }
  html[data-tb-react-modalshell="ready"] [id="tbClientSessionForm"].tb-session-form-modal-shell .tb-modal-step-actions{
    grid-column:1!important;
    grid-row:4!important;
    position:relative!important;
    bottom:auto!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
}

/* Compatibilidade iPhone/iOS Safari para Agendamento de Sessão.
 * O formulário de sessão pode ser renderizado em portal no <body> para escapar de containers com overflow/transform.
 * Mantém os mesmos campos e handlers; apenas corrige viewport, scroll e área segura no mobile.
*/
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  width:100vw!important;
  height:var(--tb-ios-vh, 100vh)!important;
  max-width:100vw!important;
  max-height:var(--tb-ios-vh, 100vh)!important;
  z-index:2147483600!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  background:rgba(15,23,42,.62)!important;
  box-sizing:border-box!important;
  -webkit-transform:translateZ(0)!important;
  transform:translateZ(0)!important;
  overscroll-behavior:contain!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-session-form-card{
  position:relative!important;
  width:100vw!important;
  max-width:100vw!important;
  height:var(--tb-ios-vh, 100vh)!important;
  min-height:var(--tb-ios-vh, 100vh)!important;
  max-height:var(--tb-ios-vh, 100vh)!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  background:#fff!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
  overflow:hidden!important;
  box-shadow:none!important;
  -webkit-overflow-scrolling:touch!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-session-form-card > .tb-modal-steps-rail{
  grid-column:1!important;
  grid-row:1!important;
  position:relative!important;
  top:auto!important;
  z-index:5!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  max-height:76px!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:10px calc(12px + env(safe-area-inset-right)) 10px calc(12px + env(safe-area-inset-left))!important;
  border-right:0!important;
  border-bottom:1px solid rgba(37,50,99,.12)!important;
  background:#f4f7ff!important;
  -webkit-overflow-scrolling:touch!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-steps-rail-title{display:none!important;}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-chip{
  flex:0 0 auto!important;
  min-width:118px!important;
  width:auto!important;
  min-height:44px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  white-space:nowrap!important;
  font-size:13px!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-chip span:first-child{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-header{
  grid-column:1!important;
  grid-row:2!important;
  margin:0!important;
  padding:16px calc(56px + env(safe-area-inset-right)) 14px calc(18px + env(safe-area-inset-left))!important;
  min-height:auto!important;
  border-bottom:1px solid rgba(37,50,99,.10)!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-header > b{
  font-size:22px!important;
  line-height:1.15!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell #tbSessClose{
  position:absolute!important;
  top:12px!important;
  right:calc(12px + env(safe-area-inset-right))!important;
  z-index:8!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:0!important;
  line-height:1!important;
  color:transparent!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid rgba(37,50,99,.18)!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell #tbSessClose::before{
  content:"×";
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  color:#253263!important;
  font-size:28px!important;
  font-weight:500!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-cycle-note{display:none!important;}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-workspace[data-tb-step-workspace="session"]{
  grid-column:1!important;
  grid-row:3!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:16px calc(18px + env(safe-area-inset-right)) 18px calc(18px + env(safe-area-inset-left))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-panel{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
  align-content:start!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-panel[hidden]{display:none!important;}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-panel > *{
  min-width:0!important;
  max-width:100%!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-actions{
  grid-column:1!important;
  grid-row:4!important;
  min-height:0!important;
  margin:0!important;
  padding:12px calc(18px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left))!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),#fff 42%)!important;
  border-top:1px solid rgba(37,50,99,.12)!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-nav{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  width:100%!important;
  margin:0!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-actions > :not(.tb-modal-step-nav){
  width:100%!important;
}
html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-modal-step-actions :where(button,.tb-btn,a){
  min-height:46px!important;
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
}
@media (min-width:721px){
  html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell{
    padding:clamp(12px,2vw,24px)!important;
  }
  html[data-tb-react-modalshell="ready"] [data-tb-session-portal="1"].tb-session-form-modal-shell .tb-session-form-card{
    width:min(1180px,calc(100vw - 32px))!important;
    height:min(820px,calc(var(--tb-ios-vh, 100vh) - 32px))!important;
    min-height:0!important;
    max-height:calc(var(--tb-ios-vh, 100vh) - 32px)!important;
    margin:0 auto!important;
    border-radius:24px!important;
    box-shadow:0 28px 80px rgba(15,23,42,.45)!important;
    grid-template-columns:minmax(190px,250px) minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
  }
}

/* Performance mobile: evita repintura pesada durante digitação em popups.*/
body.tb-modal-shell-active #tbClientSessionForm.tb-session-form-modal-shell,
body.tb-modal-shell-active .tb-goal-editor-backdrop,
body.tb-modal-shell-active .tb-goal-card.is-editing::before,
body.tb-session-step-modal-active #tbClientSessionForm.tb-session-form-modal-shell,
body.tb-goal-editor-open .tb-goal-card.is-editing::before{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready :where(input, textarea, select),
html[data-tb-react-modalshell="ready"] #tbClientSessionForm.tb-session-form-modal-shell :where(input, textarea, select){
  will-change:auto!important;
  transform:none!important;
}

/* Modal estável durante digitação: evita transições/repaints que causam piscada em iOS/mobile.*/
body.tb-goal-user-typing #tbGoalEditorModal :where(.tb-modal-step-panel,.tb-modal-step-workspace,.tb-modal-step-actions,.tb-goal-editor-modal-content),
body.tb-session-step-modal-active #tbClientSessionForm.tb-session-form-modal-shell :where(.tb-session-form-card,.tb-modal-step-panel,.tb-modal-step-workspace,.tb-modal-step-actions){
  transition:none!important;
  animation:none!important;
}
#tbGoalEditorModal .tb-goal-card-dirty{
  outline:0!important;
  outline-offset:0!important;
}

/* Programação Comportamental: alinhamento dos checkboxes da etapa Jornada/Revisão.
 * Corrige chips desalinhados sem alterar campos, classes, payloads ou handlers legados.
*/
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-panel .tb-goal-chip-option,
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-form-grid.tb-modal-step-form-grid > .tb-goal-chip-option{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:54px!important;
  padding:13px 16px!important;
  margin:0!important;
  border:1px solid rgba(37,50,99,.14)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 18px rgba(15,23,42,.035)!important;
  color:#253263!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.32!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  box-sizing:border-box!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-chip-option input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  position:static!important;
  display:block!important;
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  max-width:20px!important;
  max-height:20px!important;
  margin:0!important;
  padding:0!important;
  inset:auto!important;
  transform:none!important;
  justify-self:auto!important;
  align-self:center!important;
  vertical-align:middle!important;
  accent-color:#1976f3!important;
  box-shadow:none!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-chip-option:hover{
  border-color:rgba(37,50,99,.24)!important;
  background:#f8fbff!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-chip-option:has(input[type="checkbox"]:checked){
  border-color:rgba(25,118,243,.28)!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important;
}
html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-panel .tb-goal-chip-option:focus-within{
  outline:2px solid rgba(25,118,243,.18)!important;
  outline-offset:2px!important;
}
@media (max-width:720px){
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-modal-step-panel .tb-goal-chip-option,
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-form-grid.tb-modal-step-form-grid > .tb-goal-chip-option{
    min-height:52px!important;
    padding:13px 14px!important;
    border-radius:16px!important;
    font-size:14px!important;
  }
  html[data-tb-react-modalshell="ready"] #tbGoalEditorModal.tb-modal-steps-ready .tb-goal-chip-option input[type="checkbox"]{
    flex-basis:19px!important;
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
    min-height:19px!important;
    max-width:19px!important;
    max-height:19px!important;
  }
}
