:root {
  color-scheme: light;
  --qa-bg: #f3f7f9;
  --qa-panel: #ffffff;
  --qa-ink: #0b1828;
  --qa-muted: #657b8e;
  --qa-line: #d7e4ea;
  --qa-soft: #eef5f7;
  --qa-navy: #0d2439;
  --qa-cyan: #13b8c7;
  --qa-cyan-soft: #dff7f8;
  --qa-green: #15946f;
  --qa-shadow: 0 18px 45px rgba(17, 49, 69, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--qa-bg);
}

body {
  min-width: 0;
  margin: 0;
  color: var(--qa-ink);
  background:
    linear-gradient(rgba(21, 73, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 73, 94, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 8% 4%, rgba(19, 184, 199, 0.10), transparent 25%),
    var(--qa-bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

button,
input[type="range"] {
  accent-color: var(--qa-cyan);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(19, 184, 199, 0.20);
  outline-offset: 2px;
}

.qa-sandbox {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 28px;
}

.qa-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  align-items: end;
  gap: 36px;
  padding: 6px 2px 22px;
}

.qa-hero p,
.qa-panel p {
  margin: 0;
}

.qa-eyebrow,
.qa-number,
.qa-tech-tag,
.qa-local-tag,
.qa-panel-header,
.qa-subheading,
.qa-chart-card figcaption {
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: 0.05em;
}

.qa-eyebrow {
  margin: 0 0 5px;
  color: #0d7885;
  font-size: 0.72rem;
  font-weight: 850;
}

.qa-hero h1 {
  margin: 0;
  color: var(--qa-navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.qa-hero > p {
  max-width: 700px;
  color: var(--qa-muted);
  font-size: 0.92rem;
}

.qa-boundary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 184, 199, 0.22);
  border-radius: 13px;
  color: #476779;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(17, 49, 69, 0.05);
  font-size: 0.76rem;
}

.qa-boundary strong {
  color: #0a6672;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.qa-boundary p {
  margin: 0;
}

.qa-status-dot,
.qa-session-badge > span[aria-hidden="true"],
.qa-load-footnote span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20c391;
  box-shadow: 0 0 0 5px rgba(32, 195, 145, 0.11);
}

.qa-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.qa-panel {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(194, 214, 223, 0.92);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 5%, rgba(19, 184, 199, 0.08), transparent 27%),
    var(--qa-panel);
  box-shadow: var(--qa-shadow);
}

.qa-panel::after {
  position: absolute;
  right: -62px;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(19, 184, 199, 0.10);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(19, 184, 199, 0.025);
  content: "";
  pointer-events: none;
}

.qa-panel > * {
  position: relative;
  z-index: 1;
}

.qa-panel--wide {
  grid-column: 1 / -1;
}

.qa-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.qa-panel-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-number {
  color: #0b7682;
  font-size: 0.68rem;
  font-weight: 900;
}

.qa-tech-tag,
.qa-local-tag,
.qa-session-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.60rem;
  font-weight: 850;
}

.qa-tech-tag {
  color: #3e6174;
  background: var(--qa-soft);
}

.qa-local-tag {
  border: 1px solid rgba(19, 184, 199, 0.20);
  color: #0a7783;
  background: rgba(223, 247, 248, 0.72);
}

.qa-session-badge {
  gap: 7px;
  border: 1px solid rgba(21, 148, 111, 0.20);
  color: #137b5e;
  background: rgba(229, 249, 240, 0.90);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: 0.03em;
}

.qa-session-badge > span[aria-hidden="true"] {
  display: inline-block;
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.qa-panel h2 {
  margin: 0 0 5px;
  color: var(--qa-navy);
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.qa-panel-intro {
  min-height: 47px;
  color: var(--qa-muted);
  font-size: 0.78rem;
}

.qa-control-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(180px, 1.35fr);
  gap: 12px;
  margin: 18px 0 14px;
}

.qa-control-row--compact {
  grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 1fr);
  align-items: end;
}

.qa-control-row label,
.qa-credentials label,
.qa-mock-form > label,
.qa-auth-input,
.qa-slider-label {
  color: #49677b;
  font-size: 0.69rem;
  font-weight: 760;
}

.qa-control-row input[type="number"],
.qa-credentials input,
.qa-input-with-action,
.qa-auth-input textarea {
  border: 1px solid var(--qa-line);
  border-radius: 10px;
  color: var(--qa-ink);
  background: rgba(248, 251, 252, 0.94);
}

.qa-control-row input[type="number"] {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 6px;
  padding: 0 10px;
}

.qa-range-control output,
.qa-slider-label output {
  float: right;
  color: #0b7682;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.66rem;
}

.qa-range-control input,
.qa-slider-label input {
  display: block;
  width: 100%;
  margin: 11px 0 0;
}

.qa-inline-status {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--qa-line);
  border-radius: 10px;
  color: #557185;
  background: var(--qa-soft);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 760;
}

.qa-cart-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
  margin-bottom: 12px;
}

.qa-product-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--qa-line);
  border-radius: 13px;
  background: #fbfdfe;
}

.qa-product-visual {
  display: grid;
  grid-row: span 2;
  place-items: center;
  height: 54px;
  border-radius: 11px;
  color: #dffbfc;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 45%),
    var(--qa-navy);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 900;
}

