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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #d7dce2;
  background: #ffffff;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 720;
}

p {
  margin: 4px 0 0;
  color: #58606b;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

button,
select,
input {
  height: 38px;
  border: 1px solid #c8ced6;
  border-radius: 6px;
  background: #ffffff;
  color: #181b20;
  font: inherit;
  font-size: 14px;
}

button {
  padding: 0 14px;
  font-weight: 650;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

select,
input {
  padding: 0 10px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
}

textarea {
  width: 100%;
  height: 100%;
  min-height: 520px;
  resize: none;
  border: 0;
  padding: 18px;
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  outline: none;
  background: #fbfcfd;
  color: #111418;
}

.panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid #d7dce2;
  background: #ffffff;
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4c5562;
}

.status {
  min-height: 44px;
  padding: 12px;
  border: 1px solid #d7dce2;
  border-radius: 6px;
  background: #f6f7f9;
  font-size: 14px;
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #d7dce2;
  border-radius: 6px;
  padding: 12px;
  background: #101418;
  color: #eaf0f6;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 860px) {
  .toolbar,
  .workspace {
    display: block;
  }

  .actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  textarea {
    height: 52vh;
  }

  .panel {
    border-left: 0;
    border-top: 1px solid #d7dce2;
  }
}
