/* 手动框选模式：禁用官网画布标记 UI（材质/对象点击标记 + 底部识别条） */

/* 顶部「材质/对象标记模式」提示条 */
html[data-mirror-marking-manual="1"] body:not(.mirror-fs-open)
  #root
  .absolute.left-1\/2.top-5.z-\[75\] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 底部「标记识别」工具条（含材质/对象切换、识别按钮） */
html[data-mirror-marking-manual="1"] body:not(.mirror-fs-open)
  #root
  [data-testid="marking-toolbar-layout"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-mirror-marking-manual="1"] body:not(.mirror-fs-open)
  #root
  .absolute.bottom-10:has([data-testid="marking-toolbar-layout"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* mirror 提示（无图点标记等） */
.mirror-marking-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 260;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: #e8eaed;
  background: rgba(20, 24, 32, 0.96);
  border: 1px solid rgba(255, 180, 60, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.mirror-marking-toast[hidden] {
  display: none !important;
}

/* 手动框选标签 */
.mirror-manual-marking-tag {
  position: fixed;
  z-index: 100002;
  pointer-events: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  background: rgba(255, 220, 140, 0.95);
  border: 1px solid rgba(255, 180, 60, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.mirror-canvas-marking-layer {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
}

.mirror-canvas-marking-box {
  position: absolute;
  display: block;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 8px 18px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.mirror-canvas-marking-box:hover {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.mirror-canvas-marking-box-label {
  position: absolute;
  left: -1px;
  top: -24px;
  max-width: 120px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #f7f8f8;
  background: rgba(18, 20, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mirror-marking-mention-menu {
  position: fixed;
  z-index: 100020;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  color: #f5f6f6;
  background: rgba(40, 43, 44, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.mirror-marking-mention-menu[hidden] {
  display: none !important;
}

.mirror-marking-mention-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.mirror-marking-mention-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mirror-marking-mention-item small {
  color: rgba(245, 246, 246, 0.58);
  font-size: 10px;
  white-space: nowrap;
}
