.sg-web-settings[hidden] { display:none!important; }
.sg-web-settings { position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:20px 14px;background:#17212c70; }
.sg-web-settings-card { width:min(100%,440px);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;background:linear-gradient(140deg,#fffef9,#faf5e6);border:1px solid #d5c79e;border-radius:24px;box-shadow:inset 0 2px 0 #fff,0 12px 32px #18213245;color:#172938;padding:22px 18px;font:inherit; }
.sg-web-settings-card h2 { margin:0 0 12px;font-size:23px;color:#172938;font-weight:750;line-height:1.25; }
.sg-web-settings-note { font-size:14px;line-height:1.5;margin:0 0 16px;color:#526171; }
.sg-web-settings-options { display:grid;gap:10px;margin-bottom:16px; }
.sg-web-settings-option { display:flex;align-items:center;gap:12px;min-height:58px;margin:0;padding:12px 14px;border:1px solid #d9c99b;border-radius:14px;background:linear-gradient(145deg,#fffef9,#fff4d3);box-shadow:inset 0 1px 0 #fff;color:#172938;font-size:17px;font-weight:650;cursor:pointer; }
.sg-web-settings-option span { flex:1;min-width:0;overflow-wrap:anywhere; }
.sg-web-settings-option input { width:23px;height:23px;flex:0 0 23px;accent-color:#a67106;cursor:pointer; }
.sg-web-settings-option input[type=checkbox] { appearance:none;-webkit-appearance:none;width:44px;height:26px;flex-basis:44px;border:1px solid #b6ad98;border-radius:20px;background:#dcd7ca;position:relative;margin:0; }
.sg-web-settings-option input[type=checkbox]::after { content:'';position:absolute;width:20px;height:20px;top:2px;left:2px;border-radius:50%;background:#fffef9;box-shadow:0 1px 3px #4c452344; }
.sg-web-settings-option input[type=checkbox]:checked { background:#dfb84c;border-color:#aa7c14; }
.sg-web-settings-option input[type=checkbox]:checked::after { left:20px;background:#fffbe9; }
.sg-web-settings-option:has(input:checked) { border-color:#b28b29;background:linear-gradient(145deg,#fff9db,#ffebb3); }
.sg-web-settings-option:has(input:disabled) { opacity:.65;cursor:default; }
.sg-web-settings-actions { display:flex;gap:10px;position:sticky;bottom:-22px;padding:10px 0 0;background:#faf7ed; }
.sg-web-settings-actions button { flex:1;min-height:50px;padding:10px 12px;border:1px solid #b48b2f;border-radius:14px;color:#172938;font:inherit;font-weight:750;cursor:pointer;background:linear-gradient(#fff7c7,#f2c753 55%,#d59b23);box-shadow:inset 0 2px 1px #fff8,0 2px 3px #6e5c2340; }
.sg-web-settings-actions button.sg-web-settings-secondary { background:linear-gradient(#fffefb,#fff6df);border-color:#d3c59d; }
.sg-web-settings-actions button:disabled { opacity:.6;cursor:wait; }
.sg-web-settings :focus-visible { outline:3px solid #2264a2;outline-offset:3px; }
.sg-web-settings-status { margin:10px 0;color:#8a3300;font-size:14px;line-height:1.45; }
.sg-web-settings-status:empty { display:none; }
@media (max-width:350px) { .sg-web-settings-card {padding:18px 14px;} .sg-web-settings-card h2 {font-size:21px;} }
