.prefs{--pref-surface:#fff;--pref-line:#e2e9e3;--pref-muted:#52665a;--pref-tone:#e9f3eb;--pref-ink:#194a35;display:grid;gap:16px}
[data-theme=dark] .prefs{--pref-surface:#1b2720;--pref-line:#37473c;--pref-muted:#b0c3b5;--pref-tone:#293c30;--pref-ink:#c4edcf}
.pref-panel{background:var(--pref-surface);border:1px solid var(--pref-line);border-radius:22px;overflow:hidden}
.pref-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 8px}
.pref-heading h2{margin:0;font-size:16px}
.pref-badge{padding:4px 10px;border-radius:20px;background:#ffead1;color:#814a0c;font-size:12px}
.pref-row{width:100%;background:transparent;color:inherit;border:0;border-radius:0;display:flex;align-items:center;text-align:left;gap:13px;padding:12px 18px;min-height:62px;cursor:pointer}
.pref-row:hover{background:var(--pref-tone)}
.pref-icon,.pref-chevron{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.pref-icon{color:var(--pref-ink);background:var(--pref-tone);border-radius:12px;width:38px;height:38px}
.pref-icon svg{width:21px;height:21px}
.pref-chevron svg{width:16px;height:16px;color:var(--pref-muted)}
.pref-copy{min-width:0;flex:1;display:grid;gap:4px}
.pref-copy b{font-size:15px}
.pref-copy small,.pref-foot{color:var(--pref-muted);font-size:12px;line-height:1.65}
.pref-foot{margin:0 4px}
.pref-switch{display:flex;width:37px;height:22px;border:1px solid var(--pref-muted);border-radius:14px;align-items:center;padding:3px;box-sizing:border-box}
.pref-switch i{border-radius:50%;width:14px;height:14px;background:var(--pref-muted)}
.pref-switch.on{justify-content:flex-end;background:#4e8963}
.pref-switch.on i{background:#fff}
.pref-sheet{display:grid;gap:14px;overflow-wrap:anywhere}
.pref-sheet p,.pref-sheet h3{margin:0;line-height:1.65}
.pref-sheet label{display:grid;gap:8px}
.pref-sheet input{padding:12px;border-radius:12px;max-width:100%;font:inherit;box-sizing:border-box}
.pref-sheet button{border:0;border-radius:14px;padding:12px 16px;font:inherit;cursor:pointer}
.pref-sheet .pref-primary{background:#225a3d;color:white;font-weight:650}
.pref-actions{display:flex;gap:10px}
.pref-actions button{flex:1}
