body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(120deg, #f3f7fa 0%, #e5ecf6 100%);
  min-height: 100vh;
  color: #222;
}
.container {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
}
header {
  text-align: center;
  margin-bottom: 2em;
}
h1 {
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 0.2em;
}
.subtitle {
  color: #444;
  font-size: 1.1em;
  margin-bottom: 1em;
}
main {
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px #0002;
  padding: 2em 1.5em 1.5em 1.5em;
  margin-bottom: 1em;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px #0003;
}
label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.2em;
  font-weight: 600;
  color: #1976d2;
}
input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7em 1em;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-size: 1em;
  margin-bottom: 0.7em;
  background: #f7fafc;
  transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border: 1.5px solid #1976d2;
  background: #fff;
}
button {
  padding: 0.6em 2em;
  border: none;
  background: #1976d2;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  margin-top: 0.8em;
  box-shadow: 0 2px 6px #1976d230;
  transition: background 0.2s, box-shadow 0.2s;
}
button.secondary {
  background: #fff;
  color: #1976d2;
  border: 1.5px solid #1976d2;
  box-shadow: none;
}
button:hover {
  background: #1565c0;
}
button.secondary:hover {
  background: #e3f1fd;
  color: #1565c0;
}
.feedback {
  margin-top: 1em;
  font-family: monospace;
  white-space: pre-wrap;
  color: #388e3c;
  min-height: 1.5em;
}
#responseResult.error, #schemaSaveResult.error {
  color: #d32f2f;
}
.records-list {
  margin-top: 1em;
  max-height: 350px;
  overflow-y: auto;
  font-size: 0.98em;
}
.record-card {
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 1em;
  padding: 1em 1em 0.7em 1em;
  box-shadow: 0 1px 4px #0001;
  border: 1px solid #e3e8ee;
  font-family: monospace;
  color: #222;
}
.record-card .meta {
  font-size: 0.93em;
  color: #1976d2;
  margin-bottom: 0.3em;
}
.record-card .hashes {
  font-size: 0.93em;
  color: #444;
  margin-bottom: 0.3em;
  word-break: break-all;
}
.record-card pre {
  background: #e3e8ee;
  border-radius: 4px;
  padding: 0.5em;
  overflow-x: auto;
  margin: 0.4em 0 0.2em 0;
}
@media (max-width: 600px) {
  .container { padding: 0; }
  .card { padding: 1em 0.5em; }
  h1 { font-size: 1.3em; }
  main { gap: 1em; }
}
