.gallery-settings{display:grid;gap:12px}
.gallery-settings>div{min-width:0}
.gallery-settings .gallery-fields,.gallery-settings .gallery-music-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}
.gallery-settings label{display:grid;gap:6px;margin:0;font-size:14px;line-height:1.4;min-width:0}
.gallery-settings label :is(input:not([type=checkbox]):not([type=range]),select){width:100%;margin:0;min-width:0}
.gallery-settings .gallery-check{display:flex;align-items:center;gap:10px;grid-column:1/-1}
.gallery-settings input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-height:0;margin:0;accent-color:#008b90}
.gallery-settings .gallery-fields>p,.gallery-settings .gallery-photo-list,.gallery-settings .gallery-music-fields{grid-column:1/-1}
.gallery-settings :is(.gallery-stream-help,.gallery-radio-help,.gallery-music-name){grid-column:1/-1;margin:0;font-size:13px;line-height:1.5;color:#526f74;overflow-wrap:anywhere}
.gallery-settings .gallery-photo-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
.gallery-settings .gallery-photo-list:empty{display:none}
.gallery-settings .gallery-photo{display:grid;grid-template-columns:128px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;padding:10px;border:1px solid #b5d7da;border-radius:18px;background:#ffffff52}
.gallery-settings .gallery-photo img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin:0}
.gallery-settings .gallery-photo label{font-size:13px;margin:0}
.gallery-settings .gallery-photo input{min-width:0;width:100%}
.gallery-settings .gallery-photo-meta{display:grid;gap:5px;min-width:0}
.gallery-settings .gallery-photo-meta strong{font-size:14px;line-height:1.4}
.gallery-settings .gallery-photo-meta small{font-size:12px;color:#526f74}
.gallery-settings .gallery-artwork-restore{grid-column:1/-1;font-size:13px}
.gallery-settings .gallery-artwork-restore>summary{width:fit-content;padding:7px 12px;border:1px solid #b5d7da;border-radius:999px;cursor:pointer}
.gallery-settings .gallery-artwork-restore>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.gallery-settings .gallery-artwork-restore select{max-width:320px;margin:0}
.gallery-settings .gallery-photo-actions{display:flex;align-items:center;gap:6px}
.panel-compact .gallery-settings .gallery-photo-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:9px;border-radius:50%;margin:0}
.gallery-settings .gallery-photo-icon svg{width:20px;height:20px;flex:none}
.gallery-settings .file-control{margin:0}
.gallery-settings audio{grid-column:1/-1;width:min(100%,560px);height:38px;margin:0}
.gallery-settings .gallery-volume{grid-column:1/-1;gap:4px}
.gallery-settings .gallery-volume-row{display:grid;grid-template-columns:minmax(0,1fr) 3.2rem;align-items:center;gap:10px;max-width:560px}
.gallery-settings .gallery-volume input[type=range]{width:100%;height:28px;min-height:28px;padding:0;margin:0;accent-color:#008b90;border:0;background:transparent}
.gallery-settings .gallery-volume output{font-size:13px;text-align:right;font-weight:600;color:#155861}
.gallery-settings .gallery-publish{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:2px 0 0}
.gallery-settings .gallery-publish p{flex:1;min-width:min(100%,180px);margin:0;font-size:13px;line-height:1.4}
.gallery-settings .gallery-upload-cancel{justify-self:start}
.gallery-settings button{justify-self:start;max-width:100%}
.gallery-settings [hidden]{display:none!important}
@media(max-width:720px){.gallery-settings .gallery-fields,.gallery-settings .gallery-music-fields{grid-template-columns:minmax(0,1fr);gap:12px}.gallery-settings .gallery-volume input[type=range]{height:32px;min-height:32px}}
@media(max-width:600px){.gallery-settings .gallery-photo{grid-template-columns:84px minmax(0,1fr);gap:8px 10px}.gallery-settings .gallery-photo img{grid-row:1/3}.gallery-settings .gallery-photo-actions{grid-column:2;justify-content:flex-end}.panel-compact .gallery-settings .gallery-photo-icon{width:44px;min-width:44px;height:44px;min-height:44px}}

.panel-compact .gallery-settings :is(.gallery-stream-help,.gallery-radio-help,.gallery-music-name){margin:0}
