.modal[data-publishing] { width: min(1000px, calc(100vw - 40px)); }
.nx-publish-heading { padding-right: 62px; }
.nx-publish-heading h2 { font-size: 23px; }
.nx-publish-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 13px 30px; border-bottom: 1px solid #eee8f2; background: #fcfaff; font-size: 12px; color: #91819d; }
.nx-publish-steps span { display: flex; align-items: center; gap: 7px; }
.nx-publish-steps b { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #e5dcea; border-radius: 50%; font-size: 10px; font-weight: 500; }
.nx-publish-steps .active { color: #6e4787; }
.nx-publish-steps .active b { color: #fff; background: #8b6aa7; border-color: #8b6aa7; }
.nx-publish-notice { padding: 13px 16px; border: 1px solid #e9dfef; border-radius: 10px; background: #f8f3fc; color: #715a81; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.nx-publish-notice p { margin: 0; }
.nx-publish-notice + .nx-publish-notice { margin-top: 12px; }
.nx-publish-notice.error { background: #fff5f7; border-color: #efd7df; color: #9a3f59; }
.nx-publish-notice.success { background: #f4f9f6; border-color: #dbe9df; color: #51745d; }
.nx-publish-subtitle { margin: 0 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.nx-publish-subtitle h3 { margin: 0; font-size: 15px; font-weight: 600; }
.nx-publish-context { display: flex; gap: 10px 20px; flex-wrap: wrap; margin: 0 0 21px; padding: 13px 0; border-bottom: 1px solid #eee8f2; font-size: 12px; color: #7f6c8d; }
.nx-publish-context strong { color: #4e4058; font-weight: 500; }
.nx-publish-section { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.nx-publish-section > legend { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #43364d; padding: 0; }
.nx-publish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nx-publish-field { min-width: 0; }
.nx-publish-field > label, .nx-publish-field > .nx-publish-label { display: block; font-size: 13px; color: #655b70; }
.nx-publish-label > small, .nx-publish-field label > small { font-size: 11px; color: #9b5270; margin-left: 7px; }
.nx-publish-label > em { font-size: 11px; font-style: normal; color: #9984a5; margin-left: 7px; }
.nx-publish-field input:not([type=checkbox]):not([type=radio]), .nx-publish-field select, .nx-publish-field textarea { width: 100%; box-sizing: border-box; }
.nx-publish-field input[readonly], .nx-publish-field select:disabled, .nx-publish-field textarea[readonly] { color: #8b7b96; background: #f1edf5; }
.nx-publish-wide { grid-column: 1 / -1; }
.nx-publish-hint { margin: 7px 0 0 !important; color: #8b7998 !important; font-size: 11px !important; line-height: 1.75 !important; overflow-wrap: anywhere; }
.nx-publish-field-error { margin: 7px 0 0; color: #a63853; font-size: 12px; overflow-wrap: anywhere; }
.nx-publish-field[aria-invalid=true] > label input, .nx-publish-field[aria-invalid=true] > label select, .nx-publish-field[aria-invalid=true] > label textarea { border-color: #c27d94; }
.nx-publish-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 10px; }
.nx-publish-checks label { display: flex; align-items: center; gap: 7px; min-height: 34px; }
.nx-publish-checks input[type=checkbox], .nx-publish-checks input[type=radio] { width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: #8b6aa7; }
.nx-publish-group { border: 1px solid #e9e0ef; border-radius: 12px; padding: 17px; min-width: 0; margin: 0; }
.nx-publish-group > legend { padding: 0 7px; font-size: 13px; font-weight: 500; color: #685273; }
.nx-publish-group:disabled { opacity: .8; }
.nx-publish-group .nx-publish-group { background: #fcfaff; }
.nx-publish-repeat { display: grid; gap: 14px; margin-top: 10px; }
.nx-publish-row { padding: 16px; border: 1px solid #e9e0ef; border-radius: 10px; min-width: 0; background: #fdfbff; }
.nx-publish-row-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; }
.nx-publish-row-head strong { font-size: 12px; font-weight: 500; color: #80658f; }
.nx-publish-row-head .text-button { flex-shrink: 0; }
.nx-publish-repeat + .ghost-button { margin-top: 13px; }
.nx-publish-value-row { display: flex; gap: 10px; align-items: center; }
.nx-publish-value-row input { flex: 1; min-width: 0; }
.nx-publish-value-row button { flex-shrink: 0; margin-top: 7px; }
.nx-publish-value-metadata { margin: 0 !important; padding: 8px 10px; border-radius: 7px; background: #f5f0f9; color: #80698e !important; font-size: 11px !important; line-height: 1.75 !important; overflow-wrap: anywhere; }
.nx-publish-value-row button:disabled { opacity: .45; cursor: default; }
.nx-publish-label-value { margin-top: 8px; padding: 11px 13px; background: #f7f2fb; border-radius: 8px; font-size: 13px; color: #73617e; overflow-wrap: anywhere; white-space: pre-wrap; }
.nx-publish-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nx-publish-image { min-width: 0; padding: 10px; border: 1px solid #e8dfee; border-radius: 11px; background: #fdfbff; }
.nx-publish-image img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; background: #f3edf7; display: block; }
.nx-publish-image strong { display: block; margin: 8px 0 3px; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.nx-publish-image small { display: block; color: #9b87a7; font-size: 10px; margin-bottom: 8px; }
.nx-publish-image select { margin: 5px 0; min-height: 35px; font-size: 12px; padding: 7px; }
.nx-publish-image .toolbar { justify-content: space-between; gap: 6px; }
.nx-publish-image button { font-size: 11px; min-height: 30px; }
.nx-publish-image .text-button:disabled { opacity: .4; }
.nx-publish-asset-picker { margin-top: 16px; display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.nx-publish-asset-picker label { flex: 1; min-width: 150px; }
.nx-publish-upload { width: 100%; }
.nx-publish-review-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.nx-publish-review-table th { color: #8d789b; font-weight: 500; text-align: left; background: #faf7fc; }
.nx-publish-review-table td, .nx-publish-review-table th { padding: 12px; border-bottom: 1px solid #eee7f3; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; }
.nx-publish-review-table th:first-child { width: 27%; }
.nx-publish-review-table td:last-child { color: #624678; }
.nx-publish-review-check { display: flex !important; align-items: start; gap: 10px; margin-top: 20px; padding: 15px; border-radius: 10px; background: #f7f1fb; }
.nx-publish-review-check input { width: 17px; height: 17px; min-height: 17px; margin: 2px 0 0 !important; flex: 0 0 17px; padding: 0; accent-color: #8b6aa7; }
.nx-publish-review-check span { font-size: 12px; color: #735b82; line-height: 1.8; }
.nx-publish-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.nx-publish-summary > div { padding: 14px; background: #f7f2fb; border-radius: 10px; min-width: 0; }
.nx-publish-summary span { display: block; color: #8a7399; font-size: 11px; }
.nx-publish-summary strong { display: block; color: #4e365e; font-size: 17px; font-weight: 600; margin-top: 5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.nx-publish-compliance-bar { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #e7dcf2; border-radius: 12px; background: linear-gradient(125deg, #faf6fe, #fff9fb); }
.nx-publish-compliance-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: #3a2c47; }
.nx-publish-compliance-head .ghost-button { min-height: 34px; padding: 0 13px; font-size: 12px; }
.nx-publish-compliance-hits { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ede4f4; display: grid; gap: 6px; }
.nx-publish-compliance-hits p { margin: 0; font-size: 12px; color: #8c354d; line-height: 1.65; overflow-wrap: anywhere; }
.nx-publish-compliance-hits .ghost-button { justify-self: start; margin-top: 4px; min-height: 32px; font-size: 12px; }
.nx-publish-history-item { padding: 16px; border: 1px solid #e8deee; border-radius: 10px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.nx-publish-history-item > div { min-width: 0; }
.nx-publish-history-item strong { font-size: 13px; }
.nx-publish-history-item p { margin: 5px 0; overflow-wrap: anywhere; }
.nx-publish-history-item small { font-size: 11px; color: #9b87a8; }
.nx-publish-footer-note { font-size: 11px; color: #8c789a; max-width: 30ch; line-height: 1.7; }
@media(max-width: 800px) { .nx-publish-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nx-publish-footer-note { max-width: 100%; } }
@media(max-width: 600px) { .modal[data-publishing] { width: calc(100vw - 24px); } .nx-publish-heading { padding-right: 48px; } .nx-publish-steps { padding: 12px 21px; gap: 8px 14px; font-size: 11px; } .nx-publish-grid { grid-template-columns: 1fr; gap: 17px; } .nx-publish-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nx-publish-summary { grid-template-columns: 1fr; } .nx-publish-summary > div { display: flex; justify-content: space-between; gap: 12px; } .nx-publish-summary strong { font-size: 14px; margin: 0; } .nx-publish-group, .nx-publish-row { padding: 13px; } .nx-publish-review-table td, .nx-publish-review-table th { padding: 9px 7px; font-size: 11px; } .nx-publish-review-table th:first-child { width: 25%; } .nx-form-footer .nx-publish-actions { flex-wrap: wrap; gap: 8px; } .nx-publish-actions > button { min-height: 38px; padding: 0 12px; font-size: 12px; } .nx-publish-history-item { flex-wrap: wrap; } .nx-publish-footer-note { display: none; } }
