/* Controles de toque. A grade mantém sua densidade e rolagem próprias. */
@media (max-width:768px) {
  input:not([type=hidden]), select, textarea, .ant-select-selection-search-input,
  .ant-input, .ant-picker-input input { font-size:16px!important; }
  input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select,
  .ant-input-affix-wrapper, .ant-select-selector, .ant-picker { min-height:44px; }
  .ant-select-single, .ant-select-single .ant-select-selector { height:44px!important; }
  .ant-select-single .ant-select-selection-search-input { height:42px!important; }
  .ant-select-single .ant-select-selection-item, .ant-select-single .ant-select-selection-placeholder { line-height:42px!important; }
  button, [role=button], [role=tab], .ant-menu-item, .ant-dropdown-menu-item,
  .ant-checkbox-wrapper, .ant-radio-wrapper { min-height:44px; min-width:44px; }
  [role=tab], .ant-checkbox-wrapper, .ant-radio-wrapper { display:inline-flex;align-items:center; }
  button, [role=button], [role=tab], a[href], input, select, textarea { touch-action:manipulation; }
  a[href]:not(.fc-event) { display:inline-flex;align-items:center;min-height:44px; }
  .ant-checkbox-wrapper, .ant-radio-wrapper { padding:4px;gap:4px; }
  input[type=checkbox], input[type=radio] { min-height:0;min-width:0; }
  .ant-checkbox-input, .ant-radio-input { min-height:0!important; }
  .ant-btn-icon-only { min-width:44px; }
  .ant-btn { min-width:44px!important; }
  .ant-dropdown-menu-item, .ant-dropdown-menu-submenu-title { min-height:48px; }
  .ant-select-item-option { min-height:44px;display:flex;align-items:center; }
  .ant-drawer-content-wrapper, .ant-modal { max-width:100vw!important; }
  .ant-drawer-content, .ant-drawer-body, .ant-form-item, .ant-form-item-control { min-width:0; }
  .ant-drawer-content { max-height:var(--agenda-viewport-height,100dvh); }
  .ant-drawer-body { min-height:0;overscroll-behavior:contain;scroll-padding-bottom:90px; }
  .ant-drawer-header, .ant-drawer-footer { flex-shrink:0; }
  .ant-drawer-header { align-items:center; }
  .ant-drawer-close { display:inline-flex;justify-content:center;align-items:center;margin-inline-end:8px; }
  .ant-drawer-footer { padding-bottom:max(10px,env(safe-area-inset-bottom)); }
  textarea { scroll-margin-block:70px 100px; }
  :focus-visible { outline:2px solid #5746ed;outline-offset:2px; }
  /* Formas de 44px no editor, sem aumentar a altura de cards/vagas da grade. */
  .agenda-smart-preference-star.ant-btn { flex:0 0 88px;width:88px;height:44px;font-size:17px; }
  .agenda-smart-preference-star::after { content:'Preferir';font-size:12px;color:#666; }
  .agenda-smart-preference-star[aria-pressed=true]::after { content:'Preferida';color:#7a5200; }
  .agenda-smart-employee-field>.ant-col:last-child { flex-basis:44px;max-width:44px; }
  .agenda-smart-waitlist-card button, .agenda-smart-waitlist-card a,
  .agenda-smart-panel button { min-height:44px;padding:9px 12px;border:1px solid #d9d9d9;border-radius:8px;background:#fff;color:#262626; }
  .agenda-smart-waitlist-card>div { min-width:0; }
  .agenda-smart-waitlist-card>div:last-child { display:flex;gap:8px;flex-wrap:wrap; }
  .agenda-smart-ant-drawer .ant-drawer-header { position:sticky;top:0;z-index:2;background:var(--agenda-mobile-surface,#fff); }
  .agenda-smart-ant-drawer .ant-drawer-body { overflow-y:auto; }
  .agenda-smart-ant-drawer .agenda-smart-panel>label { display:block;margin-block:8px; }
  .agenda-smart-ant-drawer .agenda-smart-panel select { width:100%; }
  .agenda-smart-panel { overflow-wrap:anywhere; }
  .agenda-smart-panel input, .agenda-smart-panel select { max-width:100%; }
  .react-tel-input { min-height:44px; }
  .react-tel-input .selected-flag { min-width:44px;min-height:44px; }
  .react-tel-input input.form-control { padding-left:50px!important; }
  .agenda-mobile-date { border:0;background:transparent;color:inherit;font-size:16px;font-weight:600;min-width:110px; }
  .wb__sc-tl838r-0 { background:var(--agenda-mobile-surface,#fff)!important; }
  [data-mobile-bar] { bottom:0!important;left:0!important;right:0!important;border-radius:0!important;
    background:var(--agenda-mobile-surface,#fff)!important;color:var(--agenda-mobile-text,#262626);
    border-top:1px solid #d9d9d9;padding-bottom:env(safe-area-inset-bottom); }
  .fc-view-harness { padding-bottom:calc(var(--agenda-mobile-bar-height,70px) + 8px); }
  .agenda-mobile-central { flex-direction:column;height:calc(var(--agenda-viewport-height,100dvh) - var(--agenda-mobile-bar-height,70px))!important;min-height:0; }
  .agenda-mobile-central>.wb__sc-1f30x4r-2 { min-height:0; }
  .agenda-mobile-inbox { display:flex;flex:1;min-width:0;min-height:0; }
  .agenda-mobile-inbox>.wb__sc-1bhiq31-0 { width:100%;min-width:0; }
  .agenda-mobile-inbox>[data-mobile-selected]:not([data-mobile-selected=""]) { display:none; }
  .agenda-mobile-inbox>[data-mobile-chat-empty] { display:none; }
  .agenda-mobile-inbox>.wb__sc-zwo6zi-0 { display:none; }
  .agenda-mobile-inbox>[data-mobile-selected]:not([data-mobile-selected=""])+[data-mobile-chat-empty] { display:flex;flex-direction:column;gap:12px;padding:16px; }
  [data-mobile-chat] { min-width:0;min-height:0;position:relative; }
  [data-mobile-chat]>.wb__sc-1jcatrm-1 { min-width:0;min-height:0; }
  [data-mobile-chat] .wb__sc-rbugfb-0 { position:absolute;inset:0;width:100%;min-width:0;z-index:5;background:#fff;overflow:auto; }
  .agenda-mobile-chat-header { display:flex;align-items:center;flex-shrink:0;border-bottom:1px solid #eee;background:#fff; }
  .agenda-mobile-chat-header>button { border:0;background:transparent;font-size:24px; }
  .agenda-mobile-chat-header>.wb__sc-ifnq83-0 { flex:1;min-width:0;flex-wrap:wrap;padding:4px;gap:4px;border:0; }
  .agenda-mobile-chat-header .wb__sc-ifnq83-1 { margin-left:auto;flex-wrap:wrap; }
  .agenda-mobile-chat-header .wb__sc-1yw2cug-0 { min-height:44px;min-width:0;overflow-wrap:anywhere; }
  .agenda-mobile-chat-header .wb__sc-1554rzr-0 { min-height:44px;min-width:44px; }
  .agenda-mobile-central .wb__sc-ee8b2k-0 { flex-wrap:wrap;padding-bottom:max(10px,env(safe-area-inset-bottom));flex-shrink:0; }
  .agenda-mobile-central .wb__sc-ee8b2k-1 { min-width:0; }
  .agenda-mobile-central textarea { max-height:120px; }
  .agenda-mobile-central .ant-modal-close, .ant-image-preview-close { min-width:44px;min-height:44px; }
  .agenda-mobile-inbox-menu { display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:0 8px;border-bottom:1px solid #ddd;background:#fff;z-index:20; }
  .agenda-mobile-inbox-menu details>summary { display:flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;cursor:pointer; }
  .agenda-mobile-inbox-menu details>div { position:absolute;right:0;top:44px;width:min(280px,100vw);max-height:calc(var(--agenda-viewport-height,100dvh) - 50px);overflow:auto;background:#fff;border:1px solid #ddd;box-shadow:0 4px 14px #0002; }
  .agenda-mobile-load-media { width:240px;max-width:100%;padding:14px;border:1px solid #ccc;border-radius:8px;background:#fff; }
  .agenda-mobile-full-hour { font-weight:700;border-top:1px solid #ddd; }
  .agenda-mobile-outside { width:100%;background:#fff;border:0;border-top:1px solid #ddd;color:#505afb; }
  .agenda-mobile-history article { padding:15px;border-bottom:1px solid #eee;background:#fff;overflow-wrap:anywhere; }
  .agenda-mobile-history p { margin:8px 0; }
  .agenda-mobile-legend { display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;
    gap:4px;min-width:44px;min-height:64px;border:0;background:transparent;font-size:10px;line-height:1.2;color:#555;padding:4px; }
  .agenda-mobile-more { position:fixed;right:0;bottom:calc(var(--agenda-mobile-bar-height,70px) + 8px);padding:6px 10px;background:#fff;box-shadow:-8px 0 12px #0002;border-radius:8px 0 0 8px;font-size:12px;z-index:110;pointer-events:none; }
}
@media (min-width:769px) { .agenda-mobile-inbox { display:contents; } }
@media (max-width:390px) {
  .agenda-smart-waitlist-card { align-items:stretch;flex-direction:column; }
  .agenda-smart-waitlist-card>div:last-child { flex-direction:column; }
}
