:root {
    --pws-ml-blue: #2563eb;
    --pws-ml-blue-dark: #1d4ed8;
    --pws-ml-ink: #172033;
    --pws-ml-muted: #64748b;
    --pws-ml-line: #dfe6ef;
    --pws-ml-soft: #f6f8fb;
    --pws-ml-white: #fff;
    --pws-ml-radius: 14px;
    --pws-ml-control-height: 40px;
    --pws-ml-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .045);
}

/* Hide only Yoast's deleted-URL Premium upsell across WP Admin. */
.yoast-notification:has(.yoast-button-upsell[data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2"]) {
    display: none !important;
}

.pws-ml-admin {
    max-width: 1440px;
    margin: 20px 20px 0 2px;
    color: var(--pws-ml-ink);
    -webkit-font-smoothing: antialiased;
}

.pws-ml-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 106px;
    padding: 22px 26px;
    border: 1px solid #dbe7fb;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(120deg, #fff 30%, #f0f6ff 100%);
    box-sizing: border-box;
}

.pws-ml-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .22);
}

.pws-ml-brand-mark .dashicons { width: 28px; height: 28px; font-size: 28px; }
.pws-ml-hero-copy { flex: 1; min-width: 0; }
.pws-ml-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; color: var(--pws-ml-blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pws-ml-eyebrow span { padding: 2px 7px; color: #64748b; border: 1px solid #dbe3ee; border-radius: 999px; background: #fff; font-size: 10px; letter-spacing: 0; }
.pws-ml-hero h1 { margin: 0; color: #111827; font-size: 27px; line-height: 1.2; font-weight: 700; }
.pws-ml-hero p { max-width: 780px; margin: 6px 0 0; color: var(--pws-ml-muted); font-size: 14px; line-height: 1.55; }
.pws-ml-hero-button { display: inline-flex !important; align-items: center; gap: 5px; flex: 0 0 auto; }
.pws-ml-hero-button .dashicons { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; font-size: 16px; line-height: 16px; }

.pws-ml-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0 14px;
    border: solid var(--pws-ml-line);
    border-width: 0 1px 1px;
    background: #fff;
    scrollbar-width: thin;
}

.pws-ml-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 49px;
    padding: 0 12px;
    color: #526072;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.pws-ml-tab:hover { color: var(--pws-ml-blue); }
.pws-ml-tab:focus { box-shadow: none; }
.pws-ml-tab:focus-visible { outline: 2px solid var(--pws-ml-blue); outline-offset: -3px; border-radius: 5px; }
.pws-ml-tab.is-active { color: var(--pws-ml-blue-dark); }
.pws-ml-tab.is-active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pws-ml-blue); content: ""; }
.pws-ml-tab .dashicons { width: 17px; height: 17px; font-size: 17px; }

.pws-ml-content { display: grid; gap: 18px; padding: 22px 0 50px; }
.pws-ml-content > .notice { margin: 0; border-radius: 8px; box-shadow: none; }
.pws-ml-content > .notice p { margin: 10px 0; }

.pws-ml-card,
.pws-ml-metric {
    min-width: 0;
    border: 1px solid var(--pws-ml-line);
    border-radius: var(--pws-ml-radius);
    background: var(--pws-ml-white);
    box-shadow: var(--pws-ml-shadow);
    box-sizing: border-box;
}

.pws-ml-card { padding: 22px; }
.pws-ml-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.pws-ml-card-head h2 { margin: 0; color: var(--pws-ml-ink); font-size: 17px; line-height: 1.35; }
.pws-ml-card-head p { margin: 5px 0 0; color: var(--pws-ml-muted); line-height: 1.5; }
.pws-ml-card-head > .dashicons { width: 22px; height: 22px; color: var(--pws-ml-blue); font-size: 22px; }
.pws-ml-card-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pws-ml-card-tools .pws-ml-inline-action { margin: 0; }

