/* Local choices share the NETMO palette; no fonts, images or animation required. */
body > .netmo-storage-banner,
body > .netmo-storage-dialog {
  --storage-bg: var(--panel, #202526);
  --storage-ink: var(--ink, #f0f2ed);
  --storage-muted: var(--muted, #a7afaa);
  --storage-line: var(--line, #343b3b);
  --storage-accent: var(--accent, #ec8075);
  box-sizing: border-box;
  color: var(--storage-ink);
  background: var(--storage-bg);
  border: 1px solid var(--storage-line);
  border-top: 2px solid var(--red, #a1110f);
  border-radius: 0;
  padding: 24px;
  font: 14px/1.55 Arial, Helvetica, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  box-shadow: none;
}
body > .netmo-storage-banner {
  position: fixed;
  z-index: 80;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  width: min(620px, calc(100% - 40px));
  max-height: 75vh;
  max-height: 75dvh;
  margin: 0;
  overflow: auto;
}
body > .netmo-storage-dialog {
  position: fixed;
  inset: 0;
  width: min(600px, calc(100% - 32px));
  max-width: 600px;
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  padding-top: 58px;
  overflow: auto;
  color-scheme: inherit;
}
.netmo-storage-dialog::backdrop { background: #050707a8; }
:is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-kicker {
  margin: 0 0 8px;
  color: var(--storage-accent);
  font: 700 11px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-title {
  margin: 0 0 12px;
  max-width: none;
  color: var(--storage-ink);
  font: 600 22px/1.25 Arial, Helvetica, sans-serif;
  letter-spacing: -.3px;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-copy {
  margin: 0 0 18px;
  color: var(--storage-muted);
  font: inherit;
  line-height: 1.6;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) [data-storage-ok],
.netmo-storage-dialog .netmo-storage-reset,
.netmo-storage-dialog .netmo-storage-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--storage-line);
  border-radius: 0;
  padding: 11px 14px;
  background: transparent;
  color: var(--storage-ink);
  font: 600 14px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) [data-storage-ok]:hover,
.netmo-storage-dialog :is(.netmo-storage-reset, .netmo-storage-close):hover {
  border-color: var(--storage-accent);
  color: var(--storage-accent);
  background: var(--surface, #181c1d);
}
:is(.netmo-storage-banner, .netmo-storage-dialog) [data-storage-ok]:active,
.netmo-storage-dialog :is(.netmo-storage-reset, .netmo-storage-close):active {
  border-color: var(--storage-accent);
  background: var(--surface, #181c1d);
}
:is(.netmo-storage-banner, .netmo-storage-dialog) [data-storage-ok][aria-pressed="true"] {
  border-color: var(--storage-accent);
  font-weight: 700;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) :is(button, a):focus-visible,
button.storage-settings-open:focus-visible {
  outline: 2px solid var(--accent, #ec8075);
  outline-offset: 3px;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-meta,
.netmo-storage-dialog .netmo-storage-note {
  margin: 14px 0 0;
  color: var(--storage-muted);
  font: 12px/1.6 Arial, Helvetica, sans-serif;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) a {
  color: var(--storage-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:is(.netmo-storage-banner, .netmo-storage-dialog) a:hover { color: var(--storage-accent); }
.netmo-storage-dialog .netmo-storage-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 44px;
  padding: 9px 12px;
  border-color: transparent;
  color: var(--storage-muted);
  font-weight: 400;
}
.netmo-storage-dialog .netmo-storage-status {
  margin: 0 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--storage-line);
  border-bottom: 1px solid var(--storage-line);
  color: var(--storage-ink);
  font: 14px/1.6 Arial, Helvetica, sans-serif;
}
.netmo-storage-dialog .netmo-storage-reset { margin-top: 12px; width: 100%; font-weight: 400; }
button.storage-settings-open {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  touch-action: manipulation;
}
button.storage-settings-open:hover,
button.storage-settings-open:active { color: var(--accent, #a1110f); }
.display-controls > button.storage-settings-open {
  width: 100%;
  margin-top: 6px;
  padding: 10px 0 6px;
  border-top: 1px solid var(--line, #343b3b);
  font: 13px/1.5 Arial, Helvetica, sans-serif;
  color: var(--muted, #a7afaa);
}
body > .netmo-storage-banner[hidden],
body > .netmo-storage-dialog[hidden],
body > .netmo-storage-dialog:not([open]) { display: none !important; }
/* Never cover the opening sequence or its legal links. JS presents the choice after it ends. */
html:is([data-startup="pending"], [data-startup="intro"], [data-brand-intro="playing"]) body > :is(.netmo-storage-banner, .netmo-storage-dialog) { display: none !important; }
@media (max-width: 600px) {
  body > .netmo-storage-banner {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    padding: 20px;
  }
  body > .netmo-storage-dialog { padding: 58px 20px 20px; }
}
@media (max-width: 440px) {
  :is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-actions { grid-template-columns: 1fr; }
  :is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-title { font-size: 21px; }
}
/* Retro's broad !important reset also touches every p/div/button: keep only this UI scoped. */
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) {
  --storage-bg: #fff;
  --storage-ink: #000;
  --storage-muted: #333;
  --storage-line: #999;
  --storage-accent: #0000ee;
  position: fixed !important;
  box-sizing: border-box !important;
  width: min(600px, calc(100% - 24px)) !important;
  max-width: 600px !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: auto !important;
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #777 !important;
  border-top: 2px solid #a1110f !important;
  padding: 20px !important;
  font: 16px/1.4 "Times New Roman", Times, serif !important;
}
html[data-mode="save"] body > .netmo-storage-banner {
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto !important;
  margin: 0 !important;
  max-height: 75vh !important;
  max-height: 75dvh !important;
}
html[data-mode="save"] body > .netmo-storage-dialog {
  inset: 0 !important;
  margin: auto !important;
  padding-top: 58px !important;
  max-height: 85vh !important;
  max-height: 85dvh !important;
}
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-title {
  margin: 0 0 12px !important;
  font: bold 22px/1.2 "Times New Roman", Times, serif !important;
}
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-kicker {
  margin: 0 0 8px !important;
  font: bold 14px/1.4 "Times New Roman", Times, serif !important;
}
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-copy {
  margin: 0 0 16px !important;
  font: inherit !important;
}
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) [data-storage-ok],
html[data-mode="save"] body > .netmo-storage-dialog :is(.netmo-storage-reset, .netmo-storage-close) {
  display: inline-flex !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border: 2px outset #ddd !important;
  background: #eee !important;
  color: #000 !important;
  font: 14px/1.4 Arial, sans-serif !important;
}
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) [data-storage-ok][aria-pressed="true"] { border-style: inset !important; font-weight: 700 !important; }
html[data-mode="save"] body > .netmo-storage-dialog .netmo-storage-close {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
}
html[data-mode="save"] body > .netmo-storage-dialog .netmo-storage-status {
  margin: 0 0 16px !important;
  padding: 10px 0 !important;
  border-block: 1px solid #aaa !important;
}
html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) :is(.netmo-storage-meta, .netmo-storage-note) {
  margin: 12px 0 0 !important;
  font: 14px/1.5 "Times New Roman", Times, serif !important;
}
html[data-mode="save"] button.storage-settings-open {
  display: inline-flex !important;
  min-height: 44px !important;
  padding: 6px !important;
  margin: 0 !important;
  background: #eee !important;
  color: #000 !important;
  border: 2px outset #ddd !important;
}
html[data-mode="save"] body > .netmo-storage-banner[hidden],
html[data-mode="save"] body > .netmo-storage-dialog[hidden],
html[data-mode="save"] body > .netmo-storage-dialog:not([open]) { display: none !important; }
@media (max-width: 440px) {
  html[data-mode="save"] body > :is(.netmo-storage-banner, .netmo-storage-dialog) .netmo-storage-actions { grid-template-columns: 1fr !important; }
}
@media print {
  body > .netmo-storage-banner, body > .netmo-storage-dialog, button.storage-settings-open { display: none !important; }
}

/* Informational notice, no consent or persistence choice. */
:is(.netmo-storage-banner,.netmo-storage-dialog) .netmo-storage-actions{grid-template-columns:1fr!important}
