#system-settings-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#system-settings-form h2 { margin: 0; padding-bottom: 12px; color: var(--admin-text); font-size: 17px; }
#system-settings-form > fieldset > h2,
#system-settings-form > fieldset > .section-heading { margin-top: 28px; padding: 18px 20px 12px; border: 1px solid var(--admin-border); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--admin-surface); }
#system-settings-form > fieldset > h2:first-child { margin-top: 0; }
.system-settings-panel { padding: 20px; border: 1px solid var(--admin-border); border-radius: 0 0 7px 7px; background: color-mix(in srgb, var(--admin-surface) 72%, transparent); }
#welcome-settings-rows, #module-settings-rows { display: grid; gap: 12px; }
.system-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.system-settings-grid label { min-width: 0; }
.system-settings-grid label > i { margin-right: 8px; }
.system-icon-picker { min-width: 0; }
.system-icon-picker summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.system-icon-picker summary span { overflow-wrap: anywhere; }
.system-icon-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.system-icon-choices label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border: 1px solid var(--admin-border); border-radius: 4px; cursor: pointer; }
.system-icon-choices label:has(input:checked) { border-color: var(--admin-blue); background: var(--admin-surface); }
.system-icon-choices input[type="radio"] { width: 16px; min-width: 16px; margin: 0; }
.system-icon-choices label > i { margin: 0; }
.system-icon-choices span { overflow-wrap: anywhere; min-width: 0; }
.system-settings-grid input, .system-settings-grid textarea, .system-settings-grid select { width: 100%; min-width: 0; box-sizing: border-box; }
.system-settings-grid textarea { min-height: 88px; resize: vertical; padding: 10px; border: 1px solid var(--admin-border); border-radius: 5px; background: var(--admin-input); color: var(--admin-text); }
.system-logo-preview { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; align-self: center; }
.system-setting-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--admin-border); }
.system-setting-row .system-settings-grid { flex: 1; min-width: 0; }
.system-row-tools { display: flex; gap: 6px; align-items: start; }
.system-row-tools button { width: 36px; height: 36px; padding: 0; }
#system-settings-form > fieldset > button { margin-top: 24px; }
[data-brand-name] { overflow-wrap: anywhere; }
.brand { min-width: 0; flex-wrap: wrap; }
.brand [data-brand-name] { max-width: 240px; }
@media (max-width: 700px) {
    .system-settings-grid { grid-template-columns: minmax(0, 1fr); }
    .system-setting-row { flex-direction: column; }
    .brand [data-brand-name] { max-width: 160px; }
}