.qa-product-card small,
.qa-product-card p {
  color: #7590a1;
  font-size: 0.60rem;
}

.qa-product-card h3 {
  margin: 1px 0 2px;
  font-size: 0.84rem;
  line-height: 1.25;
}

.qa-product-card .qa-secondary-button {
  grid-column: 1 / -1;
}

.qa-secondary-button,
.qa-primary-button {
  min-height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 820;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.qa-secondary-button {
  border: 1px solid rgba(19, 184, 199, 0.30);
  color: #0a7580;
  background: var(--qa-cyan-soft);
  font-size: 0.70rem;
}

.qa-primary-button {
  width: 100%;
  border: 1px solid var(--qa-navy);
  color: #f1fcff;
  background: var(--qa-navy);
  box-shadow: 0 9px 20px rgba(13, 36, 57, 0.14);
  font-size: 0.72rem;
}

.qa-secondary-button:hover,
.qa-primary-button:hover {
  transform: translateY(-1px);
}

.qa-primary-button:disabled,
.qa-secondary-button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.qa-secondary-button.is-automation-target {
  border-color: var(--qa-cyan);
  color: #074b54;
  background: #aef0f2;
  box-shadow: 0 0 0 5px rgba(19, 184, 199, 0.16);
  animation: qa-target-pulse 360ms ease;
}

.qa-cart-counter {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 10px;
  border: 1px solid rgba(19, 184, 199, 0.18);
  border-radius: 13px;
  color: #527286;
  background: linear-gradient(145deg, #f4fbfc, #eaf5f7);
  text-align: center;
}

.qa-cart-counter span,
.qa-cart-counter small {
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.53rem;
  font-weight: 800;
}

.qa-cart-counter strong {
  color: var(--qa-navy);
  font-size: 2rem;
  line-height: 1.1;
}

.qa-log {
  display: grid;
  gap: 5px;
  min-height: 72px;
  margin: 10px 0 0;
  padding: 9px;
  border-radius: 10px;
  color: #8bb6c2;
  background: #0e2438;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.58rem;
  list-style: none;
}

.qa-log li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.qa-log time {
  color: #63dce3;
}

.qa-mock-form {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.qa-input-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  overflow: hidden;
}

.qa-input-with-action input {
  min-width: 0;
  padding: 0 11px;
  border: 0;
  outline: none;
  color: var(--qa-ink);
  background: transparent;
  font-size: 0.76rem;
}

.qa-input-with-action span {
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-left: 1px solid var(--qa-line);
  color: #6b8797;
  background: var(--qa-soft);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.55rem;
  font-weight: 800;
}

.qa-review-results {
  margin-top: 13px;
  padding: 11px;
  border: 1px solid var(--qa-line);
  border-radius: 12px;
  background: #fbfdfe;
}

.qa-subheading {
  display: flex;
  justify-content: space-between;
  color: #6a8797;
  font-size: 0.58rem;
}

.qa-subheading strong {
  color: #0a7884;
}

.qa-review-list,
.qa-auth-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.qa-review-list li,
.qa-auth-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #476578;
  background: var(--qa-soft);
  font-size: 0.67rem;
}

.qa-review-list li::after,
.qa-auth-list li:not(.is-empty)::after {
  flex: 0 0 auto;
  color: var(--qa-green);
  content: "PASS";
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.52rem;
  font-weight: 900;
}

.qa-review-list li.is-empty,
.qa-auth-list li.is-empty {
  justify-content: center;
  color: #8aa0ae;
  background: transparent;
}

.qa-e2e-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0 13px;
  padding: 0;
  list-style: none;
}

.qa-e2e-flow li {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--qa-line);
  border-radius: 11px;
  color: #668092;
  background: #fbfdfe;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.qa-e2e-flow li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -11px;
  color: #8eabb8;
  content: "→";
  font-size: 0.72rem;
  font-weight: 850;
  transform: translate(50%, -50%);
}

.qa-e2e-flow li > span,
.qa-e2e-flow li > small {
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.52rem;
  font-weight: 850;
}

.qa-e2e-flow li strong {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-e2e-flow li.is-active {
  border-color: var(--qa-cyan);
  color: #0a6672;
  background: var(--qa-cyan-soft);
  transform: translateY(-2px);
}

.qa-e2e-flow li.is-pass {
  border-color: rgba(21, 148, 111, 0.24);
  color: #176d56;
  background: #ecfaf4;
}

.qa-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.qa-credentials input {
  display: block;
  width: 100%;
  height: 37px;
  margin-top: 5px;
  padding: 0 9px;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.62rem;
}

.qa-e2e-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(21, 148, 111, 0.23);
  border-radius: 10px;
  color: #176d56;
  background: #ecfaf4;
}

.qa-e2e-result[hidden] {
  display: none;
}

.qa-e2e-result > span {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--qa-green);
  font-weight: 900;
}

.qa-e2e-result div {
  display: grid;
}

.qa-e2e-result strong {
  font-size: 0.70rem;
}

.qa-e2e-result small {
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.52rem;
}

