.editor {max-width:940px;padding-block:42px 78px}
.editor h1 {font-size:clamp(2.6rem,8vw,5rem)}
.editor h2 {font-size:clamp(2rem,5vw,3rem)}
.editor section {border-top:1px solid var(--line);margin-top:34px;padding-top:25px}
.editor section p {margin:9px 0 15px}
.editor fieldset {border:1px solid var(--line);background:var(--white);padding:14px;margin:15px 0;min-width:0;border-radius:8px}
.editor legend {font-weight:730;padding-inline:6px}
.editor label {display:grid;gap:3px;font-weight:650;min-width:0}
.editor input,.editor textarea {border:1px solid #848d7e;border-radius:5px;padding:8px;background:white;color:var(--ink);width:100%;min-width:0;font-weight:400}
.editor input[type=checkbox] {width:auto;margin:0;justify-self:start}
.editor textarea {resize:vertical;min-height:70px}
.editor input[type=file] {font-size:.875rem}
.fields {display:grid;grid-template-columns:1fr 1fr;gap:9px}
.row,.photo-fields {display:grid;grid-template-columns:1fr 1fr auto;gap:9px;align-items:end;margin-block:9px}
.row.item {grid-template-columns:repeat(2,minmax(120px,1fr)) repeat(2,minmax(85px,auto)) auto auto}
.photo-fields {grid-template-columns:145px 1fr;align-items:start}
.photo-fields img {width:100%;height:115px;object-fit:cover;border-radius:5px}
.photo-fields label + label {margin-top:8px}
.small {min-height:42px;border:1px solid var(--line);padding:5px 12px;border-radius:5px;background:var(--sky);color:var(--ink);cursor:pointer;font-weight:650}
.small:hover {border-color:var(--ink)}
.editor button.button {cursor:pointer}
.editor button.button:not(.primary) {color:var(--ink);background:var(--white)}
.editor-actions {margin-top:35px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.editor-actions .import {width:100%;max-width:360px;margin-top:8px}
#result {min-height:1.6em;font-weight:650}
@media(max-width:760px) {
  .fields,.row,.row.item,.photo-fields {grid-template-columns:1fr}
  .row.item {border-top:1px solid var(--line);padding-top:12px}
  .photo-fields img {width:145px}
  .small {justify-self:start}
}