.pws-ml-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pws-ml-metric { display: flex; align-items: flex-start; gap: 15px; padding: 18px; }
.pws-ml-metric-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px !important; height: 42px !important; color: var(--pws-ml-blue); border-radius: 11px; background: #eff6ff; font-size: 21px !important; line-height: 42px !important; }
.pws-ml-metric.success .pws-ml-metric-icon { color: #15803d; background: #f0fdf4; }
.pws-ml-metric.warning .pws-ml-metric-icon { color: #b45309; background: #fffbeb; }
.pws-ml-metric-value { display: block; margin: -2px 0 2px; color: #0f172a; font-size: 25px; line-height: 1.1; font-weight: 750; }
.pws-ml-metric h2 { margin: 0; color: #334155; font-size: 13px; }
.pws-ml-metric p { margin: 4px 0 0; color: var(--pws-ml-muted); font-size: 12px; }

.pws-ml-dashboard-grid,
.pws-ml-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pws-ml-status-list { border-top: 1px solid #edf1f6; }
.pws-ml-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 45px; border-bottom: 1px solid #edf1f6; }
.pws-ml-status-row > span:first-child { color: #334155; font-weight: 600; }

.pws-ml-badge { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 9px; color: #475569; border: 1px solid #dbe3ec; border-radius: 999px; background: #f8fafc; font-size: 11px; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.pws-ml-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.pws-ml-badge.info { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.pws-ml-badge.info .pws-ml-badge-dot { background: #3b82f6; }
.pws-ml-badge.success { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.pws-ml-badge.success .pws-ml-badge-dot { background: #22c55e; }
.pws-ml-badge.warning { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.pws-ml-badge.warning .pws-ml-badge-dot { background: #f59e0b; }
.pws-ml-badge.danger { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.pws-ml-badge.danger .pws-ml-badge-dot { background: #ef4444; }

.pws-ml-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pws-ml-quick-action { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 12px; color: var(--pws-ml-ink); border: 1px solid #e5eaf1; border-radius: 10px; background: #fbfcfe; text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.pws-ml-quick-action:hover { color: var(--pws-ml-blue-dark); border-color: #bfdbfe; background: #f5f9ff; transform: translateY(-1px); }
.pws-ml-quick-action > .dashicons:first-child { flex: 0 0 30px; width: 30px; height: 30px; color: var(--pws-ml-blue); border-radius: 8px; background: #eaf2ff; font-size: 17px; line-height: 30px; text-align: center; }
.pws-ml-quick-action > span:nth-child(2) { flex: 1; min-width: 0; }
.pws-ml-quick-action strong, .pws-ml-quick-action small { display: block; }
.pws-ml-quick-action small { overflow: hidden; margin-top: 2px; color: var(--pws-ml-muted); text-overflow: ellipsis; white-space: nowrap; }
.pws-ml-quick-action > .dashicons:last-child { width: 16px; height: 16px; color: #94a3b8; font-size: 16px; }

.pws-ml-health-card { padding-bottom: 18px; }
.pws-ml-callout { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 13px 15px; border: 1px solid; border-radius: 10px; }
.pws-ml-callout:first-of-type { margin-top: 0; }
.pws-ml-callout.success { color: #14532d; border-color: #bbf7d0; background: #f0fdf4; }
.pws-ml-callout.warning { color: #78350f; border-color: #fde68a; background: #fffbeb; }
.pws-ml-callout.danger { color: #7f1d1d; border-color: #fecaca; background: #fef2f2; }
.pws-ml-callout strong { display: block; }
.pws-ml-callout p { margin: 3px 0 0; color: inherit; opacity: .85; }

.pws-ml-table-wrap { overflow-x: auto; margin: 0 -22px -22px; border-radius: 0 0 var(--pws-ml-radius) var(--pws-ml-radius); }
.pws-ml-card-head + .pws-ml-table-wrap { border-top: 1px solid var(--pws-ml-line); }
.pws-ml-data-table { width: 100%; border: 0 !important; border-collapse: separate; border-spacing: 0; box-shadow: none !important; }
.pws-ml-data-table thead th { padding: 12px 15px; color: #536174; border-bottom: 1px solid var(--pws-ml-line); background: #f8fafc; font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.pws-ml-data-table tbody td,
.pws-ml-data-table tbody th { padding: 13px 15px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.pws-ml-data-table tbody tr:last-child td,
.pws-ml-data-table tbody tr:last-child th { border-bottom: 0; }
.pws-ml-data-table.striped > tbody > :nth-child(odd) { background: #fff; }
.pws-ml-data-table tbody tr:hover { background: #f8fbff !important; }
.pws-ml-data-table code,
.pws-ml-admin code { padding: 2px 6px; color: #40516a; border-radius: 5px; background: #eef2f7; font-size: 11px; }
.pws-ml-broken { color: #b91c1c; font-weight: 600; }
.pws-ml-data-table textarea { min-width: 190px; resize: vertical; }
.pws-ml-data-table input.regular-text { width: 100%; min-width: 180px; }
.pws-ml-row-actions { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.pws-ml-delete-language { display: inline-flex; align-items: center; margin: 0; }
.pws-ml-delete-language .button { color: #b32d2e; border-color: #e7b4b6; background: #fff; }
.pws-ml-delete-language .button:hover { color: #8a2424; border-color: #d66b70; background: #fff7f7; }
.pws-ml-edit-language { display: inline-flex !important; align-items: center; gap: 4px; }
.pws-ml-edit-language .dashicons { width: 14px; height: 14px; margin-top: 3px; font-size: 14px; }
.pws-ml-admin input[readonly] { color: #64748b; border-color: #dbe3ec; background: #f1f5f9; cursor: not-allowed; }
.pws-ml-custom-flag-control { display: flex; align-items: center; gap: 14px; }
.pws-ml-custom-flag-preview { display: grid; place-items: center; width: 96px; height: 72px; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; }
.pws-ml-custom-flag-preview.is-empty::before { color: #94a3b8; content: "No image"; font-size: 11px; }
.pws-ml-custom-flag-preview img { display: block; width: 64px; height: 48px; object-fit: cover; }
.pws-ml-custom-flag-buttons { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }

.pws-ml-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -5px 0 18px; }
.pws-ml-toolbar form { display: flex; align-items: center; gap: 8px; }
.pws-ml-empty { display: grid; place-items: center; min-height: 150px; color: var(--pws-ml-muted); text-align: center; }
.pws-ml-empty .dashicons { width: 32px; height: 32px; margin-bottom: 8px; color: #94a3b8; font-size: 32px; }
.pws-ml-empty strong { color: #334155; font-size: 14px; }
.pws-ml-empty p { margin: 5px 0 0; }

.pws-ml-form-card .form-table { width: 100%; margin: 0; border: 0; background: transparent; }
.pws-ml-form-card .form-table th { width: 210px; padding: 16px 24px 16px 0; color: #334155; font-weight: 650; vertical-align: top; }
.pws-ml-form-card .form-table td { padding: 12px 0; vertical-align: top; }
.pws-ml-form-card .form-table th label { display: inline-block; padding-top: 9px; }
.pws-ml-form-card .form-table td > label:not(.pws-ml-domain-row) { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0 16px 4px 0; }
.pws-ml-settings-section { margin: 24px -24px 0; padding: 20px 24px 4px; border-top: 1px solid var(--pws-ml-border); }
.pws-ml-settings-section h2 { margin: 0 0 6px; font-size: 18px; }
.pws-ml-settings-section p { margin: 0; color: var(--pws-ml-muted); }
.pws-ml-url-mode-options { display: grid; gap: 5px; }
.pws-ml-url-mode-option { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; font-weight: 500; }
.pws-ml-url-mode-options .description { margin: -2px 0 8px 25px; }
.pws-ml-admin input[type="text"],
.pws-ml-admin input:not([type]),
.pws-ml-admin input[type="password"],
.pws-ml-admin input[type="number"],
.pws-ml-admin input[type="email"],
.pws-ml-admin input[type="search"],
.pws-ml-admin input[type="url"],
.pws-ml-admin select,
.pws-ml-admin textarea { border-color: #cbd5e1; border-radius: 7px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.pws-ml-admin input[type="text"],
.pws-ml-admin input:not([type]),
.pws-ml-admin input[type="password"],
.pws-ml-admin input[type="number"],
.pws-ml-admin input[type="email"],
.pws-ml-admin input[type="search"],
.pws-ml-admin input[type="url"],
.pws-ml-admin select {
    height: var(--pws-ml-control-height);
    min-height: var(--pws-ml-control-height);
    padding-top: 0;
    padding-bottom: 0;
    line-height: calc(var(--pws-ml-control-height) - 2px);
    box-sizing: border-box;
}
.pws-ml-admin input[type="text"],
.pws-ml-admin input:not([type]),
.pws-ml-admin input[type="password"],
.pws-ml-admin input[type="number"],
.pws-ml-admin input[type="email"],
.pws-ml-admin input[type="search"],
.pws-ml-admin input[type="url"] { padding-right: 11px; padding-left: 11px; }
.pws-ml-admin textarea { min-height: 72px; padding: 9px 11px; line-height: 1.45; box-sizing: border-box; }
.pws-ml-admin input[type="checkbox"],
.pws-ml-admin input[type="radio"] { margin: 0 6px 0 0; vertical-align: -2px; }
.pws-ml-admin .button:not(.button-small) { display: inline-flex; align-items: center; justify-content: center; min-height: var(--pws-ml-control-height); padding: 0 15px; line-height: 1.2; box-sizing: border-box; }
.pws-ml-admin .button-small,
.pws-ml-admin .pws-ml-edit-language { height: 32px !important; min-height: 32px; padding: 0 10px; line-height: 30px; box-sizing: border-box; }
.pws-ml-admin input:focus,
.pws-ml-admin select:focus,
.pws-ml-admin textarea:focus { border-color: var(--pws-ml-blue); box-shadow: 0 0 0 1px var(--pws-ml-blue); }
.pws-ml-admin .description { margin: 6px 0 0; color: var(--pws-ml-muted); line-height: 1.45; }
.pws-ml-form-actions { display: flex; justify-content: flex-end; margin: 20px -22px -22px; padding: 15px 22px; border-top: 1px solid var(--pws-ml-line); border-radius: 0 0 var(--pws-ml-radius) var(--pws-ml-radius); background: #fafbfd; }
.pws-ml-form-actions .button-primary { min-width: 116px; }
.pws-ml-confirm { color: #475569; font-weight: 600; }
.pws-ml-admin .pws-ml-confirm input { margin: 0 6px 0 0 !important; vertical-align: -2px; }
.pws-ml-inline-action { display: inline-flex; align-items: center; gap: 8px; margin: 8px 8px 8px 0; }
.pws-ml-upload-field { display: grid; place-items: center; gap: 9px; min-height: 150px; padding: 18px; border: 1px dashed #b8c5d6; border-radius: 11px; background: #f8fafc; text-align: center; }
.pws-ml-upload-field .dashicons { width: 30px; height: 30px; color: var(--pws-ml-blue); font-size: 30px; }
.pws-ml-upload-field small { color: var(--pws-ml-muted); }
.pws-ml-summary-line { display: flex; align-items: baseline; gap: 7px; color: var(--pws-ml-muted); }
.pws-ml-summary-line strong { color: var(--pws-ml-ink); font-size: 28px; }
.pws-ml-section .notice.inline { margin: 10px 0; border-radius: 7px; box-shadow: none; }
.pws-ml-card > .notice.inline { margin: 0 0 18px; border-radius: 8px; box-shadow: none; }
.pws-ml-card > form > .pws-ml-table-wrap { border-top: 1px solid var(--pws-ml-line); }
.pws-ml-domain-list { display: grid; gap: 8px; max-width: 520px; }
.pws-ml-domain-row { display: grid; grid-template-columns: 36px minmax(220px, 1fr); align-items: center; gap: 10px; margin: 0; }
.pws-ml-domain-row .regular-text { width: 100%; }
.pws-ml-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; max-width: 1180px; }
.pws-ml-choice-grid label { display: flex; align-items: center; gap: 7px; min-height: 28px; margin: 0; }

.pws-language-switcher-inline { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; list-style: none; }
.pws-language-flag { font-size: 1.1em; line-height: 1; }

.pws-ml-switcher-options {
    clear: both;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #dbe5f2;
    border-radius: 7px;
    background: #f7faff;
}

.pws-ml-switcher-options .description {
    margin: 0 0 8px;
}

.pws-ml-switcher-options .description:last-child {
    margin-bottom: 0;
}

.pws-ml-switcher-options label {
    color: #334155;
    font-style: normal;
}

@media (max-width: 1180px) {
    .pws-ml-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pws-ml-tab { padding-inline: 10px; }
    .pws-ml-tab .dashicons { display: none; }
}

@media (max-width: 960px) {
    .pws-ml-dashboard-grid,
    .pws-ml-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
    .pws-ml-admin { margin-right: 10px; }
    .pws-ml-hero { align-items: flex-start; padding: 18px; }
    .pws-ml-brand-mark { flex-basis: 44px; width: 44px; height: 44px; }
    .pws-ml-hero h1 { font-size: 23px; }
    .pws-ml-hero-button { display: none !important; }
    .pws-ml-tabs { padding-inline: 7px; }
    .pws-ml-tab { min-height: 45px; }
    .pws-ml-content { padding-top: 16px; }
    .pws-ml-card { padding: 18px; }
    .pws-ml-table-wrap { margin: 0 -18px -18px; }
    .pws-ml-form-card .form-table th,
    .pws-ml-form-card .form-table td { display: block; width: auto; padding: 8px 0; }
    .pws-ml-form-card .form-table th { padding-top: 16px; }
    .pws-ml-form-card .form-table,
    .pws-ml-form-card .form-table tbody,
    .pws-ml-form-card .form-table tr { display: block; width: 100%; table-layout: fixed; }
    .pws-ml-form-card .form-table input.regular-text,
    .pws-ml-form-card .form-table select,
    .pws-ml-form-card .form-table textarea { width: 100%; max-width: 100%; }
    .pws-ml-choice-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pws-ml-form-actions { margin: 18px -18px -18px; padding: 14px 18px; }
}

@media (max-width: 600px) {
    .pws-ml-hero { gap: 12px; }
    .pws-ml-hero p { font-size: 13px; }
    .pws-ml-metrics,
    .pws-ml-quick-actions { grid-template-columns: 1fr; }
    .pws-ml-card-head { flex-direction: column; }
    .pws-ml-card-tools { width: 100%; justify-content: flex-start; }
    .pws-ml-toolbar { align-items: stretch; flex-direction: column; }
    .pws-ml-toolbar form { width: 100%; }
    .pws-ml-toolbar select { flex: 1; }
    .pws-ml-choice-grid { grid-template-columns: 1fr; }
}

[dir="rtl"] .pws-ml-confirm input { margin-right: 0; margin-left: 5px; }
[dir="rtl"] .pws-ml-inline-action { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .pws-ml-admin input[type="checkbox"],
[dir="rtl"] .pws-ml-admin input[type="radio"] { margin-right: 0; margin-left: 6px; }

/* Native post, page, and taxonomy language controls. */
.pws-ml-native-language-box { display: grid; gap: 14px; }
.pws-ml-native-label,
.pws-ml-native-heading { color: #1d2327; font-weight: 600; }
.pws-ml-native-heading { margin-top: 3px; }
.pws-ml-language-select { display: flex; align-items: center; gap: 10px; }
.pws-ml-language-select select { min-width: 0; flex: 1; height: 40px; min-height: 40px; }
.pws-ml-flag-wrap { display: inline-flex; align-items: center; justify-content: center; gap: 4px; line-height: 1; vertical-align: middle; }
.pws-ml-admin-flag { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 16px; object-fit: cover; font-style: normal; line-height: 1; vertical-align: middle; }
.pws-ml-admin-flag-emoji img { width: 22px !important; height: 16px !important; margin: 0 !important; object-fit: cover; }
.pws-ml-admin-flag-code { border: 1px solid #c3c4c7; border-radius: 2px; background: #f6f7f7; color: #50575e; font-size: 8px; font-weight: 700; }
.pws-ml-translation-row { display: flex; align-items: center; gap: 7px; min-height: 34px; }
.pws-ml-translation-row .pws-ml-flag-wrap { flex: 0 0 22px; }
.pws-ml-translation-action { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #2271b1; text-decoration: none; }
.pws-ml-translation-action:hover,
.pws-ml-translation-action:focus { color: #135e96; }
.pws-ml-translation-action .dashicons { width: 18px; height: 18px; font-size: 18px; }
.pws-ml-duplicate-action { color: #8c8f94; }
.pws-ml-unlink-action { margin-left: auto; color: #b32d2e; }
.pws-ml-linked-title { min-width: 0; overflow: hidden; color: #50575e; text-overflow: ellipsis; white-space: nowrap; }
.pws-ml-connect-select { min-width: 0; width: 100%; height: 36px; min-height: 36px; }
.wp-list-table th[class*="column-pws_ml_lang_"],
.wp-list-table td[class*="column-pws_ml_lang_"] { width: 44px; padding-right: 5px; padding-left: 5px; text-align: center; }
.wp-list-table th[class*="column-pws_ml_lang_"] .pws-ml-flag-wrap,
.wp-list-table td[class*="column-pws_ml_lang_"] .pws-ml-flag-wrap { justify-content: center; }
.wp-list-table .pws-ml-empty-cell { color: #a7aaad; }
.pws-ml-term-language .pws-ml-language-select { max-width: 540px; }
.pws-ml-term-translations .pws-ml-translation-row { max-width: 540px; margin-bottom: 7px; }
.term-php .pws-ml-term-translations .pws-ml-connect-select { max-width: 420px; }

@media (max-width: 782px) {
    .wp-list-table th[class*="column-pws_ml_lang_"],
    .wp-list-table td[class*="column-pws_ml_lang_"] { width: 38px; }
}

.pws-ml-setup { max-width: 1040px; margin: 32px auto; }
.pws-ml-setup-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.pws-ml-setup-header > .dashicons { width: 54px; height: 54px; border-radius: 14px; background: #2271b1; color: #fff; font-size: 34px; line-height: 54px; text-align: center; }
.pws-ml-setup-header h1 { margin: 0 0 5px; font-size: 28px; }
.pws-ml-setup-header p { margin: 0; color: #646970; font-size: 15px; }
.pws-ml-setup-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.pws-ml-setup-progress li { display: flex; align-items: center; gap: 7px; color: #646970; font-weight: 600; }
.pws-ml-setup-progress li span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid #c3c4c7; border-radius: 50%; background: #fff; }
.pws-ml-setup-progress li.is-active { color: #135e96; }
.pws-ml-setup-progress li.is-active span { border-color: #2271b1; background: #2271b1; color: #fff; }
.pws-ml-setup-progress li.is-complete span { border-color: #00a32a; color: #008a20; }
.pws-ml-setup-card { padding: 28px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.pws-ml-setup-card > h2 { margin-top: 0; font-size: 24px; }
.pws-ml-setup-language-list { max-height: 420px; margin: 20px 0; overflow: auto; border: 1px solid #dcdcde; }
.pws-ml-setup-choice { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid #dcdcde; border-radius: 6px; background: #f6f7f7; }
.pws-ml-setup-choice input { margin-top: 3px; }
.pws-ml-setup-choice span { display: grid; gap: 5px; }
.pws-ml-setup-choice small { color: #646970; }
.pws-ml-setup-field { display: grid; gap: 7px; margin: 20px 0; max-width: 420px; font-weight: 600; }
.pws-ml-setup-field select { max-width: 100%; }
.pws-ml-setup-actions { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid #dcdcde; }
.pws-ml-setup-skip { margin-top: 15px; text-align: center; }
.pws-ml-setup-callout { padding: 18px; border-left: 4px solid #2271b1; background: #f0f6fc; }
.pws-ml-setup-callout p { margin-bottom: 0; }
.pws-ml-setup-ready { max-width: 700px; margin: 20px auto; text-align: center; }
.pws-ml-setup-ready > .dashicons { width: 70px; height: 70px; color: #00a32a; font-size: 70px; }
.pws-ml-setup-ready h2 { font-size: 30px; }
.pws-ml-setup-ready ul { display: inline-block; margin: 18px auto; text-align: left; }

@media (max-width: 782px) {
    .pws-ml-setup { margin: 18px 10px 0 0; }
    .pws-ml-setup-progress { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
    .pws-ml-setup-card { padding: 20px; }
}
