.rc-inspect-overlay {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
}

.rc-inspect-overlay-select {
  /* When click-to-select is enabled, the container also captures clicks
     that fall outside any box so we can clear selection. */
  pointer-events: auto;
}

.rc-inspect-box {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(64, 169, 255, 0.55);
  background: rgba(64, 169, 255, 0.06);
  border-radius: 2px;
  cursor: pointer;
  pointer-events: none;
  transition:
    border-color 80ms ease,
    border-width 80ms ease,
    background-color 80ms ease;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  outline: none;
}

.rc-inspect-overlay-select .rc-inspect-box {
  pointer-events: auto;
}

.rc-inspect-box-disabled {
  opacity: 0.55;
}

.rc-inspect-box[data-highlighted='true'] {
  border-color: rgba(255, 197, 28, 0.95);
  border-width: 1.5px;
  background: rgba(255, 197, 28, 0.16);
  z-index: 1;
}

.rc-inspect-box[data-selected='true'] {
  border-color: rgba(0, 122, 255, 1);
  border-width: 2px;
  background: rgba(0, 122, 255, 0.22);
  z-index: 2;
}

.rc-inspect-card {
  /* Card is rendered via React portal to document.body so it can escape
     any ancestor overflow:hidden (e.g. customer-provided .device-wrapper
     in our demo). Coordinates passed in via inline style are
     viewport-absolute. */
  position: fixed;
  z-index: 2147483600;
  pointer-events: auto;
  background: rgba(22, 24, 30, 0.97);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 11px 11px;
  min-width: 200px;
  max-width: 260px;
  /* Cap card height. Anything longer scrolls inside the card instead of
     pushing the viewport. */
  max-height: 220px;
  overflow-y: auto;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scrollbar-width: thin;
}

.rc-inspect-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.rc-inspect-card-role {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 247, 0.55);
  display: inline-block;
  white-space: nowrap;
}

.rc-inspect-card-tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rc-inspect-card-tag-blue {
  background: rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.45);
  color: rgb(140, 195, 255);
}

.rc-inspect-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 7px;
  word-break: break-word;
  /* Clamp to 2 lines so a paragraph-long AXLabel doesn't take over. The
     full text is available on hover via the title attribute and via the
     value/id rows below. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-inspect-card-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 10.5px;
  color: rgba(245, 245, 247, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  margin: 1px 0;
  min-width: 0;
}

.rc-inspect-card-row-label {
  color: rgba(245, 245, 247, 0.42);
  font-weight: 500;
  flex-shrink: 0;
}

.rc-inspect-card-row-value {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
  /* Clamp long values (selectors, IDs) to two lines, full value visible
     via the row's title attr or via "Copy" action. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-inspect-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rc-inspect-card-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 100ms ease,
    border-color 100ms ease,
    color 100ms ease;
}

.rc-inspect-card-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.rc-inspect-card-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

.rc-inspect-card-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rc-inspect-card-btn-primary {
  background: rgba(0, 122, 255, 0.85);
  border-color: rgba(0, 122, 255, 0.9);
  color: #fff;
}

.rc-inspect-card-btn-primary:hover:not(:disabled) {
  background: rgba(10, 132, 255, 1);
  border-color: rgba(10, 132, 255, 1);
}

.rc-inspect-card-btn-copied {
  background: rgba(48, 209, 88, 0.22);
  border-color: rgba(48, 209, 88, 0.55);
  color: rgb(159, 240, 178);
}
