/* Amp's explicit component roles: circular utility icons; uniform single-line fields;
   small-corner panels. Retain native action/validation/selection handlers. */
html[data-ui-skin="minimal"]{--control-height:44px;--field-radius:6px}
html[data-ui-skin="minimal"] :is(#content,#modal,.topbar,.sidebar) :is(.ui-shortcut,.icon-button,.row-icon,.document-menu-toggle),
html[data-ui-skin="minimal"] :is(#content,#modal) .flow-icon-button{
 border-radius:50%!important;box-sizing:border-box;width:44px!important;height:44px!important;
 min-width:44px!important;min-height:44px!important;padding:0!important;flex-shrink:0;
}
html[data-ui-skin="minimal"] :is(#content,#modal,.topbar) input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
html[data-ui-skin="minimal"] :is(#content,#modal,.topbar) select:not([multiple]),
html[data-ui-skin="minimal"] :is(#content,#modal,.topbar) .sales-select-trigger{
 box-sizing:border-box;height:44px!important;min-height:44px!important;max-height:44px!important;
 padding-top:0!important;padding-bottom:0!important;line-height:1.5!important;border-radius:6px!important;
}
html[data-ui-skin="minimal"] :is(#content,#modal,.topbar) .sales-select-trigger{align-items:center}
html[data-ui-skin="minimal"] :is(#content,#modal,.topbar) .sales-select-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-ui-skin="minimal"] :is(#content,#modal) label.search{
 box-sizing:border-box;display:flex;align-items:center;height:44px!important;min-height:44px!important;
 padding-top:0!important;padding-bottom:0!important;border-radius:6px!important;
}
html[data-ui-skin="minimal"] :is(#content,#modal) label.search>input{
 height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;
}
html[data-ui-skin="minimal"] #content .flow-filters label{gap:6px}
html[data-ui-skin="minimal"] #content .flow-filters label>span{line-height:20px}
html[data-ui-skin="minimal"] #content .flow-filters :is(input,.sales-select){margin-top:0!important;margin-bottom:0!important}
html[data-ui-skin="minimal"] #content .toolbar>.sales-select{margin-top:0!important;margin-bottom:0!important}
/* Multiline textareas and native checkbox/radio/file controls keep their useful sizing. */
/* Row menu buttons keep native title/ARIA labels. A hidden generated tooltip can
   still extend the document's scrollable width at the right table edge. */
html[data-ui-skin="minimal"] [data-ctp-more]::after{display:none!important}
/* Validation help follows the right edge of its toolbar control rather than
   extending beyond the viewport. Preserve the actual prerequisite message. */
html[data-ui-skin="minimal"] .heading-actions .disabled-control::after{
 left:auto;right:0;max-width:min(280px,calc(100vw - 32px));width:max-content;
 box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;
}
/* Hidden tooltip boxes must not contribute to document overflow. When visible,
   use viewport coordinates rather than extending from a right-edge button. */
html[data-ui-skin="minimal"] .ui-shortcut::after{
 display:none;position:fixed!important;left:var(--ctp-tooltip-left,12px)!important;
 top:var(--ctp-tooltip-top,12px)!important;right:auto!important;bottom:auto!important;
 transform:none!important;box-sizing:border-box;max-width:min(260px,calc(100vw - 24px))!important;
 width:max-content;white-space:normal!important;overflow-wrap:anywhere;
}
html[data-ui-skin="minimal"] .ui-shortcut:is(:hover,:focus-visible)::after{display:block}

/* Details retain icon-only desktop utilities; touch users see the existing name. */
.ui-touch-label{display:none}
@media (hover:none),(max-width:768px){
 html[data-ui-skin="minimal"] :is(#content,#modal) .ui-detail-toolbar{
  display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:8px;
 }
 html[data-ui-skin="minimal"] :is(#content,#modal) .ui-detail-toolbar .ui-shortcut{
  display:flex!important;flex-direction:column;justify-content:flex-start;align-items:center;
  width:76px!important;height:auto!important;min-width:44px!important;min-height:76px!important;
  flex:0 0 76px!important;gap:5px!important;padding:0 2px 4px!important;
  border:0!important;border-radius:6px!important;background:transparent!important;color:var(--ink)!important;
 }
 html[data-ui-skin="minimal"] :is(#content,#modal) .ui-detail-toolbar .ui-shortcut>svg{
  box-sizing:content-box;width:21px;height:21px;min-width:21px;min-height:21px;
  padding:10.5px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--blue);
 }
 html[data-ui-skin="minimal"] :is(#content,#modal) .ui-detail-toolbar .ui-shortcut.ui-danger{color:var(--ui-danger)!important}
 html[data-ui-skin="minimal"] :is(#content,#modal) .ui-detail-toolbar .ui-shortcut.ui-danger>svg{
  color:var(--ui-danger);border-color:var(--ui-danger);background:color-mix(in srgb,var(--ui-danger) 10%,var(--surface));
 }
 html[data-ui-skin="minimal"] :is(#content,#modal) .ui-detail-toolbar .ui-touch-label{
  display:block;font:400 12px/1.45 var(--ui-font);text-align:center;white-space:normal;
  overflow-wrap:anywhere;max-width:100%;letter-spacing:normal;
 }
 html[data-ui-skin="minimal"] .ui-detail-toolbar .ui-shortcut::after{display:none!important}
}
