.pg-settings {min-width:0}
.settings-sections {display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 22px}
body .settings-sections button {border-radius:999px;padding:8px 16px;min-height:38px}
body .settings-sections button[aria-pressed="true"] {background:var(--brand,#10294c);border-color:transparent;color:#fff}
.dark .settings-sections button[aria-pressed="true"] {background:var(--accent,#ffcf40);color:#12223a}
.pg-settings [role=region][hidden] {display:none!important}
.pg-settings .panel {margin:0 0 16px}
.settings-preferences {display:flex;flex-wrap:wrap;gap:20px 44px}
.settings-preferences>div {display:grid;justify-items:start;align-content:start;gap:9px}
.settings-preferences strong,.master-tools label {font-size:.85rem;color:var(--mut);font-weight:600}
button.settings-appearance svg,button.add-action svg,.master-actions svg {width:17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.master-panel {overflow:visible}
.master-tools {display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.master-tools>div {width:min(100%,300px)}
.master-tools h2 {margin:0 0 12px}
.master-tools label {display:block;margin-bottom:5px}
.master-panel .wrap {max-height:clamp(320px,62vh,720px);overflow:auto}
.master-actions {display:flex;gap:6px;align-items:center}
.master-actions button.circle-action {width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:50%}
.pg-settings #org {max-width:100%}
.pg-settings #settings-general .panel label {display:inline-flex;flex-direction:column;vertical-align:bottom;gap:4px;margin:2px 10px 8px 0}
.pg-settings #settings-general .panel button {margin:2px 0 8px}
.pg-settings #settings-data input[type=file] {max-width:100%}
@media(max-width:600px) {
  .settings-sections {gap:5px}
  body .settings-sections button {font-size:12px;padding:7px 11px}
  .pg-settings input[type=file] {width:100%}
  .pg-settings .master-panel {padding:13px}
}
.pg-data-confirm {width:min(440px,calc(100vw - 32px));padding:0;color:var(--ink);background:var(--card);border:0;border-radius:22px}
.pg-data-confirm .pophead,.pg-data-confirm .pg-modal-body {padding:16px 22px}
.pg-data-confirm .pg-modal-body p {margin:0 0 20px}
.pg-data-confirm .toolbar {margin:0;justify-content:flex-end}
#form [data-save-error] {color:var(--ink);background:var(--soft);padding:10px 14px;border-radius:14px;margin:10px 0}
