.pm-images { position: relative; min-height: 440px; font-size: 12px; color: #475a73; }
.pm-images-guide { padding: 10px 12px; border: 1px solid #b8ceff; border-radius: 4px; background: #eaf1ff; line-height: 1.8; color: #40506a; }
.pm-images-guide ul { margin: 0; padding-left: 12px; }
.pm-images-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pm-images-toolbar .pm-button, .pm-images-source .pm-button { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.pm-images-toolbar .pm-button.selected { border-color: #2869db; color: #2869db; background: #f3f7ff; }
.pm-images-upload { cursor: pointer; display: inline-flex; align-items: center; }
.pm-images-upload input { display: none; }
.pm-images-upload.disabled { opacity: .5; cursor: default; }
.pm-images-divider { width: 1px; height: 20px; background: #e2e7ef; margin: 0 4px; }
.pm-images-drag-hint { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 3px; background: #fdf7ef; color: #716351; }
.pm-images-drag-hint svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.pm-images-drag-hint small { color: #9aa5b5; font-size: 12px; }
.pm-images-count { margin-left: auto; color: #91a0b5; }
.pm-images-source { padding: 16px; margin: 16px 0 20px; border: 1px solid #dde5f0; border-radius: 5px; background: #fafcff; }
.pm-images-source > label { display: block; margin-bottom: 8px; }
.pm-images-source > :is(input,textarea) { width: 100%; padding: 9px 11px; border: 1px solid #cfd9e8; border-radius: 4px; background: #fff; color: #40516c; font: inherit; }
.pm-images-source > textarea { resize: vertical; min-height: 80px; }
.pm-images-source-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pm-images-source-footer small { margin-right: auto; color: #98a5b7; }
.pm-images-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 16px; }
.pm-images-error { color: #cc535d; background: #fff2f3; padding: 10px 12px; border-radius: 4px; line-height: 1.7; overflow-wrap: anywhere; }
.pm-images-progress { color: #2869db; }
.pm-image-card { min-width: 0; max-width: 260px; border: 1px solid #e0e7f0; border-radius: 5px; padding: 8px; background: #fff; }
.pm-image-thumb { position: relative; display: block; width: 100%; height: 140px; border: 0; border-radius: 3px; background: #f8fafc; padding: 6px; cursor: zoom-in; }
.pm-image-thumb img { height: 100%; width: 100%; object-fit: contain; }
.pm-image-main { position: absolute; top: 6px; left: 6px; padding: 3px 7px; border-radius: 3px; background: #2869db; color: #fff; font-size: 11px; }
.pm-image-card p { margin: 10px 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-image-card > small { display: block; margin: 0 2px; color: #97a5b8; font-size: 10px; }
.pm-image-card > div { display: flex; justify-content: space-between; margin-top: 10px; border-top: 1px solid #edf1f6; padding-top: 8px; }
.pm-image-card > div button { border: 0; padding: 2px; color: #2869db; background: transparent; font-size: 11px; }
.pm-image-card > div button:last-child { color: #ad6b73; }
.pm-image-card > div button:disabled { color: #a1afc2; cursor: default; }
.pm-images-drop-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 8; border: 2px dashed #3978ff; border-radius: 5px; color: #2869db; background: #edf4fff0; pointer-events: none; font-size: 16px; }
.pm-image-preview { position: fixed; inset: 0; z-index: 1500; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 60px 24px 24px; background: #172334e8; }
.pm-image-preview > img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.pm-image-preview > p { color: #fff; overflow-wrap: anywhere; }
.pm-image-preview-close { position: absolute; right: 24px; top: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #ffffff20; color: #fff; font-size: 28px !important; }
@media(max-width:700px) { .pm-images { min-height: 350px; } .pm-images-drag-hint { width: 100%; font-size: 11px; } .pm-images-drag-hint small { font-size: 10px; } .pm-images-divider { display: none; } .pm-images-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .pm-image-thumb { height: 100px; } .pm-images-source { padding: 10px; } }
