:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin: 0; background: #0b0f14; color: #e7eef7; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px; }
h1 { margin: 0 0 6px; }
.sub { margin: 0 0 18px; color: #b8c3d1; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: #111826; border: 1px solid #223048; border-radius: 12px; padding: 16px; }
.card form {
  margin-bottom: 12px;
}
.meta {
  margin-top: 6px;
}
.label { display:block; margin-top: 10px; color:#b8c3d1; font-size: 13px; }
input, textarea { width: 100%; margin-top: 6px; background: #0b1220; color:#e7eef7; border: 1px solid #223048; border-radius: 6px; padding: 6px; }
button { margin-top: 12px; background: #2d6cff; color:white; border: 0; border-radius: 6px; padding: 6x 6px; cursor: pointer; }
button.ghost { background: transparent; border: 1px solid #223048; color:#e7eef7; }
button.small { margin-top: 0; padding: 7px 10px; border-radius: 10px; background: transparent; border: 1px solid #223048; color:#e7eef7; }
.btnrow { display:flex; gap: 10px; align-items: center; }
.muted { color:#b8c3d1; font-size: 13px; margin-top: 10px; }
.pre {
  background: #0b1220;
  padding: 12px;
  border-radius: 8px;

  max-width: 100%;
  overflow-x: auto;

  white-space: pre-wrap;   /* allow wrapping */
  word-break: break-word;  /* break long JSON keys */
}
#valOut {
  max-height: 260px;
  overflow: auto;
}

.split { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* IMPORTANT: allow grid children to shrink */
.split > div {
  min-width: 0;
}

/* Make sure <pre> never exceeds its container */
.pre {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.topline { display:flex; justify-content: space-between; align-items:center; }
.banner { margin-top: 12px; padding: 10px; border-radius: 10px; background: #2a1b1b; border: 1px solid #5a2a2a; color: #ffd4d4; }
.hidden { display:none; }
.foot { margin-top: 18px; }
@media (max-width: 900px) {
  .row, .split { grid-template-columns: 1fr; }
}

.examples { margin-top: 12px; }
.examples-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.exbtn {
  margin-top: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid #223048;
  color:#e7eef7;
  cursor: pointer;
  font-size: 13px;
}

.exbtn:hover { background: rgba(255,255,255,0.06); }

