/* Brodlin shared buttons r20261111: compact, non-bold, centered. Public + account only (not admin). */
html body :is(button, [role="button"], input[type="submit"], input[type="button"], a[class*="btn"], a[class*="button"], a[class*="cta"], .btn, .pt-btn, .pt-link, .auth-submit),
html body :is(button, [role="button"], a[class*="btn"], a[class*="button"], a[class*="cta"], .btn, .pt-btn, .auth-submit) :not(.material-symbols-outlined):not(.material-icons):not(svg *) {
  font-weight: 400 !important;
}
/* Text buttons: compact height, centered */
html body :is(.btn, .pt-btn, .auth-submit, .upload-prompt__btn, .brodlin-pdf-fill-placeholder__link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0 !important;
  max-height: 40px !important;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 14px !important;
  line-height: 1 !important;
  box-sizing: border-box;
}
html body :is(.pt-link) { line-height: 1 !important; }
/* Option tiles and floating launcher */
html body .format-choice { min-height: 0 !important; height: 40px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 14px !important; }
/* Icons inside buttons */
html body :is(.btn, .pt-btn, .auth-submit, .upload-prompt__btn, .brodlin-pdf-fill-placeholder__link, button[class*="btn"]) :is(.material-symbols-outlined, .material-icons) { font-size: 18px !important; line-height: 1 !important; }
html body :is(.btn, .pt-btn, .auth-submit, .upload-prompt__btn, .brodlin-pdf-fill-placeholder__link, button[class*="btn"]) svg { max-width: 18px; max-height: 18px; }
html body :is(.auth-submit, .upload-prompt__btn, .brodlin-pdf-fill-placeholder__link, .btn) { height: 40px !important; }
/* Long labels on narrow phones: wrap inside the 40px cap */
html body .pt-btn { white-space: normal; line-height: 1.1 !important; padding-top: 4px; padding-bottom: 4px; text-align: center; }
html body .brodlin-pdf-fill-placeholder__link { height: 40px !important; }
@media (max-width: 480px) { html body .pt-btn { font-size: 13px !important; padding: 0 8px; line-height: 1.05 !important; } }
/* Small buttons keep their own smaller height (only capped, never enlarged) */
html body .btn { height: auto !important; min-height: 32px !important; }
html body :is(.auth-submit, .upload-prompt__btn, .brodlin-pdf-fill-placeholder__link) { height: 40px !important; }
/* Other class*=btn controls: only capped and centered, own padding kept */
html body :is(a[class*="btn"], button[class*="btn"]):not(.btn):not(.pt-btn) { max-height: 40px; }

/* Denis law 13.11.2026 (mobile, up to 720px): text buttons that stand in a column are 100% wide, text and icon centred, 36px.
   ONE rule for the site: add a new column of actions to the list below, never copy this into a module.
   Icon-only buttons are not in these lists and are never stretched. */
@media (max-width: 720px) {
  html body :is(.cv-result-foot, .upload-prompt__actions, .dr1-head__acts, .dg1__acts, .pe-drop__btns, .brodlin-thanks__tools, .brodlin-actions) {
    display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; justify-content: flex-start !important; gap: 8px !important;
    width: 100% !important; max-width: none !important; align-self: stretch !important; box-sizing: border-box !important;
  }
  html body :is(.cv-result-foot, .upload-prompt__actions, .dr1-head__acts, .dg1__acts, .pe-drop__btns, .brodlin-thanks__tools, .brodlin-actions) > :is(button, a, label, .dr1-dd):not(.dr1-btn--dots):not(:has(> .dr1-btn--dots)),
  html body .dr1-head__acts .dr1-dd > :is(button, a):not(.dr1-btn--dots),
  html body #brodlin-crop .options-footer :is(#export, #back-to-edit) {
    width: 100% !important; max-width: none !important; margin: 0 !important; box-sizing: border-box !important;
    justify-content: center !important; text-align: center !important; height: 36px !important; min-height: 36px !important;
  }
  html body #brodlin-crop .options-footer #export { align-self: stretch !important; }
  html body .dr1-head__side:has(> .dr1-head__acts) { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
  html body .dr1-head__acts { align-self: stretch !important; width: 100% !important; }
  html body .dr1-head__acts > .dr1-dd:has(> .dr1-btn--dots) { align-self: flex-end !important; }
}
