[data-edition-hidden] {
  display: none !important;
}

/*
 * Keep the shell paintable while product-edition.js is applying its filters.
 * Hiding the entire body here made a normal refresh look like a blank page:
 * DOMContentLoaded is when the filter removes the loading class, so a slow
 * script or a first paint between those two events left the whole dashboard
 * invisible and caused the visible flashing reported by users.
 */

.product-edition-badge {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #dce8f2;
  background: rgba(8, 17, 27, 0.88);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
  font: 12px/1.2 "Microsoft YaHei", sans-serif;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.product-edition-badge span {
  color: #93a6b5;
}

.product-edition-badge strong {
  color: #fff3a4;
  font-size: 12px;
}

.mini-region > .product-edition-badge {
  position: absolute;
  z-index: 3;
  top: 27px;
  right: auto;
  bottom: auto;
  left: calc(var(--sidebar) + 2px);
  min-height: 26px;
  padding: 3px 8px;
}

.product-edition-jingcai-entry {
  color: inherit;
  text-decoration: none;
}

.product-edition-configuration {
  margin-bottom: 12px;
  border-color: rgba(255, 224, 107, 0.38) !important;
  background: linear-gradient(135deg, rgba(69, 53, 17, 0.56), rgba(17, 33, 43, 0.88)) !important;
}

.product-edition-configuration__head,
.product-edition-configuration__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-edition-configuration__head h3 {
  margin: 0;
}

.product-edition-configuration__head strong {
  color: #ffe06b;
}

.product-edition-configuration__options {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.product-edition-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  align-items: start;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.product-edition-option input {
  margin-top: 3px;
}

.product-edition-option strong,
.product-edition-option small {
  grid-column: 2;
}

.product-edition-option small {
  color: #aebdca;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .product-edition-configuration__options {
    grid-template-columns: 1fr;
  }

  .product-edition-option {
    min-height: auto;
  }

  .product-edition-badge {
    right: 6px;
    bottom: 66px;
  }

  .mini-region > .product-edition-badge {
    top: 28px;
    right: auto;
    bottom: auto;
    left: min(110px, calc(100vw - 8px));
  }
}

.native-app-shell > .product-edition-badge,
.h5-mobile-test .product-edition-badge {
  display: none !important;
}
