.nexus-app-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  margin-inline-start: auto;
  flex: 0 0 auto;
  border: 1px solid #29405b;
  border-radius: 10px;
  background: transparent;
  color: #a9c4df;
  font: 12px/1.4 system-ui;
  cursor: pointer;
}
.nexus-app-trigger svg {
  fill: none;
  stroke: currentColor;
  flex: 0 0 auto;
}
.nexus-app-footer {
  padding: 16px;
  text-align: right;
}
.nexus-app-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(620px, calc(100% - 32px));
  max-width: 100%;
  max-height: min(85dvh, 800px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border: 1px solid #36516f;
  border-radius: 18px;
  background: #0d1929;
  color: #e3efff;
  font: 14px/1.7 system-ui;
  text-align: left;
  box-shadow: 0 18px 70px #0007;
  color-scheme: dark;
}
.nexus-app-dialog::backdrop {
  background: #030a15a8;
}
.nexus-app-dialog h2 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin: 8px 0 18px;
}
.nexus-app-dialog p {
  color: #b2c7df;
  font: 14px/1.7 system-ui;
  overflow-wrap: anywhere;
}
.nexus-app-dialog a {
  color: #8ed6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-right: 12px;
}
.nexus-app-dialog button {
  min-height: 44px;
  border: 1px solid #345579;
  border-radius: 10px;
  background: #17334f;
  color: #dfedff;
  padding: 10px 14px;
  font: 13px/1.4 system-ui;
  cursor: pointer;
}
.nexus-app-dialog .close-dialog {
  position: sticky;
  top: 0;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: auto;
  height: 44px;
  padding: 10px;
  margin: -8px -8px 8px 12px;
  background: #12263c;
  z-index: 1;
}
.nexus-app-dialog .close-dialog svg {
  width: 20px;
  height: 20px;
}
.nexus-offline-settings {
  border-top: 1px solid #29415d;
  margin-top: 24px;
  padding-top: 18px;
  clear: both;
}
.nexus-offline-settings h3 {
  font: 600 17px/1.4 system-ui;
  color: #e3efff;
  margin: 0 0 12px;
}
.nexus-offline-settings .nexus-offline-status {
  font-weight: 600;
  color: #9ad8ff;
}
.nexus-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.nexus-app-dialog .nexus-app-install-help {
  font-size: 12px;
  color: #96aec9;
}
.nexus-app-dialog button:disabled {
  opacity: 0.55;
  cursor: default;
}
.nexus-app-dialog button[hidden],
.nexus-app-notice[hidden] {
  display: none;
}
.nexus-app-dialog :focus-visible,
.nexus-app-trigger:focus-visible,
.nexus-app-notice button:focus-visible {
  outline: 2px solid #81dfff;
  outline-offset: 3px;
}
.nexus-app-notice {
  position: fixed;
  z-index: 25;
  right: 12px;
  bottom: calc(112px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: max-content;
  max-width: min(420px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  background: #102438;
  border: 1px solid #395e7c;
  border-radius: 12px;
  color: #c3ddf5;
  font: 12px/1.5 system-ui;
  box-shadow: 0 6px 24px #0004;
}
.nexus-app-notice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.nexus-app-notice button {
  background: transparent;
  border: 0;
  color: #a1dbff;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .nexus-app-dialog {
    inset: auto 0 0;
    width: 100%;
    max-height: 90dvh;
    margin: 0;
    padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  .nexus-app-dialog .nexus-app-actions > button {
    flex: 1 1 130px;
  }
  .nexus-app-trigger {
    width: 44px;
    padding: 8px;
  }
  .nexus-app-trigger > span {
    display: none;
  }
  header:has(> .nexus-app-trigger) {
    gap: 8px;
  }
  header:has(> .nexus-app-trigger) > .brand {
    min-width: 0;
    flex: 1;
  }
}
@media print {
  .nexus-app-dialog,
  .nexus-app-trigger,
  .nexus-app-notice {
    display: none !important;
  }
}
