.gore-qa-panel {
  position: fixed;
  top: max(64px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 19;
  width: min(304px, calc(100vw - 24px));
  max-height: calc(100vh - 78px);
  overflow: auto;
  padding: 10px;
  color: #eaf1e9;
  font: 12px/1.35 system-ui, sans-serif;
  background: rgba(8, 14, 13, 0.91);
  border: 1px solid rgba(145, 196, 170, 0.34);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.gore-qa-panel *,
.gore-qa-panel *::before,
.gore-qa-panel *::after { box-sizing: border-box; }

.gore-qa-head,
.gore-qa-head > div,
.gore-qa-team,
.gore-qa-actions,
.gore-qa-readout,
.gore-qa-history { margin: 0; }

.gore-qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gore-qa-head small { color: #8ed1b3; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; }
.gore-qa-head h2 { margin: 1px 0 0; color: #fff; font-size: 17px; }
.gore-qa-head a { color: #c8d3cd; font-weight: 700; text-decoration: none; }

.gore-qa-team,
.gore-qa-actions,
.gore-qa-presets {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.gore-qa-team { grid-template-columns: 1fr 1fr; }
.gore-qa-actions { grid-template-columns: 1fr 1fr; }
.gore-qa-presets { grid-template-columns: 1fr 1fr; }

.gore-qa-panel button {
  min-width: 0;
  padding: 6px;
  color: #dfe8e2;
  font: inherit;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  cursor: pointer;
}

.gore-qa-panel button:hover,
.gore-qa-panel button.is-active { background: rgba(94, 185, 145, 0.23); border-color: rgba(126, 220, 179, 0.62); }
.gore-qa-team button:first-child.is-active { background: rgba(193, 74, 65, 0.29); border-color: rgba(237, 120, 107, 0.66); }
.gore-qa-team button:last-child.is-active { background: rgba(75, 138, 202, 0.3); border-color: rgba(123, 184, 241, 0.67); }

.gore-qa-presets button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; text-align: left; }
.gore-qa-presets kbd { padding: 1px 3px; color: #9acfb7; font: 9px/1.3 ui-monospace, monospace; background: rgba(0, 0, 0, 0.28); border-radius: 3px; }
.gore-qa-actions button { padding: 5px 3px; font-size: 10px; }

.gore-qa-readout {
  display: grid;
  gap: 1px;
  margin-top: 8px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 5px;
}

.gore-qa-readout > div { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 6px; padding: 2px 0; }
.gore-qa-readout dt { color: rgba(221, 235, 226, 0.56); font-weight: 700; }
.gore-qa-readout dd { margin: 0; overflow-wrap: anywhere; color: #f3f7f3; }

.gore-qa-history { display: grid; gap: 2px; margin-top: 6px; padding-left: 18px; color: rgba(220, 231, 223, 0.7); font-size: 10px; }

.gore-qa-capture-probe {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

@media (max-width: 720px) {
  .gore-qa-panel { top: 54px; width: min(280px, calc(100vw - 16px)); max-height: calc(100vh - 62px); right: 8px; }
}
