.pm-create-overlay { padding: 14px; align-items: center; justify-content: center; backdrop-filter: none; background: #17202c80; }
.pm-create-modal { display: flex; flex-direction: column; width: min(1840px, 100%); height: min(960px, calc(100dvh - 28px)); min-height: 0; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 12px 50px #172b4b30; }
.pm-create-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 56px; padding: 0 24px; border-bottom: 1px solid #e5e9f0; }
.pm-create-header h2 { margin: 0; color: #26364f; font-size: 16px; font-weight: 600; }
.pm-create-header .pm-close { background: transparent; }
.pm-create-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pm-create-body { display: flex; flex: 1; min-height: 0; }
.pm-create-sidebar { flex: 0 0 190px; width: 190px; border-right: 1px solid #e5e9f0; overflow-y: auto; }
.pm-create-photo { padding: 18px 20px; border-bottom: 1px solid #e5e9f0; }
.pm-create-upload { display: flex; align-items: center; justify-content: center; position: relative; width: 148px; height: 148px; overflow: hidden; border: 1px dashed #c6d3e8; border-radius: 3px; background: #fff; cursor: pointer; }
.pm-create-upload:hover { border-color: #2869db; background: #f7faff; }
.pm-create-upload img { width: 100%; height: 100%; object-fit: contain; }
.pm-create-upload span { font-size: 12px; color: #526b8f; }
.pm-create-upload:has(img) span { position: absolute; inset: auto 0 0; padding: 7px; text-align: center; color: #fff; background: #24334a99; }
.pm-create-upload input { display: none; }
.pm-create-photo strong, .pm-create-photo > small { display: block; margin-top: 10px; overflow-wrap: anywhere; color: #8c9ab0; font-size: 11px; font-weight: 400; }
.pm-create-photo strong { color: #54657e; }
.pm-create-sidebar nav { display: flex; flex-direction: column; gap: 3px; padding: 16px 8px; }
.pm-create-sidebar nav button { border: 0; border-radius: 2px; background: transparent; padding: 10px 12px; text-align: left; color: #58667d; font-size: 12px; }
.pm-create-sidebar nav button.active { color: #2869db; background: #eff5ff; }
.pm-create-sidebar nav button:hover { background: #f5f8fc; }
.pm-create-content { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 24px 36px; }
.pm-create-section { scroll-margin-top: 24px; outline: none; padding-bottom: 32px; }
.pm-create-section h3 { margin: 0 0 24px; border-left: 2px solid #2869db; padding-left: 8px; font-size: 13px; font-weight: 600; color: #28364d; }
.pm-create-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 22px; }
.pm-create-grid > label { display: flex; align-items: center; min-width: 0; gap: 6px; color: #6c7788; font-size: 12px; }
.pm-create-grid > label > span { flex: 0 0 74px; text-align: right; white-space: nowrap; }
.pm-create-grid i { color: #df7272; font-style: normal; }
.pm-create-grid :is(input:not([type=checkbox]), select, textarea) { display: block; flex: 1; width: 100%; min-width: 0; height: 34px; padding: 6px 9px; border: 1px solid #cfd9e8; border-radius: 4px; background: #fff; color: #40516c; font-size: 12px; }
.pm-create-grid :is(input, textarea)::placeholder { color: #b0b9c8; }
.pm-create-grid .full { grid-column: 1 / -1; }
.pm-create-grid .half { grid-column: span 2; }
.pm-create-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 0 0 0 80px; margin: 0; border: 0; }
.pm-create-tags legend { float: left; width: 74px; margin-left: -80px; padding: 0; color: #6c7788; font-size: 12px; text-align: right; }
.pm-create-tags label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #6c7788; }
.pm-create-tags input { margin: 0; accent-color: #2869db; }
.pm-create-grid .pm-create-description { align-items: flex-start; }
.pm-create-description > span { padding-top: 8px; }
.pm-create-description > div { position: relative; flex: 1; min-width: 0; }
.pm-create-grid .pm-create-description textarea { height: 240px; min-height: 160px; resize: vertical; padding: 12px 12px 30px; line-height: 1.8; }
.pm-create-description small { position: absolute; right: 12px; bottom: 10px; color: #a2adbd; font-size: 11px; }
.pm-create-attachments { display: flex; align-items: flex-start; gap: 6px; min-width: 0; font-size: 12px; }
.pm-create-attachments > span { flex: 0 0 74px; text-align: right; color: #6c7788; padding-top: 5px; }
.pm-create-attachments > div { flex: 1; min-width: 0; }
.pm-attachment-field { min-width: 0; font-size: 12px; }
.pm-attachment-upload { display: inline-flex; padding: 5px 0; color: #2869db; cursor: pointer; font-size: 12px; }
.pm-create-grid .pm-attachment-upload input, .pm-form-grid .pm-attachment-upload input { display: none; }
.pm-attachment-field > small { color: #a0acbc; margin-left: 12px; font-size: 11px; }
.pm-attachment-field ul { list-style: none; margin: 6px 0 0; padding: 0; }
.pm-attachment-field li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 10px; margin-top: 5px; border: 1px solid #e6ebf3; border-radius: 4px; background: #fafcff; }
.pm-attachment-field li small { color: #9aa7ba; white-space: nowrap; font-size: 11px; }
.pm-attachment-field button { padding: 0; border: 0; background: transparent; font-size: 12px; }
.pm-attachment-name { color: #497cbd; overflow-wrap: anywhere; min-width: 0; text-align: left; }
.pm-attachment-remove { margin-left: auto; color: #8d9bb0; flex-shrink: 0; }
.pm-edit-attachments { grid-column: 1 / -1; min-width: 0; }
.pm-edit-attachments > span { display: block; color: #6d7c92; font-size: 12px; margin-bottom: 8px; }
.pm-create-image-info { display: flex; align-items: center; gap: 20px; color: #728099; font-size: 12px; }
.pm-create-image-info img { width: 100px; height: 100px; object-fit: contain; border: 1px solid #e5e9f0; border-radius: 4px; }
.pm-create-image-info small { color: #9ca8ba; }
.pm-create-image-info .pm-button { margin-top: 12px; font-size: 12px; }
.pm-create-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-shrink: 0; padding: 15px 24px; border-top: 1px solid #e5e9f0; background: #fff; }
.pm-create-footer > small { margin-right: auto; color: #a2adbd; font-size: 11px; }
.pm-create-footer .pm-button { min-width: 54px; font-size: 12px; }
@media (max-width: 1350px) { .pm-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-create-grid .half { grid-column: auto; } }
@media (max-width: 700px) {
    .pm-create-overlay { padding: 8px; }
    .pm-create-modal { height: calc(100dvh - 16px); }
    .pm-create-header { height: 50px; padding: 0 16px; }
    .pm-create-body { flex-direction: column; }
    .pm-create-sidebar { display: flex; align-items: center; flex: 0 0 auto; width: 100%; border-right: 0; border-bottom: 1px solid #e5e9f0; }
    .pm-create-photo { padding: 8px; border: 0; }
    .pm-create-upload { width: 58px; height: 58px; }
    .pm-create-upload span { font-size: 10px; }
    .pm-create-photo > strong, .pm-create-photo > small { display: none; }
    .pm-create-sidebar nav { flex: 1; flex-direction: row; flex-wrap: wrap; padding: 8px 0; gap: 0; }
    .pm-create-sidebar nav button { padding: 9px 7px; font-size: 11px; }
    .pm-create-content { padding: 20px 12px; }
    .pm-create-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pm-create-grid > label > span { flex-basis: 68px; }
    .pm-create-tags { padding-left: 74px; gap: 10px; }
    .pm-create-tags legend { width: 68px; margin-left: -74px; }
    .pm-create-footer { padding: 12px; gap: 8px; }
}

.pm-relation-status { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-bottom:16px; color:#64748b; font-size:12px; }
.pm-relation-status .pm-form-error { flex-basis:100%; margin:0; }
