:root {
  --bg: #000;
  --panel: #111831;
  --ink: #e6ecff;
  --ink-dim: #b8c1ff;
  --accent: #ee1b4e;
  --muted: #2a355f;
  --ok: #2ecc71;
  --warn: #f39c12;
  --err: #ff0000;
  --radius: 16px;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--ink);
}
.wrap {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}
.left-col,
.right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .left-col,
  .right-col {
    gap: 16px;
  }
}
.card {
  background: var(--panel);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.card h2 {
  margin: 0 0 8px;
}
.card .hd {
  padding: 16px 18px;
  border-bottom: 1px solid var(--muted);
}
.card .bd {
  padding: 16px 18px;
  max-width: 600px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.row > * {
  flex: 1;
}
label {
  font-size: 12px;
  color: var(--ink-dim);
  display: block;
  margin: 8px 0 6px;
}
input,
select,
button,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--muted);
  background: #0e1530;
  color: var(--ink);
}
input[type="color"] {
  padding: 0;
  height: 40px;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
}
input::placeholder {
  color: #7c89c7;
}
button {
  cursor: pointer;
  border-color: transparent;
  background: var(--accent);
  color: white;
  font-weight: 600;
}
button.ghost {
  background: transparent;
  border-color: var(--muted);
  color: var(--ink);
}
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.hint {
  font-size: 12px;
  color: var(--ink-dim);
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #15204a;
  border: 1px solid var(--muted);
  font-size: 12px;
  margin-right: 6px;
}
.sdk-surface {
  min-height: 280px;
  max-width: 600px;
  border: 2px dashed #2b3a77;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ea2ff;
  background: white;
}
.log {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #0a0f22;
  color: #b8c1ff;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #27336b;
  max-height: 220px;
  overflow: auto;
}
.success {
  color: var(--ok);
}
.warn {
  color: var(--warn);
}
.error {
  color: var(--err);
}
details {
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 8px 10px;
  background: #0a112a;
}
details > summary {
  cursor: pointer;
}
.card input {
  max-width: 100%;
  box-sizing: border-box;
}
input[type="checkbox"][name="addPaylaterButton"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 6px;
  background: #0e1530;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="checkbox"][name="addPaylaterButton"]:hover {
  border-color: var(--accent);
}

input[type="checkbox"][name="addPaylaterButton"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"][name="addPaylaterButton"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-weight: bold;
}
