.storage-notice {
  --notice-bg: #fff;
  --notice-fg: #20242b;
  --notice-border: #d4d4d1;
  --notice-link: #163f96;
  --notice-button-bg: #20242b;
  --notice-button-fg: #fff;
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  box-sizing: border-box;
  width: 100%;
  padding: .45rem max(1rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-top: 1px solid var(--notice-border);
  background: var(--notice-bg);
  color: var(--notice-fg);
  box-shadow: 0 -4px 18px #0000000d;
  font: 12.5px/1.3 system-ui, sans-serif;
}
.storage-notice__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.storage-notice__copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .55rem; min-width: 0; }
.storage-notice__copy strong { font-size: 13px; }
.storage-notice__copy p { margin: 0; }
.storage-notice a { color: var(--notice-link); text-decoration: underline; text-underline-offset: 2px; }
.storage-notice__actions { display: flex; flex: none; gap: .4rem; }
.storage-notice button {
  min-height: 36px;
  padding: .45rem .7rem;
  border: 1px solid var(--notice-button-bg);
  border-radius: .35rem;
  background: var(--notice-button-bg);
  color: var(--notice-button-fg);
  font: 600 12px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.storage-notice button[data-choice="essential"] { background: transparent; color: var(--notice-fg); }
.storage-notice button:focus-visible,
.storage-notice a:focus-visible { outline: 3px solid #596cf6; outline-offset: 3px; }

@media (max-width: 760px) {
  .storage-notice { max-height: 70vh; overflow-y: auto; }
  .storage-notice__inner { flex-direction: column; align-items: stretch; gap: .4rem; }
  .storage-notice__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storage-notice button { min-height: 38px; white-space: normal; }
}
@media (prefers-color-scheme: dark) {
  .storage-notice {
    --notice-bg: #20242b;
    --notice-fg: #f5f5f2;
    --notice-border: #555b65;
    --notice-link: #a9c8ff;
    --notice-button-bg: #f5f5f2;
    --notice-button-fg: #20242b;
  }
}
html[data-theme="dark"] .storage-notice {
  --notice-bg: #20242b;
  --notice-fg: #f5f5f2;
  --notice-border: #555b65;
  --notice-link: #a9c8ff;
  --notice-button-bg: #f5f5f2;
  --notice-button-fg: #20242b;
}
html[data-theme="light"] .storage-notice {
  --notice-bg: #fff;
  --notice-fg: #20242b;
  --notice-border: #d4d4d1;
  --notice-link: #163f96;
  --notice-button-bg: #20242b;
  --notice-button-fg: #fff;
}
