.aur-pwa-bell-wrap {
  position: fixed;
  z-index: 99998;
  right: 22px;
  bottom: 22px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #183c36;
}

.aur-pwa-bell,
.aur-pwa-mark-all,
.aur-install-button,
.aur-push-button,
.aur-load-more {
  font: inherit;
}

.aur-pwa-bell {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 13px;
  color: #fff;
  background: #173b35;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgb(16 48 42 / 24%);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.aur-pwa-bell:hover {
  background: #285a4e;
  box-shadow: 0 10px 30px rgb(16 48 42 / 30%);
  transform: translateY(-2px);
}

.aur-pwa-bell-icon,
.aur-pwa-bell-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.aur-pwa-count,
.aur-tab-count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: #fff;
  background: #d84c3f;
  border: 2px solid #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 750;
  line-height: 15px;
  text-align: center;
}

.aur-pwa-count {
  position: absolute;
  top: -4px;
  right: -3px;
}

.aur-pwa-dropdown {
  position: absolute;
  right: 0;
  bottom: 67px;
  width: min(360px, calc(100vw - 30px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: auto;
  padding: 9px;
  background: #fff;
  border: 1px solid #e4eae7;
  border-radius: 17px;
  box-shadow: 0 20px 60px rgb(20 44 37 / 18%);
}

.aur-pwa-dropdown[hidden],
.aur-install-overlay[hidden],
.aur-install-button[hidden],
.aur-pwa-count[hidden],
.aur-tab-count[hidden],
.aur-feed-empty[hidden],
.aur-load-more[hidden] {
  display: none !important;
}

.aur-install-overlay {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(13 31 27 / 62%);
  backdrop-filter: blur(5px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aur-install-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 440px);
  padding: 36px 32px 28px;
  color: #183c36;
  background: linear-gradient(155deg, #fff 0%, #f5f8f4 100%);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgb(0 0 0 / 28%);
  text-align: center;
  animation: aur-install-enter .24s ease-out both;
}

.aur-install-dialog-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: 19px;
  box-shadow: 0 8px 24px rgb(23 59 53 / 18%);
}

.aur-install-kicker {
  margin: 0 0 8px;
  color: #477065;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.aur-install-dialog h2 {
  margin: 0 0 10px;
  color: #173b35;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.15;
}

.aur-install-dialog #aur-install-description {
  margin: 0 auto 22px;
  max-width: 340px;
  color: #53645f;
  font-size: 15px;
  line-height: 1.55;
}

.aur-install-help {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #173b35;
  background: #e9f2ec;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.aur-install-dialog-button,
.aur-install-later {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.aur-install-dialog-button {
  min-height: 50px;
  padding: 12px 20px;
  color: #fff !important;
  background: #d62828 !important;
  border: 1px solid #d62828 !important;
  border-radius: 13px;
  box-shadow: 0 7px 17px rgb(214 40 40 / 24%);
  font-weight: 750;
  transition: background .18s ease, transform .18s ease;
}

.aur-install-dialog-button:hover {
  color: #fff !important;
  background: #b91f1f !important;
  border-color: #b91f1f !important;
  transform: translateY(-1px);
}

.aur-install-later {
  margin-top: 11px;
  padding: 10px;
  color: #5c6d67;
  background: transparent;
  font-size: 14px;
}

.aur-install-later:hover {
  color: #173b35;
  text-decoration: underline;
}

.aur-install-manifest-link {
  display: inline-block;
  margin-top: 13px;
  color: #53645f;
  font-size: 12px;
  text-decoration: underline;
}

.aur-install-manifest-link:hover {
  color: #b91f1f;
}

.aur-install-close {
  position: absolute;
  top: 12px;
  right: 13px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #53645f;
  background: #edf2ee;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.aur-install-close:hover {
  color: #173b35;
  background: #e2ebe5;
}

body.aur-install-open {
  overflow: hidden;
}

@keyframes aur-install-enter {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.aur-pwa-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 11px;
  color: #183c36;
}

.aur-pwa-mark-all {
  padding: 4px 7px;
  color: #477267;
  background: transparent;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.aur-pwa-mark-all:hover,
.aur-pwa-all-link:hover {
  color: #b64437;
}

.aur-pwa-dropdown-list {
  display: grid;
  gap: 3px;
}

.aur-pwa-all-link {
  display: block;
  margin: 7px 2px 1px;
  padding: 12px 10px 8px;
  color: #27584e;
  border-top: 1px solid #edf0ee;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.aur-pwa-app {
  width: min(850px, calc(100% - 32px));
  margin: 44px auto;
  overflow: hidden;
  color: #193b35;
  background: #fff;
  border: 1px solid #e4eae7;
  border-radius: 22px;
  box-shadow: 0 20px 65px rgb(20 44 37 / 9%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aur-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px;
  background: #f3f7f4;
  border-bottom: 1px solid #e4eae7;
}

.aur-app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.aur-app-brand img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.aur-app-eyebrow {
  margin: 0 0 2px;
  color: #69847c;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.aur-app-brand h1 {
  margin: 0;
  color: #193b35;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.aur-app-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.aur-install-button,
.aur-push-button,
.aur-load-more {
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: #173b35;
  border: 1px solid #173b35;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.aur-install-button {
  color: #fff !important;
  background: #d62828 !important;
  border-color: #d62828 !important;
  box-shadow: 0 5px 14px rgb(214 40 40 / 22%);
}

.aur-install-button:hover {
  color: #fff !important;
  background: #b91f1f !important;
  border-color: #b91f1f !important;
}

.aur-install-button:disabled {
  color: #fff !important;
  background: #d62828 !important;
  border-color: #d62828 !important;
  opacity: 1;
}

.aur-push-button:hover,
.aur-load-more:hover {
  background: #285a4e;
}

.aur-install-button:disabled,
.aur-push-button:disabled,
.aur-load-more:disabled {
  cursor: wait;
  opacity: .6;
}

.aur-app-tabs {
  display: flex;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid #e9eeeb;
}

.aur-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  color: #6d817b;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.aur-tab:hover,
.aur-tab.is-active {
  color: #193b35;
}

.aur-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #3b806b;
  border-radius: 3px 3px 0 0;
  content: "";
}

.aur-tab-count {
  border: 0;
  line-height: 19px;
}

.aur-app-content {
  min-height: 300px;
  padding: 23px 30px 30px;
}

.aur-app-message {
  display: none;
  margin: 0 0 16px;
  padding: 11px 14px;
  color: #235c49;
  background: #eaf5ee;
  border-radius: 10px;
  font-size: 13px;
}

.aur-app-message.is-visible {
  display: block;
}

.aur-app-message.is-error {
  color: #8f362d;
  background: #fff0ed;
}

.aur-notification-feed,
.aur-pwa-dropdown-list {
  display: grid;
}

.aur-notification-feed {
  gap: 8px;
}

.aur-notification-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 15px;
  color: #193b35;
  background: #fff;
  border: 1px solid #e8eeeb;
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.aur-notification-item:hover {
  background: #f8fbf9;
  border-color: #cbded4;
  transform: translateY(-1px);
}

.aur-notification-item:not(.is-read) {
  background: #f5faf6;
}

.aur-notification-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.aur-notification-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.aur-notification-title {
  overflow: hidden;
  color: #193b35;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.aur-notification-body {
  display: -webkit-box;
  overflow: hidden;
  color: #667b74;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.aur-notification-date {
  color: #84958f;
  font-size: 11px;
}

.aur-unread-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 5px 2px 0 0;
  background: #d84c3f;
  border-radius: 50%;
}

.aur-pwa-dropdown .aur-notification-item {
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
}

.aur-pwa-dropdown .aur-notification-icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.aur-pwa-dropdown .aur-notification-title {
  font-size: 12px;
}

.aur-pwa-dropdown .aur-notification-date {
  font-size: 10px;
}

.aur-pwa-dropdown .aur-unread-dot {
  margin-top: 4px;
}

.aur-feed-empty {
  padding: 65px 16px;
  text-align: center;
}

.aur-empty-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #487365;
  background: #edf5ef;
  border-radius: 18px;
}

.aur-empty-mark svg {
  width: 24px;
  height: 24px;
}

.aur-feed-empty h2 {
  margin: 15px 0 5px;
  color: #193b35;
  font-size: 19px;
}

.aur-feed-empty p {
  margin: 0;
  color: #73867f;
  font-size: 14px;
}

.aur-load-more {
  display: block;
  margin: 22px auto 0;
}

.aur-app-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 30px;
  color: #778982;
  background: #f8faf8;
  border-top: 1px solid #e9eeeb;
  font-size: 12px;
}

.aur-app-footer a {
  color: #396c5c;
  font-weight: 700;
  text-decoration: none;
}

.aur-admin-wrap .aur-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 24px 0 32px;
}

.aur-admin-panel {
  max-width: 1100px;
  margin: 26px 0 30px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
}

.aur-admin-panel h2 {
  margin-top: 0;
}

.aur-manifest-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px 22px;
  max-width: 880px;
  margin: 22px 0;
}

