.listing-gallery-settings-entry{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:20px 0;padding:20px 24px;border:1px solid #dce4d4;border-radius:15px;background:#f5f8ee}.listing-gallery-settings-entry h3{font-size:18px;margin:0 0 5px;color:#344530}.listing-gallery-settings-entry p{font-size:13px;margin:0;color:#727b72}.listing-gallery-settings-entry button,.listing-gallery-settings footer button{background:#819f45;border:0;border-radius:8px;color:white;padding:12px 18px;font-weight:700;cursor:pointer}.listing-gallery-settings{width:min(690px,calc(100% - 28px));max-height:90vh;padding:0;border:0;border-radius:18px;color:#34413b;background:#fff;box-shadow:0 20px 80px #0005;font:14px/1.5 Arial,sans-serif}.listing-gallery-settings::backdrop{background:#18251e99;backdrop-filter:blur(3px)}.listing-gallery-settings form{display:flex;flex-direction:column;max-height:90vh}.listing-gallery-settings header{display:flex;align-items:center;justify-content:space-between;padding:23px 26px;border-bottom:1px solid #e4e8e1}.listing-gallery-settings h2{margin:0;font-size:26px}.listing-gallery-settings header small{text-transform:uppercase;letter-spacing:.08em;color:#7b8e62;font-size:11px}.listing-gallery-settings [data-gallery-close]{font-size:28px;border:0;border-radius:50%;width:36px;height:36px;background:#eef2e8;color:#56634e;cursor:pointer}.gallery-settings-fields{overflow:auto;padding:22px 26px}.gallery-settings-fields>label{margin-bottom:20px}.gallery-settings-fields label{display:flex;flex-direction:column;gap:7px;font-weight:600}.gallery-settings-fields input:not([type=checkbox]),.gallery-settings-fields textarea,.gallery-settings-fields select{max-width:100%;width:100%;padding:10px 12px;border:1px solid #cdd6c7;border-radius:7px;font:14px Arial,sans-serif;color:#34413b;background:white}.gallery-settings-fields input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:#809b47}.gallery-settings-fields label:has(input[type=checkbox]){flex-direction:row;align-items:flex-start;margin:12px 0;font-weight:400;gap:10px}.gallery-setting-switch{padding:15px;border:1px solid #d9e3c7;border-radius:10px;background:#f4f8ec}.gallery-setting-switch span{display:grid;gap:3px}.gallery-setting-switch strong{font-size:16px}.listing-gallery-settings small,.gallery-settings-fields p{color:#747d73;font-size:12px}.listing-gallery-settings fieldset{border:1px solid #dfe5d9;border-radius:10px;padding:12px 17px;margin:0 0 22px}.listing-gallery-settings legend{font-weight:700;padding:0 6px}.listing-gallery-settings fieldset>label{margin:10px 0}.listing-gallery-settings [data-banner-preview]{width:100%;max-height:220px;object-fit:cover;border-radius:8px;margin:12px 0}.listing-gallery-settings [data-banner-remove]{border:1px solid #bbc9af;border-radius:6px;padding:8px;background:#f4f7ef;color:#526347;cursor:pointer}.listing-gallery-settings footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 26px;border-top:1px solid #e4e8e1;background:#fafbf8}.listing-gallery-settings footer a{font-size:13px;color:#617f3c}.listing-gallery-settings [data-gallery-save-status]{color:#546845;min-height:18px;font-size:13px}.listing-gallery-settings [hidden]{display:none!important}.listing-gallery-settings button:disabled{opacity:.6;cursor:wait}@media(max-width:600px){.listing-gallery-settings-entry{align-items:flex-start;flex-direction:column;padding:18px}.listing-gallery-settings-entry button{width:100%}.listing-gallery-settings header,.gallery-settings-fields{padding:18px}.listing-gallery-settings footer{padding:16px;flex-wrap:wrap}.listing-gallery-settings footer button{margin-left:auto}}

/* Gallery settings use the same green upload stage and circular image controls as Ogle's other image editors. */
.agent-gallery-tabs{display:flex;gap:6px;padding:4px;margin:0 0 20px;border:1px solid #dce5d6;border-radius:12px;background:#f2f6ed}.agent-gallery-tabs button{flex:1;min-height:38px;border:0;border-radius:8px;background:transparent;color:#7b8872;font-weight:650;cursor:pointer}.agent-gallery-tabs button[aria-selected=true]{background:white;color:#4f6d37;box-shadow:0 2px 6px #3b542914}.listing-gallery-settings .gallery-banner-field{padding:15px 17px 20px}.gallery-banner-editor{display:grid;gap:12px;justify-items:center}.gallery-banner-stage{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:120/47;overflow:hidden;border:2px dashed #bacdaa;border-radius:13px;background:linear-gradient(145deg,#f2f7ec,#e7efde);box-shadow:inset 0 0 0 5px #ffffff80;color:#799263;cursor:pointer;text-align:center}.gallery-banner-stage:hover,.gallery-banner-stage:focus-visible,.gallery-banner-stage.is-file-dragging{outline:0;border-color:#8eb15e;background:#eff7e5;box-shadow:inset 0 0 0 5px #ffffff90,0 0 0 4px #91b65d25}.gallery-banner-stage>img{position:absolute;display:block;width:100%;height:100%;object-fit:cover;max-width:none;user-select:none;pointer-events:none}.gallery-banner-stage>[data-banner-placeholder]{display:grid;gap:4px;justify-items:center;padding:12px}.gallery-banner-stage>[data-banner-placeholder]>b{display:grid;place-items:center;width:37px;height:37px;margin-bottom:3px;border-radius:50%;background:#83a953;color:white;font-size:25px;font-weight:400}.gallery-banner-stage strong{font-size:14px;color:#5c704f}.gallery-banner-stage small{font-size:12px;color:#8b9b7e}.gallery-banner-stage>em{position:absolute;bottom:8px;right:8px;padding:4px 8px;border-radius:8px;background:#23351db3;color:#fff;font-size:10px;font-style:normal;pointer-events:none}.gallery-banner-stage:not(:has(img:not([hidden])))>em{display:none}.gallery-banner-stage.is-cropping{touch-action:none;cursor:grab;border-style:solid}.gallery-banner-stage.is-cropping:active{cursor:grabbing}.gallery-banner-stage.is-cropping>img{object-fit:fill}.gallery-banner-size{display:flex;align-items:center;justify-content:center;gap:6px 12px;flex-wrap:wrap}.gallery-banner-size strong{font-size:13px;color:#526b40}.gallery-banner-size>span{color:#87967b;font-size:11px}.gallery-banner-size small{flex-basis:100%;text-align:center;color:#87967b;font-size:11px}.gallery-banner-size small:empty{display:none}.gallery-banner-actions{display:flex;gap:9px}.listing-gallery-settings .gallery-banner-actions button{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #ffffffcc;border-radius:50%;background:#769b50;box-shadow:0 5px 12px #465e3429;color:#fff;font-size:22px;font-weight:400;line-height:1;cursor:pointer}.listing-gallery-settings .gallery-banner-actions [data-banner-remove]{background:#78807b}.listing-gallery-settings .gallery-banner-actions [data-banner-crop]{background:#60784d}.gallery-banner-actions svg{width:19px;height:19px}.gallery-banner-actions button:disabled{opacity:.35;cursor:not-allowed}.gallery-banner-crop-tools{display:grid;width:min(100%,380px);gap:10px;padding:12px 15px;border:1px solid #d9e6cc;border-radius:12px;background:#f4f8ed;text-align:center}.gallery-banner-crop-tools label{display:grid;gap:6px;justify-items:stretch;font-size:12px;color:#6b7e5c}.gallery-banner-crop-tools input[type=range]{width:100%;padding:0;border:0;accent-color:#80a84f;background:transparent}.gallery-banner-crop-tools>div{display:flex;justify-content:center;gap:8px}.gallery-banner-crop-tools button{min-height:34px;padding:6px 12px;border:1px solid #c7d7b8;border-radius:8px;background:#fff;color:#60764b;font-weight:650;cursor:pointer}.gallery-banner-crop-tools [data-banner-apply]{background:#789d50;border-color:#789d50;color:#fff}.gallery-banner-upload-note{max-width:420px;text-align:center;font-size:11px!important;line-height:1.5;color:#8b9585!important}.listing-gallery-settings footer{flex-wrap:wrap}.gallery-autosave-status{flex:1 1 100%;min-width:0}.gallery-autosave-status p{margin:0;font-size:12px!important;color:#617a4c!important;min-height:18px}.gallery-autosave-status>div{display:flex;gap:8px;flex-wrap:wrap}.listing-gallery-settings .gallery-autosave-status button{margin-top:8px;padding:6px 9px;border:1px solid #d3dfc8;border-radius:7px;background:#fff;color:#617a4c;font-size:11px}.listing-gallery-settings footer>[data-gallery-done]{margin-left:auto}.listing-gallery-settings .gallery-banner-stage img[data-banner-preview]{margin:0;max-height:none;border-radius:0}.gallery-banner-actions button:focus-visible,.gallery-banner-crop-tools button:focus-visible,.agent-gallery-tabs button:focus-visible{outline:3px solid #91b65d;outline-offset:3px}.gallery-banner-editor input[type=file][hidden]{display:none!important}@media(max-width:600px){.listing-gallery-settings .gallery-banner-field{padding:12px}.gallery-banner-stage strong{font-size:12px}.gallery-banner-stage>[data-banner-placeholder]{gap:2px;padding:8px}.gallery-banner-stage>[data-banner-placeholder]>b{width:27px;height:27px;font-size:20px;margin:0}.gallery-banner-stage>em{font-size:8px;bottom:5px;right:5px}.gallery-banner-size{gap:4px 8px}.gallery-banner-size strong{font-size:12px}.gallery-banner-crop-tools{padding:10px}.gallery-banner-crop-tools small{font-size:10px}}

/* Keep modal focus inside the circular close control rather than the native text outline. */
.listing-gallery-settings #listing-gallery-settings-title:focus{outline:none}
.listing-gallery-settings [data-gallery-close]{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;line-height:1;box-sizing:border-box;border-radius:50%;outline:none;box-shadow:none}
.listing-gallery-settings [data-gallery-close]:focus-visible{outline:2px solid #83a953;outline-offset:3px}

.listing-gallery-settings [data-gallery-categories] button{border:1px solid #c6d6b8;border-radius:8px;padding:8px 12px;color:#516b3f;background:#f3f7ed;cursor:pointer}.gallery-category-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid #e0e7da;margin-bottom:14px}.gallery-category-editor>label{margin:0}.gallery-category-videos{grid-column:1/-1;display:grid;gap:12px}.gallery-category-video{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.gallery-category-video img{width:64px;height:64px;object-fit:contain;background:#eef1e9;border-radius:5px}.gallery-category-video strong{flex:1;min-width:90px;overflow-wrap:anywhere}.listing-gallery-settings .gallery-category-video button{font-size:11px;padding:6px 8px}.listing-gallery-settings [data-video-editor]{margin-top:18px;padding:16px;background:#f9fbf6;border:1px solid #dce5d2;border-radius:10px}.listing-gallery-settings [data-video-editor]>label{margin:12px 0}.gallery-video-poster-stage{position:relative;display:grid;place-items:center;border:2px dashed #b9cda9;border-radius:12px;background:#edf4e5;aspect-ratio:16/9;width:100%;color:#6d8757;text-align:center;margin:14px 0;overflow:hidden;cursor:pointer}.gallery-video-poster-stage.is-vertical{aspect-ratio:9/16;max-width:220px;margin-left:auto;margin-right:auto}.gallery-video-poster-stage img{width:100%;height:100%;object-fit:contain}.gallery-video-poster-stage.is-file-dragging,.gallery-video-poster-stage:focus-visible{outline:3px solid #91b65d;outline-offset:3px}.listing-gallery-settings [data-video-editor] .gallery-banner-actions{justify-content:center}.gallery-video-editor-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.listing-gallery-settings [data-video-message]{color:#9a4f2f}.listing-gallery-settings [data-video-poster-size]{display:block;text-align:center;margin-top:10px}@media(max-width:500px){.gallery-category-editor{grid-template-columns:minmax(0,1fr)}.gallery-category-editor>button{justify-self:start}.gallery-category-video strong{flex-basis:calc(100% - 80px)}}

.gallery-video-source-choices{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.listing-gallery-settings .gallery-video-source-choices button[aria-pressed=true]{background:#789c50;color:white}.gallery-video-file-stage{padding:26px 16px;margin:14px 0 8px;text-align:center;border:2px dashed #b9cda9;border-radius:12px;background:#edf4e5;color:#6d8757;cursor:pointer}.gallery-video-file-stage:focus-visible,.gallery-video-file-stage.is-file-dragging{outline:3px solid #91b65d;outline-offset:3px}.listing-gallery-settings [data-video-upload-status]{font-size:12px;overflow-wrap:anywhere}
