.editor-header { position: relative; }
.editor-back { color: #555; font-size: 11px; }
.editor-main { padding-bottom: 58px; }
.editor-intro { padding-top: 56px; padding-bottom: 29px; }
.editor-intro h1 { margin: 0; font: 500 clamp(38px,5vw,57px)/1.12 var(--serif); letter-spacing: -.035em; }
.editor-intro h1 em { color: #777; }
.editor-intro>p:last-child { max-width: 610px; margin: 15px 0 0; color: #777; font-size: 12px; line-height: 1.8; }
.editor-form { display: grid; gap: 16px; }
.editor-card { padding: 27px 30px 30px; background: #fff; border: 1px solid #e1e1df; }
.editor-section-title { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 23px; padding-bottom: 17px; border-bottom: 1px solid #eee; }
.editor-section-title>span { color: #777; font-size: 9px; letter-spacing: .13em; padding-top: 5px; }
.editor-section-title h2 { margin: 0; font: 500 23px var(--serif); }
.editor-section-title p { color: #888; font-size: 10px; margin: 4px 0 0; }
.editor-fields { display: grid; gap: 15px; }
.editor-fields.two-col { grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-fields label,.portrait-name { display: block; color: #555; font-size: 10px; font-weight: 600; }
.editor-fields input,.editor-fields textarea,.portrait-name input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #ddd; background: #fff; border-radius: 0; color: #222; font: 11px var(--sans); }
.editor-fields input:focus,.editor-fields textarea:focus,.portrait-name input:focus { outline: 1px solid #777; border-color: #777; }
.editor-fields textarea { resize: vertical; line-height: 1.7; }
.editor-fields label small,.photo-edit-grid>div>small { display: block; margin-top: 6px; color: #888; font-size: 9px; font-weight: 400; line-height: 1.6; }
.full-width { grid-column: 1/-1; }
.photo-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.upload-label { display: block; padding: 13px; border: 1px dashed #bbb; color: #444; font-size: 10px; font-weight: 600; }
.upload-label input { display: block; width: 100%; margin-top: 9px; color: #777; font: 10px var(--sans); }
.photo-preview { min-height: 155px; display: grid; place-items: center; margin-top: 12px; background-color: #ececea; background-size: cover; background-position: center; color: #666; }
.photo-preview span { padding: 5px 9px; background: #ffffffcf; font-size: 9px; }
.portrait-preview { max-width: 255px; min-height: 200px; }
.remove-photo { margin-top: 8px; padding: 0; border: 0; background: none; color: #777; font: 9px var(--sans); cursor: pointer; text-decoration: underline; }
.portrait-name { max-width: 400px; margin-top: 18px; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; }
.editor-actions .button { min-height: 44px; }
.editor-download { border: 1px solid #222; background: #171717; color: #fff; }
.editor-download:hover { background: #383838; }
.text-button { border: 0; padding: 10px; background: transparent; color: #666; font: 10px var(--sans); text-decoration: underline; cursor: pointer; }
.import-settings { display: inline-flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #bbb; color: #444; font-size: 10px; cursor: pointer; }
.import-settings input { max-width: 190px; color: #777; font: 9px var(--sans); }
.editor-status { min-height: 18px; margin: 0; color: #555; font-size: 10px; }
.editor-status[data-kind="error"] { color: #9a2525; }
.editor-preview-link { display: inline-block; color: #333; font-size: 10px; text-decoration: underline; }
.editor-preview-link[hidden] { display: none; }
.publish-note { margin-top: 12px; padding: 20px 23px; background: #ededeb; color: #666; font-size: 10px; line-height: 1.8; }
.publish-note strong { color: #222; font: 500 16px var(--serif); }
.publish-note p { margin: 8px 0 0; }
.publish-note code { color: #111; }
.editor-back:hover { color: #111; }
@media(max-width:700px){.editor-intro{padding-top:40px}.editor-card{padding:22px 18px}.editor-fields.two-col,.photo-edit-grid{grid-template-columns:1fr}.portrait-preview{max-width:none}.editor-actions{align-items:stretch;flex-direction:column}.editor-actions>*{width:100%;justify-content:center}.full-width{grid-column:auto}}
