/* Shared Pocket controls. Consent has the same layout and prominence in both palettes. */
.sf-legal-links{display:flex!important;align-items:center;flex-wrap:wrap;gap:4px 24px;padding-top:24px;border-top:1px solid var(--line);margin-top:28px;font-size:12px;color:var(--muted)}
.sf-legal-links a,.sf-legal-links button{min-height:40px;display:inline-flex;align-items:center;font:inherit;color:inherit;max-width:100%;overflow-wrap:anywhere}
.sf-legal-links button,.sf-legal-revision button{border:0;background:none;padding:0;cursor:pointer}
.sf-legal-links a:hover,.sf-legal-links button:hover,.sf-legal-links a[aria-current]{color:var(--text)}
.sf-cookie-banner{position:fixed;z-index:45;inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-width:1120px;margin:auto;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:24px;display:flex;align-items:center;gap:30px;box-shadow:0 8px 40px #0002;font-family:inherit;font-size:14px;line-height:1.5}
.sf-cookie-copy{min-width:0;flex:1}.sf-cookie-copy strong{display:block;font-size:17px;font-weight:600;letter-spacing:-.3px;margin-bottom:8px}.sf-cookie-copy p{color:var(--muted);margin:0;font-size:13px;line-height:1.65}
.sf-cookie-copy a,.sf-cookie-dialog footer a{text-decoration:underline;text-underline-offset:3px;color:var(--text)}
.sf-cookie-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex-shrink:0;max-width:100%}
.sf-cookie-banner button,.sf-cookie-dialog button{font:inherit;font-size:13px;font-weight:500;min-height:44px;cursor:pointer;border:1px solid var(--line);border-radius:7px;color:var(--text);background:var(--bg);padding:10px 14px;transition:background .15s}
.sf-cookie-banner button:hover,.sf-cookie-dialog button:hover{background:var(--panel,var(--surface))}.sf-cookie-banner button:disabled,.sf-cookie-dialog button:disabled{opacity:.55;cursor:wait}
.sf-cookie-banner .sf-cookie-text{grid-column:1/-1;border:0;min-height:32px;padding:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.sf-cookie-banner button:focus-visible,.sf-cookie-dialog button:focus-visible,.sf-cookie-dialog input:focus-visible,.sf-legal-links button:focus-visible,.sf-legal-settings:focus-visible,.sf-legal-revision button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sf-cookie-spacer{height:190px;flex-shrink:0}.sf-cookie-dialog{z-index:55;box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text);font:inherit;overflow:auto}
.sf-cookie-dialog::backdrop{background:#0006}.sf-cookie-dialog header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.sf-cookie-dialog header span{font-size:11px;color:var(--muted)}.sf-cookie-dialog h2{font-size:26px;line-height:1.25;letter-spacing:-.8px;margin:8px 0 16px;font-weight:600}
.sf-cookie-dialog header button{padding:10px;width:40px;min-height:40px;flex-shrink:0}.sf-cookie-dialog svg{width:18px;height:18px}.sf-cookie-intro{margin:0 0 24px;color:var(--muted);font-size:14px;line-height:1.65}
.sf-cookie-category{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:22px 0}.sf-cookie-category div{min-width:0}.sf-cookie-category strong{font-weight:600;font-size:15px}.sf-cookie-category p{color:var(--muted);font-size:13px;line-height:1.65;margin:7px 0 0;max-width:38ch}.sf-cookie-always{font-size:11px;color:var(--muted);flex-shrink:0;max-width:90px;text-align:right}
.sf-cookie-category input{width:22px;height:22px;accent-color:var(--accent);flex-shrink:0;cursor:pointer;margin:0}.sf-cookie-category input:disabled{cursor:default}.sf-cookie-signal{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 12px}
.sf-cookie-error{color:var(--danger,#c43138)!important;font-size:12px;line-height:1.6;margin:8px 0!important}.sf-cookie-error:empty{display:none}.sf-cookie-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 22px}.sf-cookie-dialog footer{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px}.sf-cookie-dialog footer small{flex-basis:100%;color:var(--muted);font-size:11px;margin-top:6px}
.sf-app-legal{margin-top:36px;padding-top:20px;border-top:1px solid var(--line);display:flex;align-items:center;flex-wrap:wrap;gap:5px 22px;font-size:12px;line-height:1.5;color:var(--muted)}.sf-app-legal a,.sf-app-legal button{display:inline-flex;align-items:center;min-height:44px;max-width:100%;margin:0;padding:0;line-height:inherit}.sf-app-legal button{font:inherit;color:inherit;background:transparent;border:0;padding:0;cursor:pointer}.sf-app-legal button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:760px){.sf-cookie-banner{flex-direction:column;align-items:stretch;gap:18px;padding:20px;max-height:calc(100dvh - 32px);overflow:auto}.sf-cookie-actions{width:100%;flex-shrink:1}.sf-cookie-spacer{height:290px}.sf-legal-links{gap:4px 20px}}
@media(max-width:380px){.sf-cookie-banner{padding:17px;inset-inline:10px;bottom:max(10px,env(safe-area-inset-bottom))}.sf-cookie-banner button{padding:10px 8px;font-size:12px}.sf-cookie-copy strong{font-size:16px}.sf-cookie-spacer{height:320px}.sf-cookie-dialog{padding:20px}.sf-cookie-dialog-actions{grid-template-columns:1fr}.sf-cookie-dialog h2{font-size:24px}.sf-cookie-category{gap:12px}}
@media print{.sf-cookie-banner,.sf-cookie-spacer,.sf-cookie-dialog{display:none!important}}

.login-foot:has(.sf-app-legal){flex-wrap:wrap;gap:12px}.login-foot .sf-app-legal{flex-basis:100%;margin-top:10px;padding-top:12px}