.aur-manifest-fields > label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #1d2327;
  font-weight: 600;
}

.aur-manifest-fields input[type="text"],
.aur-manifest-fields select,
.aur-manifest-fields textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.aur-manifest-fields .aur-manifest-description,
.aur-manifest-fields .aur-manifest-start-page,
.aur-manifest-fields .aur-manifest-icon-field {
  grid-column: 1 / -1;
}

.aur-manifest-icon-field {
  display: grid;
  gap: 8px;
  color: #1d2327;
  font-weight: 600;
}

.aur-manifest-field-label {
  display: block;
}

.aur-manifest-icon-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.aur-manifest-icon-controls img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #f6f7f7;
}

.aur-shortcode-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
  padding: 18px;
  background: #f5f8f5;
  border: 1px solid #dce8df;
  border-radius: 12px;
}

.aur-shortcode-info strong {
  color: #173b35;
  font-size: 14px;
}

.aur-shortcode-info p {
  margin: 5px 0 0;
  color: #596761;
}

.aur-shortcode-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.aur-shortcode-copy input {
  width: 110px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  text-align: center;
}

.aur-color-field {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
}

.aur-color-field input[type="color"] {
  width: 48px;
  height: 34px;
  padding: 2px;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 5px;
  cursor: pointer;
}

