.nsc-eprm-upload-form {
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

.nsc-eprm-upload-form [hidden] { display: none !important; }
.nsc-eprm-upload-form-heading { margin: 0 0 18px; }
.nsc-eprm-upload-form-heading h2 { margin: 0 0 4px; font-size: 20px; color: #1d3043; }
.nsc-eprm-upload-form-heading p { margin: 0; color: #526272; }
.nsc-eprm-menu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nsc-eprm-menu-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dce3e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgb(29 48 67 / 3%);
}
.nsc-eprm-menu-card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.nsc-eprm-menu-card-heading > div { min-width: 0; }
.nsc-eprm-menu-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf4fa;
    color: #2271b1;
}
.nsc-eprm-menu-card h3 { margin: 0 0 4px; color: #1d3043; font-size: 16px; }
.nsc-eprm-current-file { color: #526272; font-size: 12px; overflow-wrap: anywhere; }
.nsc-eprm-current-file br { display: none; }
.nsc-eprm-current-file a { margin-left: 4px; }
.nsc-eprm-file-picker { padding: 14px 16px; border: 1px dashed #b8c9d7; border-radius: 7px; background: #f8fafc; }
.nsc-eprm-file-picker > label { display: block; margin-bottom: 8px; color: #334155; font-weight: 600; }
.nsc-eprm-file-picker input[type="file"] { width: 100%; font-size: 13px; color: #334155; cursor: pointer; }
.nsc-eprm-file-picker input::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 1px solid #c4d3df;
    border-radius: 5px;
    background: #fff;
    color: #135e96;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.nsc-eprm-file-picker input::file-selector-button:hover { background: #edf4fa; border-color: #2271b1; }
.nsc-eprm-file-feedback { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.nsc-eprm-file-status { margin: 0; color: #526272; font-size: 12px; }
.nsc-eprm-clear-file { padding: 0; border: 0; background: transparent; color: #135e96; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.nsc-eprm-menu-card.has-file { border-color: #98c6b2; }
.nsc-eprm-menu-card.has-file .nsc-eprm-file-picker { border-color: #98c6b2; background: #f2faf6; }
.nsc-eprm-menu-card.has-file .nsc-eprm-file-status { color: #226344; }
.nsc-eprm-menu-card.has-error .nsc-eprm-file-picker { border-color: #b32d2e; background: #fff7f7; }
.nsc-eprm-menu-card.has-error .nsc-eprm-file-status { color: #a02222; }
.nsc-eprm-menu-help { margin-top: 14px; color: #526272; font-size: 12px; }
.nsc-eprm-menu-help summary { cursor: pointer; width: fit-content; }
.nsc-eprm-menu-help p { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.nsc-eprm-shortcode-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.nsc-eprm-shortcode-copy code { display: block; flex-basis: 100%; padding: 10px 12px; border-radius: 5px; background: #f0f5f9; color: #26465f; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.nsc-eprm-copy-status { color: #226344; font-size: 12px; }
.nsc-eprm-publish-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0; }
.nsc-eprm-selection-summary { margin: 0; font-weight: 600; color: #334155; }
.nsc-eprm-publish-note { margin: 3px 0 0; color: #526272; font-size: 12px; }
.nsc-eprm-publish-bar .nsc-eprm-publish-button { padding: 7px 18px; border-radius: 6px; font-weight: 600; }
.nsc-eprm-upload-form :is(input, button, summary, a):focus-visible { outline: 2px solid #2271b1; outline-offset: 3px; }
@media (max-width: 600px) {
    .nsc-eprm-menu-card { padding: 16px; }
    .nsc-eprm-file-picker { padding: 12px; }
    .nsc-eprm-publish-bar .nsc-eprm-publish-button { width: 100%; }
}

.nsc-eprm-tab-description {
    max-width: 1160px;
    margin: 24px 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.nsc-eprm-tab-description > p {
    margin: 0 0 16px;
    font-size: inherit;
    line-height: inherit;
}

.nsc-eprm-tab-description a:focus-visible {
    outline: 2px solid #135e96;
    outline-offset: 3px;
}

.nsc-eprm-tab-description--settings {
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #e2e6ea;
    border-radius: 4px;
    background: #f6f8fa;
    color: #526272;
    font-size: 13px;
    line-height: 1.5;
}

.nsc-eprm-tab-description--help > .nsc-eprm-help {
    margin: 0;
}

.nsc-eprm-tab-layout--upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
    max-width: 1160px;
    margin-top: 24px;
}

.nsc-eprm-tab-main {
    min-width: 0;
}

.nsc-eprm-tab-layout--upload .nsc-eprm-tab-description {
    margin-top: 0;
}

.nsc-eprm-tab-layout--upload input[type="file"] {
    max-width: 100%;
}

.nsc-eprm-tab-layout--upload .form-table {
    table-layout: fixed;
    overflow-wrap: anywhere;
}

.nsc-eprm-upload-guide {
    box-sizing: border-box;
    border: 1px solid #dce3e9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(29 48 67 / 4%);
    color: #526272;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.nsc-eprm-upload-guide-main {
    padding: 18px;
}

.nsc-eprm-upload-guide-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.nsc-eprm-upload-guide .nsc-eprm-guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #edf4fa;
    color: #2271b1;
    font-size: 18px;
}

.nsc-eprm-upload-guide h2 {
    margin: 0;
    color: #1d3043;
    font-size: 14px;
    line-height: 1.3;
}

.nsc-eprm-upload-guide p {
    max-width: 64ch;
    margin: 0 0 8px;
    font-size: inherit;
    line-height: inherit;
}

.nsc-eprm-upload-guide .nsc-eprm-upload-details {
    margin: 14px 0 10px;
    padding: 10px 0;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
    list-style: none;
}

.nsc-eprm-upload-details li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 10px;
    margin: 0;
    padding: 4px 0;
    color: inherit;
    font-size: 12px;
}

.nsc-eprm-detail-label {
    color: #526272;
}

.nsc-eprm-detail-value {
    color: #1d3043;
    font-weight: 500;
}

.nsc-eprm-upload-guide .nsc-eprm-upload-limit-note {
    margin: 0;
    color: #526272;
    font-size: 12px;
}

.nsc-eprm-upload-notice {
    padding: 14px 18px;
    border-top: 1px solid #e8e5db;
    border-radius: 0 0 8px 8px;
    background: #faf8f2;
}

.nsc-eprm-upload-notice h3 {
    margin: 0 0 6px;
    color: #625135;
    font-size: 13px;
    line-height: 1.4;
}

.nsc-eprm-upload-notice p {
    margin: 0;
    font-size: 12px;
}

.nsc-eprm-tab-description #eprm_custom_text_uploader:not(:empty) {
    margin: 16px 0 0;
    padding: 16px 20px;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
    background: #eaf3fa;
    color: #1d4463;
    white-space: pre-line;
}

.nsc-eprm-tab-description #eprm_custom_text_uploader:empty,
.nsc-eprm-tab-description #eprm_description:empty {
    display: none;
}

.nsc-eprm-tab-description #eprm_description {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #dce3e9;
    border-radius: 6px;
    background: #f6f8fa;
    color: #526272;
    font-size: 12px;
    line-height: 1.6;
}

.nsc-eprm-tab-description #eprm_description strong {
    font-weight: 400;
}

.nsc-eprm-tab-description #eprm_description a {
    color: #135e96;
    font-weight: 500;
    text-underline-offset: 2px;
}

@media (max-width: 1100px) {
    .nsc-eprm-tab-layout--upload {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

}

@media (max-width: 782px) {
    .nsc-eprm-menu-cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .nsc-eprm-tab-description--settings {
        padding: 10px 12px;
    }
}
