/* Grouped preferences retain the existing controls and privacy behavior. */
body #settingsPreferencesPanel{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body #settingsPreferencesPanel .settings-list{display:grid;gap:24px!important;max-width:760px;margin:0 auto;padding:4px 0 20px}
body #settingsPreferencesPanel .preferences-group{margin:0;padding:0;border:0;background:transparent;box-shadow:none;min-width:0}
body #settingsPreferencesPanel .settings-group-title{margin:0 14px 8px!important;padding:0;font-size:11px;letter-spacing:1.3px;font-weight:600;color:var(--muted);text-transform:uppercase}
body #settingsPreferencesPanel .preferences-group-card{overflow:hidden;border:1px solid rgba(127,140,158,.18);border-radius:16px;background:color-mix(in srgb,var(--paper) 94%,var(--ink) 3%)}
body #settingsPreferencesPanel .preferences-group-card>.setting-row{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;position:relative;margin:0!important;padding:13px 14px!important;min-height:72px;border:0!important;border-bottom:1px solid rgba(127,140,158,.12)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
body.dark #settingsPreferencesPanel .preferences-group-card>.setting-row{border-bottom-color:rgba(255,255,255,.06)!important}
body #settingsPreferencesPanel .preferences-group-card>.setting-row:last-child{border-bottom:0!important}
body #settingsPreferencesPanel .preferences-group-card .setting-icon{display:grid;place-items:center;align-self:start;margin-top:2px;width:28px!important;height:28px!important;min-width:28px;flex-basis:28px!important;border:0;border-radius:8px;background:color-mix(in srgb,var(--blue) 12%,transparent)!important;color:var(--blue)!important;padding:5px;box-sizing:border-box}
body #settingsPreferencesPanel .setting-icon svg{width:18px;height:18px;stroke-width:1.7}
body #settingsPreferencesPanel .setting-copy{display:grid;gap:4px;min-width:0;margin:0;padding:0}
body #settingsPreferencesPanel .setting-copy strong{font-size:14px;line-height:1.35;font-weight:600}
body #settingsPreferencesPanel .setting-copy small{display:block;font-size:12px;line-height:1.5;font-weight:400;color:var(--muted);white-space:normal;overflow:visible;text-overflow:clip}
body #settingsPreferencesPanel .switch-ui{grid-column:3;flex-shrink:0;width:40px;margin:0;align-self:center}
body #settingsPreferencesPanel .setting-row select{width:120px;min-width:0!important;max-width:100%;height:36px;min-height:36px;padding:6px 25px 6px 9px!important;border:0!important;border-radius:9px;background-color:color-mix(in srgb,var(--muted) 12%,transparent)!important;color:var(--ink);font-family:inherit;font-size:13px!important;font-weight:500;box-sizing:border-box;margin:0}
body #settingsPreferencesPanel .goal-input-wrap{width:100px;min-width:0;flex-basis:100px;min-height:36px;max-width:100%;padding:0 9px;border:0;background:color-mix(in srgb,var(--muted) 12%,transparent);border-radius:9px;box-sizing:border-box;gap:4px}
body #settingsPreferencesPanel .goal-input-wrap input{font-family:inherit;font-size:16px;padding:7px 0;box-shadow:none;max-width:100%}
body #settingsPreferencesPanel .timezone-controls{grid-column:2 / -1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;max-width:100%;width:100%;margin-top:0}
body #settingsPreferencesPanel .timezone-controls select{width:100%;max-width:100%!important;font-size:13px!important}
body #settingsPreferencesPanel .timezone-device-button{min-height:32px;background:transparent;border:0;padding:4px 0;font-size:12px;font-weight:500;color:var(--blue);text-align:left}
body #settingsPreferencesPanel .timezone-device-status:empty{display:none}
body #settingsPreferencesPanel .privacy-visitor-summary{margin:14px;padding:11px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--blue) 25%,transparent);background:color-mix(in srgb,var(--blue) 6%,transparent);font-size:12px;line-height:1.6;color:var(--ink)}
body #settingsPreferencesPanel .privacy-settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 14px;margin:0;align-items:stretch}
body #settingsPreferencesPanel .privacy-settings-actions button{width:100%;min-width:0;min-height:42px;padding:9px 8px;font-size:12px;font-weight:600;line-height:1.4;border-radius:10px;white-space:normal}
body #settingsPreferencesPanel #privacySettingsMessage{grid-column:1 / -1;font-size:12px;line-height:1.5}
body #settingsPreferencesPanel #privacySettingsMessage:empty{display:none}
@media(max-width:480px){body #settingsPreferencesPanel .setting-row:has(>select),body #settingsPreferencesPanel .weekly-goal-setting{grid-template-columns:28px minmax(0,1fr)}body #settingsPreferencesPanel .setting-row>select,body #settingsPreferencesPanel .goal-input-wrap{grid-column:2;justify-self:start;width:100%;max-width:210px}body #settingsPreferencesPanel .goal-input-wrap{max-width:130px}}
