:root {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#18312e;
  background:#f5f6f2;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
header {
  max-width:1160px;
  margin:auto;
  padding:28px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #dce2da;
}
.brand {
  font-size:27px;
  font-weight:750;
  display:flex;
  gap:10px;
  color:inherit;
  text-decoration:none;
}
.brand span {
  font-size:20px;
}
.badge {
  font-size:12px;
  background:#e5eddf;
  padding:8px 12px;
  border-radius:20px;
  color:#446039;
}
main {
  max-width:1100px;
  margin:auto;
  padding:48px 32px 24px;
}
.eyebrow {
  font-size:11px;
  letter-spacing:.18em;
  font-weight:750;
  color:#69795c;
}
.intro h1 {
  font-size:clamp(32px,4vw,48px);
  letter-spacing:-.04em;
  line-height:1.35;
  margin:18px 0;
}
.intro h1 span {
  color:#657c54;
}
.intro>p:last-child {
  font-size:14px;
  line-height:1.9;
  color:#66716c;
}
.workspace {
  display:grid;
  grid-template-columns:1fr 1fr;
  background:white;
  border:1px solid #dde3d9;
  border-radius:20px;
  overflow:hidden;
  margin-top:32px;
  box-shadow:0 12px 40px #253a2510;
}
form {
  padding:32px;
}
.section-title {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:28px;
}
.section-title>span {
  font-size:12px;
  color:#6d825c;
  background:#edf1e8;
  border-radius:8px;
  padding:8px;
}
h2 {
  font-size:16px;
  margin:0;
}
label {
  display:block;
  font-size:13px;
  font-weight:650;
  margin:22px 0 10px;
}
textarea,input {
  font:inherit;
  border:1px solid #d4ddd3;
  border-radius:9px;
  background:#fbfcf9;
  color:inherit;
}
textarea {
  width:100%;
  padding:14px;
  resize:vertical;
  font-size:14px;
  line-height:1.6;
}
textarea:focus,input:focus {
  outline:2px solid #91a77d;
  outline-offset:2px;
}
.hint {
  font-size:11px;
  color:#778178;
  line-height:1.7;
  margin:9px 0 16px;
}
.size-field {
  display:flex;
  align-items:center;
  gap:14px;
}
.size-field input {
  width:130px;
  padding:11px;
}
.size-field span {
  font-size:14px;
  color:#74806e;
}
.presets {
  display:flex;
  gap:8px;
  margin-top:12px;
}
.presets button {
  background:white;
  border:1px solid #dde3d8;
  padding:7px 12px;
  border-radius:6px;
  font-size:11px;
  color:#4f6150;
  cursor:pointer;
}
.primary {
  width:100%;
  display:flex;
  justify-content:space-between;
  background:#294a39;
  color:white;
  border:0;
  border-radius:10px;
  padding:16px;
  margin-top:26px;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
}
.primary:disabled {
  opacity:.5;
  cursor:wait;
}
#status {
  font-size:12px;
  line-height:1.7;
  min-height:40px;
  color:#65735e;
  margin-bottom:0;
}
.preview-panel {
  padding:32px;
  background:#f9faf6;
  border-left:1px solid #e0e5db;
}
.preview-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.preview-heading span {
  font-size:10px;
  color:#7c8679;
}
.preview-stage {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:300px;
  padding:28px;
  margin:24px 0;
  background-color:#eef1e9;
  background-image:radial-gradient(#ced7c8 .8px,transparent .8px);
  background-size:12px 12px;
  border-radius:12px;
}
.preview-stage img {
  width:240px;
  max-width:100%;
  height:auto;
  box-shadow:0 6px 25px #22362212;
}
#empty {
  text-align:center;
  color:#809078;
  font-size:12px;
}
.empty-icon {
  font-size:90px;
  font-weight:200;
  opacity:.45;
}
.downloads {
  display:flex;
  gap:10px;
}
.download {
  flex:1;
  text-align:center;
  text-decoration:none;
  color:#334d39;
  border:1px solid #cfd8c8;
  border-radius:9px;
  padding:13px 6px;
  font-size:13px;
  background:white;
}
.disabled {
  opacity:.4;
  pointer-events:none;
}
.centered {
  text-align:center;
}
footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:11px;
  color:#7b8577;
  margin-top:24px;
}
button:hover,.download:hover {
  filter:brightness(.95);
}
:focus-visible {
  outline:2px solid #698553;
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
@media(max-width:720px) {
  header {
    padding:22px 20px;
  }
  .badge {
    font-size:10px;
  }
  main {
    padding:28px 18px;
  }
  .workspace {
    grid-template-columns:1fr;
  }
  form,.preview-panel {
    padding:24px;
  }
  .preview-panel {
    border-left:0;
    border-top:1px solid #e0e5db;
  }
  .presets button {
    flex:1;
    padding:8px;
  }
  .preview-stage {
    min-height:280px;
  }
  footer {
    flex-direction:column;
    gap:8px;
  }
}
