.em-wrap {
    --em-bg: #f5f5f6;
    --em-shell: #f7f8fa;
    --em-panel: #eef1f4;
    --em-card: #ffffff;
    --em-text: #1e293b;
    --em-muted: #64748b;
    --em-border: #d8dee7;
    --em-dark-text: #334155;
    --em-dark-muted: #64748b;
    --em-accent: #001d3d;
    --em-accent-hover: #00152d;
    --em-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    margin: 0;
    padding-right: 0;
    min-height: calc(100vh - 52px);
}

#adminmenu #toplevel_page_sitesengine-site-migration-backup .wp-menu-image img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    padding: 6px 0 0 !important;
    margin: 0 auto !important;
    display: block !important;
    opacity: .82 !important;
    object-fit: contain !important;
}

body.toplevel_page_sitesengine-site-migration-backup #wpbody-content,
body.toplevel_page_sitesengine-site-migration-backup #wpcontent,
body.settings_page_sitesengine-site-migration-backup #wpbody-content,
body.settings_page_sitesengine-site-migration-backup #wpcontent {
    background: #f5f5f6;
    overflow-x: hidden;
}

body.toplevel_page_sitesengine-site-migration-backup #wpcontent,
body.settings_page_sitesengine-site-migration-backup #wpcontent {
    padding-left: 0 !important;
}

body.toplevel_page_sitesengine-site-migration-backup #wpbody-content,
body.settings_page_sitesengine-site-migration-backup #wpbody-content {
    padding-bottom: 0;
}

.em-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    min-height: auto;
    max-width: none;
    margin: 0;
}

.em-shell-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 14px 25px;
    border-bottom: 1px solid #123b63;
    background:
        radial-gradient(900px 220px at -10% -60%, rgba(255, 255, 255, 0.18), transparent 52%),
        radial-gradient(620px 180px at 115% -30%, rgba(124, 210, 255, 0.22), transparent 58%),
        linear-gradient(120deg, #001d3d 0%, #00284f 54%, #003566 100%);
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    min-height: 78px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    top: auto;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 29, 61, 0.16);
}

.em-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.em-brand-copy h1 {
    margin: 0;
    color: #f8fafc;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.em-brand-copy p {
    margin: 5px 0 0;
    color: rgba(248, 250, 252, 0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.em-brand-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #0f766e;
    background: #ebfffb;
    border: 1px solid #b9efe7;
}

.em-brand-logo-flat {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.em-brand-logo svg {
    width: 26px;
    height: 26px;
}

.em-brand-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.em-header-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.em-meta-chip {
    color: #e6edf7;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.em-meta-chip strong {
    color: #ffffff;
    font-size: 13px;
}


.em-top-tabs-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    border: 1px solid #d8dee7;
    border-top: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    padding: 0;
}

.em-top-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: hidden;
    scrollbar-width: thin;
    min-height: 60px;
    padding: 0 25px;
}

.em-header-cta.button {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.95);
    color: #001d3d;
    border-radius: 12px;
    padding: 9px 18px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.em-header-cta.button:hover,
.em-header-cta.button:focus {
    color: #00152d;
    border-color: rgba(255, 255, 255, 0.45);
    background: #ffffff;
}

.em-notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 200050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.em-notice-modal {
    width: min(460px, 100%);
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
    padding: 16px;
    animation: em-modal-in .22s ease;
}

.em-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

#em-notice-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

#em-notice-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

#em-notice-message {
    margin: 0;
    color: #334155;
}

.em-notice-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.em-notice-modal.em-notice-success {
    border-color: #86efac;
}

.em-notice-modal.em-notice-error {
    border-color: #fca5a5;
}

.em-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    padding: 18px 25px 24px;
    background: var(--em-bg);
    max-width: 1280px;
    margin: 0;
}

.em-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #d8dce3;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    padding: 14px;
    height: fit-content;
}

.em-nav {
    background: #ffffff;
    border: 1px solid #d5dce7;
    border-radius: 14px;
    padding: 10px 10px 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.em-nav-btn {
    width: 100%;
    border: 1px solid #ffffff;
    color: #475569;
    background: #ffffff;
    border-radius: 10px;
    text-align: left;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.em-nav-btn-top {
    width: auto;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    padding: 15px 12px 12px;
    margin-bottom: 0;
    background: transparent;
    color: #5b6472;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all .18s ease;
}

.em-nav-btn-top .dashicons,
.em-nav-btn-top .em-nav-arrow {
    display: none;
}

.em-nav-btn-top.is-active {
    border-color: #d5dde7;
    border-bottom-color: #001d3d;
    box-shadow: none;
    color: #0f172a;
    background: #f8fbff;
}

.em-nav-btn-top:hover {
    background: #f8fafd;
    border-color: #e4e9ef;
    border-bottom-color: #9eb5ce;
    color: #334155;
}

.em-nav-btn-side {
    width: 100%;
}

.em-nav-btn:last-child {
    margin-bottom: 0;
}

.em-nav-btn:hover {
    color: #1e293b;
    background: #f2f5f9;
    border-color: #e3e8ef;
}

.em-nav-btn.is-active {
    color: #0f172a;
    background: #ffffff;
    border-color: #d1dae7;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.em-nav-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #4b5563;
}

.em-nav-label {
    flex: 1;
}

.em-nav-arrow {
    opacity: 0.6;
}

.em-nav-btn.is-active .em-nav-arrow {
    opacity: 1;
}

.em-side-card {
    background: #ffffff;
    border: 1px solid #d6dee8;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.em-side-card h3 {
    margin: 0 0 8px;
    color: var(--em-text);
}

.em-side-card ul {
    margin: 0;
    padding-left: 16px;
    color: #334155;
}

.em-content {
    min-width: 0;
}

.em-content-shell {
    border: 1px solid #d1d7df;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: none;
}

.em-right-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.em-rail-card {
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
    padding: 18px;
}

.em-rail-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
}

.em-help-card {
    border-left: 3px solid #001d3d;
}

.em-rail-card p {
    margin: 0 0 12px;
    color: #4b5563;
}

.em-help-list {
    display: grid;
    gap: 8px;
}

.em-help-item {
    border: 1px solid #d7dfeb;
    background: #f8fbff;
    color: #334155;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.45;
}

.em-migrate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.em-clone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.em-field-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

.em-panel[data-tab-panel="clone"] .em-card {
    margin-bottom: 0;
}

.sengine-backups-table-wrap {
    border: 0;
    border-radius: 14px;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.sengine-backups-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 0;
}

.sengine-backups-table thead th {
    background: #f8fafc;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
    font-weight: 700;
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.sengine-backups-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #334155;
    font-size: 13px;
    background: #ffffff;
}

.sengine-backups-table tbody tr:last-child td {
    border-bottom: 0;
}

.sengine-backups-table tbody tr:hover {
    background: #f8fafc;
}

.sengine-backups-table th:last-child,
.sengine-backups-table td:last-child {
    min-width: 180px;
    white-space: normal;
}

.em-backup-name strong {
    font-size: 11px;
    color: #273247;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.em-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.em-include-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d3dbe6;
    background: #f8fbff;
    color: #445269;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.em-backup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.em-wrap .em-backup-actions .button {
    min-height: 30px;
    line-height: 1.1;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 7px;
    margin: 0;
    border: 1px solid transparent;
    text-decoration: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
    transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}

.em-wrap .em-backup-actions .em-backup-restore {
    background: #001d3d;
    border-color: #001d3d;
    color: #ffffff;
}

.em-wrap .em-backup-actions .em-backup-details {
    background: #e6eef8;
    border-color: #cad8ea;
    color: #123357;
}

.em-backup-actions .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}

.em-wrap .em-backup-actions .button:hover,
.em-wrap .em-backup-actions .button:focus {
    opacity: 0.96;
    transform: translateY(-1px);
    outline: none;
    box-shadow: none;
}

