/* Screen action scale and Setup layout; original fields and save handlers stay intact. */
@media screen {
 #workspaceView .page:not(#page-pos) :is(button.primary,button.secondary,.chip-button) {min-height:32px!important;min-width:0!important;padding:6px 10px!important;gap:6px!important;font-size:var(--vc-type-control,12px)!important;line-height:1.35!important;border-radius:8px!important;box-sizing:border-box}
 #workspaceView .page:not(#page-pos) :is(button.primary,button.secondary,.chip-button)>.icon {width:16px!important;height:16px!important;flex-shrink:0}
 #workspaceView .page:not(#page-pos) :is(button.primary,button.secondary,.chip-button)>[data-icon] {display:inline-flex!important;align-items:center;justify-content:center;width:16px!important;height:16px!important;line-height:1!important;flex-shrink:0}
 #workspaceView .page:not(#page-pos) :is(button.primary,button.secondary,.chip-button)>[data-icon] :is(svg,.icon) {width:16px!important;height:16px!important}
 #page-setup .setup-shell {grid-template-columns:200px minmax(0,1fr);gap:14px;align-items:start}
 #page-setup .setup-nav {padding:8px!important;gap:4px;max-height:calc(100dvh - 175px);overflow:auto}
 #page-setup .setup-nav button {min-height:48px;padding:8px!important;grid-template-columns:28px minmax(0,1fr);gap:3px 8px;border-radius:9px;font-size:12px}
 #page-setup .setup-nav button>span {width:28px;height:28px;border-radius:8px}
 #page-setup .setup-nav button .icon {width:18px;height:18px}
 #page-setup .setup-nav small {font-size:11px;line-height:1.4}
 #page-setup .setup-content,.setup-tab>.panel {min-width:0}
 #page-setup .setup-tab {gap:14px}
 #page-setup .panel-title {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}
 #page-setup :is(.action-row,.branch-action-row) {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
 #page-setup :is(.form-grid,.setup-form-row) {gap:12px;align-items:start}
 #page-setup .form-grid.wide {grid-template-columns:repeat(2,minmax(0,1fr))}
 #page-setup .setup-form-row {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));margin-bottom:16px}
 #page-setup :is(.form-grid,.setup-form-row)>label {min-width:0;font-size:12px;line-height:1.4}
 #page-setup .setup-form-row>label:not(.check) {display:grid;gap:6px}
 #page-setup :is(input.input:not([type=checkbox]):not([type=radio]),select.input) {width:100%;min-width:0;min-height:32px!important;height:32px!important;padding:6px 9px!important;font-size:12px!important;box-sizing:border-box}
 #page-setup textarea.input {max-width:100%;box-sizing:border-box}
 #page-setup .setup-form-row .check {display:flex;align-items:center;gap:8px;min-height:32px;align-self:end;margin:0}
 #page-setup .table-wrap {max-width:100%;overflow:auto;margin-top:14px}
 #page-setup table th {font-size:10px;line-height:1.4}
 #page-setup table td {font-size:12px;line-height:1.4}
 #page-setup .branch-profile-tabs {gap:4px;padding:4px;margin-bottom:14px}
 #page-setup .branch-profile-tabs button {min-height:32px;padding:6px 10px;font-size:12px;line-height:1.4}
 #page-setup .branch-profile-heading {margin-bottom:12px}
 #page-setup #setup-branch .branch-setting-row {min-height:0;padding:10px 12px;gap:16px}
 #page-setup #setup-branch .branch-standard-field {padding:0;gap:6px}
 #page-setup .branch-profile-general .branch-profile-fields {gap:12px 16px}
 #page-setup #setup-branch .branch-save-bar {position:static!important;inset:auto;margin:16px 0 0;padding:10px 12px;box-shadow:none;flex-wrap:wrap;gap:10px;isolation:isolate}
 #page-setup #setup-localization>.panel:first-child .setup-form-row {grid-template-columns:repeat(4,minmax(90px,1fr)) auto auto}
 #page-setup #setup-localization>.panel:nth-child(2) .setup-form-row {grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) minmax(140px,1.3fr) auto auto;align-items:end}
 #page-setup #setup-localization .form-grid.wide>.wide-field {grid-column:auto}
 #page-setup #setup-localization textarea {height:90px;min-height:90px;resize:vertical}
 #page-setup #loadLocalizationResources {width:auto;align-self:end;justify-self:end}
 @media(max-width:1100px) {
  #page-setup #setup-localization>.panel .setup-form-row {grid-template-columns:repeat(2,minmax(0,1fr))}
 }
 @media(max-width:900px) {
  #page-setup .setup-shell {grid-template-columns:minmax(0,1fr)}
  #page-setup .setup-nav {display:flex;position:static;max-height:none;overflow:auto}
  #page-setup .setup-nav button {flex:0 0 auto;white-space:nowrap;min-height:44px}
 }
 @media(max-width:600px) {
  #page-setup .form-grid.wide,#page-setup #setup-localization>.panel .setup-form-row {grid-template-columns:minmax(0,1fr)}
  #page-setup .wide-field {grid-column:auto}
  #page-setup #loadLocalizationResources {justify-self:stretch}
 }
 @media(max-width:700px),(pointer:coarse) {
  #workspaceView .page:not(#page-pos) :is(button.primary,button.secondary,.chip-button) {min-height:44px!important;padding:9px 12px!important}
 }
}