.qa-session-card {
  display: grid;
  gap: 7px;
  margin: 17px 0 14px;
  padding: 11px;
  border: 1px solid var(--qa-line);
  border-radius: 12px;
  background: #fbfdfe;
}

.qa-session-card div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
}

.qa-session-card dt,
.qa-session-card dd {
  margin: 0;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.61rem;
}

.qa-session-card dt {
  color: #718999;
}

.qa-session-card dd {
  overflow: hidden;
  color: #0c6672;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-auth-input {
  display: grid;
  gap: 6px;
  margin-bottom: 9px;
}

.qa-auth-input textarea {
  width: 100%;
  min-height: 72px;
  padding: 9px 10px;
  resize: vertical;
  font-size: 0.74rem;
}

.qa-auth-list {
  min-height: 42px;
}

.qa-load-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.qa-load-heading .qa-panel-intro {
  min-height: 0;
}

.qa-metric-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.qa-metric-cluster > div {
  display: grid;
  min-width: 125px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 184, 199, 0.16);
  border-radius: 11px;
  background: var(--qa-soft);
}

.qa-metric-cluster span {
  color: #718b9a;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.54rem;
}

.qa-metric-cluster strong {
  color: var(--qa-navy);
  font-size: 1.28rem;
  line-height: 1.25;
}

.qa-load-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(420px, 1.38fr);
  gap: 16px;
}

.qa-load-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--qa-line);
  border-radius: 14px;
  background: #fbfdfe;
}

.qa-slider-label {
  display: grid;
}

.qa-slider-label > span {
  display: flex;
  justify-content: space-between;
}

.qa-slider-label output {
  float: none;
}

.qa-load-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #738b9b;
  font-size: 0.59rem;
}

.qa-load-footnote span {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  color: transparent;
  box-shadow: none;
}

.qa-chart-card {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(126, 210, 219, 0.18);
  border-radius: 14px;
  background: #0d2237;
  box-shadow: 0 15px 35px rgba(13, 34, 55, 0.16);
}

.qa-chart-card figcaption {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #a5c4cf;
  font-size: 0.57rem;
}

.qa-chart-card figcaption strong {
  color: #6ee5d0;
}

.qa-chart {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(19, 184, 199, 0.07), transparent);
}

.qa-chart-grid line {
  stroke: rgba(188, 231, 235, 0.10);
  stroke-width: 1;
}

#qa-load-line {
  fill: none;
  stroke: #75e4e7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

#qa-load-area {
  fill: rgba(19, 184, 199, 0.12);
}

.qa-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #6f8d9b;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.50rem;
}

.qa-tech-tag--wide {
  max-width: 560px;
  white-space: normal;
}

.qa-analytics-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.qa-analytics-heading .qa-panel-intro {
  min-height: 0;
  max-width: 620px;
}

.qa-analytics-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 8px;
}

.qa-analytics-metrics > div {
  display: grid;
  min-width: 118px;
  padding: 10px 11px;
  border: 1px solid rgba(19, 184, 199, 0.17);
  border-radius: 11px;
  background: var(--qa-soft);
}

.qa-analytics-metrics span {
  color: #718b9a;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.51rem;
  white-space: nowrap;
}

.qa-analytics-metrics strong {
  color: var(--qa-navy);
  font-size: 1.28rem;
  line-height: 1.22;
}

.qa-analytics-main {
  display: grid;
  grid-template-columns: minmax(245px, 0.63fr) minmax(440px, 1.37fr);
  gap: 16px;
}

.qa-analytics-controls,
.qa-mode-distribution {
  padding: 15px;
  border: 1px solid var(--qa-line);
  border-radius: 14px;
  background: #fbfdfe;
}

.qa-number-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 13px 0 10px;
}

.qa-number-field-grid label {
  color: #49677b;
  font-size: 0.66rem;
  font-weight: 760;
}

.qa-number-field-grid input {
  display: block;
  width: 100%;
  height: 39px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--qa-line);
  border-radius: 10px;
  color: var(--qa-ink);
  background: #f6fafb;
}

.qa-switch-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--qa-line);
  border-radius: 11px;
  color: #456579;
  background: #f7fafb;
  cursor: pointer;
}

.qa-switch-row > span {
  display: grid;
}

.qa-switch-row strong {
  color: var(--qa-navy);
  font-size: 0.69rem;
}

.qa-switch-row small {
  color: #78909f;
  font-size: 0.56rem;
}

.qa-switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.qa-switch-row i {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border: 1px solid #c7d8df;
  border-radius: 999px;
  background: #dfe9ed;
  transition: border-color 160ms ease, background 160ms ease;
}

.qa-switch-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(18, 49, 68, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.qa-switch-row input:checked + i {
  border-color: #14aebc;
  background: #27c1c9;
}

.qa-switch-row input:checked + i::after {
  transform: translateX(18px);
}

.qa-switch-row input:focus-visible + i {
  outline: 3px solid rgba(19, 184, 199, 0.20);
  outline-offset: 2px;
}

.qa-analytics-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px !important;
  color: #738b9b;
  font-size: 0.57rem;
}

.qa-analytics-footnote span {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 50%;
  color: transparent;
  background: #20c391;
}