.em-backup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.44);
    z-index: 99991;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.em-backup-modal {
    width: min(680px, 100%);
    background: #ffffff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    animation: em-modal-in .2s ease;
}

.em-backup-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 0;
}

.em-backup-modal-head h3 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.em-backup-modal-head button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.em-backup-modal-body {
    padding: 16px;
}

.em-backup-details-name {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.em-backup-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
}

.em-backup-details-list {
    margin-top: 12px;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.em-backup-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 0;
    font-size: 14px;
}

.em-backup-detail-row:last-child {
    border-bottom: 0;
}

.em-backup-detail-row span {
    color: #475569;
}

.em-backup-detail-row strong {
    color: #1f2937;
    font-weight: 700;
}

.em-backup-modal-actions {
    border-top: 0;
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.em-restore-warning {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #f3c58a;
    border-radius: 9px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 600;
}

.em-restore-pass-wrap {
    margin-top: 12px;
}

.em-restore-pass-wrap label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 700;
}

.em-btn {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.em-btn:hover,
.em-btn:focus {
    opacity: 0.96;
    box-shadow: none !important;
}

.em-btn-restore {
    background: #001d3d !important;
    border-color: #001d3d !important;
    color: #ffffff !important;
}

.em-btn-download {
    background: #0b5e63 !important;
    border-color: #0b5e63 !important;
    color: #ffffff !important;
}

.em-btn-copy {
    background: #e6eef8 !important;
    border-color: #cad8ea !important;
    color: #123357 !important;
}

.em-btn-delete {
    background: #b42318 !important;
    border-color: #b42318 !important;
    color: #ffffff !important;
}

.em-btn-muted {
    background: #edf2f7 !important;
    border-color: #d6deea !important;
    color: #334155 !important;
}

.em-panel {
    display: none;
    animation: em-fade .22s ease;
}

.em-panel.is-active {
    display: block;
}

.em-card {
    background: var(--em-card);
    border: 1px solid #d1d7df;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: none;
}

.em-card h2 {
    margin: 0 0 14px;
    color: var(--em-text);
    line-height: 1.2;
}

.em-panel[data-tab-panel="backups"] .em-card h2 {
    margin-bottom: 14px;
}

.em-card p,
.em-muted {
    color: var(--em-muted);
}

.em-local-warning {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0 12px;
    font-weight: 600;
}

.em-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 13px;
    margin-bottom: 12px;
}

.em-grid-2 label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

.em-grid-2 input[type="url"],
.em-grid-2 input[type="text"],
.em-grid-2 input[type="number"],
.em-card input.large-text,
.em-card .regular-text,
.em-card textarea,
.em-card input[type="file"] {
    width: 100%;
    border: 1px solid #ccd6e2;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 40px;
    transition: border-color .2s ease, box-shadow .2s ease;
    background: #fff;
}

.em-card input[type="file"] {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    padding: 12px;
}

.em-card input[type="file"]::file-selector-button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    padding: 8px 12px;
    margin-right: 10px;
    font-weight: 600;
    cursor: pointer;
}

.em-grid-2 input:focus,
.em-card textarea:focus,
.em-card input:focus {
    border-color: #475569;
    box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.14);
    outline: none;
}

.em-check {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: #334155;
}

.em-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
}

.em-options-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 18px;
    margin: 12px 0 8px;
}

.em-options-group {
    border: 1px solid #d1d7df;
    border-radius: 10px;
    padding: 12px 12px 10px;
    background: #fafbfc;
}

.em-options-group h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1f2937;
}

.em-options-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    margin: 0 0 6px;
}

.em-options-toggle h4 {
    margin: 0;
}

.em-options-toggle .dashicons {
    color: #475569;
    transition: transform .18s ease;
}

.em-options-toggle.is-open .dashicons {
    transform: rotate(180deg);
}

.em-checkfield {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 500;
    line-height: 1.35;
}

.em-checkfield:last-child {
    margin-bottom: 0;
}

.em-checkfield input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none !important;
    background-image: none !important;
    width: 15px;
    min-width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1px solid #8ca2ba;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    margin-top: 0;
    cursor: pointer;
    position: relative;
    transition: all .18s ease;
    vertical-align: middle;
}

.em-checkfield input[type="checkbox"]::before,
.em-checkfield input[type="checkbox"]:checked::before {
    content: none !important;
    display: none !important;
}

.em-checkfield input[type="checkbox"]:checked {
    border-color: #001d3d;
    background: #001d3d;
}

.em-checkfield input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    left: 4px;
    top: 1px;
    transform: rotate(45deg);
}

.em-encrypt-fields {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.em-pass-wrap {
    position: relative;
}

.em-pass-wrap input {
    padding-right: 36px !important;
}

.em-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.em-options label,
.em-list li {
    color: #334155;
}

.em-panel[data-tab-panel="settings"] .em-card {
    background: #f8fafc;
    border-color: #d5dde8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.em-settings-grid {
    gap: 14px;
}

.em-settings-box {
    border: 1px solid #d1d7df;
    border-radius: 10px;
    background: #fafbfc;
    padding: 14px;
}

.em-settings-box label {
    display: block;
    margin-bottom: 8px;
}

.em-settings-box input[type="number"] {
    margin-bottom: 6px;
}

.em-setting-help {
    margin: 0 0 14px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.em-key-input-wrap {
    position: relative;
}

.em-key-input-wrap #em-site-key {
    padding-right: 44px;
}

.em-key-copy {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 1px solid #c7d4e4;
    border-radius: 8px;
    background: #ffffff;
    color: #51627a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .16s ease;
}

.em-key-copy:hover,
.em-key-copy:focus {
    border-color: #001d3d;
    color: #001d3d;
    box-shadow: 0 4px 10px rgba(0, 29, 61, 0.12);
    outline: none;
}

.em-regenerate-key-btn {
    margin-top: 14px !important;
}

.em-wrap .button {
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 16px;
    min-height: 44px;
    font-size: 13px;
    transition: transform .12s ease, background-color .2s ease, border-color .2s ease;
    box-shadow: none;
}

.em-wrap .button:hover {
    transform: translateY(-1px);
}

.em-wrap .button-primary {
    background: #001d3d;
    border-color: #001d3d;
    color: #ffffff;
    box-shadow: none;
}

.em-wrap .button-primary:hover,
.em-wrap .button-primary:focus {
    background: #00284f;
    border-color: #00284f;
    color: #ffffff;
}

.em-wrap .button:not(.button-primary) {
    background: #f8fbff;
    border-color: #cad8ea;
    color: #123357;
}

.em-card .button + .button {
    margin-left: 2px;
}

.em-card > .button,
.em-card > #em-latest-backup + .button,
.em-card input[type="file"] + .button,
.em-card .em-grid-2 + .button {
    margin-top: 12px;
}

#em-latest-backup {
    margin-top: 10px;
}

.em-btn-loading {
    pointer-events: none;
    opacity: 0.9;
}

.em-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: #fff;
    margin-right: 8px;
    vertical-align: text-bottom;
    animation: em-spin .8s linear infinite;
}

.em-status {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 700;
}

.em-status-success { background: #dcfce7; color: #166534; }
.em-status-error { background: #fee2e2; color: #991b1b; }
.em-status-info { background: #e2e8f0; color: #334155; }

.em-content-shell .widefat {
    border: 1px solid #d8dee7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.em-content-shell .widefat thead th {
    background: #f7f9fc;
    color: #334155;
    border-bottom: 1px solid #dde3ed;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 12px 14px;
}

.em-content-shell .widefat td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.em-content-shell .widefat tbody tr:hover {
    background: #f8fbff;
}

.em-progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.em-progress-modal {
    width: min(560px, 100%);
    border-radius: 16px;
    background: #fff;
    border: 1px solid #d5dbe3;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.35);
    padding: 24px;
    text-align: center;
    animation: em-modal-in .24s ease;
}

.em-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #d3dae4;
    border-top-color: #0f766e;
    margin: 0 auto 12px;
    animation: em-spin 0.9s linear infinite;
}

.em-progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e8edf3;
    overflow: hidden;
}

#em-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #0f766e 0%, #0d9488 100%);
    transition: width 0.2s ease;
}