.aur-manifest-test {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid #e6e8e7;
}

.aur-manifest-test a {
  color: #22704a;
  font-weight: 600;
  word-break: break-all;
}

.aur-admin-stats > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
}

.aur-admin-stats strong {
  color: #173b35;
  font-size: 26px;
}

.aur-admin-stats span {
  color: #50575e;
  font-size: 13px;
}

#aur-admin-test-result {
  margin-left: 10px;
  color: #22704a;
}

@media (max-width: 640px) {
  .aur-pwa-bell-wrap {
    right: 14px;
    bottom: 14px;
  }

  .aur-pwa-bell {
    width: 50px;
    height: 50px;
  }

  .aur-pwa-app {
    width: calc(100% - 20px);
    margin: 16px auto;
    border-radius: 16px;
  }

  .aur-app-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
  }

  .aur-app-actions {
    width: 100%;
    justify-content: stretch;
  }

  .aur-install-button,
  .aur-push-button {
    flex: 1;
    padding: 0 10px;
    font-size: 12px;
  }

  .aur-app-tabs {
    gap: 20px;
    padding: 0 20px;
  }

  .aur-app-content {
    padding: 16px 14px 22px;
  }

  .aur-notification-item {
    gap: 11px;
    padding: 12px;
  }

  .aur-notification-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .aur-app-footer {
    padding: 14px 18px;
  }

  .aur-admin-wrap .aur-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aur-manifest-fields {
    grid-template-columns: 1fr;
  }

  .aur-manifest-fields .aur-manifest-description,
  .aur-manifest-fields .aur-manifest-start-page,
  .aur-manifest-fields .aur-manifest-icon-field {
    grid-column: auto;
  }

  .aur-install-dialog {
    padding: 34px 22px 22px;
    border-radius: 20px;
  }

  .aur-shortcode-info {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .aur-shortcode-copy {
    flex-wrap: wrap;
  }

  .aur-admin-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aur-pwa-bell,
  .aur-notification-item,
  .aur-install-button,
  .aur-install-dialog,
  .aur-push-button,
  .aur-load-more {
    transition: none;
  }
}
