/* Owner controls appear only after a successful server authorization check. */
#site-edit-toggle { position:fixed; bottom:110px; left:18px; right:auto; z-index:90; background:#333b29; color:#fff; border-color:#333b29; border-radius:999px; box-shadow:0 5px 22px #0002; font-size:11px; padding:10px 16px; }
[data-editor-ui][hidden] { display:none !important; }
#site-editor-bar { position:fixed; z-index:250; left:0; top:0; right:0; min-height:70px; padding:12px 20px; background:#31392a; color:#fff; display:flex; flex-wrap:wrap; gap:18px; align-items:center; box-shadow:0 2px 13px #0002; }
.site-editor-brand { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-right:auto; }
.site-editor-brand strong { font-size:12px; font-weight:500; }
#site-editor-summary { display:block; width:100%; font-size:9px; color:#c7cdbc; margin-left:23px; }
.site-editor-page-label { display:flex; align-items:center; gap:9px; font-size:10px; color:#c7cdbc; }
.site-editor-page-label select { padding:8px 25px 8px 11px; border:1px solid #6d7562; border-radius:6px; background:#414b37; color:#fff; font-size:10px; }
.site-editor-bar-actions { display:flex; gap:8px; align-items:center; }
.site-editor-bar-actions .button { border-color:#7b836d; color:#e1e5d8; background:transparent; }
.site-editor-bar-actions .button.primary { color:#293020; background:#e0e5d5; border-color:#e0e5d5; }
.site-editor-bar-actions .icon-button { border-color:#7b836d; border-radius:50%; width:30px; height:30px; }
body[data-site-editor] { padding-top:74px; }
body[data-site-editor] .app-header,body[data-site-editor] .public-header { top:74px; }
body[data-site-editor="edit"] { padding-right:330px; }
#site-editor-panel { position:fixed; top:74px; right:0; bottom:95px; width:330px; z-index:245; padding:25px; background:#fff; border-left:1px solid #d9ddce; overflow:auto; box-shadow:-5px 0 25px #0001; }
.site-editor-panel-head h2 { font-size:27px; line-height:1.3; margin:12px 0; overflow-wrap:anywhere; }
.site-editor-panel-head p:not(.eyebrow) { font-size:11px; line-height:1.9; color:#888; }
.site-editor-panel-head .text-link { font-size:10px; margin-bottom:12px; }
.site-editor-help { padding:25px 0; margin-top:20px; border-top:1px solid #e6e8e0; }
.site-editor-help>span { color:#7b8564; }
.site-editor-help h3 { font-family:var(--serif); font-size:24px; margin:13px 0; }
.site-editor-help p { font-size:11px; color:#888; line-height:1.9; margin:12px 0; }
.site-editor-help .text-link { font-size:10px; margin-top:15px; }
.site-editor-field-form { display:grid; gap:15px; margin-top:13px; }
.site-editor-field-form label { display:grid; gap:8px; color:#777; font-size:11px; }
.site-editor-field-form textarea,.site-editor-field-form input { padding:12px; color:#222; border:1px solid #ddd; border-radius:7px; background:#fafafa; width:100%; font:inherit; font-size:12px; line-height:1.8; }
.site-editor-field-form textarea { resize:vertical; min-height:170px; }
.site-editor-field-form input[type=file] { font-size:9px; }
.site-editor-field-form .form-help { font-size:10px; color:#999; }
.site-editor-field-form .button { font-size:11px; }
.site-editor-message { font-size:11px; color:#a14c38; line-height:1.8; }
.site-editor-message:empty { display:none; }
.site-editor-panel-note { font-size:10px; color:#999; line-height:1.8; margin-top:22px; }
.site-editor-upload-preview { min-height:130px; display:grid; place-items:center; padding:10px; background:#f4f4ee; border-radius:7px; color:#999; font-size:10px; }
.site-editor-upload-preview img,.site-editor-upload-preview video { width:100%; max-height:220px; object-fit:contain; }
body[data-site-editor="edit"] .site-editable { outline:1px dashed #9baa82; outline-offset:5px; cursor:pointer; }
body[data-site-editor="edit"] .site-editable:hover,body[data-site-editor="edit"] .site-editable:focus-visible { outline:2px solid #69774d; background-color:#becb9d18; }
body[data-site-editor] #modal[open] { position:fixed; top:100px; bottom:auto; left:calc((100vw - 330px)/2); margin:0; transform:translateX(-50%); max-width:min(650px,calc(100vw - 370px)); z-index:160; box-shadow:0 8px 50px #0003; max-height:calc(100dvh - 130px); }
body[data-site-editor="preview"] #modal[open] { left:50%; max-width:740px; }
.site-media-video { display:block; width:100%; object-fit:cover; }
.site-editor-field-form textarea:focus-visible,.site-editor-field-form input:focus-visible { outline:2px solid #7a8861; outline-offset:3px; }
@media(max-width:1000px) {
  #site-editor-bar { gap:10px; }
  .site-editor-page-label { display:none; }
  #site-editor-panel { width:295px; padding:20px; }
  body[data-site-editor="edit"] { padding-right:295px; }
  body[data-site-editor] #modal[open] { left:calc((100vw - 295px)/2); max-width:calc(100vw - 330px); }
}
@media(max-width:680px) {
  #site-edit-toggle { bottom:110px; left:15px; right:auto; font-size:10px; }
  #site-editor-bar { min-height:101px; padding:10px 12px; gap:8px; }
  .site-editor-brand { width:100%; gap:6px; }
  #site-editor-summary { width:auto; margin-left:auto; font-size:8px; }
  .site-editor-bar-actions { justify-content:space-between; width:100%; gap:6px; }
  .site-editor-bar-actions .button { font-size:9px; min-height:29px; padding:6px 10px; }
  body[data-site-editor] { padding-top:103px; padding-right:0; padding-bottom:280px; }
  body[data-site-editor] .app-header,body[data-site-editor] .public-header { top:103px; }
  #site-editor-panel { top:auto; bottom:95px; left:0; right:0; width:auto; height:240px; max-height:40dvh; padding:15px 20px; border-left:0; border-top:1px solid #d9ddce; }
  .site-editor-panel-head h2 { font-size:21px; margin:6px 0; }
  .site-editor-panel-head .eyebrow { font-size:7px; }
  .site-editor-help { margin-top:10px; padding:12px 0; }
  .site-editor-field-form textarea { min-height:100px; }
  body[data-site-editor="preview"] { padding-bottom:0; }
  body[data-site-editor] #modal[open],body[data-site-editor="preview"] #modal[open] { top:118px; left:50%; max-width:calc(100vw - 30px); max-height:calc(100dvh - 420px); }
  body[data-site-editor="preview"] #modal[open] { max-height:calc(100dvh - 220px); }
}

body[data-site-editor] #manage-listings-link { display:none; }
