@import url("/tools/simulator/style.css?v=d6b55b630d282520");
:root {
  color-scheme: light;
}
body {
  background: var(--wash);
  color: var(--ink);
}
header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 16px 36px;
  background: white;
  border-bottom: 1px solid var(--line);
}
header > a:last-child {
  margin-left: auto;
  font-size: 13px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 7px 10px;
  background: var(--tint);
  border-radius: 6px;
  color: var(--blue);
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 50px 28px;
}
.intro {
  max-width: 700px;
  margin-bottom: 34px;
}
h1 {
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 14px 0;
}
.intro > p:last-child {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}
form section,
.output {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
form section {
  margin-bottom: 20px;
}
h2 {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
  font-weight: 600;
}
h2 span {
  color: var(--ink);
  font-size: 17px;
  margin-left: 12px;
}
h3 {
  margin-top: 0;
  font-size: 15px;
}
label {
  font-size: 12px;
  color: var(--ink);
  margin: 16px 0;
}
input,
textarea,
select {
  margin-top: 7px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  font-size: 13px;
}
small,
.hint {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}
small {
  margin-top: 6px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
}
.two label {
  margin-bottom: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.import {
  color: var(--blue);
  cursor: pointer;
  margin: 0 0 22px;
}
.import input {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  opacity: 0;
}
.import:focus-within {
  outline: 2px solid var(--blue);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  cursor: pointer;
}
.feature:last-child {
  border: 0;
}
.feature input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
.feature strong {
  font-size: 13px;
  font-weight: 600;
}
.feature small {
  margin-top: 3px;
}
.output {
  position: sticky;
  top: 24px;
}
.output-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.output-heading h2 {
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
#validation {
  font-size: 11px;
  white-space: nowrap;
}
.valid {
  color: var(--success);
}
.invalid {
  color: var(--danger);
}
#error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}
#error:empty {
  display: none;
}
.output-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
button {
  font-size: 12px;
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button:hover {
  background: var(--tint);
}
pre {
  background: var(--wash);
  color: var(--ink);
  border: 1px solid var(--line);
  line-height: 1.6;
  font-size: 11px;
  border-radius: 10px;
  padding: 16px;
  overflow: auto;
  max-height: 390px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.output section,
.output details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.preview {
  --native-ink: #151515;
  --native-muted: #93939e;
  --native-panel: #f2f3f5;
  --native-surface: #fff;
  --native-border: #e8eaf0;
  --native-divider: #edf0f5;
  --native-accent: #8786f7;
}
.preview .native-row-icon svg {
  width: 19px;
  height: 19px;
}
.preview h3 {
  margin: 20px 0 0;
  font-size: 18px;
  color: #151515;
}
.preview .native-settings-row > span:nth-child(2) {
  font-size: 13px;
}
#preview-purpose {
  font-size: 12px;
  line-height: 1.6;
  color: #93939e;
}
#schema-downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#schema-downloads button {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.next ol {
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
#notice {
  font-size: 12px;
  color: var(--blue);
}
@media (max-width: 800px) {
  main {
    padding: 30px 16px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .output {
    position: static;
  }
  header {
    gap: 10px;
  }
  .tag {
    display: none;
  }
}

.output-actions {
  flex-wrap: wrap;
}
.schema-card {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.schema-card h3 {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(100px, 1fr) auto 30px;
  gap: 8px;
  align-items: center;
}
.field-row label {
  margin: 8px 0;
}
.field-row button {
  padding: 5px;
  margin-top: 20px;
  font-size: 20px;
}
.required-field {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 20px;
}
.required-field input {
  width: 15px;
  margin: 0;
}
.field-limits {
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
}
.field-limits label {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.field-limits input {
  max-width: 130px;
}
.schema-card details {
  margin-top: 14px;
}
.schema-card textarea,
#record-example {
  font-family: monospace;
  font-size: 11px;
}
.schema-error {
  color: var(--danger);
  font-size: 12px;
}

button.primary:hover {
  background: #075467;
  color: white;
}
a:hover {
  text-decoration: underline;
}
