:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.status {
  min-width: 96px;
  text-align: right;
  font-size: 14px;
  color: #526070;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

section {
  display: grid;
  gap: 10px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 650;
  color: #24313f;
}

.sample-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  border: 1px solid #b8c0cc;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

button:hover {
  border-color: #748093;
}

button.primary {
  border-color: #22543d;
  background: #22543d;
  color: #ffffff;
  font-weight: 650;
}

textarea,
pre {
  width: 100%;
  min-height: 520px;
  margin: 0;
  border: 1px solid #ccd3dd;
  border-radius: 8px;
  background: #ffffff;
  color: #17202a;
  font: 13px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow: auto;
}

textarea {
  resize: vertical;
  padding: 14px;
}

pre {
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 760px) {
  main {
    width: min(100vw - 20px, 560px);
    padding: 20px 0;
  }

  header,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    min-width: 0;
    text-align: left;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  textarea,
  pre {
    min-height: 360px;
  }
}
