#DashboardContent > #SettingsWrapper { overflow: auto; scrollbar-width: thin; scrollbar-color: #888 transparent; }
#SettingsWrapper #SystemSettings { box-sizing: border-box; width: 100%; max-width: 64rem; padding: 16px clamp(12px, 2vw, 24px) 28px; margin: 0; color: #eee; font: 14px/1.45 "Segoe UI", sans-serif; text-align: left; }
#SettingsWrapper h2 { margin: 0 0 14px; padding: 0; color: inherit; font-size: 24px; background: none; }
.settings-columns, .settings-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; gap: 24px 32px; }
.settings-columns > section { margin: 0; background: none; border-radius: 0; box-shadow: none; opacity: 1; }
#SystemSettings h3, #SystemSettings h4 { margin: 0 0 12px; padding: 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.35; }
#SystemSettings h3 i { width: 1.5em; color: #ccc; font-size: .86em; }
#SystemSettings .checkbox { display: flex; align-items: center; box-sizing: border-box; width: auto; min-height: 36px; padding: 6px 4px 6px 32px; margin: 0; line-height: 1.35; color: inherit; }
#SystemSettings .checkbox span { box-sizing: border-box; top: 50%; translate: 0 -50%; width: 20px; height: 20px; background: linear-gradient(#333, #1d1d1d); }
#SystemSettings .checkbox span::after { left: 5px; top: 1px; }
#SystemSettings .checkbox:focus-within span { outline: 2px solid #fff; outline-offset: 1px; }
#SettingsWrapper .dashboard-layout { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px; margin: 0 0 12px; }
#SettingsWrapper .dashboard-layout b { grid-column: 1 / -1; margin: 0 0 2px; font-weight: 400; }
#SystemSettings details { margin: 10px 0 0; }
#SystemSettings summary { width: fit-content; padding: 6px 0; color: #eee; font-weight: 600; cursor: pointer; }
#SystemSettings summary:hover { color: #fff; text-decoration: underline; }
#SystemSettings p { margin: 2px 0 8px; padding: 0; color: #ccc; font-size: 13px; }
#SystemSettings .settings-colors { gap: 12px 24px; margin: 6px 0; }
#SystemSettings h4 { font-size: 14px; }
#SystemSettings .setting-field, .scale-setting, .settings-actions { display: flex; align-items: center; gap: 6px; min-height: 30px; }
#SystemSettings .setting-field { max-width: 27rem; }
#SystemSettings .setting-field label { flex: 1; min-width: 0; }
#SystemSettings label { margin: 0; color: inherit; font: inherit; text-transform: none; }
#SystemSettings .settings-actions { flex-wrap: wrap; margin: 12px 0; }
#SystemSettings .scale-setting { flex-wrap: wrap; gap: 8px 10px; margin-block: 8px; }
#SystemSettings button, #SettingsWrapper .dashboard-layout button, #SettingsWrapper #ExportMapData, #SystemSettings select {
    min-height: 32px; padding: 5px 12px; border: 0; border-radius: 5px; background: linear-gradient(#444, #262626);
    color: #eee; font: 600 13px/1.35 "Segoe UI", sans-serif; cursor: pointer;
}
#SystemSettings :is(button, select):hover, #SettingsWrapper .dashboard-layout button[aria-pressed=true] { color: #fff; background: linear-gradient(#606060, #383838); }
#SettingsWrapper .dashboard-layout button[aria-pressed=true] { text-decoration: underline; text-underline-offset: 3px; }
#SystemSettings :is(button, select, summary, input):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#SystemSettings input[type=text] { width: 5em; height: 30px; margin: 0; box-sizing: border-box; padding: 3px 6px; border: 1px solid #666; border-radius: 4px; background: #191919; color: #fff; }
#SystemSettings select { color-scheme: dark; appearance: auto; }
#ScaleSelect { flex: 0 1 auto; }
#ColorSettings .sp-replacer { padding: 3px; border-radius: 4px; border-color: #666; background: #292929; color: #eee; }
#ColorSettings .sp-preview { width: 20px; height: 16px; margin-right: 3px; }
