body.se-site .envelope-tool { margin: 16px auto 56px; color: var(--se-ink); }
.envelope-intro { margin: 0 0 24px; }
body.se-site .envelope-tool .envelope-intro h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 6px; }
.envelope-intro p, .envelope-preview-top p { margin: 0; }
.envelope-intro br { display: none; }
.envelope-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.envelope-panel { padding: clamp(14px, 2.4vw, 26px); min-width: 0; background: var(--se-surface, #fffdf5); }
.envelope-options, .envelope-fields { display: grid; gap: 12px; }
.envelope-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.envelope-options:has(#label-size-field[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.envelope-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.envelope-address { grid-column: 1 / -1; }
.envelope-tool label { display: grid; gap: 5px; min-width: 0; font-size: 14px; font-weight: 650; }
body.se-site .envelope-tool :is(input:not([type=checkbox]), textarea, select) {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 43px; padding: 8px 9px; font-size: 16px;
}
.envelope-tool textarea { resize: vertical; }
.envelope-tool fieldset { padding: 0; margin: 19px 0 0; min-inline-size: 0; border: 0; }
.envelope-tool legend { font-weight: 750; font-size: 18px; padding: 0 0 8px; }
.envelope-quick { margin-bottom: 20px; padding: 16px; border: 1px solid var(--v3-line); border-radius: 12px; background: var(--se-mint); }
.envelope-quick-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.se-site .envelope-tool .envelope-quick h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.envelope-quick > p { margin: 8px 0 14px; line-height: 1.55; }
.envelope-paste-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.envelope-quick label { font-size: 15px; }
.envelope-paste-action { display: grid; justify-items: start; gap: 6px; margin-top: 8px; }
.envelope-paste-action p, .envelope-zip-hint { margin: 0; font-size: 13px; line-height: 1.5; }
.envelope-paste-action p:empty, .envelope-zip-hint:empty { display: none; }
.envelope-quick > .envelope-postal-note { margin: 14px 0 0; font-size: 13px; }
body.se-site .envelope-tool .envelope-postal-note a { color: var(--se-link); font-weight: 650; text-decoration: underline; text-underline-offset: .15em; }
.envelope-form-end { margin-top: 15px; }
body.se-site .envelope-tool :where(#fill-example, [data-contact-fill]) {
  padding: 8px 13px; min-height: 44px; border: 1px solid var(--v3-line); border-radius: 8px;
  background: var(--se-surface); color: var(--se-ink); font: inherit; font-size: 14px; cursor: pointer;
}
body.se-site .envelope-tool [data-contact-fill] { background: var(--se-link); color: var(--se-surface); font-weight: 700; }
.envelope-preview { display: grid; gap: 10px; }
.envelope-preview-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body.se-site .envelope-tool .envelope-preview h2 { font-size: 19px; margin: 0; }
body.se-site .envelope-tool .envelope-cut { display: flex; align-items: center; gap: 7px; cursor: pointer; min-height: 44px; }
.envelope-cut input { width: 17px; height: 17px; }
.envelope-paper { display: grid; justify-items: center; background: var(--se-panel, #e9e1d2); border: 1px solid var(--v3-line); padding: 10px; }
.envelope-paper canvas { display: block; width: min(100%, var(--sheet-screen-width, 346px)); height: auto; background: white; box-shadow: 0 1px 4px #0003; }
.envelope-preview :is(.envelope-dimensions, .envelope-print-note, #label-status, #sheet-size) { margin: 0; font-size: 13px; }
#label-status:empty { display: none; }
body.se-site .envelope-tool #download-pdf {
  margin: 0; min-height: 46px; border: 1.5px solid var(--v3-line); border-radius: 10px;
  background: #f9c64a; color: #17362c; font: inherit; font-weight: 750; cursor: pointer;
  box-shadow: 2px 2px 0 var(--v3-shadow);
}
body.se-site .envelope-tool #download-pdf:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
body.se-site .envelope-tool #download-pdf:disabled { opacity: .6; cursor: not-allowed; }
.envelope-tool #pdf-ready[hidden] { display: none; }
.envelope-tool #pdf-ready { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 730px) {
  .envelope-workspace { grid-template-columns: minmax(0, 1fr); }
  .envelope-intro br { display: initial; }
}
@media (max-width: 500px) {
  .envelope-paste-grid { grid-template-columns: minmax(0, 1fr); }
}
