:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #172033;
  background: #eef2f7;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  width: min(920px, calc(100% - 32px));
  margin: 40px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgb(31 45 72 / 8%);
}

header { margin-bottom: 30px; }
.eyebrow { margin: 0 0 6px; color: #3156a3; font-weight: 700; }
h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.7rem); letter-spacing: -.03em; }
.lead { margin: 12px 0 6px; font-size: 1.05rem; line-height: 1.7; }
.privacy { margin: 0; color: #52627c; font-size: .9rem; }

form { display: grid; gap: 10px; }
label { margin-top: 8px; font-weight: 700; }
textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid #aeb9cb;
  border-radius: 9px;
  color: inherit;
  background: #fff;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}
textarea:focus, button:focus-visible { outline: 3px solid #9ab7ff; outline-offset: 2px; }

button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #91a0b8;
  border-radius: 9px;
  color: #172033;
  background: #f7f9fc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #e9eef7; }
button:disabled { cursor: not-allowed; opacity: .45; }
.primary { margin-top: 10px; border-color: #26498e; color: #fff; background: #3156a3; }
.primary:hover:not(:disabled) { background: #26498e; }

section { margin-top: 34px; padding-top: 26px; border-top: 1px solid #d7deea; }
.output-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { min-height: 1.5em; margin: 12px 0 8px; color: #40516d; }
.output { min-height: 430px; background: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

@media (max-width: 640px) {
  main { width: 100%; margin: 0; padding: 22px 16px; border: 0; border-radius: 0; box-shadow: none; }
  .output-heading { align-items: flex-start; flex-direction: column; }
  .actions, .actions button { width: 100%; }
}
