: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);
}
