:root {
  --border: #cfcfcf;
  --text: #1f1f1f;
  --bg: #ffffff;
  --panel-gap: 24px;
  --control-h: 42px;
  --radius: 7px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  padding: 24px;
}

.layout {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--panel-gap);
  height: 90vh;
  align-items: stretch;
}

.left,
.right {
  background: var(--bg);
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.right {
  display: flex;
  flex-direction: column;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid #d8d8d8;
  border-radius: 10px;
  background: #fcfcfc;
  padding: 12px;
}

.block-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #4a4a4a;
}

input,
textarea,
button {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 22px;
  line-height: 1.2;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: #fff;
}

input,
button {
  height: var(--control-h);
}

textarea {
  resize: none;
  min-height: 88px;
}

button {
  cursor: pointer;
  font-size: 26px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.response-title {
  margin: 0 0 10px;
  font-size: 38px;
  font-weight: 500;
  font-style: italic;
}

.response {
  flex: 1;
  min-height: 0;
  font-size: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .left {
    height: auto;
    gap: 24px;
  }

  .response {
    min-height: 420px;
  }
}