#em-progress-percent {
    margin: 9px 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.em-migrate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.em-migrate-modal {
    width: min(700px, 100%);
    border-radius: 16px;
    border: 1px solid #d6e1ef;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.3);
    padding: 18px;
    animation: em-modal-in .22s ease;
}

.em-migrate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.em-migrate-head h3 {
    margin: 0;
    color: #1e293b;
}

#em-migrate-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.em-migrate-sites {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 8px;
    margin: 12px 0;
    align-items: center;
}

.em-migrate-site-card {
    border: 1px solid #d9e2ee;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px;
}

.em-migrate-site-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.em-migrate-site-card strong {
    display: block;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.em-migrate-site-arrow {
    text-align: center;
    color: #2563eb;
    font-size: 24px;
}

.em-migrate-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.em-migrate-actions .button {
    margin: 0;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform .12s ease, background-color .2s ease, border-color .2s ease;
    box-shadow: none;
}

.em-migrate-actions .button:hover {
    transform: translateY(-1px);
}

.em-migrate-actions .button:not(.button-primary) {
    border: 1px solid #cad8ea;
    background: #f8fbff;
    color: #123357;
    box-shadow: none;
}

.em-migrate-actions .button:not(.button-primary):hover,
.em-migrate-actions .button:not(.button-primary):focus {
    border-color: #bacde4;
    color: #0f2c4f;
    background: #eef5ff;
}

.em-migrate-actions .button.button-primary {
    border: 1px solid #001d3d;
    background: #001d3d;
    color: #ffffff;
    box-shadow: none;
}

.em-migrate-actions .button.button-primary:hover,
.em-migrate-actions .button.button-primary:focus {
    border-color: #00284f;
    background: #00284f;
}

.em-migrate-anim {
    display: flex;
    justify-content: center;
    margin: 8px 0 10px;
}

.em-migrate-pulse {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 4px solid #c8dbf5;
    border-top-color: #003566;
    animation: em-spin .9s linear infinite, em-pulse 1.5s ease-in-out infinite;
}

.em-migrate-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e7eef7;
    overflow: hidden;
    margin-top: 12px;
}

#em-migrate-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #001d3d 0%, #2563eb 100%);
    transition: width .28s ease;
}

#em-migrate-percent {
    margin: 8px 0 4px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.em-migrate-steps {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.em-migrate-steps li {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.em-migrate-steps li .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.em-migrate-steps li.is-done {
    color: #0f172a;
    font-weight: 600;
}

.em-migrate-steps li.is-done .dashicons {
    color: #16a34a;
}

@keyframes em-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes em-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); }
    100% { box-shadow: 0 0 0 18px rgba(37, 99, 235, 0); }
}

@keyframes em-modal-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes em-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .em-layout {
        grid-template-columns: 1fr;
    }

    .em-migrate-grid {
        grid-template-columns: 1fr;
    }

    .em-clone-grid {
        grid-template-columns: 1fr;
    }

    .em-options-groups {
        grid-template-columns: 1fr;
    }

    .em-encrypt-fields {
        grid-template-columns: 1fr;
    }

    .em-brand-copy h1 {
        font-size: 26px;
    }

    .em-brand-logo-flat {
        width: 48px;
        height: 48px;
    }

    .em-shell-header {
        min-height: 72px;
        margin: 0;
        padding: 10px 12px;
    }

    .em-top-tabs-wrap {
        margin: 0;
        border-radius: 0;
        padding: 0 10px;
    }

    .em-header-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .em-right-rail {
        order: 3;
    }

    .em-migrate-sites {
        grid-template-columns: 1fr;
    }

    .em-migrate-site-arrow {
        display: none;
    }

    .sengine-backups-table-wrap {
        overflow-x: hidden;
    }

    .em-backup-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* Button system v2: elegant, 5px radius, icon-first, mixed variants */
.em-wrap .button,
.em-wrap button.button,
.em-wrap a.button {
    border-radius: 5px !important;
    min-height: 46px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 1.1 !important;
    box-shadow: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}

.em-wrap .button:hover,
.em-wrap button.button:hover,
.em-wrap a.button:hover {
    transform: translateY(-1px);
}

.em-btn-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.em-btn-icon .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.em-wrap .em-btn-primary,
.em-wrap .button.button-primary.em-btn-primary {
    background: #001d3d !important;
    border: 1px solid #001d3d !important;
    color: #ffffff !important;
}

.em-wrap .em-btn-primary:hover,
.em-wrap .em-btn-primary:focus,
.em-wrap .button.button-primary.em-btn-primary:hover,
.em-wrap .button.button-primary.em-btn-primary:focus {
    background: #00284f !important;
    border-color: #00284f !important;
    color: #ffffff !important;
}

.em-wrap .em-btn-outline,
.em-wrap .button.em-btn-outline,
.em-wrap .button:not(.button-primary).em-btn-outline {
    background: #ffffff !important;
    border: 1px solid #c4cedc !important;
    color: #344155 !important;
}

.em-wrap .em-btn-outline:hover,
.em-wrap .em-btn-outline:focus {
    background: #f8fafd !important;
    border-color: #b3c0d3 !important;
    color: #1f2f45 !important;
}

.em-wrap .em-btn-soft,
.em-wrap .button.em-btn-soft,
.em-wrap .button:not(.button-primary).em-btn-soft {
    background: #edf3ff !important;
    border: 1px solid #cbd9f2 !important;
    color: #274369 !important;
}

.em-wrap .em-btn-soft:hover,
.em-wrap .em-btn-soft:focus {
    background: #e4edff !important;
    border-color: #bccde9 !important;
    color: #1e3658 !important;
}

#em-create-backup,
#em-direct-migrate,
#em-clone-upload,
#em-clone-from-url,
#em-save-settings,
#em-migrate-confirm-start {
    min-width: 230px;
}

#em-progress-stop.button {
    min-height: 40px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
}

.em-wrap .em-backup-actions .button {
    border-radius: 5px !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
}

.em-wrap .em-backup-actions .em-backup-restore {
    background: #001d3d !important;
    border-color: #001d3d !important;
    color: #ffffff !important;
}

.em-wrap .em-backup-actions .em-backup-details {
    background: #edf3ff !important;
    border-color: #cbd9f2 !important;
    color: #274369 !important;
}

.em-backup-modal-actions .em-btn {
    border-radius: 5px !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.em-backup-modal-actions .em-btn-copy {
    background: #edf3ff !important;
    border: 1px solid #cbd9f2 !important;
    color: #274369 !important;
}

.em-backup-modal-actions .em-btn-download {
    background: #ffffff !important;
    border: 1px solid #c4cedc !important;
    color: #344155 !important;
}

.em-backup-modal-actions .em-btn-delete {
    background: #c62828 !important;
    border: 1px solid #c62828 !important;
    color: #ffffff !important;
}

.em-backup-modal-actions .em-btn-muted {
    background: #eef2f7 !important;
    border: 1px solid #d7dee9 !important;
    color: #46566d !important;
}


.em-history-table-wrap {
    max-height: 460px;
    overflow: auto;
    border: 1px solid #d8dee7;
    border-radius: 12px;
    background: #ffffff;
}

.em-history-table-wrap .widefat {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.em-history-table-wrap .widefat thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* v1 polish sprint: onboarding, backup search, table fit, refined actions */
.em-notice-overlay {
    z-index: 100200;
}

.sengine-backups-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
}

.sengine-backups-toolbar .em-muted {
    margin: 0;
}

#em-backup-search {
    max-width: 320px;
    width: 100%;
}

