/* Shared phone/tablet refinements. Keep native inputs and existing form events. */
.dh-file-name{display:none}
body .sd-calculator-launcher[hidden]{display:none!important}
@media(max-width:800px){
  body .sidebar .btn.sd-calculator-launcher{position:static;inset:auto;display:flex;justify-content:flex-start;width:100%;max-width:100%;min-height:46px;margin:8px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);box-shadow:none;color:var(--ink);white-space:normal;transform:none}
  body .sidebar .sd-calculator-launcher-label{display:inline;opacity:1;max-width:none}
  body .sd-calculator-close{width:44px;height:44px;min-height:44px}
  body :is(.round-icon-action,.compact-search-trigger,.compact-search-clear,.price-guide-action,.catalog-filter-close,.modal-x,.crop-close,.profile-content-action,.launch-round-action){box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}
  body input:not([type=file]):not([type=range]):not([type=checkbox]):not([type=radio]),body select,body textarea{font-size:16px}
  body .field input[type=file],body input[type=file].dh-file-input.dh-file-input{box-sizing:border-box;min-width:0;width:100%;max-width:100%;height:auto;min-height:48px;font-size:0!important;color:transparent}
  body input[type=file].dh-file-input::file-selector-button{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px 12px;font:500 14px/1.4 var(--font-body);color:var(--primary)}
  body .dh-file-name{display:block;width:100%;min-width:0;margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
  body :is([role=tablist]:not([aria-orientation=vertical]):not(.dh-hunt-tabs):not(.bazaar-type-tabs),.subscription-tabs,.editor-tabs,.pe-tabs,.looks-tabs,.launch-filter-tabs,.price-guide-tabs,.tabs,.aq-tabs,.profile-tabs,.aq-toolbar>.aq-actions):not(.chat-status-tabs){flex-wrap:wrap!important;align-items:stretch!important;width:100%!important;max-width:100%;overflow:visible!important}
  body :is([role=tablist]:not([aria-orientation=vertical]):not(.dh-hunt-tabs):not(.bazaar-type-tabs),.subscription-tabs,.editor-tabs,.pe-tabs,.looks-tabs,.launch-filter-tabs,.price-guide-tabs,.tabs,.aq-tabs,.profile-tabs,.aq-toolbar>.aq-actions):not(.chat-status-tabs)>:is(button,a){box-sizing:border-box;flex:1 1 calc(50% - 4px)!important;min-width:0;min-height:44px!important;padding:10px 8px!important;white-space:normal!important;overflow-wrap:anywhere;text-align:center;line-height:1.4}
  body .bazaar-type-tabs{flex-wrap:wrap;max-width:100%;width:100%}
  body .bazaar-type-tabs>.bazaar-category-tab{flex:1 1 130px;min-width:0;min-height:44px;white-space:normal;text-align:center}
  body .pe-editor>.pe-tabs{width:calc(100% - 40px)!important;margin:20px!important}
}
@media(max-width:600px){body .pe-api-layout>.pe-editor>.pe-tabs.editor-tabs[role=tablist]{width:calc(100% - 24px)!important;margin:12px!important}}
@media(min-width:601px) and (max-width:800px){
  body :is(.competition-tabs,.profile-tabs,.msw-tabs)>:is(button,a){flex-basis:calc(33.333% - 4px)!important}
}
@media(max-width:500px){
  body .image-crop-dialog .crop-settings{grid-template-columns:minmax(0,1fr);gap:12px}
  body .image-crop-dialog .crop-settings select{width:100%;font-size:16px;min-height:48px}
  body .image-crop-dialog .crop-settings input[type=range]{min-height:44px}
  body .image-crop-dialog .crop-workspace{height:min(28dvh,220px)}
  body .image-crop-dialog footer{position:sticky;bottom:-16px;z-index:2;padding:12px 0 max(4px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);gap:10px}
  body .image-crop-dialog footer>.btn{min-height:44px;white-space:normal}
}
