/* Scoped editor repairs: no caption fonts, timing, or translation rules. */
.pro-app .tool-rail button span {
  font-size: 12px !important;
  line-height: 1.5 !important;
  white-space: normal;
  overflow-wrap: normal;
}
.pro-app .tool-rail button {
  min-height: 64px !important;
  height: auto !important;
  flex-shrink: 0;
}
.pro-app .quick-toolbar .font-group:has(.font-choices) {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  width: auto !important;
}
.pro-app .quick-toolbar .font-choices.compact-font-choices {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.pro-app .quick-toolbar .font-choices .font-choice {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
.pro-app .quick-toolbar .font-choice > span {
  font-size: 12px !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}
.pro-app .quick-toolbar .font-choices .font-choice select {
  height: 32px !important;
  min-height: 32px !important;
  width: auto !important;
  min-width: 105px !important;
  max-width: 190px !important;
  font-size: 13px !important;
}
.pro-app .quick-toolbar {
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
/* Quick-mode field labels must stay readable; leave its layout and actions intact. */
.quick-settings .quick-field > span {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

/* Preferences controls only; caption rendering and saved values stay untouched. */
.global-settings-shell .global-setting-field>span,
.global-settings-shell .font-choice>span,
.global-settings-shell .account-fields>label>span {
  font-size:12px!important;
  line-height:1.7!important;
}
.global-settings-shell :is(select,input[type=number],input[type=text],textarea) {
  min-width:0!important;
  min-height:44px!important;
  font-size:14px!important;
  line-height:1.6!important;
}
.global-settings-shell select {
  appearance:none;
  width:100%;
  padding:10px 12px!important;
  padding-inline-end:34px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2371685f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-size:16px!important;
  background-position:left 10px center!important;
  background-repeat:no-repeat!important;
}
.global-settings-shell .font-choices {gap:12px}
.global-settings-shell .font-choice {min-width:0}
.global-settings-shell .settings-zone>header p,
.global-settings-shell .account-fields>label>small {font-size:12px!important;line-height:1.7!important}
.global-settings-shell :is(select,input,textarea,button):focus-visible {outline:2px solid #c7431b!important;outline-offset:3px}
@media(max-width:860px){
 .global-settings-shell :is(select,input[type=number],input[type=text],textarea) {
   font-size:16px!important;
   min-height:44px!important;
 }
}

.global-settings-shell .caption-spacing-controls label{font-size:12px!important;line-height:1.7!important}
@media(max-width:480px){.global-settings-shell .account-fields>.global-setting-field{grid-column:1/-1}}
