/* 大鱼 JSON 结构树显示：web/css/admin.css .a11y-mirror-* ；熊猫只保留宿主/点按层 */

.fisher-json-host {
  background: transparent !important;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.fisher-json-host canvas.ptcells-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 12 !important;
  pointer-events: none !important;
}
.fisher-json-host > canvas.fisher-json-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 40 !important;
  opacity: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}

.fisher-reader-switch-wrap {
  width: 132px;
  margin: 0 0 0 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.fisher-reader-switch {
  display: flex;
  width: 100%;
  height: 28px;
  gap: 0;
  pointer-events: auto;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #3b82f6;
  box-sizing: border-box;
  background: #0f172a;
}
.fisher-reader-switch button {
  border: none;
  margin: 0;
  flex: 1;
  height: 28px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
}
.fisher-reader-switch button.is-active {
  background: #2563eb;
  color: #fff;
}
.fisher-reader-switch button:not(.is-active):hover {
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
}

.fisher-json-mirror.ref-cast-mirror {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: var(--fisher-json-bg, #f8fafc) !important;
  z-index: 8;
}

.fisher-json-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 50;
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #2563eb;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.4;
}

/* 以下与大鱼 admin.css 结构树一致 */
.a11y-mirror-layout { position: absolute; inset: 0; display: flex; }
.a11y-mirror-viewport, .a11y-mirror-scaler {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.a11y-mirror-stage {
  position: relative;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: var(--fisher-json-bg, #f8fafc) !important;
  overflow: hidden;
  flex: 0 0 auto;
}
.fisher-json-host .a11y-mirror-block {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--fisher-json-text, #0f172a) 35%, transparent) !important;
  background: color-mix(in srgb, var(--fisher-json-text, #0f172a) 10%, var(--fisher-json-bg, #f8fafc)) !important;
  border-radius: 8px !important;
  padding: 2px 4px;
  container-type: size;
  overflow: hidden;
}
.fisher-json-host .a11y-mirror-block--tap,
.fisher-json-host .a11y-mirror-block--readable,
.fisher-json-host .a11y-mirror-block--input {
  background: color-mix(in srgb, var(--fisher-json-text, #0f172a) 14%, var(--fisher-json-bg, #f8fafc)) !important;
}
.fisher-json-host .a11y-mirror-block--lite,
.fisher-json-host .a11y-mirror-block--text {
  background: color-mix(in srgb, var(--fisher-json-text, #0f172a) 8%, var(--fisher-json-bg, #f8fafc)) !important;
  border-style: solid !important;
}
.fisher-json-host .a11y-mirror-block-label {
  color: var(--fisher-json-text, #0f172a) !important;
  font-size: max(15px, calc(16px * var(--fisher-json-font-scale, 1))) !important;
  font-weight: 700 !important;
  text-align: center;
  white-space: normal !important;
  word-break: break-all;
  line-height: 1.2 !important;
  max-height: 100%;
  overflow: hidden;
}
.a11y-mirror-block {
  position: absolute; box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none !important;
  cursor: pointer;
}
.a11y-mirror-block--input {
  border-color: rgba(15, 23, 42, 0.55);
  background: transparent;
}
.a11y-mirror-block--tap {
  border-color: rgba(15, 23, 42, 0.55);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-mirror-block--ime {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(16, 185, 129, 0.14);
  border-radius: 4px;
}
.a11y-mirror-block--input .a11y-mirror-block-label,
.a11y-mirror-block--ime .a11y-mirror-block-label {
  font-size: 14px; font-weight: 600; color: #0f172a;
}
.a11y-mirror-block--text {
  border-color: rgba(148, 163, 184, 0.32);
  background: transparent;
  pointer-events: none;
}
.a11y-mirror-block--lite {
  background: transparent !important;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(15, 23, 42, 0.38);
  pointer-events: none;
}
.a11y-mirror-block--readable {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  overflow: hidden;
}
.a11y-mirror-block--lite:hover {
  background: rgba(56, 189, 248, 0.06) !important;
  border-color: rgba(56, 189, 248, 0.55);
}
.a11y-mirror-block:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
  z-index: 40 !important;
}
.a11y-mirror-block--lite:hover,
.a11y-mirror-block--text:hover {
  z-index: 12 !important;
}
.a11y-mirror-block--tap:hover,
.a11y-mirror-block--input:hover,
.a11y-mirror-block--ime:hover {
  z-index: 40 !important;
}
.a11y-mirror-block--pattern {
  border-color: #fbbf24; background: rgba(251, 191, 36, 0.16); border-radius: 50%;
}
.a11y-mirror-block-label {
  display: block; max-width: 100%; padding: 0 2px;
  font-size: inherit; line-height: 1.15; color: #0f172a; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.a11y-mirror-block-label--wrap {
  white-space: normal;
  word-break: break-word;
  text-overflow: clip;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}
.a11y-mirror-block-label--xs { font-size: 12px; padding: 1px 2px; line-height: 1.2; }
.a11y-mirror-block-label--sm { font-size: 13px; padding: 1px 2px; }
.a11y-mirror-block-label--chip {
  position: static;
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
  display: block;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}
.a11y-mirror-block--readable .a11y-mirror-block-label:not(.a11y-mirror-block-label--chip) {
  white-space: nowrap;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit;
  padding: 0 2px;
  background: transparent;
  color: #0f172a;
  max-height: 100%;
}
.a11y-mirror-content-gap {
  position: absolute; left: 0; z-index: 1; pointer-events: none;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 6px;
}
.a11y-mirror-content-gap-label {
  position: absolute; left: 6px; top: 6px;
  font-size: 9px; line-height: 1.3; color: rgba(148, 163, 184, 0.85);
  pointer-events: none;
}
.a11y-mirror-content-gap-label span { font-size: 8px; opacity: 0.85; }
.a11y-mirror-focus {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 20;
  font-size: 13px; color: #1e293b; pointer-events: none;
}
.a11y-mirror-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: #94a3b8; font-size: 13px; text-align: center;
}
.a11y-mirror-empty small { font-size: 12px; color: #64748b; }
.a11y-mirror-bar { font-size: 11px; color: #cbd5e1; }

.a11y-mirror-pattern-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}
.a11y-mirror-pattern-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  pointer-events: none;
}
.a11y-mirror-pattern-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  pointer-events: none;
}
.a11y-mirror-pattern-dot-ring {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 211, 252, 0.9);
  background: rgba(56, 189, 248, 0.22);
  box-shadow: none;
}
.a11y-mirror-pattern-dot--overlay .a11y-mirror-pattern-dot-ring {
  border-width: 1.5px;
  background: rgba(56, 189, 248, 0.2);
}
