@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');
:root {
  font-family: 'DM Sans',Arial,sans-serif;
  color: #1c2925;
  background: #f5f3ee;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.app {
  max-width: 1480px;
  margin: auto;
  padding: 0 32px 24px;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dcded7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Libre Baskerville',Georgia,serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid #234842;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 28px/1 Georgia,serif;
}
.eyebrow,.step {
  font-size: 11px;
  letter-spacing: .15em;
  font-weight: 700;
  color: #65746d;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 20px;
  padding-top: 18px;
}
.editor,.preview-pane {
  background: #fff;
  border: 1px solid #e1e4dd;
  border-radius: 16px;
  box-shadow: 0 12px 40px #27372c0a;
}
.editor {
  padding: 26px 30px 24px;
}
.preview-pane {
  padding: 26px 30px 22px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.eyebrow {
  color: #977e56;
}
.section-heading h1,.section-heading h2 {
  font-family: 'Libre Baskerville',Georgia,serif;
  font-size: 31px;
  letter-spacing: -.055em;
  margin: 12px 0 0;
  line-height: 1.15;
}
.section-heading h2 {
  font-size: 27px;
}
.step {
  padding-top: 3px;
  color: #9ca6a0;
  white-space: nowrap;
}
.intro {
  font-size: 14px;
  color: #738078;
  margin: 15px 0 31px;
}
.fields {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
.fields.two {
  grid-template-columns: 1fr 1fr;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #34443c;
}
input,select {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 9px;
  padding: 0 14px;
  border: 1px solid #d6ddd5;
  border-radius: 7px;
  background: #fff;
  color: #1a2c25;
  font: 500 14px 'DM Sans',Arial,sans-serif;
  outline: none;
  transition: border .15s,box-shadow .15s;
}
input:focus,select:focus {
  border-color: #3f7467;
  box-shadow: 0 0 0 3px #dbece5;
}
input::placeholder {
  color: #a1aba4;
}
.optional {
  font-weight: 400;
  color: #94a097;
}
.last-fields {
  margin-bottom: 0;
}
.preview-heading {
  padding-bottom: 12px;
}
.preview-stage {
  background: #f2f5f0;
  border: 1px solid #e8eee7;
  border-radius: 12px;
  flex: 1;
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 20px;
}
.preview-paper {
  width: min(100%,clamp(300px,40vh,420px));
  aspect-ratio: 1;
  background: #fff;
  box-shadow: 0 12px 34px #31534313;
  display: grid;
  place-items: center;
}
.preview-paper.transparent {
  background-color: #fff;
  background-image: linear-gradient(45deg,#f3f5f1 25%,transparent 25%),linear-gradient(-45deg,#f3f5f1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f3f5f1 75%),linear-gradient(-45deg,transparent 75%,#f3f5f1 75%);
  background-size: 24px 24px;
  background-position: 0 0,0 12px,12px -12px,-12px 0;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.preview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
}
.download-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.download-copy strong {
  font-size: 14px;
}
.download-copy span {
  font-size: 12px;
  color: #839088;
}
button {
  border: 0;
  border-radius: 7px;
  background: #254d43;
  color: #fff;
  padding: 15px 22px;
  font: 700 13px 'DM Sans',Arial,sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #17382f;
}
button:focus-visible {
  outline: 3px solid #9dbfb0;
  outline-offset: 3px;
}
button span {
  font-size: 18px;
  font-weight: 400;
  margin-left: 15px;
}
@media(max-width:900px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .preview-pane {
    min-height: 680px;
  }
  .app {
    padding: 0 18px 24px;
  }
}
@media(max-width:540px) {
  .topbar {
    height: 68px;
  }
  .brand {
    font-size: 15px;
  }
  .editor,.preview-pane {
    padding: 25px 20px;
  }
  .section-heading h1 {
    font-size: 27px;
  }
  .fields.two {
    grid-template-columns: 1fr;
  }
  .preview-stage {
    min-height: 300px;
    padding: 14px;
  }
  .preview-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  button {
    width: 100%;
  }
}
.template-status {
  font-size: 12px;
  line-height: 1.45;
  color: #536d61;
  margin: 10px 0 0;
}
.template-status.unverified {
  color: #9a592a;
}
button:disabled {
  background: #aab8b0;
  cursor: not-allowed;
}
[hidden] {
  display: none!important;
}
.download-link {
  align-self: flex-end;
  margin-top: 10px;
  color: #24594d;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.name-size-control {
  margin: -3px 0 23px;
}
.name-size-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.name-size-heading output {
  font-size: 12px;
  font-weight: 700;
  color: #536d61;
}
#name-size {
  height: 24px;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #254d43;
  cursor: pointer;
}
#name-size:focus {
  border: 0;
  box-shadow: none;
}
.export-options {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 8px 16px;
  padding-top: 12px;
}
.export-options select {
  margin: 0;
}
.export-options span {
  grid-column: 1/-1;
  font-size: 12px;
  color: #75847b;
}
@media(max-width:540px) {
  .export-options {
    grid-template-columns: 1fr;
  }
}
.export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media(max-width:540px) {
  .export-actions {
    width: 100%;
    flex-direction: column;
  }
  .export-actions button {
    width: 100%;
  }
}

.feedback-open {
  width: auto;
  padding: 9px 14px;
  background: transparent;
  color: #254d43;
  border: 1px solid #c6d8cd;
}
.feedback-open:hover { background: #e9f0e9; }
.feedback-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: min(90vh, 720px);
  padding: 28px;
  border: 1px solid #d6ddd5;
  border-radius: 16px;
  box-shadow: 0 24px 80px #172a2460;
  color: #1c2925;
  background: #fff;
}
.feedback-dialog::backdrop { background: #182b27a8; }
.feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.feedback-heading h2 { margin: 0; font: 700 22px 'Libre Baskerville',Georgia,serif; }
.feedback-close { width: 36px; height: 36px; padding: 0; color: #40574c; background: transparent; font-size: 27px; line-height: 1; }
.feedback-close:hover { background: #edf3ef; }
.feedback-dialog form > p { margin: 10px 0 20px; font-size: 13px; line-height: 1.5; color: #607268; }
.feedback-dialog label { margin-top: 17px; }
.feedback-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid #d6ddd5;
  border-radius: 7px;
  color: #1a2c25;
  background: #fff;
  font: 500 14px 'DM Sans',Arial,sans-serif;
  resize: vertical;
}
.feedback-dialog textarea:focus { outline: 0; border-color: #3f7467; box-shadow: 0 0 0 3px #dbece5; }
.feedback-dialog .feedback-privacy { margin: 14px 0 0; color: #75847b; font-size: 12px; }
.feedback-dialog .feedback-status { min-height: 19px; margin: 12px 0; color: #24594d; }
.feedback-dialog .feedback-status.error { color: #a13d2e; }
.feedback-submit { width: 100%; }
.feedback-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width:540px) {
  .feedback-open { width: auto; font-size: 12px; padding: 8px 10px; }
  .feedback-dialog { padding: 22px; }
}
