/* Editing-only asset review UI for Fairybook Rev18. Remove this stylesheet + asset-review-v2.js for clean production display. */
.asset-tag-layer {
  position: absolute;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}
.asset-debug-tag {
  position: absolute;
  display: none;
  transform: translateZ(0);
  max-width: 150px;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(31,35,48,.90);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  font: 700 10px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  cursor: copy;
}
.asset-debug-tag:hover,
.asset-debug-tag:focus-visible {
  filter: brightness(1.12);
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 1px;
}
.asset-labels-hidden .asset-debug-tag { display: none !important; }
.asset-debug-tag[data-asset-type="TXT"],
.asset-debug-tag[data-asset-type="TTL"] { background: rgba(43,79,125,.92); }
.asset-debug-tag[data-asset-type="CTA"],
.asset-debug-tag[data-asset-type="PRC"] { background: rgba(126,44,80,.94); }
.asset-debug-tag[data-asset-type="IMG"] { background: rgba(66,101,70,.94); }
.asset-debug-tag[data-asset-type="SEC"],
.asset-debug-tag[data-asset-type="CRD"],
.asset-debug-tag[data-asset-type="BLK"] { background: rgba(71,60,89,.92); }
.asset-debug-tag[data-review-status="scrutiny"] { background: rgba(158,34,45,.96); }

.asset-review-dock {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(26,30,40,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 5px 22px rgba(0,0,0,.18);
  color: #272a32;
  font: 600 12px/1.2 "Source Sans 3", system-ui, sans-serif;
  backdrop-filter: blur(8px);
}
.asset-review-dock-label {
  padding: 0 3px;
  font-weight: 700;
  color: #5b5265;
}
.asset-review-control,
.asset-index-close {
  appearance: none;
  border: 1px solid #c9c5cf;
  background: #fff;
  color: #342f3b;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.asset-review-control {
  padding: 7px 10px;
}
.asset-review-control:hover,
.asset-review-control:focus-visible,
.asset-index-close:hover,
.asset-index-close:focus-visible {
  border-color: #7a4672;
  outline: 2px solid rgba(122,70,114,.16);
  outline-offset: 1px;
}
.asset-review-shortcuts {
  color: #77717d;
  font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.asset-review-index {
  position: fixed;
  right: 16px;
  bottom: 66px;
  z-index: 2147483599;
  width: min(390px, calc(100vw - 32px));
  max-height: min(70vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(26,30,40,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
  color: #272a32;
  font: 400 13px/1.35 "Source Sans 3", system-ui, sans-serif;
}
.asset-review-index[hidden] { display: none; }
.asset-index-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 8px;
}
.asset-index-title {
  display: block;
  font-size: 15px;
}
.asset-index-count {
  display: block;
  margin-top: 2px;
  color: #77717d;
  font-size: 11px;
}
.asset-index-close {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.asset-index-search {
  box-sizing: border-box;
  width: calc(100% - 28px);
  margin: 0 14px 10px;
  padding: 9px 10px;
  border: 1px solid #cfccd4;
  border-radius: 8px;
  background: #fff;
  color: #272a32;
  font: inherit;
}
.asset-index-search:focus {
  border-color: #7a4672;
  outline: 2px solid rgba(122,70,114,.16);
}
.asset-index-list {
  max-height: calc(min(70vh, 680px) - 112px);
  margin: 0;
  padding: 0 8px 10px;
  overflow: auto;
  list-style: none;
}
.asset-index-list li { margin: 0; padding: 0; }
.asset-index-item {
  display: block;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-bottom: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.asset-index-item:hover,
.asset-index-item:focus-visible {
  background: #f7f4f8;
  outline: none;
}
.asset-index-item[data-review-status="scrutiny"] {
  border-left: 3px solid #a52e3b;
  padding-left: 7px;
}
.asset-index-item-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.asset-index-id {
  color: #4d3150;
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.asset-index-type {
  padding: 1px 5px;
  border-radius: 999px;
  background: #eee8f0;
  color: #62566a;
  font: 700 9px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.asset-index-desc {
  display: block;
  margin-top: 3px;
  color: #68626c;
  font-size: 12px;
  line-height: 1.35;
}

.asset-index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid #ece9ef;
}
.asset-index-row .asset-index-item {
  border-bottom: 0;
}
.asset-index-copy {
  align-self: center;
  margin: 6px 7px 6px 4px;
  padding: 6px 8px;
  border: 1px solid #c9c5cf;
  border-radius: 7px;
  background: #fff;
  color: #4d3150;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: copy;
  white-space: nowrap;
}
.asset-index-copy:hover,
.asset-index-copy:focus-visible {
  border-color: #7a4672;
  background: #f7f4f8;
  outline: 2px solid rgba(122,70,114,.16);
  outline-offset: 1px;
}
.asset-review-copy-toast {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 2147483700;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(31,35,48,.96);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.asset-review-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.asset-index-empty {
  padding: 18px 10px;
  color: #77717d;
  text-align: center;
}
.asset-review-target {
  outline: 3px solid rgba(151,51,131,.78) !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 7px rgba(151,51,131,.10) !important;
}

@media (max-width: 700px) {
  .asset-review-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    justify-content: flex-end;
  }
  .asset-review-dock-label,
  .asset-review-shortcuts { display: none; }
  .asset-review-index {
    left: 8px;
    right: 8px;
    bottom: 58px;
    width: auto;
    max-height: 64vh;
  }
  .asset-index-list { max-height: calc(64vh - 112px); }
  .asset-review-copy-toast { right: 10px; bottom: 64px; }
}

@media (max-width: 560px) {
  .asset-debug-tag { font-size: 9px; padding: 1px 5px; max-width: 112px; }
}

/* Rev24 production mode: retain the full asset-review system in the package,
   but keep all review UI hidden from normal visitors. */
.asset-tag-layer,
.asset-review-dock,
.asset-review-index,
.asset-review-copy-toast {
  display: none !important;
}
