:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
}

#harness {
  max-width: 560px;
  margin: 40px auto;
  padding: 24px;
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
}
#harness h1 {
  font-size: 18px;
  margin: 0 0 4px;
}
#harness p.sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: #94a3b8;
}

#harness fieldset {
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 16px 16px;
  margin: 0 0 16px;
}
#harness legend {
  font-size: 12px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  padding: 0 6px;
}
#harness label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin: 8px 0 4px;
}

#harness input,
#harness textarea,
#harness select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #e2e8f0;
  font: inherit;
}
#harness textarea {
  min-height: 68px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

#harness .row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

#harness button {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  border: 0;
  background: #4f46e5;
  color: white;
  font: inherit;
  font-weight: 600;
}
#harness button.secondary {
  background: #334155;
}

#harness .msg {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
  overflow-wrap: anywhere;
}
#harness .msg.error {
  color: #f87171;
}
#harness .msg.ok {
  color: #4ade80;
}

#harness .tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
}
#harness .tabs button {
  flex: 1;
  background: #334155;
  color: #cbd5e1;
  font-weight: 500;
}
#harness .tabs button.active {
  background: #4f46e5;
  color: white;
}

#harness .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#studio-iframe {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: #fff;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
