:root{color-scheme:light;--ink:#173f34;--muted:#52675c;--paper:#f4f5ef;--line:#d5dfd7;--gold:#b8a365;--error:#922c27}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.7 system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
a{color:inherit;text-underline-offset:4px}
button,input{font:inherit}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #8b6714;outline-offset:4px}
.preferences-header{min-height:86px;background:#102c24;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px max(5vw,20px)}
.brand{display:flex;align-items:center;gap:12px;font-weight:650;text-decoration:none}
.brand img{width:40px;height:46px;object-fit:contain}
.language-switch{min-height:44px;min-width:70px;padding:8px 12px;border:1px solid #6c857b;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;text-decoration:none}
.language-switch:hover{background:#23483c}
.preferences-main{max-width:630px;margin:46px auto 24px;padding:0 20px}
.preferences-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:36px;box-shadow:0 8px 28px #163e3305}
.preferences-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:#edf3eb;color:var(--ink);margin-bottom:18px}
.preferences-icon svg{width:30px;height:30px}
.eyebrow{margin:0 0 5px;color:var(--muted);font-size:14px;font-weight:650}
h1{font-size:clamp(29px,6vw,36px);line-height:1.35;margin:0 0 14px;letter-spacing:-.025em}
.description{margin:0 0 26px;color:#405c50}
.channel-options{padding:0;border:0;margin:0 0 22px}
.channel-options legend{padding:0;margin-bottom:10px;font-size:16px;font-weight:650}
.channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.channel-option{min-height:52px;display:flex;gap:9px;align-items:center;padding:10px 13px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:15px;font-weight:600}
.channel-option:has(input:checked){background:#edf4ed;border-color:var(--ink)}
.channel-option:has(input:disabled){opacity:.6;cursor:wait}
.channel-option input{width:18px;height:18px;flex:none;margin:0;accent-color:var(--ink)}
.identifier-group{margin-bottom:22px}
.identifier-group>label{display:block;font-size:16px;font-weight:650;margin-bottom:8px}
#identifier{display:block;width:100%;min-height:54px;padding:12px 14px;border:1px solid #8da497;border-radius:10px;background:#fff;color:var(--ink);font-size:17px}
#identifier::placeholder{color:#69786f;opacity:1}
#identifier[aria-invalid=true]{border:2px solid var(--error)}
.field-help,.field-error{font-size:14px;line-height:1.6;margin:8px 0 0}
.field-help{color:var(--muted)}
.field-error{color:var(--error);font-weight:600}
.primary{min-height:52px;width:100%;padding:12px 18px;color:#fff;background:var(--ink);border:1px solid var(--ink);border-radius:10px;font-weight:650;cursor:pointer}
.primary:hover:not(:disabled){background:#102f26}
.primary:disabled{opacity:.65;cursor:wait}
.status{border:1px solid #bad0bc;border-radius:11px;background:#edf5ec;color:#214e30;padding:16px;margin:0 0 18px;font-size:16px;white-space:pre-line}
.status.error{background:#fff2ef;border-color:#e2bbb5;color:var(--error)}
.status.loading{background:#f0f3ed;border-color:var(--line);color:var(--muted)}
#unsubscribe-form:not([hidden])+.status{margin-top:18px}
.service-note{margin:24px 0 16px;padding-top:20px;border-top:1px solid #e3e9e2;color:var(--muted);font-size:14px;line-height:1.75}
.home-link,.manual-link{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:15px;font-weight:600}
.manual-link{margin-top:8px}
footer{padding:4px 20px 28px;text-align:center;font-size:13px;color:var(--muted)}
@media(max-width:480px){.preferences-header{padding:13px 16px;gap:10px}.brand{gap:9px;font-size:13px}.brand img{width:31px;height:38px}.language-switch{padding:8px 10px;font-size:14px;min-width:64px}.preferences-main{margin-top:24px;padding:0 14px}.preferences-panel{padding:25px 21px;border-radius:18px}.channel-grid{gap:8px}.channel-option{padding:10px;font-size:14px;gap:7px}.description{font-size:16px}.preferences-icon{margin-bottom:15px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .15s ease,border-color .15s ease}}

/* Grow with readable text instead of shrinking or clipping choices. */
.preferences-panel #title{overflow-wrap:anywhere;hyphens:auto;}
.preferences-panel .channel-options{min-inline-size:0;}
.preferences-panel .channel-option{min-width:0;overflow-wrap:anywhere;}
