.il-storage-notice,
.il-storage-dialog {
  font: 400 1rem/1.5 "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: #eef2f0;
  background: #173c31;
  border: 1px solid #547267;
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 16px 38px -12px #0e1a1680;
}

.il-storage-notice {
  position: fixed;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 32px));
  z-index: 20;
  overflow: hidden;
}

.il-storage-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-block-end: 8px;
}

.il-storage-heading h2 {
  margin: 0;
  color: inherit;
  font: 650 1.25rem/1.15 "Bricolage Grotesque", "Source Sans 3", "Segoe UI", sans-serif;
  letter-spacing: -.025em;
}

.il-storage-heading img { flex: 0 0 32px; }
.il-storage-notice p,
.il-storage-dialog p { margin: 0; text-wrap: pretty; }
.il-storage-dialog p + p { margin-block-start: 12px; }

.il-storage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 16px;
  align-items: center;
}

.il-storage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 6px 12px;
  border: 1px solid #b9c9c0;
  border-radius: 4px;
  background: transparent;
  color: #eef2f0;
  font: 650 1rem/1.25 "Source Sans 3", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.il-storage-actions .il-storage-button { flex: 1 1 8rem; }
.il-storage-button:hover { background: #eef2f0; border-color: #eef2f0; color: #0e1a16; }
.il-storage-dialog a:not(.il-storage-button) { color: #eef2f0; text-decoration: underline; text-underline-offset: .2em; }
:is(.il-storage-dialog, .il-storage-notice) :focus-visible { outline: 2px solid #d5e86a; outline-offset: 3px; }

.il-storage-dialog {
  width: min(510px, calc(100vw - 32px));
  max-block-size: min(640px, calc(100dvh - 32px));
  margin: auto;
  inset: 0;
  overflow: auto;
}

.il-storage-dialog::backdrop { background: #0e1a1680; }
.il-storage-dialog .il-storage-heading { justify-content: space-between; }
.il-storage-close { font-size: 1.4rem; width: 44px; }
.il-storage-status:empty { display: none; }

.il-storage-progress {
  position: absolute;
  height: 2px;
  inset: auto 0 0;
  background: #d5e86a;
  transform-origin: left center;
  animation: il-storage-progress 10s linear paused both;
}

.is-running .il-storage-progress { animation-play-state: running; }

@keyframes il-storage-progress { to { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .il-storage-progress { display: none; }
}

@media print {
  .il-storage-notice, .il-storage-dialog, [data-il-storage-settings] { display: none !important; }
}

.il-storage-page {
  width: min(708px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(32px, 8vw, 88px);
}

.il-storage-page h1 {
  margin-block: 20px 16px;
  font-size: clamp(2.4rem, 1.8rem + 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.il-storage-page h2 {
  margin-block: 32px 10px;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  letter-spacing: -.025em;
}

.il-storage-page p + p { margin-block-start: 12px; }
.il-storage-page dl { margin-block: 16px; }
.il-storage-page dl > div { padding-block: 10px; border-top: 1px solid #cfd8d3; }
.il-storage-page dt { font-weight: 650; }
.il-storage-page dd { margin: 0; }
.il-storage-page [data-il-storage-status]:empty { display: none; }