.sengine-backups-table-wrap {
    overflow: hidden;
}

.sengine-backups-table {
    table-layout: auto;
    min-width: 0;
    width: 100%;
}

.sengine-backups-table th,
.sengine-backups-table td {
    white-space: nowrap;
}

.sengine-backups-table th:nth-child(1),
.sengine-backups-table td:nth-child(1) {
    width: 44%;
}

.sengine-backups-table th:nth-child(2),
.sengine-backups-table td:nth-child(2) {
    width: 14%;
}

.sengine-backups-table th:nth-child(3),
.sengine-backups-table td:nth-child(3) {
    width: 20%;
}

.sengine-backups-table th:nth-child(4),
.sengine-backups-table td:nth-child(4) {
    width: 22%;
}

.em-backup-name strong {
    display: block;
    font-size: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-backup-actions {
    justify-content: flex-start;
    gap: 6px;
}

.em-wrap .em-backup-actions .button {
    min-height: 30px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    border-radius: 5px !important;
}

.em-wrap .em-backup-actions .em-backup-restore {
    background: #001d3d !important;
    border-color: #001d3d !important;
    color: #ffffff !important;
}

.em-wrap .em-backup-actions .em-backup-details {
    background: #edf3ff !important;
    border-color: #cbd9f2 !important;
    color: #234267 !important;
}

.em-field-stack .button {
    justify-self: start;
}

#em-create-backup,
#em-direct-migrate,
#em-clone-upload,
#em-clone-from-url,
#em-save-settings,
#em-migrate-confirm-start,
#em-import-confirm-start {
    min-width: 190px !important;
}

.em-backup-modal-actions .em-btn {
    min-height: 34px !important;
    padding: 7px 12px !important;
}

.em-restore-checklist {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.em-checkfield-inline {
    margin: 0;
}

.em-onboarding-modal {
    width: min(760px, 100%);
}

.em-onboard-steps {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.em-onboard-step {
    border: 1px solid #d8e0ec;
    background: #f8fbff;
    border-radius: 8px;
    padding: 10px;
    display: grid;
    gap: 6px;
}

.em-onboard-step strong {
    font-size: 13px;
    color: #10243f;
}

.em-onboard-step span {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}

.em-card > h2 {
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .sengine-backups-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #em-backup-search {
        max-width: none;
    }

    .sengine-backups-table th,
    .sengine-backups-table td {
        white-space: normal;
    }

    .em-backup-name strong {
        white-space: normal;
    }

    .em-onboard-steps {
        grid-template-columns: 1fr;
    }
}

/* v1.1 visual refresh: stronger layout + modern interface */
.em-wrap {
    --esmb-surface: #ffffff;
    --esmb-border: #d6deea;
    --esmb-muted: #5a6b84;
    --esmb-heading: #16253b;
    --esmb-primary: #001d3d;
    --esmb-primary-soft: #edf3ff;
}

.em-layout {
    gap: 20px;
}

.em-content-shell {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--esmb-border);
    background: linear-gradient(180deg, #f6f8fc 0%, #f4f6fa 100%);
}

.em-top-tabs {
    gap: 8px;
    min-height: 64px;
}

.em-nav-btn-top {
    border-radius: 8px !important;
    min-height: 42px !important;
    padding: 10px 20px !important;
    border: 1px solid transparent !important;
    color: #5b677a !important;
    background: transparent !important;
}

.em-nav-btn-top.is-active {
    background: #ffffff !important;
    border-color: #c8d3e3 !important;
    color: #16253b !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06) !important;
}

.em-nav-btn-top:hover {
    background: #f8fbff !important;
    border-color: #d2dceb !important;
    color: #1f2f45 !important;
}

.em-panel .em-card {
    background: var(--esmb-surface);
    border: 1px solid var(--esmb-border);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    padding: 24px;
}

.em-card h2 {
    margin: 0 0 10px;
    color: var(--esmb-heading);
    font-size: 20px;
}

.em-card p,
.em-muted {
    color: var(--esmb-muted);
    font-size: 14px;
}

.em-right-rail .em-rail-card {
    border-radius: 14px;
    border: 1px solid var(--esmb-border);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    background: #ffffff;
}

.em-help-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.em-help-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #14253d;
}

.em-help-item {
    border-radius: 10px;
    border-color: #d9e1ee;
    background: #ffffff;
}

.em-options-group {
    border-radius: 12px;
    border: 1px solid #d5deea;
    background: #fbfcff;
}

.em-options-toggle {
    min-height: 52px;
    padding: 0 14px;
}