.qa-mock-browser {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 210, 219, 0.22);
  border-radius: 14px;
  background: #0d2237;
  box-shadow: 0 15px 35px rgba(13, 34, 55, 0.16);
}

.qa-mock-browser-bar,
.qa-mock-browser-footer {
  display: flex;
  align-items: center;
  min-height: 35px;
  padding: 0 12px;
  color: #8eb4c1;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.53rem;
}

.qa-mock-browser-bar {
  gap: 11px;
  border-bottom: 1px solid rgba(188, 231, 235, 0.10);
}

.qa-mock-browser-bar > span {
  display: flex;
  gap: 4px;
}

.qa-mock-browser-bar i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d6a7c;
}

.qa-mock-browser-bar i:first-child { background: #ff7b72; }
.qa-mock-browser-bar i:nth-child(2) { background: #e9b949; }
.qa-mock-browser-bar i:nth-child(3) { background: #31c48d; }

.qa-mock-browser-bar strong {
  min-width: 0;
  overflow: hidden;
  color: #c7e2e8;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-mock-browser-bar small {
  margin-left: auto;
  color: #65dfd1;
  font-size: 0.51rem;
  font-weight: 850;
}

.qa-mock-browser-stage {
  position: relative;
  overflow: hidden;
}

.qa-mock-viewport {
  position: relative;
  height: 270px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-color: rgba(19, 184, 199, 0.45) transparent;
  scrollbar-width: thin;
  background: #eef5f7;
}

.qa-mock-viewport::-webkit-scrollbar { width: 6px; }
.qa-mock-viewport::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(19, 184, 199, 0.42); }

.qa-mock-page-content {
  display: grid;
  gap: 14px;
  min-height: 590px;
  padding: 15px;
  background:
    linear-gradient(rgba(21, 73, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 73, 94, 0.035) 1px, transparent 1px),
    #f4f8fa;
  background-size: 22px 22px, 22px 22px, auto;
}

.qa-mock-hero,
.qa-mock-card-row article,
.qa-mock-cta {
  border: 1px solid #d1e1e7;
  border-radius: 13px;
  color: #4d6b7d;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.qa-mock-target.is-active {
  border-color: #14b6c4;
  box-shadow: 0 0 0 4px rgba(19, 184, 199, 0.13), 0 12px 24px rgba(15, 77, 95, 0.10);
  transform: translateY(-2px);
}

.qa-mock-hero {
  min-height: 180px;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 25%, rgba(19, 184, 199, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.96);
}

.qa-mock-hero > span,
.qa-mock-card-row span,
.qa-mock-cta > span {
  color: #0b7a86;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.50rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.qa-mock-hero h3 {
  margin: 8px 0 4px;
  color: var(--qa-navy);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.qa-mock-hero p {
  max-width: 420px;
  font-size: 0.66rem;
}

.qa-mock-hero button,
.qa-mock-cta button {
  margin-top: 14px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #ecfdff;
  background: var(--qa-navy);
  font-size: 0.59rem;
  font-weight: 800;
}

.qa-mock-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qa-mock-card-row article {
  display: grid;
  min-height: 110px;
  align-content: center;
  gap: 3px;
  padding: 15px;
}

.qa-mock-card-row strong,
.qa-mock-cta strong {
  color: var(--qa-navy);
  font-size: 0.76rem;
}

.qa-mock-card-row small {
  color: #78909f;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.52rem;
}

.qa-mock-cta {
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: start;
  padding: 18px;
}

.qa-pointer-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 0s linear 120ms;
}

.qa-pointer-layer.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

#qa-pointer-path {
  fill: none;
  stroke: rgba(15, 160, 177, 0.72);
  stroke-linecap: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

#qa-pointer-dot {
  fill: #ffffff;
  stroke: #0d9fad;
  stroke-width: 4;
  filter: drop-shadow(0 3px 5px rgba(12, 80, 96, 0.34));
  vector-effect: non-scaling-stroke;
}

.qa-mock-browser-footer {
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(188, 231, 235, 0.10);
}

.qa-mock-browser-footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-mock-browser-footer strong {
  color: #66dfd2;
  white-space: nowrap;
}

.qa-analytics-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 16px;
  margin-top: 16px;
}

.qa-fingerprint-console {
  min-width: 0;
  min-height: 218px;
  overflow: hidden;
  border: 1px solid rgba(126, 210, 219, 0.20);
  border-radius: 14px;
  background: #0d2237;
  box-shadow: 0 15px 35px rgba(13, 34, 55, 0.13);
}

.qa-fingerprint-console header,
.qa-mode-distribution header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
  align-items: center;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.53rem;
  letter-spacing: 0.04em;
}

.qa-fingerprint-console header {
  padding: 0 12px;
  border-bottom: 1px solid rgba(188, 231, 235, 0.10);
  color: #a5c4cf;
}

.qa-fingerprint-console header strong {
  color: #6ee5d0;
}

.qa-fingerprint-console ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 11px 12px;
  color: #a7c5ce;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.56rem;
  list-style: none;
}

.qa-fingerprint-console li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
}

.qa-fingerprint-console time {
  color: #63dce3;
}

.qa-fingerprint-console li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-mode-distribution header {
  margin-bottom: 9px;
  color: #637f90;
}

