.sd-testdrive-sample-target {
  background: #080808;
  border: 1px solid rgba(255, 211, 96, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 18px rgba(255, 211, 96, 0.14);
  color: var(--foreground);
  overflow: hidden;
}

.sd-testdrive-sample-target summary {
  color: #ffd360;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1.1;
  list-style: none;
  padding: 12px 14px;
  text-align: center;
  text-transform: uppercase;
}

.sd-testdrive-sample-target summary::-webkit-details-marker {
  display: none;
}

.sd-testdrive-sample-target summary::after {
  color: var(--green);
  content: " v";
}

.sd-testdrive-sample-target[open] summary::after {
  content: " ^";
}

.sd-testdrive-sample-target-panel {
  border-top: 1px solid rgba(255, 211, 96, 0.32);
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 12px;
}

.sd-testdrive-sample-target-preview {
  -webkit-touch-callout: default;
  -webkit-user-drag: auto;
  -webkit-user-select: auto;
  background: #f4e8bf;
  border: 1px solid rgba(255, 211, 96, 0.42);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(255, 211, 96, 0.18);
  display: block;
  height: auto;
  max-height: 300px;
  max-width: min(220px, 78vw);
  pointer-events: auto;
  touch-action: manipulation;
  user-select: auto;
  width: auto;
}

.sd-testdrive-sample-target-help {
  color: rgba(248, 248, 248, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.sd-testdrive-sample-target-use,
.sd-testdrive-sample-target-panel a {
  align-items: center;
  border-radius: 8px;
  display: flex;
  font-size: 0.86rem;
  font-weight: 1000;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.sd-testdrive-sample-target-use {
  background: linear-gradient(180deg, #ef1025, #9d0010);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 16px rgba(239, 16, 37, 0.22);
  color: #fff;
}

.sd-testdrive-sample-target-use:disabled {
  cursor: progress;
  opacity: 0.72;
}

.sd-testdrive-sample-target-panel a {
  background: rgba(141, 240, 90, 0.12);
  border: 1px solid rgba(141, 240, 90, 0.5);
  color: var(--green);
}

.sd-testdrive-sample-target-status {
  color: rgba(248, 248, 248, 0.75);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
  min-height: 1em;
  text-align: center;
}

.sd-testdrive-sample-target-status[data-tone="success"] {
  color: var(--green);
}

.sd-testdrive-sample-target-status[data-tone="warning"] {
  color: #ffd360;
}

@media print {
  .sd-testdrive-sample-target {
    display: none !important;
  }
}