.em-wrap input[type="text"],
.em-wrap input[type="url"],
.em-wrap input[type="password"],
.em-wrap input[type="number"],
.em-wrap input[type="search"],
.em-wrap input[type="file"],
.em-wrap textarea,
.em-wrap select {
    border-radius: 8px !important;
    min-height: 48px !important;
    border: 1px solid #c8d3e3 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.em-wrap input:focus,
.em-wrap textarea:focus,
.em-wrap select:focus {
    border-color: #8ea8ce !important;
    box-shadow: 0 0 0 3px rgba(0, 29, 61, 0.08) !important;
}

.em-wrap .button,
.em-wrap button.button,
.em-wrap a.button {
    border-radius: 5px !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.em-wrap .em-btn-primary,
.em-wrap .button.button-primary.em-btn-primary,
.em-wrap .em-backup-actions .em-backup-restore {
    background: var(--esmb-primary) !important;
    border-color: var(--esmb-primary) !important;
    color: #ffffff !important;
}

.em-wrap .em-btn-outline,
.em-wrap .button.em-btn-outline,
.em-wrap .em-backup-actions .em-backup-details {
    background: var(--esmb-primary-soft) !important;
    border-color: #c9d8ef !important;
    color: #1e3a63 !important;
}

.em-wrap .em-btn-muted {
    background: #f1f4f9 !important;
    border-color: #d7dfeb !important;
    color: #46566d !important;
}

.sengine-backups-table-wrap {
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    overflow: hidden;
    background: #ffffff;
}

.sengine-backups-table thead th {
    background: #f5f7fc;
    color: #445369;
    font-size: 12px;
    padding: 12px 18px;
}

.sengine-backups-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #e8edf5;
}

.sengine-backups-table tbody tr:hover td {
    background: #f9fbff;
}

.em-backup-actions {
    gap: 8px;
}

.em-wrap .em-backup-actions .button {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
}

.em-history-table-wrap {
    max-height: 380px;
}

@media (max-width: 1280px) {
    .em-layout {
        grid-template-columns: 1fr;
    }

    .em-right-rail {
        order: 2;
    }
}

/* v1.2 premium polish pass */
.em-wrap {
    --esmb-bg: #f3f5f9;
    --esmb-surface: #ffffff;
    --esmb-surface-soft: #f8faff;
    --esmb-border: #dbe3ef;
    --esmb-text: #13243b;
    --esmb-muted: #5d6f89;
    --esmb-primary: #001d3d;
    --esmb-primary-2: #0a2a52;
    --esmb-primary-soft: #eaf1fc;
    --esmb-shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.06);
    --esmb-shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.em-shell {
    background: transparent;
}

.em-shell-header {
    background: linear-gradient(115deg, var(--esmb-primary) 0%, var(--esmb-primary-2) 100%);
    border: 1px solid #0a325f;
    box-shadow: var(--esmb-shadow-md);
}

.em-brand-copy h1 {
    font-size: clamp(34px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.em-brand-copy p {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    opacity: 0.82;
}

.em-meta-chip {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #d9e7fb;
}

.em-top-tabs-wrap {
    border-top: 0;
    border-left: 1px solid var(--esmb-border);
    border-right: 1px solid var(--esmb-border);
    border-bottom: 1px solid var(--esmb-border);
    box-shadow: none;
    background: #ffffff;
}

.em-top-tabs {
    min-height: 68px;
    gap: 4px;
}

.em-nav-btn-top {
    position: relative;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 66px !important;
    padding: 0 22px !important;
    font-size: 15px !important;
    letter-spacing: 0.03em;
    color: #5f6d82 !important;
}

.em-nav-btn-top .dashicons,
.em-nav-btn-top .em-nav-arrow {
    display: none !important;
}

.em-nav-btn-top::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background-color .18s ease;
}

.em-nav-btn-top:hover {
    color: #2b3f5e !important;
    background: #f9fbff !important;
}

.em-nav-btn-top.is-active {
    color: #13243b !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px #d8e2f0 !important;
}

.em-nav-btn-top.is-active::after {
    background: var(--esmb-primary);
}

.em-layout {
    gap: 22px;
}

.em-content-shell {
    border: 1px solid var(--esmb-border);
    border-radius: 14px;
    background: var(--esmb-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.em-panel .em-card {
    border-radius: 14px;
    border: 1px solid var(--esmb-border);
    background: var(--esmb-surface);
    box-shadow: var(--esmb-shadow-sm);
    padding: 24px;
}

.em-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
    letter-spacing: -0.01em;
    color: var(--esmb-text);
}

.em-card p,
.em-muted {
    color: var(--esmb-muted);
}

.em-options-group {
    border: 1px solid #d6e0ee;
    border-radius: 12px;
    background: var(--esmb-surface-soft);
}

.em-options-toggle {
    min-height: 54px;
}

.em-options-toggle h4 {
    font-size: 26px;
    color: #1b2d48;
}

.em-checkfield {
    margin-top: 4px;
}

.em-checkfield span {
    font-size: 14px;
}

.em-right-rail .em-rail-card {
    border-radius: 14px;
    border: 1px solid var(--esmb-border);
    background: #ffffff;
    box-shadow: var(--esmb-shadow-sm);
}

.em-help-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.em-help-card h3 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--esmb-text);
}

.em-help-card > p {
    font-size: 14px;
    margin-bottom: 14px;
}

.em-help-item {
    border-radius: 10px;
    border: 1px solid #d9e4f2;
    background: #ffffff;
    padding: 10px 12px;
}

.em-wrap input[type="text"],
.em-wrap input[type="url"],
.em-wrap input[type="password"],
.em-wrap input[type="number"],
.em-wrap input[type="search"],
.em-wrap input[type="file"],
.em-wrap textarea,
.em-wrap select {
    border: 1px solid #c7d4e6 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    background: #fff !important;
    color: #22344f !important;
}

.em-wrap input:focus,
.em-wrap textarea:focus,
.em-wrap select:focus {
    border-color: #8aa5cb !important;
    box-shadow: 0 0 0 3px rgba(0, 29, 61, 0.08) !important;
}

.em-wrap .button,
.em-wrap button.button,
.em-wrap a.button {
    border-radius: 5px !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.em-wrap .em-btn-primary,
.em-wrap .button.button-primary.em-btn-primary {
    background: var(--esmb-primary) !important;
    border: 1px solid var(--esmb-primary) !important;
    color: #fff !important;
}

.em-wrap .em-btn-primary:hover,
.em-wrap .em-btn-primary:focus {
    background: #072a53 !important;
    border-color: #072a53 !important;
}

.em-wrap .em-btn-outline,
.em-wrap .button.em-btn-outline {
    background: #ffffff !important;
    border: 1px solid #c4d2e4 !important;
    color: #2e425f !important;
}

.em-wrap .em-btn-outline:hover,
.em-wrap .em-btn-outline:focus {
    background: #f7faff !important;
    border-color: #afc2da !important;
}

.em-wrap .em-btn-soft,
.em-wrap .button.em-btn-soft {
    background: var(--esmb-primary-soft) !important;
    border: 1px solid #cbdaef !important;
    color: #1d3e66 !important;
}

.em-wrap .em-btn-soft:hover,
.em-wrap .em-btn-soft:focus {
    background: #e2ecfb !important;
    border-color: #bdd0ea !important;
}

#em-create-backup,
#em-direct-migrate,
#em-clone-upload,
#em-clone-from-url,
#em-save-settings,
#em-import-confirm-start,
#em-migrate-confirm-start {
    min-width: 210px !important;
}

.sengine-backups-toolbar {
    margin-bottom: 16px;
}

#em-backup-search {
    max-width: 360px;
}

