.storage-banner,.storage-dialog{color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px;text-align:start;font:inherit}
.storage-banner{position:fixed;z-index:49;inset:auto 18px 18px auto;width:min(410px,calc(100vw - 36px));max-height:calc(100dvh - 110px);overflow:auto;padding:16px}
.storage-banner[hidden]{display:none}
.storage-heading{display:flex;align-items:center;gap:10px}.storage-cookie{width:42px;height:42px;flex:none}.storage-banner strong{display:block;font-size:17px}.storage-banner p,.storage-dialog p{font-size:13px;line-height:1.5;margin:8px 0;color:var(--muted)}.storage-banner>a{font-size:12px;text-decoration:underline}
.storage-actions{display:flex;direction:ltr;gap:10px;flex-wrap:wrap;margin:12px 0}.storage-actions button{flex:1;min-width:150px;white-space:normal}
.storage-banner .secondary,.storage-dialog .secondary{background:var(--card);color:var(--text);border:1px solid var(--line);box-shadow:none}.storage-banner .secondary:hover,.storage-dialog .secondary:hover{background:var(--soft)}
.storage-banner,.storage-dialog{--storage-accept-bg:var(--blue,#4352d4);--storage-accept-fg:#fff}
:root[data-theme=dark] .storage-banner,:root[data-theme=dark] .storage-dialog,:root:not([data-theme]):not(.light) .storage-banner,:root:not([data-theme]):not(.light) .storage-dialog{--storage-accept-bg:#FFB17A;--storage-accept-fg:var(--ink,#20263d)}
.storage-banner .storage-accept,.storage-dialog .storage-accept,.storage-banner .storage-accept:hover,.storage-dialog .storage-accept:hover{background:var(--storage-accept-bg);color:var(--storage-accept-fg);border-color:var(--storage-accept-bg)}
.storage-banner button,.storage-dialog button{font:inherit;cursor:pointer;min-height:44px;border-radius:12px;padding:10px 14px}.storage-banner .ghost{background:transparent;color:var(--text);border:0;text-decoration:underline}.storage-settings-link{display:block;margin:24px auto;border:0;background:transparent;color:var(--text);text-decoration:underline;cursor:pointer;font:inherit;padding:12px}
.storage-dialog{max-width:580px;width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}.storage-dialog h2{font-size:22px}.storage-dialog a{text-decoration:underline}.storage-dialog::backdrop{background:#0008}
.storage-banner button:focus-visible,.storage-dialog button:focus-visible,.storage-dialog a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:800px){.storage-banner{inset:auto 12px calc(88px + env(safe-area-inset-bottom,0px)) 12px;width:auto;padding:16px}.storage-banner p{font-size:13px}.storage-actions button{padding:12px;min-width:0}}
body[data-storage-layout=inline] .storage-banner{position:static;width:min(410px,calc(100% - 32px));margin:24px auto;max-height:none}
.storage-explanation{position:fixed;z-index:49;inset:auto 18px 18px auto;max-width:min(380px,calc(100vw - 36px));background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:16px;padding:14px;font-size:13px}.storage-explanation p{margin:0 0 8px;color:var(--muted);line-height:1.5}.storage-explanation button{font:inherit;background:transparent;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:9px;min-height:44px;margin-inline-end:6px}
@media(max-width:800px){.storage-banner{padding:14px}.storage-banner .storage-actions{margin:10px 0 4px}.storage-banner .ghost{font-size:12px;padding:6px 0;min-height:36px}.storage-cookie{width:36px;height:36px}.storage-explanation{bottom:calc(88px + env(safe-area-inset-bottom,0px))}}
body[data-storage-layout=inline] .storage-explanation{position:static;margin:20px auto}