.qa-mode-distribution header strong {
  color: #0b7884;
}

.qa-mode-bars {
  display: grid;
  gap: 7px;
}

.qa-mode-bars > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  color: #587487;
  font-size: 0.57rem;
}

.qa-mode-bars > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-mode-bars i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1ecef;
}

.qa-mode-bars b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13b8c7, #65dfd2);
  transition: width 220ms ease;
}

.qa-mode-bars > div > strong {
  color: #0c7080;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.56rem;
  text-align: right;
}

@keyframes qa-target-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.985); }
  100% { transform: scale(1); }
}

@media (max-width: 860px) {
  .qa-sandbox {
    padding: 20px;
  }

  .qa-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .qa-demo-grid {
    grid-template-columns: 1fr;
  }

  .qa-panel--wide {
    grid-column: auto;
  }

  .qa-panel-intro {
    min-height: 0;
  }

  .qa-load-heading,
  .qa-load-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qa-load-heading {
    align-items: stretch;
  }

  .qa-analytics-heading,
  .qa-analytics-main,
  .qa-analytics-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qa-analytics-heading {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .qa-sandbox {
    padding: 14px;
  }

  .qa-hero {
    padding: 2px 1px 16px;
  }

  .qa-hero h1 {
    font-size: 2rem;
  }

  .qa-hero > p {
    font-size: 0.78rem;
  }

  .qa-boundary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .qa-boundary p {
    grid-column: 1 / -1;
  }

  .qa-panel {
    padding: 17px;
    border-radius: 16px;
  }

  .qa-panel-header {
    align-items: flex-start;
  }

  .qa-panel-header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .qa-tech-tag--wide {
    max-width: 230px;
  }

  .qa-local-tag,
  .qa-session-badge {
    max-width: 47%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qa-control-row,
  .qa-control-row--compact {
    grid-template-columns: 1fr;
  }

  .qa-cart-stage {
    grid-template-columns: 1fr 86px;
  }

  .qa-product-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 10px;
  }

  .qa-product-visual {
    width: 44px;
    height: 44px;
  }

  .qa-log li {
    grid-template-columns: 79px minmax(0, 1fr);
  }

  .qa-input-with-action {
    grid-template-columns: 1fr;
  }

  .qa-input-with-action input {
    min-height: 42px;
    font-size: 1rem;
  }

  .qa-input-with-action span {
    min-height: 27px;
    border-top: 1px solid var(--qa-line);
    border-left: 0;
  }

  .qa-e2e-flow {
    grid-template-columns: 1fr;
  }

  .qa-e2e-flow li {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
  }

  .qa-e2e-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -12px;
    left: 50%;
    content: "↓";
    transform: translate(-50%, 50%);
  }

  .qa-credentials {
    grid-template-columns: 1fr;
  }

  .qa-credentials input,
  .qa-control-row input[type="number"],
  .qa-auth-input textarea {
    font-size: 1rem;
  }

  .qa-metric-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qa-analytics-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qa-analytics-metrics > div {
    min-width: 0;
    padding: 9px 7px;
  }

  .qa-analytics-metrics span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qa-analytics-metrics strong {
    font-size: 1.05rem;
  }

  .qa-number-field-grid {
    grid-template-columns: 1fr;
  }

  .qa-number-field-grid input {
    font-size: 1rem;
  }

  .qa-mock-viewport {
    height: 235px;
  }

  .qa-mock-page-content {
    min-height: 560px;
    padding: 12px;
  }

  .qa-mock-card-row {
    grid-template-columns: 1fr;
  }

  .qa-fingerprint-console li {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .qa-mode-bars > div {
    grid-template-columns: 104px minmax(0, 1fr) 20px;
  }

  .qa-metric-cluster > div {
    min-width: 0;
  }

  .qa-chart {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026-08-31: final light-surface pass for every interactive QA component. */
.qa-product-visual {
  border: 1px solid #bdd9ee;
  color: #17617c;
  background: linear-gradient(145deg, #f8fcff, #dceeff);
}

.qa-primary-button,
.qa-mock-hero button,
.qa-mock-cta button {
  border: 1px solid #9fc9ed;
  color: #174b77;
  background: #dcecff;
  box-shadow: 0 8px 18px rgba(58, 119, 167, 0.12);
}

.qa-primary-button:hover,
.qa-mock-hero button:hover,
.qa-mock-cta button:hover {
  border-color: #84b7db;
  color: #103f68;
  background: #cfe5fb;
}

.qa-log,
.qa-chart-card,
.qa-mock-browser,
.qa-fingerprint-console {
  border: 1px solid #c7ddf0;
  color: #52728e;
  background: linear-gradient(145deg, #f8fcff, #edf6ff);
  box-shadow: 0 14px 32px rgba(57, 103, 145, 0.10);
}

.qa-log time,
.qa-fingerprint-console time {
  color: #1976a8;
}

.qa-chart-card figcaption,
.qa-fingerprint-console header,
.qa-fingerprint-console ol,
.qa-mock-browser-bar,
.qa-mock-browser-footer {
  color: #52728e;
}

.qa-chart-card figcaption strong,
.qa-fingerprint-console header strong,
.qa-mock-browser-footer strong {
  color: #158b91;
}

.qa-chart-grid line {
  stroke: #d7e7f4;
}

#qa-load-line {
  stroke: #3aa6c4;
}

#qa-load-area {
  fill: rgba(58, 166, 196, 0.14);
}

.qa-mock-browser-bar {
  border-bottom-color: #ccdeed;
}

.qa-mock-browser-footer,
.qa-fingerprint-console header {
  border-color: #ccdeed;
}

.qa-mock-browser-bar strong {
  color: #174b77;
}

.qa-mock-browser-bar small {
  color: #158b91;
}

input[type="range"] {
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid #c3dced;
  border-radius: 999px;
  background: #e3eff8;
}

input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 3px solid #eaf7fb;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #27b9c4;
  box-shadow: 0 3px 9px rgba(44, 133, 160, 0.2);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border: 1px solid #c3dced;
  border-radius: 999px;
  background: #e3eff8;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #eaf7fb;
  border-radius: 50%;
  background: #27b9c4;
  box-shadow: 0 3px 9px rgba(44, 133, 160, 0.2);
}

[data-edit-key] {
  position: relative;
  transform: translate(var(--editor-x, 0), var(--editor-y, 0));
}

html.portfolio-editor-preview [data-edit-key] {
  cursor: pointer;
  outline: 1px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 140ms ease, background-color 140ms ease;
}

html.portfolio-editor-preview [data-edit-key]:hover,
html.portfolio-editor-preview [data-edit-key].is-editor-selected {
  outline-color: rgba(45, 130, 216, 0.72);
  background-color: rgba(220, 236, 255, 0.5);
}

/* 2026-09-04: single-view automation command center. */
.qa-workbench {
  --qa-workbench-bg: #0b0d10;
  --qa-workbench-panel: #11151b;
  --qa-workbench-line: rgba(255, 255, 255, 0.10);
  --qa-workbench-muted: #8e99aa;
  overflow: hidden;
  border: 1px solid rgba(11, 24, 40, 0.18);
  border-radius: 24px;
  background: var(--qa-workbench-bg);
  box-shadow: 0 30px 70px rgba(18, 38, 62, 0.18), 0 2px 8px rgba(18, 38, 62, 0.08);
}

.qa-workbench-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  min-height: 45px;
  padding: 0 16px;
  border-bottom: 1px solid var(--qa-workbench-line);
  color: #778294;
  background: linear-gradient(180deg, #15191f, #101318);
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.035em;
}

.qa-workbench-bar > strong {
  overflow: hidden;
  color: #9ca7b7;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-window-lights {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.qa-window-lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.qa-window-lights i:nth-child(2) {
  background: #febc2e;
}

.qa-window-lights i:nth-child(3) {
  background: #28c840;
}

.qa-workbench-state {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  color: #8d98a8;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.qa-workbench-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #37d39b;
  box-shadow: 0 0 0 4px rgba(55, 211, 155, 0.10);
}

.qa-view-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--qa-workbench-line);
  background: #0e1116;
}

