.preferences {max-width:760px;margin:0 auto}
.preferences .viewtitle {margin:0 0 1.2rem}
.pref-panel {margin:0 0 12px;padding:clamp(17px,3vw,28px);background:var(--sheet);border:1px solid var(--line);border-radius:19px;color:var(--txt)}
.pref-panel h2 {font:normal clamp(1.45rem,3vw,1.75rem)/1.2 Georgia,serif;color:var(--txt);margin:0 0 16px}
.pref-name-label,.pref-field legend,.pref-toggle strong {font:650 1rem/1.35 system-ui,sans-serif;color:var(--txt)}
.pref-name-label {display:block;margin-bottom:7px}
.pref-panel input[type=text] {width:100%;max-width:31rem;min-height:47px;box-sizing:border-box;padding:9px 13px;border:1px solid var(--light-line,var(--line));border-radius:10px;background:var(--bg);color:var(--txt);font:inherit}
.pref-field {margin:0;padding:0;border:0;min-width:0}
.pref-field+.pref-field {margin-top:22px}
.pref-field legend {padding:0}
.pref-field p,.pref-toggle-description,.pref-storage p {margin:4px 0 12px;font-size:.9rem;line-height:1.48;color:var(--muted)}
.pref-choices {display:flex;flex-wrap:wrap;gap:8px}
.pref-choice {display:flex;align-items:center;position:relative;gap:9px;cursor:pointer;padding:9px 13px;min-height:46px;border:1px solid var(--light-line,var(--line));border-radius:11px;color:var(--txt);background:var(--bg)}
.pref-choice:has(:checked) {border-color:var(--green);background:color-mix(in srgb,var(--green) 11%,var(--bg));font-weight:650}
.pref-choice input {accent-color:var(--green);width:18px;height:18px;margin:0}
.pref-choice:has(:focus-visible) {outline:3px solid var(--orange);outline-offset:2px}
.pref-toggle {cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:54px}
.pref-toggle+.pref-toggle {margin-top:13px;padding-top:16px;border-top:1px solid var(--line)}
.pref-toggle-description {display:block;margin:4px 0}
.pref-toggle input {width:24px;height:24px;flex:0 0 24px;accent-color:var(--green);cursor:pointer}
.pref-toggle strong {cursor:pointer;display:inline-block;padding:4px 0}
.pref-storage {padding:6px 3px}
.pref-storage button {min-height:44px}
.pref-confirm {padding:13px;margin-top:10px;border:1px solid var(--light-line,var(--line));border-radius:10px}
.pref-confirm button {margin:3px 8px 3px 0}
.pref-status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
:root[data-contrast="high"] {--bg:#070d09;--sheet:#101b15;--line:#8faaa0;--light-line:#a4bdb2;--txt:#fffff5;--muted:#e0eee3;--green:#ddffad;--orange:#ffc890;--ink:#071009}
:root[data-contrast="high"] :is(.panel,.card,.meal,.pref-panel,.main-dock) {background:var(--sheet)!important;border-color:var(--line)!important}
:root[data-contrast="high"] :is(button,summary,input,select,textarea,a):focus-visible {outline:3px solid #ffe597!important;outline-offset:3px}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce) {html,html *,html *::before,html *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (max-width:420px) {.pref-choices {gap:6px}.pref-choice {gap:5px;padding:8px 10px;font-size:.91rem}}
