.assembly.request-inspector {
  display: flex;
  flex-direction: column;
  height: clamp(300px, 46svh, 490px);
  min-height: 0;
  max-height: none;
  border: 0;
  background: none;
  color: #edf2ff;
  --rq-paper: #c6d2f8;
  --rq-stroke: #425475;
}

.assembly.request-inspector::before,
.assembly.request-inspector::after,
.request-inspector [hidden] {
  display: none;
}

.rq-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  place-items: center;
  container-type: size;
  perspective: 1100px;
  touch-action: pan-y;
  cursor: grab;
  outline-offset: -3px;
}
.rq-stage:focus-visible {
  outline: 1px solid #a9bcff;
}
.rq-stage[data-dragging] {
  cursor: grabbing;
  user-select: none;
}
.rq-camera {
  position: relative;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  row-gap: clamp(10px, min(3.1cqw, 5.5cqh), 26px);
  width: min(92%, 178cqh, 700px);
  container-type: inline-size;
  transform: rotateX(var(--rq-x, 7deg)) rotateY(var(--rq-y, -11deg))
    rotateZ(var(--rq-z, -4deg));
  transform-style: preserve-3d;
}

.rq-browser,
.rq-request {
  min-width: 0;
  box-sizing: border-box;
}
.rq-browser {
  grid-column: 1 / 23;
  grid-row: 1;
  padding: clamp(10px, 2.1cqw, 17px);
  border: 1px solid #e2e9ff;
  border-radius: 9px;
  color: #26385f;
  background: var(--rq-paper);
  box-shadow:
    0 1px #8499cb,
    0 3px #667da7,
    0 4px #354767,
    0 10px 20px #080e1c35;
}
.rq-browser-head,
.rq-request-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 570 clamp(12px, 2cqw, 15px) / 1.15 var(--sans, sans-serif);
  letter-spacing: -0.018em;
}
.request-inspector .rq-browser-head svg,
.request-inspector .rq-request-head svg {
  width: 16px;
  height: 16px;
}
.rq-location {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.6cqw, 12px);
  min-height: clamp(38px, 7.9cqw, 53px);
  padding: 3px clamp(9px, 1.9cqw, 16px);
  margin-top: clamp(8px, 1.8cqw, 13px);
  border: 1px solid #253554;
  border-radius: 5px;
  background: #1c2843;
  color: #dbe4ff;
}
.request-inspector .rq-location svg {
  flex: none;
  width: clamp(14px, 2.7cqw, 18px);
  height: clamp(14px, 2.7cqw, 18px);
  color: #acbde4;
}
.rq-address,
.rq-no-address {
  min-width: 0;
  font: 450 clamp(13px, 3.08cqw, 23px) / 1.5 var(--mono, monospace);
  letter-spacing: -0.054em;
}
.rq-address {
  display: flex;
  flex: 1;
  overflow: hidden;
  align-items: baseline;
}
.rq-address > span {
  min-width: 0;
  max-width: 63%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rq-address [data-address-part="0"] {
  color: #a9badc;
  flex: 0 0 auto;
}
.rq-address [data-address-part="1"] {
  position: relative;
  color: #eff3ff;
}
.rq-authority-port {
  position: absolute;
  left: 62%;
  bottom: 0;
}
.rq-address [data-address-part="2"],
.rq-address [data-address-part="3"] {
  color: #bbc9e7;
  flex: 0 2 auto;
}
.rq-address [data-selected] {
  flex-shrink: 0;
  color: var(--acid, #e4ff5e);
  text-decoration: underline;
  text-decoration-color: #bbd68e;
  text-underline-offset: 0.17em;
}
.rq-no-address {
  color: #aebcd8;
}

.rq-request {
  position: relative;
  grid-column: 8 / -1;
  grid-row: 2;
  padding: clamp(11px, 2.35cqw, 18px) clamp(13px, 2.7cqw, 23px);
  border: 1px solid #647ba7;
  border-radius: 5px;
  color: #e2ebff;
  background: #22314d;
  box-shadow:
    0 2px #344561,
    0 4px #172338,
    0 10px 18px #080e1c2c;
  transform: translateZ(16px);
}
.rq-request-head {
  padding-bottom: clamp(8px, 1.6cqw, 13px);
  border-bottom: 1px solid var(--rq-stroke);
  color: #becff7;
}
.rq-request-line,
.rq-host-line {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 0.68em;
  font: 450 clamp(12px, 2.35cqw, 18px) / 1.28 var(--mono, monospace);
  letter-spacing: -0.04em;
}
.rq-request-line {
  margin-top: clamp(9px, 1.6cqw, 13px);
}
.rq-query-state {
  margin-left: auto;
  color: #afbfdb;
  font: 450 11px/1.2 var(--sans, sans-serif);
  letter-spacing: normal;
}
.rq-host-line {
  position: relative;
  align-items: center;
  margin-top: 0.52em;
}
.rq-host-port {
  position: absolute;
  left: calc(-1 * clamp(13px, 2.7cqw, 23px));
  top: 50%;
  width: 0;
  height: 0;
}
.rq-method,
.rq-header-key {
  color: #b9c8e8;
}
.rq-method[data-actual] {
  color: #f0f4ff;
  font-weight: 600;
}
.rq-target,
.rq-header-value {
  overflow: hidden;
  min-width: 0;
  font: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rq-target [data-selected] {
  color: var(--acid, #e4ff5e);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.rq-header-value {
  display: inline-flex;
  align-items: center;
}
.rq-header-value .evidence-token {
  min-width: 0;
  vertical-align: baseline;
  font: 520 clamp(12px, 2.4cqw, 18px) / 1.1 var(--mono, monospace);
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.rq-header-value .evidence-value {
  overflow: hidden;
  text-overflow: ellipsis;
}
.rq-header-value [data-host-prefix],
.rq-header-value [data-host-suffix] {
  flex: none;
}
.request-inspector .rq-wire {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke: #91aaf1;
  stroke-width: 1.15;
  stroke-linecap: round;
}
.rq-wire path {
  opacity: 0.8;
}
.rq-wire circle {
  stroke: #91aaf1;
  fill: #1c2843;
  stroke-width: 1.15;
}

.rq-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  padding: 8px 0 0;
  border-top: 1px solid #33405a;
}
.rq-fields {
  display: flex;
  gap: clamp(3px, 0.8vw, 11px);
}
.rq-tools button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 480 12px/1 var(--mono, monospace);
  color: #acbbd5;
}
.rq-fields button {
  padding: 0 clamp(5px, 1.1vw, 12px);
}
.rq-fields button[aria-pressed="true"] {
  border-color: #526585;
  color: var(--acid, #e4ff5e);
  background: #293547;
}
.rq-tools button:hover,
.rq-tools button:focus-visible {
  color: #ecf2ff;
}
.rq-reset {
  padding: 0 5px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@container (max-width: 410px) {
  .rq-camera {
    width: min(94%, 178cqh);
    row-gap: 12px;
  }
  .rq-browser {
    grid-column: 1 / 24;
    padding: 8px 9px;
  }
  .rq-request {
    grid-column: 6 / -1;
    padding-block: 9px;
  }
  .rq-request-head {
    padding-bottom: 5px;
  }
  .rq-request-line {
    margin-top: 6px;
  }
  .rq-host-line {
    margin-top: 4px;
  }
  .rq-location {
    margin-top: 6px;
    min-height: 32px;
  }
  .rq-browser-head,
  .rq-request-head {
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .assembly.request-inspector {
    flex: none;
    height: clamp(244px, 33svh, 355px);
    margin-top: clamp(16px, 3.5svh, 36px);
  }
  .rq-tools {
    padding-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rq-camera {
    transform: rotateX(var(--rq-x, 0deg)) rotateY(var(--rq-y, 0deg))
      rotateZ(var(--rq-z, 0deg));
  }
  .rq-request {
    transform: none;
  }
}
