/* Geteilte Installations- und Update-Oberfläche für Website und Lern-App. */
.byteling-pwa-dialog {
  width: min(560px, calc(100% - 36px));
  max-height: calc(100dvh - 48px);
  box-sizing: border-box;
  border: 1px solid #8d7de96b;
  border-radius: 24px;
  padding: 28px;
  background: #12132bf7;
  color: #f4f5ff;
  box-shadow: 0 24px 90px #0008;
  font:
    400 15px/1.6 system-ui,
    sans-serif;
  overflow: auto;
}
.byteling-pwa-dialog::backdrop {
  background: #07091cbd;
  backdrop-filter: blur(8px);
}
.byteling-pwa-dialog h2 {
  font:
    700 24px/1.25 system-ui,
    sans-serif;
  margin: 0 0 18px;
  color: inherit;
}
.byteling-pwa-dialog p {
  margin: 12px 0;
  color: #d8d5ef;
}
.byteling-pwa-dialog ol {
  padding-left: 24px;
  margin: 16px 0;
}
.byteling-pwa-dialog li {
  margin: 8px 0;
}
.byteling-pwa-dialog button,
.byteling-pwa-banner button {
  border: 1px solid #a396ff66;
  border-radius: 14px;
  padding: 10px 15px;
  background: #7c5cff;
  color: #fff;
  font:
    600 14px/1.3 system-ui,
    sans-serif;
  cursor: pointer;
}
.byteling-pwa-dialog button:focus-visible,
.byteling-pwa-banner button:focus-visible {
  outline: 3px solid #22d3ee;
  outline-offset: 3px;
}
.byteling-pwa-dialog .pwa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.byteling-pwa-dialog .pwa-secondary,
.byteling-pwa-banner .pwa-secondary {
  background: transparent;
}
.byteling-pwa-banner {
  position: fixed;
  z-index: 100001;
  inset: max(12px, env(safe-area-inset-top)) 12px auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 620px;
  margin: auto;
  padding: 14px 16px;
  border: 1px solid #a396ff66;
  border-radius: 20px;
  background: #12132bf7;
  color: #f4f5ff;
  box-shadow: 0 12px 40px #0005;
  font:
    400 14px/1.45 system-ui,
    sans-serif;
}
.byteling-pwa-banner p {
  flex: 1 1 200px;
  margin: 0;
  color: inherit;
}
.byteling-pwa-banner[hidden] {
  display: none;
}
[data-offline-status] {
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.55;
}
/* Liquid-Glass-Look, unabhängig von Hell/Dunkel des Systems. */
.byteling-pwa-dialog:not([open]),
.byteling-pwa-banner[hidden] {
  pointer-events: none;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 45%), linear-gradient(120deg, rgba(139, 92, 255, 0.3), rgba(255, 92, 176, 0.1)),
    rgba(22, 10, 54, 0.94);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 22px 60px -20px rgba(6, 1, 24, 0.85);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.byteling-pwa-dialog button,
.byteling-pwa-banner button {
  background: linear-gradient(180deg, #9a6dff, #6d3df2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.byteling-pwa-dialog .pwa-secondary,
.byteling-pwa-banner .pwa-secondary {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.byteling-pwa-dialog[open] button,
.byteling-pwa-banner:not([hidden]) button {
  pointer-events: auto;
}
