#photo-edit-launch{position:fixed;right:24px;bottom:112px;z-index:1000;background:#cdb58b;color:#222723;border:1px solid #ad956a;border-radius:8px;padding:13px 18px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;box-shadow:0 4px 20px #0005}
#photo-edit-dialog{width:min(1000px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90dvh;padding:0;border:1px solid #79705d;border-radius:12px;background:#202323;color:#efede5;box-shadow:0 24px 100px #0009;overflow:auto}
#photo-edit-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
#photo-edit-dialog header,#photo-edit-dialog footer{padding:20px 24px;display:flex;gap:14px;align-items:center;justify-content:space-between;background:#242828}
#photo-edit-dialog header{border-bottom:1px solid #ffffff20;position:sticky;top:0;z-index:2}
#photo-edit-dialog h2{font:400 27px/1.2 Georgia,serif;margin:0}
#photo-edit-dialog button,#photo-edit-dialog select{font:inherit;min-height:42px;border:1px solid #777b73;border-radius:5px;background:#303635;color:#f2f0e9;padding:8px 13px;cursor:pointer}
#photo-edit-dialog button:focus-visible,#photo-edit-dialog select:focus-visible{outline:3px solid #cfb78d;outline-offset:3px}
#photo-edit-dialog button:disabled{opacity:.35;cursor:default}
#photo-edit-dialog #photo-save{background:#cdb58b;color:#1b201e;border-color:#cdb58b}
.photo-edit-body{padding:20px 24px}.photo-edit-body label{display:block;margin-bottom:7px;font-size:14px}.photo-edit-body select{width:100%}.photo-edit-help{font-size:14px;line-height:1.6;color:#b5bbb4;margin:12px 0 20px}
#photo-order-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:15px}
#photo-order-list li{background:#2d3230;border:1px solid #656a62;border-radius:6px;padding:8px;cursor:grab;min-width:0}
#photo-order-list li.dragging{opacity:.4}#photo-order-list li.drag-over{outline:3px solid #cdb58b}
#photo-order-list img{display:block;width:100%;height:150px;object-fit:contain;background:#4b4d4c;border-radius:2px;pointer-events:none}
.photo-order-label{font-size:13px;margin:9px 0;display:flex;gap:4px;justify-content:space-between}.photo-cover-label{color:#dcc495}.photo-order-actions{display:flex;gap:6px}.photo-order-actions button{flex:1;padding:5px!important}
#photo-edit-status{font-size:14px;line-height:1.5;flex:1;margin:0}#photo-edit-status.error{color:#ffb7a6}#photo-edit-dialog footer{position:sticky;bottom:0;border-top:1px solid #ffffff20;z-index:2}
@media(max-width:600px){#photo-edit-launch{right:14px;bottom:104px}#photo-edit-dialog header,#photo-edit-dialog footer,.photo-edit-body{padding:16px}#photo-order-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#photo-order-list img{height:135px}#photo-edit-dialog footer{flex-wrap:wrap}#photo-edit-status{flex-basis:100%}}
