.asset-admin-page .asset-feature-trigger {
  appearance: none;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.asset-admin-page .asset-feature-trigger:hover,
.asset-admin-page .asset-feature-trigger[aria-expanded="true"] {
  color: #24d5e9;
  text-decoration: none;
}
.asset-admin-page .asset-feature-trigger:focus-visible,
.asset-feature-close:focus-visible {
  outline: 2px solid #24d5e9;
  outline-offset: 4px;
  border-radius: 3px;
}
.asset-feature-popover {
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 22px 46px 22px 22px;
  border: 1px solid #218599;
  border-radius: 12px;
  background: #0b2938;
  color: #ecf5fa;
  box-shadow: 0 12px 36px #0008;
  font-size: 15px;
  line-height: 1.6;
}
.asset-feature-popover[hidden] { display: none; }
.asset-feature-popover strong { display: block; color: #24d5e9; }
.asset-feature-popover p { margin: 10px 0 0; }
.asset-feature-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #24d5e9;
  font-size: 26px;
  cursor: pointer;
}
.asset-feature-close:hover { background: #ffffff12; }

.asset-feature-edit { display: none; }
.site-editor-active .asset-feature-selected .asset-feature-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 8px;
  padding: 5px;
  border: 1px solid #397180;
  border-radius: 6px;
  background: #0a2635;
  color: #20d5e9;
  cursor: pointer;
}
.site-editor-active .asset-feature-popover { z-index: 10005; }

/* Keep the explanation attached to its list item while the document scrolls. */
.asset-admin-module:has(.asset-feature-popover:not([hidden])) {
  overflow: visible;
  position: relative;
  z-index: 100;
}
