.panel-edit-selected{outline:4px solid #d6a64f!important;outline-offset:3px;cursor:pointer}
.panel-move-bar{position:fixed;z-index:1002;right:16px;bottom:16px;width:min(340px,calc(100vw - 32px));max-height:65vh;overflow:auto;padding:16px;display:grid;gap:10px;border:2px solid #d6a64f;border-radius:14px;background:#171513;color:#fff;box-shadow:0 15px 45px #0009}.panel-move-bar strong{color:#e4bb74;font-size:20px}.panel-move-bar span{font-size:14px}.panel-move-bar label{display:none;gap:8px;font-size:14px}.panel-move-bar.image-selected label{display:grid}.panel-move-bar input{width:100%;accent-color:#d6a64f}.panel-move-bar button,.panel-edit-move{min-height:44px;padding:8px 14px;border:1px solid #d6a64f;border-radius:8px;background:#31271c;color:#fff;cursor:pointer}.panel-edit-move{margin-right:8px}.panel-moving-item{outline:2px dashed #e4bb74;touch-action:none}
.panel-move-mode .panel-edit-selected :is(img,video,h1,h2,h3,h4,p,figure,button,a,span){touch-action:none;cursor:grab}
.panel-frame-mode .panel-frame-panel img{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.panel-frame-mode .panel-frame-target{outline:3px dashed #e4bb74;outline-offset:3px;cursor:grabbing}
.panel-frame-bar{position:fixed;z-index:1002;right:16px;bottom:16px;width:min(340px,calc(100vw - 32px));max-height:60dvh;overflow:auto;padding:16px;display:grid;gap:10px;border:2px solid #d6a64f;border-radius:14px;background:#171513;color:#fff;box-shadow:0 15px 45px #0009}
.panel-frame-bar strong{color:#e4bb74;font-size:20px}.panel-frame-bar span{font-size:14px;line-height:1.45}
.panel-frame-bar fieldset{border:0;padding:0;margin:0;display:grid;gap:8px;min-width:0}.panel-frame-bar fieldset:disabled{opacity:.45}
.panel-frame-bar label{display:grid;grid-template-columns:1fr auto;gap:4px;font-size:14px}.panel-frame-bar input{grid-column:1/-1;width:100%;min-height:28px;accent-color:#d6a64f}
.panel-frame-bar button,.panel-edit-frame{min-height:44px;padding:8px 14px;border:1px solid #d6a64f;border-radius:8px;background:#31271c;color:#fff;cursor:pointer;font:inherit}
.panel-frame-bar>div{display:flex;gap:8px;flex-wrap:wrap}.panel-frame-save{background:#d6a64f!important;color:#171513!important}.panel-edit-frame{width:100%;margin-bottom:10px}.panel-edit-frame:disabled{opacity:.5;cursor:not-allowed}
.panel-frame-summary{padding:10px;border-left:3px solid #b88b49;background:#fff4dc;color:#33291a;font-size:14px}
.panel-frame-bar button:focus-visible,.panel-edit-frame:focus-visible{outline:3px solid #e4bb74;outline-offset:2px}
@media(max-width:640px){.panel-frame-bar{bottom:8px;right:8px;width:min(320px,calc(100vw - 16px));max-height:44dvh;padding:10px;gap:6px}.panel-frame-bar strong{font-size:17px}.panel-frame-mode main{padding-bottom:46dvh}}
.panel-edit-picker{position:fixed;z-index:1000;right:18px;bottom:18px;width:min(370px,calc(100vw - 36px));max-height:70vh;overflow:auto;padding:18px;border:2px solid #d6a64f;border-radius:15px;background:#171513;color:#fff;box-shadow:0 15px 45px #0008}
.panel-edit-picker-top,.panel-edit-item-heading,.panel-edit-header{display:flex;justify-content:space-between;align-items:center;gap:15px}
.panel-edit-picker strong,.panel-edit-header strong{color:#e4bb74;font-size:20px}
.panel-edit-picker p{margin:12px 0}.panel-edit-picker ul{max-height:140px;overflow:auto;padding-left:22px}.panel-edit-close{border:0;background:none;color:#fff;font-size:26px;cursor:pointer}
.panel-edit-next,.panel-edit-actions button,.panel-edit-header button,.panel-edit-item-actions button{border:1px solid #c99d55;border-radius:9px;background:#171513;color:#e4bb74;padding:10px 14px;font-weight:700;cursor:pointer}
.panel-edit-next{width:100%;background:#d6a64f;color:#171513}.panel-edit-next:disabled{opacity:.5;cursor:not-allowed}
.panel-edit-page{position:fixed;inset:0;z-index:1001;display:flex;flex-direction:column;background:#d5d3cf;color:#171513}
.panel-edit-header{padding:16px clamp(16px,4vw,48px);background:#171513;color:#fff;border-bottom:3px solid #c99d55}.panel-edit-header p{margin:3px 0 0}
.panel-edit-content{overflow:auto;padding:20px clamp(16px,4vw,48px) 45px}
.panel-edit-item,.panel-edit-notes,.panel-edit-actions,.panel-edit-disclaimer{display:block;max-width:1100px;margin:0 auto 20px}
.panel-edit-item{padding:16px;border:2px solid #b88b49;border-radius:14px;background:#fafafa}.panel-edit-item-heading{margin-bottom:12px}.panel-edit-item h2{font-size:20px;margin:0}.panel-edit-item-actions,.panel-edit-actions{display:flex;gap:10px;flex-wrap:wrap}
.panel-edit-preview{padding:12px;min-height:100px;border:2px dashed #ac8445;border-radius:9px;overflow:auto}.panel-edit-preview.is-editing{background:#fffdf5;outline:2px solid #b88b49}.panel-edit-preview img{max-width:100%;height:auto}.panel-edit-preview a{pointer-events:none}
.panel-edit-notes{font-weight:700}.panel-edit-notes textarea{display:block;width:100%;margin-top:8px;padding:10px;border:1px solid #777;border-radius:8px;background:#fff}.panel-edit-disclaimer{font-size:14px}
.panel-edit-actions .panel-edit-send{background:#d6a64f;color:#171513}
.panel-edit-actions button:focus-visible,.panel-edit-item-actions button:focus-visible,.panel-edit-header button:focus-visible{outline:3px solid #b88b49;outline-offset:2px}
.panel-edit-media{max-width:1100px;margin:0 auto 20px;padding:16px;border:1px solid #b88b49;border-radius:12px;background:#fafafa;color:#222}.panel-edit-media-controls,.panel-edit-link{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.panel-edit-media button{border:1px solid #9d743a;border-radius:8px;padding:10px;background:#222;color:#f3cd82;cursor:pointer}.panel-edit-link input{flex:1;min-width:220px;padding:10px}.panel-edit-attachments{list-style:none;padding:0}.panel-edit-attachments li{display:flex;align-items:center;gap:12px;margin:8px 0;overflow-wrap:anywhere}.panel-edit-attachments img,.panel-edit-attachments video{width:76px;height:60px;object-fit:cover}.panel-edit-media p{font-size:14px}
@media(max-width:800px){.nav .nav-edit-button{width:100%;margin-top:8px;min-height:48px}.panel-edit-header{align-items:flex-start;flex-direction:column}.panel-edit-item-heading{align-items:flex-start;flex-direction:column}}
.panel-edit-panel-media{margin-top:14px;padding:14px;border:2px dashed #ac8445;border-radius:9px;background:#fff;overflow-wrap:anywhere}
.panel-edit-panel-instructions{display:block;margin-top:14px;padding:14px;border:1px solid #c9ae80;border-radius:9px;background:#fffdf8;color:#25211b}
.panel-edit-panel-instructions strong{display:block;margin-bottom:8px;color:#5b421f}
.panel-edit-panel-instructions textarea{display:block;width:100%;min-height:88px;padding:10px;border:1px solid #8b7658;border-radius:7px;background:#fff;font:inherit;resize:vertical}
.panel-edit-panel-instructions textarea:focus-visible{outline:3px solid #b88b49;outline-offset:2px}
.panel-edit-panel-media p{font-size:14px;line-height:1.5}
.panel-edit-panel-media button{border:1px solid #9d743a;border-radius:8px;padding:10px;background:#222;color:#f3cd82;cursor:pointer}
.panel-edit-panel-media .panel-edit-media-controls,.panel-edit-panel-media .panel-edit-link{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.panel-edit-panel-media .panel-edit-link input{flex:1;min-width:min(220px,100%);padding:10px}
.panel-edit-panel-media .panel-edit-attachments{list-style:none;padding:0;margin:0}
.panel-edit-panel-media .panel-edit-attachments li{display:flex;align-items:center;gap:12px;margin:8px 0;overflow-wrap:anywhere}
.panel-edit-panel-media .panel-edit-attachments img,.panel-edit-panel-media .panel-edit-attachments video{width:90px;height:65px;object-fit:cover}
.panel-edit-panel-media .panel-edit-attachments span{min-width:0;flex:1}
.panel-edit-paste-box{min-height:54px;padding:12px;border:1px dashed #9d743a;border-radius:8px;background:#fff;outline-offset:3px}.panel-edit-paste-box:empty::before{content:attr(data-placeholder);color:#666}
.panel-edit-attachments li span{min-width:0;flex:1}.panel-edit-attachments li small{display:block;margin-top:3px;color:#665337}.panel-edit-attachments li span a{display:block;margin-top:4px}.panel-edit-attachments li span button{margin-top:6px}.panel-edit-send:disabled{opacity:.5;cursor:not-allowed}
/* Keep the editor above every viewer and below the age check. */
.panel-edit-page{z-index:11002;top:var(--site-nav-height);height:var(--site-view-height);max-height:var(--site-view-height);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
.panel-edit-page *,.panel-edit-picker *,.panel-frame-bar *,.panel-move-bar *{box-sizing:border-box}
.panel-edit-picker,.panel-frame-bar,.panel-move-bar{z-index:11003;max-height:min(65vh,calc(var(--site-view-height) - 24px))}
.panel-edit-content{min-height:0;overscroll-behavior:contain}
.panel-edit-preview{position:relative;isolation:isolate;color:#171513}
.panel-edit-preview iframe{pointer-events:none;width:100%;min-height:220px;border:0}
.panel-edit-preview video{max-width:100%;max-height:400px}
.panel-selection-mode iframe,.panel-selection-mode video{pointer-events:none}
.panel-selection-mode main,.panel-selection-mode .arrival-gallery,.panel-selection-mode .southside-photo-viewer,.panel-selection-mode .cigar-panel-backdrop{cursor:crosshair}
@media(max-width:600px){.panel-edit-header{padding:12px 16px}.panel-edit-content{padding:14px 12px 32px}.panel-edit-picker{padding:12px;bottom:8px;right:8px;width:min(340px,calc(100vw - 16px));max-height:48dvh}.panel-edit-picker p{font-size:14px}.panel-edit-picker ul{max-height:70px}}

/* Move only the editor tools; website panels keep their positions. */
.panel-float-handle{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;padding:14px 8px;border:1px dashed #d6a64f;border-radius:8px;font-size:14px;line-height:1.3;text-align:center;color:#e4bb74;min-height:48px;box-sizing:border-box;margin-bottom:10px}
.panel-float-handle:active{cursor:grabbing}.panel-float-handle:focus-visible{outline:2px solid white;outline-offset:2px}
.panel-float-reset{margin-top:8px;font-size:14px}
.panel-frame-mode main{padding-bottom:0}
