/* Admin tag editor (admin-tags.js) — the floating tag icon + curation
   popover. Dark base, light overrides via html.si-light (site convention).
   Renders only for admins; zero footprint otherwise. */

.atg-btn {
  position: absolute; z-index: 1600;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 22px !important; height: 22px; margin: 0 !important; padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important; border-radius: 6px !important;
  background: rgba(20, 23, 27, 0.92) !important; color: #fff !important;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  line-height: 1 !important;
}
.atg-btn:hover { border-color: #fff !important; }
html.si-light .atg-btn {
  border-color: rgba(16, 20, 24, 0.4) !important;
  background: rgba(255, 255, 255, 0.95) !important; color: #101418 !important;
  box-shadow: 0 2px 8px rgba(16, 20, 24, 0.2) !important;
}
html.si-light .atg-btn:hover { border-color: #101418 !important; }

.atg-pop {
  position: absolute; z-index: 1601; width: 290px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px;
  background: #1e2028; color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  padding: 12px 14px 14px; font-size: 12.5px;
}
html.si-light .atg-pop {
  border-color: rgba(16, 20, 24, 0.35); background: #fff; color: #101418;
  box-shadow: 0 14px 40px rgba(16, 20, 24, 0.22);
}
.atg-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  opacity: 0.75; margin-bottom: 9px;
}
.atg-close {
  display: inline-flex !important; width: 22px !important; height: 22px;
  align-items: center; justify-content: center; margin: 0 !important; padding: 0 !important;
  border: none !important; border-radius: 6px !important; background: transparent !important;
  color: inherit !important; font-size: 15px; cursor: pointer; box-shadow: none !important;
  line-height: 1 !important;
}
.atg-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.atg-none { font-size: 12px; opacity: 0.6; }
.atg-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 4px 3px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); font-size: 11.5px; font-weight: 700;
}
html.si-light .atg-chip { border-color: rgba(16, 20, 24, 0.3); }
.atg-chip.is-busy { opacity: 0.4; pointer-events: none; }
.atg-chip i {
  font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; opacity: 0.55;
}
.atg-x {
  display: inline-flex !important; width: 16px !important; height: 16px;
  align-items: center; justify-content: center; margin: 0 !important; padding: 0 !important;
  border: none !important; border-radius: 50% !important; background: transparent !important;
  color: inherit !important; font-size: 13px; cursor: pointer; box-shadow: none !important;
  line-height: 1 !important; opacity: 0.65;
}
.atg-x:hover { opacity: 1; }
.atg-input {
  width: 100% !important; height: 30px !important; margin: 0 !important;
  padding: 0 10px !important; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.3) !important; border-radius: 8px !important;
  background: transparent !important; color: inherit !important;
  font-size: 12px !important; font-family: inherit;
}
html.si-light .atg-input { border-color: rgba(16, 20, 24, 0.3) !important; }
.atg-results { margin-top: 6px; max-height: 180px; overflow: auto; }
.atg-res {
  display: flex !important; align-items: center; justify-content: space-between;
  width: 100% !important; margin: 0 !important; padding: 6px 8px !important;
  border: none !important; border-radius: 7px !important; background: transparent !important;
  color: inherit !important; font-size: 12px !important; font-weight: 600;
  font-family: inherit; text-align: left; cursor: pointer; box-shadow: none !important;
  line-height: 1.3 !important;
}
.atg-res:hover { background: rgba(255, 255, 255, 0.08) !important; }
html.si-light .atg-res:hover { background: rgba(16, 20, 24, 0.06) !important; }
.atg-res i {
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; opacity: 0.5;
}