.qa-view-tabs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 49px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #8390a2;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.qa-view-tabs button:hover {
  color: #dbe5f4;
  background: rgba(255, 255, 255, 0.045);
}

.qa-view-tabs button[aria-selected="true"] {
  border-color: rgba(104, 160, 255, 0.30);
  color: #f6f9ff;
  background: linear-gradient(135deg, rgba(46, 120, 246, 0.24), rgba(112, 89, 226, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 24px rgba(19, 79, 179, 0.12);
}

.qa-view-tabs button:active {
  transform: translateY(1px);
}

.qa-view-tabs button:focus-visible {
  outline-color: rgba(91, 153, 255, 0.65);
}

.qa-view-tabs button > span {
  color: #617086;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.61rem;
  font-weight: 800;
}

.qa-view-tabs button[aria-selected="true"] > span {
  color: #79adff;
}

.qa-view-tabs button > strong {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 760;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-demo-grid {
  display: block;
  padding: 12px;
  background:
    radial-gradient(circle at 92% 4%, rgba(73, 123, 255, 0.09), transparent 29%),
    var(--qa-workbench-bg);
}

.qa-panel[hidden] {
  display: none !important;
}

.qa-panel,
.qa-panel--wide {
  grid-column: auto;
  min-height: 0;
  padding: clamp(20px, 2.5vw, 31px);
  border: 1px solid rgba(212, 225, 239, 0.88);
  border-radius: 18px;
  background:
    radial-gradient(circle at 98% 2%, rgba(85, 159, 255, 0.10), transparent 25%),
    linear-gradient(145deg, #ffffff, #f8fbff 58%, #f2f8ff);
  box-shadow: none;
  animation: qa-panel-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qa-panel::after {
  display: none;
}

.qa-panel-header {
  margin-bottom: 10px;
}

.qa-panel h2 {
  max-width: 820px;
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.qa-panel-intro {
  max-width: 860px;
  margin-bottom: 18px !important;
  font-size: 0.82rem;
}

.qa-panel-workspace {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.32fr);
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.qa-panel-workspace--analytics {
  grid-template-columns: minmax(300px, 0.63fr) minmax(0, 1.47fr);
}

.qa-code-window {
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 17px;
  color: #c8d2e1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 21%),
    #0b0d10;
  box-shadow: 0 18px 40px rgba(15, 29, 48, 0.16);
}

.qa-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  padding: 8px 10px 8px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #11151a;
}

.qa-code-toolbar > span {
  overflow: hidden;
  color: #808c9e;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-code-run {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  max-width: 62%;
  padding: 6px 10px;
  border: 1px solid rgba(116, 167, 255, 0.52);
  border-radius: 9px;
  color: #f8fbff;
  background: linear-gradient(135deg, #2f78ec, #6856d9);
  box-shadow: 0 7px 18px rgba(45, 108, 226, 0.24);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 760;
  line-height: 1.1;
  transition: filter 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.qa-code-run [data-qa-run-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-code-run:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.qa-code-run:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.qa-code-window pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  padding: 18px 0 22px;
  color: #b8c5d7;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 43px, transparent 43px),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(255, 255, 255, 0.017) 25px 26px);
  scrollbar-color: #344050 #11151a;
}

.qa-code-window code {
  display: block;
  min-width: max-content;
  counter-reset: qa-code-line;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 26px;
}

.qa-code-window code > span {
  display: block;
  min-height: 26px;
  padding: 0 17px 0 54px;
  counter-increment: qa-code-line;
  white-space: pre;
}

.qa-code-window code > span::before {
  display: inline-block;
  width: 25px;
  margin-left: -41px;
  margin-right: 16px;
  color: #485464;
  content: counter(qa-code-line, decimal-leading-zero);
  text-align: right;
  user-select: none;
}

.qa-code-window code b {
  color: #e996dc;
  font-weight: 650;
}

.qa-code-window code em {
  color: #e9c77c;
  font-style: normal;
}

.qa-code-window > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 39px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #657185;
  background: #101419;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.qa-code-window [data-qa-run-status] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #67d8ad;
  font-size: inherit;
}

.qa-code-window [data-qa-run-status]::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(103, 216, 173, 0.09);
  content: "";
}

.qa-code-window [data-qa-run-status][data-state="RUNNING"] {
  color: #7eb1ff;
}

.qa-code-window [data-qa-run-status][data-state="PAUSED"] {
  color: #f0c46f;
}

.qa-demo-surface {
  min-width: 0;
  padding: clamp(14px, 1.7vw, 21px);
  border: 1px solid #d8e5f0;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(88, 173, 255, 0.10), transparent 28%),
    linear-gradient(150deg, #fbfdff, #f1f7fc);
  box-shadow: 0 14px 30px rgba(53, 92, 130, 0.07);
}

.qa-demo-surface .qa-primary-button[data-edit-key$=".runButton"] {
  display: none;
}

.qa-panel-workspace--analytics .qa-demo-surface {
  padding: 14px;
}

.qa-panel-workspace--analytics .qa-analytics-main {
  grid-template-columns: minmax(200px, 0.52fr) minmax(340px, 1.48fr);
  gap: 12px;
}

.qa-panel-workspace--analytics .qa-analytics-bottom {
  gap: 12px;
}

@keyframes qa-panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .qa-panel-workspace,
  .qa-panel-workspace--analytics {
    grid-template-columns: minmax(0, 1fr);
  }

  .qa-code-window {
    grid-template-rows: auto minmax(220px, auto) auto;
  }

  .qa-code-window pre {
    max-height: 330px;
  }
}

@media (max-width: 700px) {
  .qa-workbench-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .qa-view-tabs {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .qa-view-tabs button {
    flex: 0 0 auto;
    min-width: 132px;
    scroll-snap-align: start;
  }

  .qa-view-tabs button[aria-selected="true"] {
    min-width: 148px;
  }
}

@media (max-width: 560px) {
  .qa-sandbox {
    padding: 14px;
  }

  .qa-hero {
    gap: 10px;
    padding-bottom: 16px;
  }

  .qa-boundary {
    margin-bottom: 14px;
  }

  .qa-workbench {
    border-radius: 18px;
  }

  .qa-workbench-bar {
    min-height: 41px;
    padding-inline: 12px;
  }

  .qa-workbench-bar > strong {
    padding-inline: 8px;
    font-size: 0.58rem;
  }

  .qa-workbench-state {
    font-size: 0;
  }

  .qa-view-tabs {
    gap: 5px;
    padding: 8px;
  }

  .qa-view-tabs button {
    min-width: 116px;
    min-height: 44px;
    padding: 7px 9px;
  }

  .qa-view-tabs button[aria-selected="true"] {
    min-width: 132px;
  }

  .qa-demo-grid {
    padding: 8px;
  }

  .qa-panel,
  .qa-panel--wide {
    padding: 16px 14px 15px;
    border-radius: 14px;
  }

  .qa-panel-workspace {
    gap: 12px;
  }

  .qa-code-window,
  .qa-demo-surface {
    border-radius: 13px;
  }

  .qa-code-toolbar {
    min-height: 46px;
    padding-left: 12px;
  }

  .qa-code-toolbar > span {
    max-width: 42%;
  }

  .qa-code-run {
    max-width: 56%;
  }

  .qa-code-window code {
    font-size: 0.61rem;
    line-height: 23px;
  }

  .qa-code-window code > span {
    min-height: 23px;
    padding-right: 12px;
  }

  .qa-code-window pre {
    max-height: 280px;
  }

  .qa-demo-surface,
  .qa-panel-workspace--analytics .qa-demo-surface {
    padding: 12px;
  }

  .qa-panel-workspace--analytics .qa-analytics-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa-panel {
    animation: none;
  }
}

/* 2026-09-04: controls used by the five local QA fixtures. */
select {
  font: inherit;
}

select:focus-visible {
  outline: 3px solid rgba(19, 184, 199, 0.20);
  outline-offset: 2px;
}

.qa-tier-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.qa-tier-picker button {
  display: grid;
  min-width: 0;
  min-height: 72px;
  align-content: center;
  gap: 1px;
  padding: 9px 8px;
  border: 1px solid var(--qa-line);
  border-radius: 11px;
  color: #557185;
  background: #fbfdfe;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.qa-tier-picker button:hover,
.qa-tier-picker button.is-automation-target {
  border-color: rgba(19, 184, 199, 0.52);
  transform: translateY(-1px);
}

.qa-tier-picker button.is-selected {
  border-color: #13aebd;
  color: #0a6672;
  background: var(--qa-cyan-soft);
  box-shadow: 0 0 0 3px rgba(19, 184, 199, 0.10);
}

.qa-tier-picker button strong {
  color: var(--qa-navy);
  font-size: 1rem;
}

.qa-tier-picker button span {
  overflow: hidden;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-tier-picker button small {
  color: #78909f;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.48rem;
}

.qa-review-fieldset {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--qa-line);
  border-radius: 11px;
  background: rgba(251, 253, 254, 0.92);
}

.qa-review-rating,
.qa-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qa-review-rating button,
.qa-review-tags button {
  min-height: 38px;
  border: 1px solid var(--qa-line);
  border-radius: 9px;
  color: #7890a0;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.qa-review-rating button {
  width: 40px;
  padding: 0;
  font-size: 1.15rem;
}

.qa-review-tags button {
  padding: 7px 10px;
  font-size: 0.66rem;
  font-weight: 760;
}

.qa-review-rating button.is-selected,
.qa-review-tags button.is-selected {
  border-color: rgba(19, 174, 189, 0.56);
  color: #0a7580;
  background: var(--qa-cyan-soft);
}

.qa-review-rating button.is-selected {
  color: #e3a22a;
}

.qa-review-textarea {
  width: 100%;
  min-height: 76px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--qa-line);
  border-radius: 10px;
  color: var(--qa-ink);
  background: rgba(248, 251, 252, 0.94);
  font-size: 0.74rem;
}

#qa-review-submit {
  width: 100%;
}

.qa-review-results .qa-inline-status {
  min-height: 34px;
  margin: 8px 0 0;
}

.qa-e2e-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qa-flow-context {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qa-auth-replay-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 9px;
  min-height: 112px;
  margin-bottom: 10px;
}

.qa-auth-screen,
.qa-auth-comment-panel {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--qa-line);
  border-radius: 11px;
  background: #fbfdfe;
}

.qa-auth-screen > span,
.qa-auth-comment-panel > small {
  color: #0b7884;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.52rem;
  font-weight: 850;
}

.qa-auth-screen > strong {
  color: var(--qa-navy);
  font-size: 0.75rem;
}

.qa-auth-screen > p {
  color: #718999;
  font-size: 0.61rem;
}

.qa-auth-comment-panel[hidden] {
  display: none;
}

.qa-auth-comment-panel .qa-auth-input {
  margin: 0;
}

.qa-select-field-grid select {
  display: block;
  width: 100%;
  height: 39px;
  margin-top: 6px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--qa-line);
  border-radius: 10px;
  color: var(--qa-ink);
  background: #f6fafb;
  font-size: 0.68rem;
}

.qa-synthetic-summary {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.qa-synthetic-summary > span {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--qa-line);
  border-radius: 9px;
  background: #f7fafb;
}

.qa-synthetic-summary strong,
.qa-synthetic-summary small {
  overflow: hidden;
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.53rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-synthetic-summary strong {
  color: #0b7884;
}

.qa-synthetic-summary small {
  color: #637f90;
}

.qa-mock-page-content--synthetic {
  grid-template-columns: minmax(0, 1.1fr) minmax(150px, 0.9fr);
  align-items: stretch;
  min-height: 270px;
}

.qa-mock-page-content--synthetic .qa-mock-hero {
  min-height: 0;
}

.qa-mock-page-content--synthetic .qa-mock-card-row {
  grid-template-columns: 1fr;
}

.qa-mock-page-content--synthetic .qa-mock-card-row article {
  min-height: 0;
}

#qa-pointer-canvas {
  display: block;
}

@media (max-width: 700px) {
  .qa-tier-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qa-flow-context,
  .qa-auth-replay-stage,
  .qa-mock-page-content--synthetic {
    grid-template-columns: 1fr;
  }

  .qa-mock-page-content--synthetic {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .qa-e2e-flow {
    grid-template-columns: 1fr;
  }

  .qa-review-textarea,
  .qa-select-field-grid select {
    font-size: 1rem;
  }
}