.sengine-backups-table-wrap {
    border: 1px solid var(--esmb-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.sengine-backups-table {
    table-layout: auto;
}

.sengine-backups-table thead th {
    background: #f6f8fc;
    color: #43556f;
    font-size: 12px;
    letter-spacing: .04em;
    padding: 13px 18px;
}

.sengine-backups-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #e7edf6;
    vertical-align: middle;
}

.sengine-backups-table tbody tr:hover td {
    background: #f9fbff;
}

.em-backup-name strong {
    font-size: 13px;
    color: #1f324e;
    font-weight: 700;
}

.em-backup-actions {
    gap: 7px;
    flex-wrap: nowrap;
}

.em-wrap .em-backup-actions .button {
    min-height: 33px !important;
    padding: 6px 11px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
}

.em-wrap .em-backup-actions .em-backup-restore {
    background: var(--esmb-primary) !important;
    border-color: var(--esmb-primary) !important;
    color: #fff !important;
}

.em-wrap .em-backup-actions .em-backup-details {
    background: #edf3ff !important;
    border-color: #c9d8ef !important;
    color: #214166 !important;
}

.em-backup-modal,
.em-migrate-modal,
.em-progress-modal,
.em-notice-modal {
    border-radius: 12px;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.em-backup-modal-head,
.em-migrate-head {
    border-bottom: 1px solid #e5ebf4;
}

.em-history-table-wrap {
    max-height: 360px;
    border-radius: 12px;
    border: 1px solid var(--esmb-border);
}

@media (max-width: 1280px) {
    .em-layout {
        grid-template-columns: 1fr;
    }

    .em-right-rail {
        order: 2;
    }

    .em-backup-actions {
        flex-wrap: wrap;
    }
}

/* v1.3 corrective pass: reduce oversized type, cleaner pro WP-admin look */
.em-brand-copy h1 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
}

.em-brand-copy p {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    opacity: 0.78 !important;
}

.em-shell-header {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.em-top-tabs {
    min-height: 56px !important;
    gap: 0 !important;
}

.em-nav-btn-top {
    min-height: 56px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #5a667c !important;
}

.em-nav-btn-top.is-active {
    box-shadow: none !important;
    background: #fdfefe !important;
    color: #17283f !important;
}

.em-nav-btn-top::after {
    left: 14px !important;
    right: 14px !important;
    height: 2px !important;
}

.em-content-shell {
    padding: 18px !important;
    background: #f4f6fa !important;
    border-radius: 10px !important;
}

.em-panel .em-card {
    padding: 20px !important;
    border-radius: 10px !important;
    border: 1px solid #d7dfeb !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.em-card h2 {
    margin: 0 0 10px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.em-card p,
.em-muted {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #5d6e88 !important;
}

.em-options-toggle {
    min-height: 48px !important;
}

.em-options-toggle h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.em-checkfield span {
    font-size: 13px !important;
}

.em-right-rail .em-rail-card {
    border-radius: 10px !important;
    border: 1px solid #d7dfeb !important;
    box-shadow: none !important;
}

.em-help-card h3 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.em-help-card > p {
    font-size: 13px !important;
    margin-bottom: 10px !important;
}

.em-help-item {
    padding: 10px !important;
    border-radius: 8px !important;
}

.em-wrap .button,
.em-wrap button.button,
.em-wrap a.button {
    min-height: 40px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 5px !important;
}

#em-create-backup,
#em-direct-migrate,
#em-clone-upload,
#em-clone-from-url,
#em-save-settings,
#em-import-confirm-start,
#em-migrate-confirm-start {
    min-width: 200px !important;
}

.sengine-backups-table thead th {
    font-size: 11px !important;
    padding: 11px 14px !important;
}

.sengine-backups-table tbody td {
    padding: 12px 14px !important;
    font-size: 13px !important;
}

.em-backup-name strong {
    font-size: 13px !important;
}

.em-wrap .em-backup-actions .button {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
}

.em-history-table-wrap {
    max-height: 320px !important;
}

/* v1.4 premium interface final */
.em-shell-header {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 16px 22px !important;
}

.em-brand-copy h1 {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.em-brand-copy p {
    margin-top: 4px !important;
    font-size: 11px !important;
    letter-spacing: .12em !important;
}

.em-top-tabs {
    min-height: 58px !important;
    padding: 0 18px !important;
}

.em-nav-btn-top {
    min-height: 58px !important;
    padding: 8px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.em-nav-btn-top .dashicons {
    display: inline-flex !important;
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #65768e;
}

.em-nav-btn-top .em-nav-arrow {
    display: none !important;
}

.em-nav-label-wrap {
    display: grid;
    gap: 1px;
    text-align: left;
}

.em-nav-btn-top .em-nav-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4e5f78;
}

.em-nav-btn-top .em-nav-sub {
    font-size: 10px;
    letter-spacing: .02em;
    color: #8a9ab1;
}

.em-nav-btn-top.is-active {
    background: #f8fbff !important;
}

.em-nav-btn-top.is-active .em-nav-label,
.em-nav-btn-top.is-active .dashicons {
    color: #102742 !important;
}

.em-nav-btn-top.is-active .em-nav-sub {
    color: #5e7190 !important;
}

.em-nav-btn-top::after {
    left: 12px !important;
    right: 12px !important;
    height: 2px !important;
}

.em-dashboard-top {
    padding: 16px 18px 4px;
    display: grid;
    gap: 14px;
}

.em-action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.em-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.em-kpi-card {
    border: 1px solid #d8e1ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
    display: grid;
    gap: 5px;
}

.em-kpi-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #7a8da8;
}

.em-kpi-card strong {
    font-size: 14px;
    color: #112742;
    font-weight: 700;
}

.em-content-shell {
    border-radius: 10px !important;
    padding: 18px !important;
}

.em-panel .em-card {
    padding: 18px !important;
    border-radius: 10px !important;
    border: 1px solid #d7e0ec !important;
    box-shadow: none !important;
}

.em-card h2 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
}

.em-card p,
.em-muted {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.em-options-toggle {
    min-height: 46px !important;
    padding: 0 12px !important;
}

.em-options-toggle h4 {
    font-size: 15px !important;
}

.em-options-summary {
    margin-left: auto;
    margin-right: 10px;
    font-size: 11px;
    line-height: 1;
    color: #6a7e9b;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 3px 7px;
    min-width: 0;
}

.em-options-summary.has-value {
    background: #edf3ff;
    color: #22456e;
    border-color: #ccdbf2;
}

.em-right-rail .em-help-card {
    padding: 18px !important;
}

.em-help-card h3 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
}

.em-help-context {
    display: none;
}

.em-help-context.is-active {
    display: block;
}

.em-help-item {
    font-size: 13px !important;
}

.em-wrap .button,
.em-wrap button.button,
.em-wrap a.button {
    min-height: 38px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
}

.em-wrap .button.em-btn-icon,
.em-wrap button.em-btn-icon,
.em-wrap a.em-btn-icon {
    gap: 8px;
}

.em-wrap .em-btn-primary {
    background: #001d3d !important;
    border-color: #001d3d !important;
}

.em-wrap .em-btn-primary:hover,
.em-wrap .em-btn-primary:focus {
    background: #072a53 !important;
    border-color: #072a53 !important;
}

.em-wrap .em-btn-outline {
    background: #ffffff !important;
    border-color: #c8d4e6 !important;
    color: #2f425f !important;
}

.em-wrap .em-btn-soft {
    background: #edf3ff !important;
    border-color: #ccdbf2 !important;
    color: #22456e !important;
}

#em-create-backup,
#em-direct-migrate,
#em-clone-upload,
#em-clone-from-url,
#em-save-settings,
#em-import-confirm-start,
#em-migrate-confirm-start {
    min-width: 180px !important;
}

.sengine-backups-toolbar {
    margin: 0 0 12px !important;
}

.sengine-backups-table {
    table-layout: auto !important;
}

.sengine-backups-table th:nth-child(4),
.sengine-backups-table td:nth-child(4) {
    width: 240px !important;
}

.em-backup-actions {
    flex-wrap: nowrap !important;
}

.em-wrap .em-backup-actions .button {
    min-height: 30px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
}

@media (max-width: 1200px) {
    .em-kpi-strip {
        grid-template-columns: 1fr;
    }

    .em-dashboard-top {
        padding-top: 12px;
    }

    .em-nav-btn-top .em-nav-sub {
        display: none;
    }

    .em-backup-actions {
        flex-wrap: wrap !important;
    }
}

/* v1.5 final precision pass */
.em-dashboard-top {
    display: grid;
    gap: 10px;
}

.em-kpi-strip {
    order: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.em-action-strip {
    order: 2;
}

.em-layout {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 18px !important;
}

.em-nav-btn-top .em-nav-label {
    color: #66778f !important;
}

.em-nav-btn-top .em-nav-sub {
    color: #9aa8bc !important;
    font-weight: 600;
}

.em-nav-btn-top.is-active .em-nav-label {
    color: #142941 !important;
}

.em-nav-btn-top.is-active .em-nav-sub {
    color: #5f7392 !important;
}

.em-card h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.em-card p,
.em-muted,
.em-help-item,
.em-checkfield span {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* calmer checkbox rhythm */
.em-options-body {
    padding-top: 8px;
}

.em-checkfield {
    margin: 2px 0 !important;
    gap: 10px !important;
}

.em-checkfield input[type="checkbox"] {
    transform: scale(0.94);
}

/* sectioning in destination card */
.em-panel[data-tab-panel="migrate"] .em-migrate-grid > .em-card:nth-child(2) .em-context-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 10px;
}

.em-context-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: 999px;
    background: #edf3ff;
    border: 1px solid #ccd9ee;
    color: #1f446f;
}

.em-context-chip-soft {
    background: #f5f8fc;
    border-color: #d8e1ef;
    color: #5d6f89;
}

.em-panel[data-tab-panel="migrate"] .em-migrate-grid > .em-card:nth-child(2) .em-grid-2 {
    margin-top: 10px;
    padding-top: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6edf6;
    margin-bottom: 12px;
}

/* CTA hierarchy */
#em-direct-migrate {
    min-width: 220px !important;
    background: #001d3d !important;
    border-color: #001d3d !important;
    color: #fff !important;
}

#em-create-backup {
    min-width: 176px !important;
    background: #ffffff !important;
    border: 1px solid #c5d2e5 !important;
    color: #27405f !important;
}

#em-create-backup:hover,
#em-create-backup:focus {
    background: #f7faff !important;
    border-color: #aec1db !important;
}

/* cleaner right rail */
.em-right-rail .em-rail-card {
    padding: 18px !important;
}

.em-help-card h3 {
    font-size: 17px !important;
    margin-bottom: 6px !important;
}

.em-help-context > p {
    margin: 0 0 10px !important;
    color: #5f6f87;
}

