:root {
  color-scheme: light;
  font-family: "Avenir Next",Arial,sans-serif;
  color: #182921;
  background: #f3f2ed;
  --line: #d2d9cf;
  --muted: #4b5e55;
  --forest: #124a38;
  --leaf: #b3e29b;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none!important;
}
body {
  margin: 0;
}
.wrap {
  width: min(1120px,calc(100% - 52px));
  margin-inline: auto;
}
.top {
  border-bottom: 1px solid var(--line);
}
.top-inner,.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-inner {
  min-height: 62px;
}
a {
  color: #295742;
  text-underline-offset: 4px;
}
.brand {
  font-weight: 780;
  color: #182921;
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  background: var(--forest);
  color: var(--leaf);
  font-size: 23px;
}
.intro {
  padding: 33px 0 25px;
}
h1 {
  font-size: clamp(42px,7vw,79px);
  letter-spacing: -.065em;
  line-height: 1.02;
  margin: 0 0 12px;
}
.intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(270px,.8fr) minmax(0,1.6fr);
  gap: 17px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  background: #fffefa;
  min-width: 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -.035em;
  margin: 0;
}
.source,.buttons,.details,.preview-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.source {
  margin-top: 17px;
}
button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 13px;
  border: 1px solid #bed0c1;
  border-radius: 8px;
  cursor: pointer;
  color: #164434;
}
button:not([disabled]):hover {
  filter: brightness(.94);
}
button[disabled] {
  opacity: .53;
  cursor: default;
}
.secondary {
  background: #eaf2e7;
}
.link-button {
  padding-inline: 5px;
  background: transparent;
  text-decoration: underline;
  border: 0;
  text-underline-offset: 4px;
}
.primary {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px 10px;
  margin-top: 18px;
}
label {
  font-size: 13px;
  font-weight: 650;
}
.fields input,.fields select,.fallback {
  margin-top: 5px;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  background: white;
  color: #182921;
  border: 1px solid #bccbbc;
  border-radius: 6px;
  font: inherit;
}
:focus-visible {
  outline: 3px solid #478456;
  outline-offset: 2px;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}
.check input {
  accent-color: var(--forest);
}
.small,#status,.details,#page-size {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.small {
  margin: 8px 0;
}
.settings-tip {
  margin-top: 17px;
}
.preview-heading,.details {
  justify-content: space-between;
}
.preview-heading {
  margin-bottom: 14px;
}
#page-size {
  font-weight: 700;
}
.stage {
  background: #263a31;
  display: grid;
  place-items: center;
  border-radius: 9px;
  padding: 18px;
  min-height: 275px;
  color: #f4fbec;
}
.stage canvas {
  display: block;
  max-width: 100%;
  max-height: 435px;
  width: auto;
  height: auto;
  box-shadow: 0 2px 16px #051d13a6;
}
.details {
  padding: 0 1px;
  font-size: 12px;
  gap: 4px 14px;
}
.details p {
  margin: 11px 0;
}
.guide-swatch {
  display: inline-block;
  border-top: 2px dashed #007d82;
  width: 19px;
  margin: 0 5px 3px 0;
}
#status {
  margin: 10px 0 0;
}
#status:empty {
  display: none;
}
.error {
  font-size: 13px;
  color: #a02730;
  margin: 10px 0 0;
}
.foot {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 21px;
  flex-wrap: wrap;
}
.foot nav {
  display: flex;
  gap: 17px;
}
.info {
  max-width: 730px;
  margin: 33px auto;
  line-height: 1.63;
}
.info section {
  margin: 27px 0;
}
@media(max-width:710px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .workspace {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .panel {
    padding: 16px;
  }
  .intro {
    padding-top: 24px;
  }
  .stage {
    min-height: 225px;
  }
}
