* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font: 16px/1.5 ui-sans-serif, system-ui, sans-serif;
  color: #142333;
  background: #f5f7f6;
  --muted: #50646a;
  --line: #dce5e2;
  --mint: #b8f0d2;
  --navy: #142333;
}
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
.frame { width: min(calc(100% - 64px), 1340px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .frame { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
a { color: #155248; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 720; }
.brand img { border-radius: 8px; }
.help-link { font-size: 14px; }
.intro { margin: 58px 0 30px; }
h1 { font-size: clamp(32px, 5.2vw, 62px); letter-spacing: -.055em; line-height: 1.03; margin: 0; }
.intro p { max-width: 620px; margin: 15px 0 0; color: var(--muted); }
.workspace { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 18px; align-items: start; }
.controls, .preview { border: 1px solid var(--line); border-radius: 17px; }
.controls { background: #fff; padding: 20px; display: grid; gap: 8px; }
.controls label { font-size: 13px; font-weight: 690; }
.controls label:not(.section-label) { margin-top: 6px; }
button, select { font: inherit; color: inherit; width: 100%; }
button, select, .text-action { border-radius: 8px; min-height: 42px; }
button { cursor: pointer; font-weight: 710; }
button:disabled { cursor: default; opacity: .48; }
.outline, select { border: 1px solid #b8c8c5; background: #fff; }
.outline:hover, .outline:focus-visible { background: #f2faf6; }
select { padding-inline: 10px; font-size: 13px; }
.text-action {
  display: grid; place-items: center; text-align: center; min-height: 34px;
  border: 0; background: transparent; font-size: 13px; color: #14564b; font-weight: 690;
}
.text-action:hover { background: #f0f8f3; }
.primary { border: 1px solid #207057; background: #19634f; color: white; margin-top: 9px; }
.primary:hover:not(:disabled) { background: #114d3c; }
:focus-visible { outline: 3px solid #0d8169; outline-offset: 3px; }
.file-meta { font-size: 12px; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.file-meta:empty { display: none; }
.file-meta[data-error] { color: #a22a23; }
.separator { border-bottom: 1px solid var(--line); margin-block: 6px; }
.preview { overflow: hidden; background: #fff; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 19px; border-bottom: 1px solid var(--line); }
.preview-bar h2 { font-size: 14px; margin: 0; }
.preview-bar span { font-size: 12px; color: #14564b; text-align: right; }
.empty { min-height: 325px; display: grid; place-content: center; justify-items: center; padding: 17px; text-align: center; color: var(--muted); }
.empty-mark { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 24px; background: var(--navy); }
.empty-mark i { display: block; border-radius: 50%; width: 17px; height: 17px; margin: -1px; background: #b8f0d2; }
.empty-mark i:nth-child(2) { background: #f0cd7f; }
.empty-mark i:nth-child(3) { background: #ed939e; }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 11px; background: #e8eeeb; }
figure { min-width: 0; margin: 0; border-radius: 9px; overflow: hidden; background: var(--navy); }
figcaption { min-height: 34px; padding: 7px 10px; color: #f4fff8; font-size: 12px; font-weight: 645; }
.art { min-height: 195px; display: grid; place-items: center; background: #f1f4f2; }
canvas { display: block; width: 100%; height: auto; object-fit: contain; max-height: 560px;
  background: repeating-conic-gradient(#dae3df 0 25%, #f8faf8 0 50%) 50% / 16px 16px; }
.preview-note { padding: 13px 19px; margin: 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 17px; padding-block: 26px; font-size: 12px; color: var(--muted); }
nav { display: flex; gap: 16px; }
.visually-hidden { clip-path: inset(50%); width: 1px; height: 1px; position: absolute; overflow: hidden; }
.info { max-width: 760px; padding-block: 48px; }
.info h1 { font-size: clamp(32px, 5vw, 48px); }
.info section { margin-top: 34px; }
@media (max-width: 760px) {
  .frame { width: calc(100% - 28px); }
  .intro { margin-top: 33px; }
  .workspace { grid-template-columns: 1fr; }
  .panels { gap: 7px; padding: 7px; }
  .art { min-height: 0; }
}
