.editor { max-width:920px; width:92%; margin:0 auto 56px; }
.edit-head { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid; min-height:83px; font-size:14px; }
.edit-head img { width:150px; display:block; }
.editor h1 { margin:40px 0 8px; font-size:clamp(30px,3.4vw,48px); letter-spacing:-.055em; }
.scope, #file-name { color:#5c5651; font-size:14px; line-height:1.5; }
.select-product { display:flex; align-items:center; gap:25px; padding:22px 0; }
.editor select, .editor input, .editor textarea { font:inherit; background:#fbfaf8; color:inherit; border:1px solid #a9a49e; border-radius:0; padding:10px 12px; max-width:100%; }
.editor fieldset { border:0; padding:0; margin:0; }
.edit-row { display:grid; grid-template-columns:minmax(110px,1fr) 4fr; gap:25px; border-top:1px solid #aaa49e; padding:22px 0; }
.edit-row > label { padding-top:9px; font-weight:600; }
.edit-row input, .edit-row textarea { width:100%; }
.edit-row textarea { resize:vertical; line-height:1.65; }
#file-field label, #url-field label { display:block; font-size:14px; margin:14px 0 7px; }
#file-name { margin-top:8px; }
.save-row { border-top:1px solid; display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:16px; }
.save { padding:13px 22px; background:var(--ink); color:white; white-space:nowrap; }
#message { font-size:14px; }
@media(max-width:650px){.edit-row{grid-template-columns:1fr;gap:8px}.edit-head img{width:110px}}
.story-tools { display:flex; align-items:center; gap:3px; margin-bottom:6px; }
.story-tools button { padding:6px 10px; font-size:14px; border:1px solid #aba6a0; }
#editor-story-preview summary { cursor:pointer; padding:10px 0; font-size:14px; }
#draft-story { padding:18px; border:1px solid #d4cec7; }
.photo-label,#photo-target-row label{display:block;margin:4px 0 8px;font-size:14px}#photo-target-row{margin-bottom:12px}#photo-preview{width:110px;height:86px;object-fit:contain;display:block;margin:10px 0}#photo-result,#reset-photo{font-size:13px;color:#56524f}#reset-photo{text-decoration:underline}
.import-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:9px;margin-top:12px}
.import-photo{padding:5px;border:1px solid #c6bfb5;background:#fff;aspect-ratio:1}
.import-photo:hover{border-color:#292621}
.import-photo img{width:100%;height:100%;object-fit:contain}
.media-help{font-size:12px;color:#746e65;line-height:1.6;margin:10px 0}
#murphy-video-field{margin-top:12px}
#murphy-video-field label{display:block;font-size:13px;margin-bottom:7px}
.story-tools{flex-wrap:wrap}
#attach-story-photo{background:#ebe7df}

.import-retry{font-size:12px;padding:8px 12px;margin:8px 0 12px;border:1px solid #bdb6aa;background:#ede9e1}
.rich-editor-shell{border:1px solid #cbc5bb;border-radius:7px;background:white;overflow:hidden}.rich-editor-shell .story-tools{position:sticky;top:0;background:#f5f3ee;border-bottom:1px solid #d8d2c8;padding:9px;margin:0;gap:5px;z-index:1}.story-tools button{border:0;border-radius:4px;background:transparent;min-height:34px;font-size:13px}.story-tools button:hover,.story-tools button[aria-pressed=true]{background:#e2ded3;color:#181c15}.story-tools select{font-size:13px;padding:5px 8px;min-height:34px;border-radius:4px}.rich-body{min-height:340px;padding:24px;outline:none;font-size:16px}.rich-body:focus{box-shadow:inset 0 0 0 2px #9e9781}.rich-body img{max-width:100%;height:auto;display:block;margin:16px auto}.rich-body .ProseMirror-selectednode{outline:3px solid #9e9781}.rich-body[contenteditable=false]{opacity:.65}.story-link-panel{padding:14px;background:#efede7;border-radius:6px}.story-link-panel label{font-size:13px;display:block;margin-bottom:6px}.story-link-panel button{font-size:13px;padding:9px 10px;text-decoration:underline}.story-link-panel div{display:flex;gap:8px}.rich-body ul,.rich-body ol{padding-left:1.5em}.rich-body ul{list-style:disc}.rich-body ol{list-style:decimal}.rich-body li p{margin:.15em 0}.editor .save-row{position:sticky;bottom:0;background:#f5f4f0;padding:16px 0;z-index:3;border-color:#d4cec2}#content-fields:disabled .rich-editor-shell{pointer-events:none}@media(max-width:650px){.rich-body{padding:16px;min-height:280px}.story-tools button{font-size:12px;padding:6px}.story-tools{gap:2px}}
.story-tools .tool-label{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap;padding:0 4px}.story-tools input[type=color]{width:30px;height:28px;padding:2px;border:1px solid #c7c0b2;border-radius:4px;cursor:pointer}.story-tools .tool-break{flex-basis:100%;height:0}.tool-divider{height:22px;width:1px;background:#d2cbbb;margin:0 5px}.image-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px;background:#ede9dd;border-bottom:1px solid #d2c9b6;font-size:12px}.image-tools[hidden]{display:none}.image-tools strong{font-size:12px;margin-right:4px}.image-tools button{border:1px solid #c9c1ae;border-radius:4px;padding:6px 8px;min-height:30px;background:#fff;font-size:12px}.image-tools button[aria-pressed=true]{background:#32382e;color:white;border-color:#32382e}.image-tools input[type=range]{width:120px;padding:0;accent-color:#657056;border:0;background:transparent}.image-tools input[type=number]{width:62px;padding:5px}.image-tools small{width:100%;color:#716b5e}.rich-body .rich-image{margin:20px 0;cursor:pointer;position:relative}.rich-body .rich-image img{margin-top:0;margin-bottom:0}.rich-body .rich-image.ProseMirror-selectednode{outline:2px solid #8d967c;outline-offset:4px}.rich-body .rich-image:hover{outline:1px dashed #a7a18e;outline-offset:4px}

.video-links-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 8px}.video-links-heading label{margin:0!important}.video-links-heading button{white-space:nowrap;border:1px solid #c9c1ae;border-radius:4px;background:#fff;padding:7px 11px;font-size:12px}.video-link-row{display:flex;gap:8px;align-items:center;margin:8px 0}.video-link-row input{min-width:0;flex:1}.video-link-row button{flex-shrink:0}.video-link-row button:disabled{opacity:.4;cursor:default}

/* Keep both the pointer and typing caret legible, including white-colour text. */
.rich-body{cursor:url('assets/editor-text-cursor.svg') 12 12,text;caret-color:#282624;white-space:pre-wrap;background:#fff;color:#282624}
.rich-body p,.rich-body h2,.rich-body h3,.rich-body h4,.rich-body li,.rich-body span{cursor:inherit;white-space:pre-wrap;min-height:1em}
.rich-body:not(.ProseMirror-hideselection),.rich-body:not(.ProseMirror-hideselection) *{caret-color:#282624}
.rich-body ::selection{background:#d3e3ef;color:#172d3f}
.rich-body .ProseMirror-gapcursor:after{border-top:2px solid #282624}
.rich-body .rich-image,.rich-body .rich-image *{cursor:pointer}
#font-family{min-width:145px}.video-add-more{display:inline-flex;align-items:center;border:1px solid #b7ac98;border-radius:4px;padding:9px 14px;font-size:13px;margin:12px 0;background:#fff}
