.mg-gallery{min-width:0;color:#102b4c}.mg-gallery *{box-sizing:border-box}.mg-gallery h2{font-size:21px;margin:0 0 10px}.mg-help,.mg-count{font-size:13px;line-height:1.6;color:#526577;margin:8px 0}.mg-count{font-weight:600}.mg-drop{padding:26px 18px;text-align:center;border:2px dashed #b8cce3;background:#f5f9ff;border-radius:14px;margin:16px 0}.mg-drop p{font-size:14px;line-height:1.6;margin:0 0 14px}.mg-gallery button{font:inherit;min-height:44px;padding:9px 12px;border:1px solid #becddd;border-radius:8px;color:#123756;background:#fff;cursor:pointer;line-height:1.4;white-space:normal}.mg-gallery .mg-add{background:#ffda16;border-color:#ffda16;font-weight:600;padding:12px 20px}.mg-gallery button:disabled{opacity:.5;cursor:default}.mg-gallery button:focus-visible,.mg-item:focus-visible{outline:3px solid #246cc3;outline-offset:3px}.mg-gallery [hidden]{display:none!important}.mg-message{font-size:13px;line-height:1.6;padding:12px;background:#eef5ff;border-radius:8px;overflow-wrap:anywhere}.mg-message.mg-error{background:#fff1f1;color:#8a2525}.mg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;padding:0;margin:18px 0 0}.mg-item{min-width:0;background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:10px}.mg-preview{display:grid;place-items:center;aspect-ratio:4/3;overflow:hidden;background:#eff4fa;border-radius:8px;font-size:12px;text-align:center;color:#526577}.mg-preview img{display:block;width:100%;height:100%;object-fit:contain}.mg-name{font-size:12px;overflow-wrap:anywhere;line-height:1.4;margin:10px 0;min-height:17px}.mg-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mg-actions button{font-size:12px;padding:8px 5px}.mg-actions button:first-child{grid-column:1/-1}.mg-actions button[aria-pressed=true]{background:#eef5ff;color:#164e9a;border-color:#80a8da;font-weight:600}.mg-empty{grid-column:1/-1;text-align:center;padding:22px 12px;color:#526577;font-size:14px;line-height:1.6;border:1px solid #dce5ed;border-radius:10px}.mg-item[draggable=true]{cursor:grab}
@media(max-width:767px){.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mg-drop{padding:24px 14px}.mg-drop .mg-add{width:100%}.mg-item{padding:8px}}
@media(max-width:359px){.mg-grid{gap:8px}.mg-actions{gap:5px}.mg-actions button{font-size:11px}.mg-gallery button{padding-left:5px;padding-right:5px}}
.mg-gallery .mg-actions button{font-size:12px;min-width:0;max-width:100%;padding:8px 5px;overflow-wrap:anywhere}
@media(max-width:480px){.mg-gallery .mg-actions button[data-mg-action=replace],.mg-gallery .mg-actions button[data-mg-action=remove]{grid-column:1/-1}}