.em-help-list {
    display: grid;
    gap: 8px;
}

/* micro interaction polish */
.em-options-toggle .dashicons {
    transition: transform .16s ease;
}

.em-options-toggle.is-open .dashicons {
    transform: rotate(180deg);
}

@media (max-width: 1280px) {
    .em-layout {
        grid-template-columns: 1fr !important;
    }

    .em-kpi-strip {
        grid-template-columns: 1fr;
    }
}

/* v1.6 layout alignment + cleaner action strip */
.em-dashboard-top {
    max-width: calc(100% - 338px);
    margin-right: auto;
}

.em-kpi-strip {
    gap: 8px;
}

.em-kpi-card {
    padding: 8px 10px;
    border-radius: 7px;
}

.em-kpi-card span {
    font-size: 10px;
}

.em-kpi-card strong {
    font-size: 12px;
}

.em-action-strip {
    gap: 8px;
}

.em-action-strip .button {
    min-height: 34px !important;
    padding: 6px 11px !important;
    font-size: 12px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    border: 1px solid #c8d4e6 !important;
    background: #ffffff !important;
    color: #304863 !important;
}

.em-action-strip .button .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}

.em-action-strip .button:hover,
.em-action-strip .button:focus {
    background: #f6faff !important;
    border-color: #aec1db !important;
    color: #213b5e !important;
}

.em-action-strip #em-quick-create {
    background: #eaf1fc !important;
    border-color: #c4d7ef !important;
    color: #163a60 !important;
}

.em-action-strip #em-quick-create:hover,
.em-action-strip #em-quick-create:focus {
    background: #dfeaf9 !important;
    border-color: #afc6e5 !important;
    color: #0f3156 !important;
}

.em-action-strip #em-quick-import-url {
    background: #f3f7ff !important;
    border-color: #cfdbef !important;
}

@media (max-width: 1280px) {
    .em-dashboard-top {
        max-width: 100%;
    }
}

/* v1.7 premium structure pass */
.em-wrap {
    --esmb-primary: #001d3d;
    --esmb-info: #eaf2ff;
    --esmb-info-border: #c8daf3;
    --esmb-warning-bg: #fff8eb;
    --esmb-warning-border: #f1c35b;
    --esmb-danger: #c62828;
}

/* keep content area intentional, not stretched */
.em-layout {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 14px 24px;
    align-items: start;
}

/* compact header height */
.em-shell-header {
    padding: 10px 18px !important;
}

.em-brand-logo {
    width: 60px;
    height: 60px;
}

.em-brand-copy h1 {
    font-size: 20px !important;
}

/* quick actions as segmented tool card */
.em-action-strip {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #d4dfef;
    border-radius: 9px;
    background: #ffffff;
}

.em-action-strip::before {
    content: "QUICK ACTIONS";
    position: absolute;
    top: -8px;
    left: 10px;
    padding: 0 6px;
    font-size: 10px;
    letter-spacing: 0.07em;
    color: #6e819f;
    background: #f4f6fa;
}

.em-action-strip .button {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 5px !important;
    border: 1px solid #cad7ea !important;
    background: #ffffff !important;
    color: #2f425f !important;
}

.em-action-strip #em-quick-create {
    background: var(--esmb-primary) !important;
    color: #ffffff !important;
    border-color: var(--esmb-primary) !important;
}

.em-action-strip #em-quick-import-url {
    background: var(--esmb-info) !important;
    border-color: var(--esmb-info-border) !important;
    color: #1f446f !important;
}

/* tidy KPI cards */
.em-kpi-card {
    border-radius: 8px;
    border: 1px solid #d8e2f0;
    background: #ffffff;
}

/* section dividers before CTAs */
.em-panel[data-tab-panel="migrate"] .em-migrate-grid > .em-card:first-child .em-options-groups {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5ecf6;
}

.em-panel[data-tab-panel="migrate"] .em-migrate-grid > .em-card:nth-child(2) .em-grid-2 {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5ecf6;
}

#em-create-backup,
#em-direct-migrate {
    min-width: 196px !important;
}

#em-create-backup {
    background: #ffffff !important;
    border: 1px solid #c8d4e6 !important;
    color: #243f61 !important;
}

#em-direct-migrate {
    background: var(--esmb-primary) !important;
    border-color: var(--esmb-primary) !important;
    color: #ffffff !important;
}

/* semantic warning styling */
.em-local-warning {
    background: var(--esmb-warning-bg) !important;
    border-color: var(--esmb-warning-border) !important;
    color: #8b5b00 !important;
}

/* right rail sticky on desktop */
.em-right-rail {
    position: sticky;
    top: 120px;
    align-self: start;
}

.em-help-item {
    border-color: #dbe5f2;
    background: #ffffff;
}

/* cleaner density */
.em-card h2 {
    font-size: 17px !important;
}

.em-checkfield span {
    font-size: 13px !important;
}

@media (max-width: 1280px) {
    .em-layout {
        max-width: 100%;
        padding: 0 10px 20px;
    }

    .em-right-rail {
        position: static;
    }

    .em-action-strip::before {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 2px;
        background: transparent;
        padding: 0;
    }
}

/* v2 premium layout: unified control bar + cleaner structure */
.em-shell-header,
.em-top-tabs-wrap {
    max-width: none !important;
}

/* Unified control bar inside content width */
.em-dashboard-top {
    max-width: 1360px !important;
    margin: 0 auto 12px !important;
    padding: 12px 14px !important;
    border: 1px solid #d8e2f0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.em-kpi-strip {
    order: 1;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.em-kpi-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    border: 1px solid #d3def0 !important;
    background: #f4f8ff !important;
    width: auto !important;
}

.em-kpi-card span {
    font-size: 10px !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    color: #6982a4 !important;
    margin: 0;
}

.em-kpi-card strong {
    font-size: 12px !important;
    font-weight: 700;
    color: #102743 !important;
}

.em-action-strip {
    order: 2;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0;
}

.em-action-strip::before {
    content: none !important;
}

.em-action-strip .button {
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* button hierarchy */
.em-action-strip #em-quick-create {
    background: #001d3d !important;
    border-color: #001d3d !important;
    color: #ffffff !important;
}

.em-action-strip #em-quick-import-file {
    background: #ffffff !important;
    border-color: #c6d4e7 !important;
    color: #2f4565 !important;
}

.em-action-strip #em-quick-import-url,
.em-action-strip #em-quick-backups {
    background: #edf3ff !important;
    border-color: #ccdbf2 !important;
    color: #214368 !important;
}

/* Main content alignment and cleaner hierarchy */
.em-layout {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 14px 24px !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.em-content-shell {
    padding: 14px !important;
    border-radius: 10px !important;
}

.em-panel[data-tab-panel="migrate"] .em-migrate-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) !important;
    gap: 12px !important;
}

.em-panel .em-card {
    border-radius: 10px !important;
    padding: 16px !important;
    border: 1px solid #d9e2ef !important;
    box-shadow: none !important;
}

.em-card h2 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
}

.em-card p,
.em-muted {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* reduce border noise in nested groups */
.em-options-group {
    border-color: #dde5f1 !important;
    background: #fbfdff !important;
}

.em-options-toggle {
    min-height: 44px !important;
}

.em-options-toggle h4 {
    font-size: 15px !important;
}

/* keep section dividers subtle */
.em-panel[data-tab-panel="migrate"] .em-migrate-grid > .em-card:first-child .em-options-groups,
.em-panel[data-tab-panel="migrate"] .em-migrate-grid > .em-card:nth-child(2) .em-grid-2 {
    border-bottom: 1px solid #e8eef7 !important;
}

/* Quick checks as slim full-width section below */
.em-right-rail {
    position: static !important;
    width: 100%;
}

.em-right-rail .em-help-card {
    border-radius: 10px !important;
    padding: 14px !important;
    background: #ffffff !important;
    border: 1px solid #d9e2ef !important;
}

.em-help-card h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
}

.em-help-context > p {
    margin-bottom: 8px !important;
}

.em-help-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.em-help-item {
    border-radius: 8px !important;
    padding: 9px 10px !important;
    background: #f8fbff !important;
    border: 1px solid #dbe5f3 !important;
    font-size: 13px !important;
}

/* warning/info semantics */
.em-local-warning {
    background: #fff8eb !important;
    border-color: #f1c35b !important;
    color: #8b5b00 !important;
}

.em-context-chip {
    background: #edf3ff !important;
    border-color: #cbdaf2 !important;
    color: #214368 !important;
}

.em-context-chip-soft {
    background: #f5f8fc !important;
    border-color: #d8e1ef !important;
    color: #60738f !important;
}

@media (max-width: 1280px) {
    .em-dashboard-top,
    .em-layout {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .em-panel[data-tab-panel="migrate"] .em-migrate-grid {
        grid-template-columns: 1fr !important;
    }

    .em-help-list {
        grid-template-columns: 1fr;
    }
}

/* v2.1 alignment fix: shared container grid + spacing correction */
.em-shell > .em-dashboard-top,
.em-shell > .em-layout {
    max-width: 1360px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
}

/* clear breathing space under tabs */
.em-shell > .em-dashboard-top {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
}

/* ensure control bar uses full shared width */
.em-dashboard-top {
    max-width: none !important;
}

/* body block aligns exactly with control bar */
.em-layout {
    max-width: none !important;
    padding-top: 0 !important;
    padding-bottom: 22px !important;
}

/* give page bottom breathing room */
.em-content-shell {
    padding-bottom: 22px !important;
}

/* quick checks spacing at bottom */
.em-right-rail,
.em-right-rail .em-help-card {
    margin-bottom: 16px !important;
}

@media (max-width: 1280px) {
    .em-shell > .em-dashboard-top,
    .em-shell > .em-layout {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .em-shell > .em-dashboard-top {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}

/* v2.2 exact alignment + improved action box */
.em-shell {
    --em-page-max: 1360px;
    --em-page-gutter: 14px;
    --em-shell-inset: 20px;
}

/* match top controls with body frame exactly */
.em-shell > .em-dashboard-top,
.em-shell > .em-layout {
    max-width: var(--em-page-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* inset top controls to align with .em-content-shell border start */
.em-shell > .em-dashboard-top {
    padding-left: calc(var(--em-page-gutter) + var(--em-shell-inset)) !important;
    padding-right: calc(var(--em-page-gutter) + var(--em-shell-inset)) !important;
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.em-shell > .em-layout {
    padding-left: var(--em-page-gutter) !important;
    padding-right: var(--em-page-gutter) !important;
}

/* cleaner control blocks */
.em-kpi-strip {
    margin-bottom: 8px !important;
}

.em-kpi-strip,
.em-action-strip {
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
}

.em-action-strip {
    gap: 8px;
}

.em-action-strip .button {
    min-height: 34px !important;
    padding: 6px 11px !important;
    border-radius: 5px !important;
}

.em-action-strip #em-quick-create {
    background: #001d3d !important;
    border-color: #001d3d !important;
    color: #fff !important;
}

.em-action-strip #em-quick-import-file {
    background: #fff !important;
    border-color: #c9d6e8 !important;
    color: #304763 !important;
}

.em-action-strip #em-quick-import-url,
.em-action-strip #em-quick-backups {
    background: #edf3ff !important;
    border-color: #ccdbf2 !important;
    color: #214368 !important;
}

/* ensure bottom breathing room */
.em-content-shell {
    padding-bottom: 24px !important;
}

.em-right-rail,
.em-right-rail .em-help-card {
    margin-bottom: 18px !important;
}

@media (max-width: 1280px) {
    .em-shell > .em-dashboard-top,
    .em-shell > .em-layout {
        max-width: 100% !important;
    }

    .em-shell > .em-dashboard-top {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .em-shell > .em-layout {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* v2.3 final alignment correction */
/* Remove quick actions from main page as requested */
.em-action-strip {
    display: none !important;
}

/* Match KPI container width exactly with body container */
.em-shell {
    --em-page-max: 1360px;
    --em-page-gutter: 14px;
}

.em-shell > .em-dashboard-top,
.em-shell > .em-layout {
    max-width: var(--em-page-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding-left: var(--em-page-gutter) !important;
    padding-right: var(--em-page-gutter) !important;
}

/* Keep vertical breathing space under tabs */
.em-shell > .em-dashboard-top {
    margin-top: 14px !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* KPI bar style without changing overall container width */
.em-kpi-strip {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #d8e2f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

.em-kpi-card {
    border: 1px solid #d5e0ef !important;
    background: #f8fbff !important;
    border-radius: 999px !important;
    padding: 7px 12px !important;
    width: auto !important;
}

/* Body spacing */
.em-layout {
    padding-top: 0 !important;
    padding-bottom: 22px !important;
}

.em-content-shell {
    padding-bottom: 24px !important;
}

@media (max-width: 1280px) {
    .em-shell > .em-dashboard-top,
    .em-shell > .em-layout {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}


/* v3.0 cleanup final: stable frame, alignment, and table fit */
.em-page-frame {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 14px 26px;
    box-sizing: border-box;
}

.em-dashboard-top {
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.em-action-strip {
    display: none !important;
}

.em-kpi-strip {
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #d8e2f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.em-kpi-card {
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    border: 1px solid #d5e0ef !important;
    background: #f8fbff !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
}

.em-layout {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.em-content-shell {
    padding-bottom: 24px !important;
}

.em-panel {
    margin-bottom: 14px;
}

/* Keep backup table fully visible without horizontal scrolling */
.sengine-backups-table-wrap {
    overflow-x: hidden !important;
}

.sengine-backups-table {
    width: 100%;
    table-layout: fixed;
}

.sengine-backups-table th:nth-child(1),
.sengine-backups-table td:nth-child(1) {
    width: 45%;
}

.sengine-backups-table th:nth-child(2),
.sengine-backups-table td:nth-child(2) {
    width: 14%;
}

.sengine-backups-table th:nth-child(3),
.sengine-backups-table td:nth-child(3) {
    width: 20%;
}

.sengine-backups-table th:nth-child(4),
.sengine-backups-table td:nth-child(4) {
    width: 21%;
    min-width: 0 !important;
}

.em-backup-name strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-backup-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.em-wrap .em-backup-actions .button {
    min-height: 30px !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 700;
}

.em-wrap .em-backup-actions .em-backup-restore {
    background: #001d3d !important;
    border-color: #001d3d !important;
    color: #fff !important;
}

.em-wrap .em-backup-actions .em-backup-details {
    background: #e8f0ff !important;
    border-color: #bfd2f3 !important;
    color: #173c72 !important;
}

/* Prevent right rail clipping at page bottom */
.em-right-rail,
.em-right-rail .em-help-card {
    margin-bottom: 18px !important;
}

@media (max-width: 1280px) {
    .em-page-frame {
        padding-left: 10px;
        padding-right: 10px;
    }

    .em-kpi-strip {
        grid-template-columns: 1fr;
    }
}


/* v3.1 migrate success actions */
.em-migrate-complete-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

#em-migrate-complete-actions .button {
    min-height: 34px;
    border-radius: 5px;
    padding: 7px 12px;
    font-weight: 700;
}

#em-migrate-view-destination {
    background: #e8f0ff;
    border-color: #bfd2f3;
    color: #173c72;
}

#em-migrate-view-destination:hover,
#em-migrate-view-destination:focus {
    background: #dbe9ff;
    border-color: #a9c4ed;
    color: #122f5e;
}
