:root {
    --wps-border-color: #2271b1;
    --wps-tabs-bg-selected: #2271b1;
    --wps-tabs-text-selected: #ffffff;
    --wps-main-dark: #135e96;
    --wps-main-light: #f6f7f7;
    --wps-header-text: #ffffff;
    --wps-bg-primary: #f0f2f5;
    --wps-bg-white: #ffffff;
    --wps-text-primary: #1d2327;
    --wps-text-secondary: #2c3338;
    --wps-accent: #2271b1;
    --wps-accent-rgb: 34 113 177;
    --wps-shadow-light: 0 1px 2px rgb(16 24 40 / 6%);
    --wps-shadow-medium: 0 6px 20px rgb(16 24 40 / 8%);
    --wps-radius-sm: 8px;
    --wps-radius-md: 12px;
    --wps-transition: 220ms ease;
    --wps-btn-neutral-text: #1d2327;
    --wps-btn-neutral-border: #b7c1cb;
    --wps-btn-neutral-bg: #f3f6fa;
    --wps-btn-neutral-shadow: 0 2px 8px rgb(16 24 40 / 8%);
    --wps-btn-info-text: #ffffff;
    --wps-btn-info-border: #135e96;
    --wps-btn-info-bg: #2271b1;
    --wps-btn-info-shadow: 0 6px 14px rgb(19 94 150 / 24%);
    --wps-btn-info-bg-hover: #1c67a4;
    --wps-btn-info-border-hover: #0f5a90;
    --wps-btn-info-shadow-hover: 0 8px 16px rgb(19 94 150 / 28%);
    --wps-btn-success-text: #ffffff;
    --wps-btn-success-border: #166534;
    --wps-btn-success-bg: #16a34a;
    --wps-btn-success-shadow: 0 6px 14px rgb(21 128 61 / 28%);
    --wps-btn-warning-text: #ffffff;
    --wps-btn-warning-border: #a44a07;
    --wps-btn-warning-bg: #d97706;
    --wps-btn-warning-shadow: 0 6px 14px rgb(194 65 12 / 26%);
    --wps-btn-danger-text: #ffffff;
    --wps-btn-danger-border: #7a2f1f;
    --wps-btn-danger-bg: #b54d33;
    --wps-btn-danger-shadow: 0 6px 14px rgb(140 55 36 / 30%);
}

.wps-wrap a:hover,
.wps-wrap a:focus {
    color: var(--wps-border-color);
}

/* Keep anchor-buttons colored like buttons on hover/focus (not like generic links). */
.wps-wrap a.wpopt-btn:hover,
.wps-wrap a.wpopt-btn:focus {
    color: var(--wpopt-btn-text, #ffffff);
}

.wpopt-shell,
.wpopt-sidebar {
    position: relative;
    z-index: 1;
}

.wpopt-dashboard-shell .wpopt-sidebar {
    margin-top: 50px;
}

body.wpopt-admin-screen .wpopt-dashboard-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: var(--wps-admin-page-gutter) !important;
}

body.wpopt-admin-screen .wpopt-dashboard-shell .wpopt-sidebar > * {
    margin-top: 0 !important;
}

body.wpopt-admin-screen .wpopt-dashboard-shell block.wps,
body.wpopt-admin-screen .wpopt-dashboard-shell .wps-box {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.wpopt-admin-screen .wpopt-dashboard-shell .wpopt-panel {
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}

body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard.wpopt-dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard .wpopt-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
    max-width: none;
    margin-top: 0 !important;
}

body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard .wpopt-sidebar .wps-box {
    margin-bottom: 0;
}

.wpopt-hero {
    overflow: hidden;
}

.wpopt-hero-subtitle {
    margin: 0 0 14px;
    color: #2c3338;
    font-size: 0.96rem;
    max-width: 74ch;
}

.wpopt-actions,
.wpopt-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpopt-log-actions-panel {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px !important;
    padding: 16px 18px !important;
    border: 1px solid #dbe7f4;
    border-radius: 10px;
    background: #ffffff;
}

.wpopt-log-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: 0;
}

.wpopt-log-actions-row strong {
    color: #25364d;
    font-size: 13px;
    font-weight: 800;
}

.wpopt-muted {
    margin: 0 0 12px;
    color: #3c434a;
}

.wpopt-activity-shell {
    display: grid;
    gap: 16px;
    margin: 4px 0 18px;
}

.wpopt-activity-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wpopt-activity-kpi {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 94px;
    padding: 18px 22px;
    border: 1px solid #dbe7f4;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgb(15 44 82 / 7%);
}

.wpopt-activity-kpi-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(var(--wps-accent-rgb) / 10%);
    color: var(--wps-border-color);
}

.wpopt-activity-kpi-icon .wps-svg-icon {
    width: 23px;
    height: 23px;
}

.wpopt-activity-kpi span:not(.wpopt-activity-kpi-icon) {
    display: block;
    margin-bottom: 5px;
    color: #66758d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wpopt-activity-kpi strong {
    display: block;
    color: #0d1f3a;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.05;
}

.wpopt-activity-daily {
    padding: 20px 22px 16px;
    border: 1px solid #dbe7f4;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgb(15 44 82 / 7%);
}

.wpopt-activity-daily-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 22px;
    margin-bottom: 12px;
}

.wpopt-activity-daily-title h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #0d1f3a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.wpopt-activity-daily-title p {
    margin: 7px 0 0;
    color: #66758d;
    font-size: 13px;
}

.wpopt-activity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 0;
}

.wpopt-activity-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #28415f;
    font-size: 12px;
    font-weight: 700;
}

.wpopt-activity-legend-swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0f8f94;
}

.wpopt-activity-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 92px);
    gap: 8px;
}

.wpopt-activity-stat-card {
    min-height: 76px;
    padding: 12px 13px;
    border: 1px solid #dbe7f4;
    border-radius: 7px;
    background: #f7fbff;
}

.wpopt-activity-stat-card span {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wpopt-activity-stat-card strong {
    display: block;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.wpopt-activity-stat-card small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
}

.wpopt-activity-stat-card.is-primary {
    border-color: #0e8a91;
    background: linear-gradient(135deg, #0d969b 0%, #08787d 100%);
    color: #ffffff;
}

.wpopt-activity-stat-card.is-primary span,
.wpopt-activity-stat-card.is-primary small {
    color: rgb(255 255 255 / 82%);
}

.wpopt-activity-stat-card.is-average {
    border-color: #cfe0f3;
    background: #eef6ff;
    color: #2055a4;
}

.wpopt-activity-stat-card.is-average span,
.wpopt-activity-stat-card.is-average small {
    color: #446991;
}

.wpopt-activity-stat-card.is-peak {
    border-color: #f3dac6;
    background: #fff5eb;
    color: #d85b1f;
}

.wpopt-activity-stat-card.is-peak span,
.wpopt-activity-stat-card.is-peak small {
    color: #a86235;
}

.wpopt-activity-line-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.wpopt-activity-grid-line {
    stroke: #e2eaf3;
    stroke-width: 1;
}

.wpopt-activity-axis-line {
    stroke: #cbd8e6;
    stroke-width: 1;
}

.wpopt-activity-axis-label,
.wpopt-activity-date-label {
    fill: #66758d;
    font-size: 11px;
}

.wpopt-activity-date-label {
    text-anchor: middle;
}

.wpopt-activity-line {
    fill: none;
    stroke: #0b7f7f;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpopt-activity-point {
    fill: #0b7f7f;
    stroke: #ffffff;
    stroke-width: 1.5;
}

.wpopt-activity-value-label {
    fill: #28415f;
    font-size: 11px;
    font-weight: 800;
    text-anchor: middle;
}

.wpopt-activity-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .wpopt-activity-kpis,
    .wpopt-activity-daily-head {
        grid-template-columns: 1fr;
    }

    .wpopt-activity-stat-grid {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }
}

@media (max-width: 782px) {
    .wpopt-activity-kpi {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px 16px;
    }

    .wpopt-activity-kpi-icon {
        width: 42px;
        height: 42px;
    }

    .wpopt-activity-stat-grid {
        grid-template-columns: 1fr;
    }
}

.wpopt-scroll-x {
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 0 -2px;
    scrollbar-width: thin;
}

.wpopt-scroll-x::-webkit-scrollbar {
    height: 8px;
}

.wpopt-scroll-x::-webkit-scrollbar-thumb {
    background: #b8c6d8;
    border-radius: 999px;
}

.wpopt-scroll-x::-webkit-scrollbar-track {
    background: #edf1f4;
    border-radius: 999px;
}

@keyframes wpoptAdvertiseOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wpoptAdvertisePanelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wpoptAdvertiseItemIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wpoptAdvertiseMeterIn {
    from { width: 0; }
    to { width: var(--wpopt-meter-width, 100%); }
}

.wpopt-advertise-overlay {
    position: fixed;
    z-index: 100000;
    inset: 0;
    overflow: auto;
    box-sizing: border-box;
    padding: 36px;
    background: #eef1f5;
    color: #101828;
    animation: wpoptAdvertiseOverlayIn 180ms ease-out both;
}

.wpopt-advertise-page {
    position: relative;
    display: grid;
    gap: 22px;
    min-height: calc(100vh - 72px);
    box-sizing: border-box;
    padding: 34px;
    border-left: 4px solid #3f6df6;
    background: #ffffff;
    box-shadow: 0 24px 54px rgb(15 23 42 / 12%);
    animation: wpoptAdvertisePanelIn 360ms cubic-bezier(.22, 1, .36, 1) both;
}

.wpopt-advertise-page.is-welcome {
    overflow: hidden;
    gap: 36px;
    background:
        radial-gradient(circle at calc(100% - 120px) 82px, rgb(63 109 246 / 13%), transparent 135px),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wpopt-advertise-page.is-welcome > :not(.wpopt-advertise-close) {
    position: relative;
    z-index: 1;
}

body.wpopt-deactivation-dialog-open {
    overflow: hidden;
}

.wpopt-deactivation-feedback[hidden],
.wpopt-deactivation-other[hidden] {
    display: none;
}

.wpopt-deactivation-feedback {
    display: grid;
    align-items: start;
    justify-items: center;
}

.wpopt-advertise-page.is-deactivation {
    width: min(820px, 100%);
    min-height: 0;
    gap: 26px;
}

.wpopt-advertise-page.is-deactivation .wpopt-advertise-hero {
    padding: 0 44px 0 0;
}

.wpopt-advertise-page.is-deactivation .wpopt-advertise-hero h1 {
    font-size: 36px;
}

.wpopt-deactivation-form,
.wpopt-deactivation-reasons {
    display: grid;
    gap: 12px;
}

.wpopt-deactivation-reasons {
    margin: 0;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpopt-deactivation-reason {
    display: flex;
    gap: 12px;
    align-items: center;
    box-sizing: border-box;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #1d2939;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.wpopt-deactivation-reason:hover,
.wpopt-deactivation-reason:has(input:focus-visible),
.wpopt-deactivation-reason:has(input:checked) {
    border-color: #3f6df6;
    background: #eef5ff;
    transform: translateY(-1px);
}

.wpopt-deactivation-reason input {
    margin: 0;
}

.wpopt-deactivation-other {
    display: grid;
    gap: 8px;
}

.wpopt-deactivation-other label {
    color: #344054;
    font-weight: 700;
}

.wpopt-deactivation-other textarea {
    width: 100%;
    min-height: 112px;
    box-sizing: border-box;
    padding: 12px;
    border-color: #b8c5d6;
    border-radius: 8px;
    resize: vertical;
}

.wpopt-advertise-page.is-deactivation .wpopt-advertise-actions {
    justify-content: flex-start;
    margin-top: 6px;
}

@media (max-width: 782px) {
    .wpopt-deactivation-feedback {
        padding: 18px;
    }

    .wpopt-advertise-page.is-deactivation {
        padding: 24px;
    }

    .wpopt-advertise-page.is-deactivation .wpopt-advertise-hero h1 {
        font-size: 30px;
    }

    .wpopt-deactivation-reasons {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wpopt-advertise-page.is-hidden {
    display: none;
}

.wpopt-advertise-close {
    position: absolute;
    top: 18px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease;
}

.wpopt-advertise-close:hover,
.wpopt-advertise-close:focus {
    color: #ef3e2f;
    outline: none;
    transform: scale(1.08);
}

.wpopt-advertise-hero {
    max-width: 940px;
    padding-right: 44px;
    animation: wpoptAdvertiseItemIn 420ms ease-out 80ms both;
}

.wpopt-advertise-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: #3f6df6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wpopt-advertise-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.12;
}

.wpopt-advertise-hero p {
    max-width: 78ch;
    margin: 12px 0 0;
    color: #344054;
    font-size: 16px;
    line-height: 1.55;
}

.wpopt-advertise-page.is-welcome .wpopt-advertise-hero {
    max-width: 1120px;
    padding: 14px 230px 10px 0;
}

.wpopt-advertise-page.is-welcome .wpopt-advertise-eyebrow {
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef5ff;
    box-shadow: inset 0 0 0 1px rgb(63 109 246 / 14%);
}

.wpopt-advertise-page.is-welcome .wpopt-advertise-hero h1 {
    max-width: 980px;
    font-size: 48px;
    line-height: 1.06;
    letter-spacing: 0;
}

.wpopt-advertise-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 0;
}

.wpopt-advertise-value-card {
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 20px;
    border: 1px solid #cfe0f7;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgb(63 109 246 / 8%) 0%, transparent 52%),
        #ffffff;
    box-shadow: 0 12px 26px rgb(15 44 82 / 8%);
}

.wpopt-advertise-page.is-welcome .wpopt-panel-head {
    margin-bottom: 22px;
}

.wpopt-advertise-value-card strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.wpopt-advertise-value-card small {
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
}

.wpopt-advertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wpopt-advertise-card {
    display: grid;
    gap: 8px;
    min-height: 120px;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #101828;
    text-decoration: none;
    animation: wpoptAdvertiseItemIn 360ms ease-out both;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.wpopt-advertise-card:hover {
    border-color: #b9cff0;
    background: #ffffff;
    transform: translateY(-2px);
}

.wpopt-advertise-card:nth-child(1) { animation-delay: 140ms; }
.wpopt-advertise-card:nth-child(2) { animation-delay: 190ms; }
.wpopt-advertise-card:nth-child(3) { animation-delay: 240ms; }
.wpopt-advertise-card:nth-child(4) { animation-delay: 290ms; }
.wpopt-advertise-card:nth-child(5) { animation-delay: 340ms; }
.wpopt-advertise-card:nth-child(6) { animation-delay: 390ms; }

.wpopt-advertise-card span,
.wpopt-advertise-meter span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wpopt-advertise-card strong {
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.wpopt-advertise-card small {
    color: #475467;
    font-size: 13px;
    line-height: 1.4;
}

.wpopt-advertise-recap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: stretch;
    padding: 22px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #ffffff;
    animation: wpoptAdvertiseItemIn 380ms ease-out 460ms both;
}

.wpopt-advertise-recap.is-full {
    grid-template-columns: minmax(0, 1fr);
}

.wpopt-advertise-page.is-welcome .wpopt-advertise-recap.is-full {
    border-color: #bfd7f4;
    border-left: 4px solid #3f6df6;
    background:
        linear-gradient(90deg, rgb(63 109 246 / 8%) 0%, transparent 34%),
        #ffffff;
    box-shadow: 0 12px 28px rgb(15 44 82 / 7%);
}

.wpopt-advertise-recap h2,
.wpopt-advertise-support h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.wpopt-advertise-recap ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wpopt-advertise-recap li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    color: #344054;
    font-size: 14px;
    line-height: 1.45;
    animation: wpoptAdvertiseItemIn 300ms ease-out both;
}

.wpopt-advertise-recap li:nth-child(1) { animation-delay: 520ms; }
.wpopt-advertise-recap li:nth-child(2) { animation-delay: 570ms; }
.wpopt-advertise-recap li:nth-child(3) { animation-delay: 620ms; }
.wpopt-advertise-recap li:nth-child(4) { animation-delay: 670ms; }

.wpopt-advertise-recap li:before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f8f94;
}

.wpopt-advertise-meter {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: 8px;
    background: #eff6ff;
}

.wpopt-advertise-meter strong {
    color: #1d4ed8;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.wpopt-advertise-meter em {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.wpopt-advertise-meter b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    animation: wpoptAdvertiseMeterIn 720ms cubic-bezier(.22, 1, .36, 1) 720ms both;
}

.wpopt-advertise-support {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 28px;
    padding: 20px 22px 18px;
    border-left: 4px solid #3f6df6;
    background: #ffffff;
    animation: wpoptAdvertiseItemIn 380ms ease-out 740ms both;
}

.wpopt-advertise-support-copy {
    min-width: 0;
}

.wpopt-advertise-support p {
    margin: 0 0 10px;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
}

.wpopt-advertise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wpopt-advertise-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 18px;
    border: 1px solid #ef3e2f;
    border-radius: 0;
    background: #ffffff;
    color: #ef3e2f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wpopt-advertise-button:hover,
.wpopt-advertise-button:focus {
    border-color: #d92d20;
    background: #fff7f5;
    color: #d92d20;
    outline: none;
    transform: translateY(-1px);
}

.wpopt-advertise-button.is-primary {
    background: #ef3e2f;
    color: #ffffff;
}

.wpopt-advertise-button.is-primary:hover,
.wpopt-advertise-button.is-primary:focus {
    background: #d92d20;
    color: #ffffff;
}

.wpopt-advertise-button.is-muted {
    border-color: #c3c4c7;
    background: #f6f7f7;
    color: #334155;
}

.wpopt-advertise-button.is-muted:hover,
.wpopt-advertise-button.is-muted:focus {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #111827;
}

.wpopt-advertise-support-screen {
    display: none;
    min-height: calc(100vh - 72px);
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 24px 54px rgb(15 23 42 / 12%);
}

.wpopt-advertise-support-screen.is-visible {
    display: grid;
    place-items: center;
    padding: 46px 54px;
    animation: wpoptAdvertisePanelIn 360ms cubic-bezier(.22, 1, .36, 1) both;
}

.wpopt-advertise-support-screen .wpopt-advertise-support {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0;
    border-left: 0;
    text-align: center;
    animation: wpoptAdvertiseItemIn 360ms ease-out 100ms both;
}

.wpopt-advertise-support-screen .wpopt-advertise-support h2 {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.15;
}

.wpopt-advertise-support-screen .wpopt-advertise-support p {
    max-width: 1100px;
    font-size: 18px;
    line-height: 1.55;
}

.wpopt-advertise-support-screen .wpopt-advertise-actions {
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.wpopt-advertise-support-screen .wpopt-advertise-button {
    min-height: 54px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
}

.wpopt-advertise-card[href]:focus {
    outline: 2px solid #3f6df6;
    outline-offset: 2px;
}

.wpopt-advertise-card.is-module {
    min-height: 146px;
}

.wpopt-advertise-card em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.wpopt-advertise-card em::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.wpopt-advertise-card em.is-active {
    background: #e8f8f0;
    color: #14733d;
}

.wpopt-advertise-card em.is-active::before {
    background: #22c55e;
}

.wpopt-advertise-card em.is-inactive {
    background: #f2f4f7;
    color: #667085;
}

.wpopt-advertise-card em.is-inactive::before {
    background: #98a2b3;
}

@media (prefers-reduced-motion: reduce) {
    .wpopt-advertise-overlay,
    .wpopt-advertise-page,
    .wpopt-advertise-hero,
    .wpopt-advertise-card,
    .wpopt-advertise-recap,
    .wpopt-advertise-recap li,
    .wpopt-advertise-support,
    .wpopt-advertise-meter b {
        animation: none !important;
    }

    .wpopt-advertise-card,
    .wpopt-advertise-button,
    .wpopt-advertise-close {
        transition: none !important;
    }
}

@media (max-width: 960px) {
    .wpopt-advertise-overlay {
        padding: 18px;
    }

    .wpopt-advertise-page {
        min-height: calc(100vh - 36px);
        padding: 24px;
    }

    .wpopt-advertise-hero h1 {
        font-size: 30px;
    }

    .wpopt-advertise-page.is-welcome .wpopt-advertise-hero {
        max-width: none;
        padding-right: 0;
    }

    .wpopt-advertise-page.is-welcome .wpopt-advertise-hero h1 {
        font-size: 34px;
    }

    .wpopt-advertise-value-grid {
        grid-template-columns: 1fr;
    }

    .wpopt-advertise-grid,
    .wpopt-advertise-recap,
    .wpopt-advertise-support {
        grid-template-columns: 1fr;
    }

    .wpopt-advertise-actions {
        justify-content: flex-start;
    }

    .wpopt-advertise-support-screen.is-visible {
        min-height: calc(100vh - 36px);
        padding: 34px 28px;
    }

    .wpopt-advertise-support-screen .wpopt-advertise-support h2 {
        font-size: 28px;
    }

    .wpopt-advertise-support-screen .wpopt-advertise-support p {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .wpopt-advertise-overlay {
        padding: 0;
    }

    .wpopt-advertise-page,
    .wpopt-advertise-support-screen.is-visible {
        min-height: 100vh;
        padding: 22px 16px;
    }

    .wpopt-advertise-hero h1 {
        font-size: 25px;
    }

    .wpopt-advertise-page.is-welcome .wpopt-advertise-hero h1 {
        font-size: 28px;
    }

    .wpopt-advertise-actions,
    .wpopt-advertise-button {
        width: 100%;
    }
}

.wpopt-cache-reset-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px;
    position: relative;
    margin: 18px 0;
    padding: 0;
}

.wps-conf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.wpopt-static-conf {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.wpopt-static-conf-back {
    display: flex;
    justify-content: flex-start;
}

.wpopt-static-conf-back a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border-color: #c6d3e3;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgb(15 44 82 / 6%);
}

.wpopt-static-conf-back .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.wpopt-static-conf-back .wpopt-back-label {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    line-height: 18px;
}

.wpopt-static-rules.wpopt-static-conf-section {
    margin-top: 0;
}

.wpopt-static-rules {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
    container: wpopt-static-rules / inline-size;
    width: 100%;
    max-width: none;
    margin-top: 14px;
    padding: 26px 18px 18px;
    border: 1px solid #d3dfeb;
    border-radius: 10px;
    background: #ffffff;
    text-align: left;
    box-sizing: border-box;
}

.wpopt-static-rules-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.wpopt-static-rules-head h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.wpopt-static-rules-head .wpopt-muted {
    margin: 0;
    max-width: 82ch;
}

.wpopt-static-rules-mode,
.wpopt-static-ratio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.wpopt-static-rules-mode {
    padding: 6px 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wpopt-static-rule-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px 12px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.wpopt-static-rule-fields {
    display: grid;
    grid-template-columns: minmax(190px, 0.3fr) minmax(320px, 1fr) minmax(170px, auto);
    align-items: end;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.wpopt-static-rule-field {
    display: grid;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.wpopt-static-rule-field span {
    color: #2c3338;
    font-size: 12px;
    font-weight: 700;
}

.wpopt-static-rule-field input.regular-text {
    width: 100%;
    max-width: none;
    min-height: 40px;
    border-color: #b9c5d2;
    border-radius: 8px;
    box-shadow: none;
}

.wpopt-static-mode-field {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.wpopt-static-mode-field legend {
    margin: 0;
    padding: 0;
    color: #2c3338;
    font-size: 12px;
    font-weight: 700;
}

.wpopt-static-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 40px;
    overflow: hidden;
    border: 1px solid #b9c5d2;
    border-radius: 8px;
    background: #ffffff;
}

.wpopt-static-mode-toggle label {
    display: grid;
    place-items: center;
    margin: 0;
    cursor: pointer;
}

.wpopt-static-mode-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wpopt-static-mode-toggle label span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #41546f;
    font-size: 12px;
    font-weight: 800;
}

.wpopt-static-mode-toggle input:checked + span {
    background: #2271b1;
    color: #ffffff;
}

.wpopt-static-rule-actions {
    display: contents;
}

.wpopt-static-rule-actions .description {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    color: #5f6b7a;
    font-size: 13px;
    line-height: 1.45;
}

.wpopt-static-rule-actions .wpopt-btn {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 58px;
    min-height: 40px;
    margin: 0;
    border-radius: 8px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .wpopt-static-rule-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-static-rule-fields {
        grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr);
    }

    .wpopt-static-mode-field {
        grid-column: 1 / -1;
    }

    .wpopt-static-rule-actions .description {
        grid-column: 1;
        grid-row: auto;
    }

    .wpopt-static-rule-actions .wpopt-btn {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }
}

@container wpopt-static-rules (max-width: 680px) {
    .wpopt-static-rule-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-static-rule-fields {
        grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr);
    }

    .wpopt-static-mode-field {
        grid-column: 1 / -1;
    }

    .wpopt-static-rule-actions .description,
    .wpopt-static-rule-actions .wpopt-btn {
        grid-column: 1;
        grid-row: auto;
    }

    .wpopt-static-rule-actions .wpopt-btn {
        justify-self: start;
    }
}

@container wpopt-static-rules (max-width: 460px) {
    .wpopt-static-rule-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-static-rules-head {
        align-items: stretch;
        flex-direction: column;
    }

    .wpopt-static-rules-mode {
        width: max-content;
    }

    .wpopt-static-rule-actions .wpopt-btn {
        width: 100%;
    }
}

.wpopt-static-rules-table-wrap {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    overflow-x: auto;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #ffffff;
}

.wpopt-static-rules-table {
    border: 0;
    margin: 0;
}

.wpopt-static-rules-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #516173;
    white-space: nowrap;
}

.wpopt-static-rules-table td {
    vertical-align: middle;
}

.wpopt-static-rules-table code {
    display: inline-block;
    max-width: 260px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpopt-static-ratio {
    min-width: 54px;
    padding: 4px 8px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 12px;
}

.wpopt-static-mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.wpopt-static-mode-pill.is-include {
    background: #eff6ff;
    color: #1d4ed8;
}

.wpopt-static-mode-pill.is-exclude {
    background: #fff1f2;
    color: #be123c;
}

.wpopt-static-row-actions {
    white-space: nowrap;
}

.wpopt-static-row-actions .button {
    margin-right: 6px;
}

.wpopt-static-empty {
    display: grid;
    gap: 7px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 18px 20px;
    border: 1px dashed #aec4dc;
    border-radius: 10px;
    background: #fbfdff;
    color: #41546f;
}

.wpopt-static-empty strong {
    color: #1d2327;
}

.wpopt-static-toggle-section {
    gap: 18px;
}

.wpopt-static-config-warning {
    display: grid;
    gap: 4px;
    margin: 0 14px;
    padding: 11px 14px;
    border: 1px solid #f4bf75;
    border-radius: 8px;
    background: #fff8ed;
    color: #7c3f00;
}

.wpopt-static-config-warning strong {
    font-size: 13px;
    font-weight: 800;
}

.wpopt-static-config-warning span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.wpopt-static-toggle-form {
    display: grid;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 14px;
    border: 1px solid #dce6f1;
    border-radius: 10px;
    background: #f8fbff;
    box-sizing: border-box;
}

.wpopt-static-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 46px;
    width: 100%;
    margin: 0;
    min-width: 0;
    color: #0f172a;
    cursor: pointer;
}

.wpopt-static-toggle + .wpopt-static-toggle {
    padding-top: 14px;
    border-top: 1px solid #dce6f1;
}

.wpopt-static-toggle.is-hidden {
    display: none;
}

.wpopt-static-toggle input.wps-apple-switch {
    justify-self: end;
    margin: 0;
}

.wpopt-static-toggle .wps-dropdown {
    justify-self: end;
    width: 300px;
    max-width: 100%;
}

.wpopt-static-toggle .wps-dropdown .wps-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-right: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 42px;
}

.wpopt-static-toggle .wps-dropdown .wps-dropdown__opener {
    z-index: 2;
}

.wpopt-static-time-stepper {
    justify-self: end;
}

.wpopt-static-time-control {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    min-width: 0;
}

.wpopt-cache-multiselect .wps-multiselect__element.is-selected {
    background: #e9f3ff;
    color: #0a4b78;
    font-weight: 800;
}

.wpopt-static-toggle-textarea {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
}

.wpopt-static-toggle-textarea > span {
    padding-top: 8px;
}

.wpopt-static-textarea {
    justify-self: stretch;
    width: min(640px, 100%);
    max-width: 100%;
    min-height: 118px;
    padding: 10px 12px;
    border-color: #cbd6e2;
    border-radius: 8px;
    background:
        repeating-linear-gradient(
            to bottom,
            #ffffff 0,
            #ffffff 21px,
            #edf3fa 22px
        );
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 22px;
    resize: vertical;
}

.wpopt-static-toggle > span > strong {
    color: #1d2327;
    font-size: 13px;
    font-weight: 800;
}

.wpopt-static-toggle > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.wpopt-static-toggle > span > small {
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.wpopt-static-toggle > span > small.wpopt-static-direct-status {
    font-weight: 800;
}

.wpopt-static-toggle > span > small.wpopt-static-direct-status.is-ready {
    color: #166534;
}

.wpopt-static-toggle > span > small.wpopt-static-direct-status.is-warning {
    color: #b45309;
}

@media (max-width: 782px) {
    .wpopt-static-toggle {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .wpopt-static-toggle .wps-dropdown,
    .wpopt-static-time-control,
    .wpopt-static-time-stepper,
    .wpopt-static-textarea {
        justify-self: stretch;
        width: 100%;
    }

    .wpopt-static-time-stepper {
        grid-template-columns: 52px minmax(84px, 1fr) 52px;
    }

    .wpopt-static-time-stepper .wps-time-stepper-input {
        width: 100% !important;
        max-width: none !important;
    }
}

.wpopt-cache-reset-action-form {
    display: none;
}

.wpopt-cache-reset-panel .wps-custom-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid #b9d5f2;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f9ff 100%);
    box-shadow: 0 10px 22px rgb(15 44 82 / 9%);
}

.wpopt-cache-reset-panel .wps-custom-action::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #2271b1 0%, #72aee6 100%);
}

.wpopt-cache-reset-panel .wpopt-cache-reset-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding-left: 2px;
}

.wpopt-cache-reset-panel .wpopt-cache-reset-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #15345c;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    min-width: 0;
}

.wpopt-cache-reset-panel .wpopt-cache-reset-name::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background: #2271b1;
    box-shadow: 0 0 0 4px rgb(34 113 177 / 14%);
}

.wpopt-cache-reset-panel .wpopt-cache-reset-size {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.2;
}

.wpopt-cache-reset-panel .wpopt-cache-reset-size span {
    color: #5d6f85;
    font-weight: 700;
}

.wpopt-cache-reset-panel .wpopt-cache-reset-size strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.wpopt-cache-reset-panel .wpopt-btn {
    min-width: 108px;
    min-height: 34px;
    justify-content: center;
    padding-inline: 12px;
    box-shadow: 0 6px 14px rgb(15 44 82 / 10%);
}

.wps-ar-tabcontent.wpopt-tab-animate[aria-hidden="false"] {
    animation: wpopt-tab-enter 220ms ease both;
}

@keyframes wpopt-tab-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wps-option-info.is-entering {
    animation: wpopt-info-reveal 360ms cubic-bezier(0.2, 0.68, 0.22, 1) both;
}

@keyframes wpopt-info-reveal {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.99);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.wps-wrap .wpopt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    font-weight: 600;
    color: var(--wpopt-btn-text, #ffffff);
    border-color: var(--wpopt-btn-border, #c3c4c7);
    background: var(--wpopt-btn-bg, #f3f6fa);
    box-shadow: var(--wpopt-btn-shadow, 0 6px 14px rgb(16 24 40 / 16%));
    text-decoration: none;
    transition: box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease, color 170ms ease;
}

.wps-wrap .wpopt-btn:hover,
.wps-wrap .wpopt-btn:focus {
    color: var(--wpopt-btn-text, #ffffff);
    text-decoration: none;
    box-shadow: var(--wpopt-btn-shadow-hover, 0 5px 10px rgb(16 24 40 / 14%));
}

.wps-wrap .wpopt-btn:active {
    color: var(--wpopt-btn-text, #ffffff);
    text-decoration: none;
    box-shadow: var(--wpopt-btn-shadow-active, 0 2px 5px rgb(16 24 40 / 12%));
}

.wps-wrap .wpopt-btn.is-success {
    --wpopt-btn-text: var(--wps-btn-success-text);
    --wpopt-btn-border: var(--wps-btn-success-border);
    --wpopt-btn-bg: var(--wps-btn-success-bg);
    --wpopt-btn-shadow: var(--wps-btn-success-shadow);
    --wpopt-btn-shadow-hover: 0 5px 10px rgb(21 128 61 / 25%);
    --wpopt-btn-shadow-active: 0 2px 5px rgb(21 128 61 / 20%);
}

.wps-wrap .wpopt-btn.is-warning {
    --wpopt-btn-text: var(--wps-btn-warning-text);
    --wpopt-btn-border: var(--wps-btn-warning-border);
    --wpopt-btn-bg: var(--wps-btn-warning-bg);
    --wpopt-btn-shadow: var(--wps-btn-warning-shadow);
    --wpopt-btn-shadow-hover: 0 5px 10px rgb(194 65 12 / 23%);
    --wpopt-btn-shadow-active: 0 2px 5px rgb(194 65 12 / 19%);
}

.wps-wrap .wpopt-btn.is-info {
    --wpopt-btn-text: var(--wps-btn-info-text);
    --wpopt-btn-border: var(--wps-btn-info-border);
    --wpopt-btn-bg: var(--wps-btn-info-bg);
    --wpopt-btn-shadow: var(--wps-btn-info-shadow);
    --wpopt-btn-shadow-hover: var(--wps-btn-info-shadow-hover);
    --wpopt-btn-shadow-active: 0 2px 6px rgb(19 94 150 / 22%);
}

.wps-wrap .wpopt-btn.is-neutral {
    --wpopt-btn-text: var(--wps-btn-neutral-text);
    --wpopt-btn-border: var(--wps-btn-neutral-border);
    --wpopt-btn-bg: var(--wps-btn-neutral-bg);
    --wpopt-btn-shadow: var(--wps-btn-neutral-shadow);
    --wpopt-btn-shadow-hover: 0 6px 14px rgb(16 24 40 / 12%);
    --wpopt-btn-shadow-active: 0 2px 6px rgb(16 24 40 / 10%);
}

.wps-wrap .wpopt-btn.is-danger {
    --wpopt-btn-text: var(--wps-btn-danger-text);
    --wpopt-btn-border: var(--wps-btn-danger-border);
    --wpopt-btn-bg: var(--wps-btn-danger-bg);
    --wpopt-btn-shadow: var(--wps-btn-danger-shadow);
    --wpopt-btn-shadow-hover: 0 5px 10px rgb(140 55 36 / 26%);
    --wpopt-btn-shadow-active: 0 2px 5px rgb(140 55 36 / 21%);
}

.wpopt-actions .wps-button:not(.wpopt-btn),
.wpopt-inline-actions .wps-button:not(.wpopt-btn) {
    min-height: 38px;
    border: 1px solid #b7c1cb;
    border-radius: 10px;
    background: #f1f5f8;
    color: #1d2327;
    font-weight: 600;
    box-shadow: 0 2px 8px rgb(16 24 40 / 8%);
}

.wpopt-actions .wps-button:not(.wpopt-btn):hover,
.wpopt-actions .wps-button:not(.wpopt-btn):focus,
.wpopt-inline-actions .wps-button:not(.wpopt-btn):hover,
.wpopt-inline-actions .wps-button:not(.wpopt-btn):focus {
    border-color: #8da0b3;
    background: #eaf1f7;
    color: #1d2327;
    box-shadow: 0 6px 14px rgb(16 24 40 / 12%);
}

.wpopt-db-sweeper {
    display: grid;
    gap: 18px;
}

.wpopt-db-notice {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #b9d8fb;
    border-radius: 8px;
    background: #f0f7ff;
}

.wpopt-db-notice > .dashicons {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid #1776d2;
    border-radius: 50%;
    color: #1776d2;
    font-size: 20px;
    line-height: 24px;
}

.wpopt-db-notice strong {
    display: block;
    color: #174476;
    font-size: 13px;
    font-weight: 800;
}

.wpopt-db-notice p,
.wpopt-db-notice small {
    display: block;
    margin: 4px 0 0;
    color: #526985;
    font-size: 12px;
    line-height: 1.45;
}

.wpopt-db-notice .wpopt-btn {
    min-height: 34px;
    padding: 0 14px;
    white-space: nowrap;
}

.wpopt-db-lazy-panel {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 36px 18px;
    border: 1px dashed #bfd3ec;
    border-radius: 8px;
    background: #f8fbff;
    color: #5d6f89;
    text-align: center;
}

.wpopt-db-lazy-panel .spinner {
    float: none;
    margin: 0;
}

.wpopt-db-lazy-panel strong {
    color: #15345c;
    font-size: 14px;
}

.wpopt-db-lazy-panel p {
    margin: 0;
    max-width: 48ch;
    font-size: 12px;
    line-height: 1.45;
}

.wpopt-db-lazy-panel.is-error {
    border-color: #fecaca;
    background: #fff5f5;
}

.wpopt-db-sweeper-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 0;
}

.wpopt-db-sweeper-toolbar strong {
    display: block;
    color: #15345c;
    font-size: 16px;
    font-weight: 800;
}

.wpopt-db-sweeper-toolbar p {
    margin: 5px 0 0;
    color: #5d6f89;
    font-size: 12px;
}

.wpopt-db-sweeper-toolbar .wpopt-btn {
    min-height: 34px;
    padding: 0 14px;
}

.wpopt-db-sweeper-toolbar .dashicons {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    font-size: 16px;
    line-height: 16px;
}

.wpopt-db-sweep-card {
    overflow: visible;
    border: 1px solid #b9d3ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgb(15 44 82 / 4%), 0 12px 28px rgb(15 44 82 / 6%);
}

.wpopt-db-sweep-card pre-table {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #d8e7f6;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wpopt-db-sweep-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #28a5f5 0%, #1474d2 100%);
    color: #ffffff;
    font-size: 18px;
    line-height: 34px;
    box-shadow: 0 8px 16px rgb(20 116 210 / 24%);
}

.wpopt-db-sweep-card h3 {
    margin: 0;
    color: #15345c;
    font-size: 15px;
    font-weight: 800;
}

.wpopt-db-sweep-card pre-table p {
    grid-column: 2;
    margin: 4px 0 0;
    color: #5d6f89;
    font-size: 12px;
}

.wpopt-db-sweep-card .attention,
.wpopt-db-sweep-card .attention span {
    color: #176ed0;
}

.wpopt-db-sweep-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #176ed0;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.wpopt-db-manager-page .table-sweep {
    margin: 0;
    width: 100%;
    min-width: 720px;
    overflow: visible;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    table-layout: auto;
}

.wpopt-db-manager-page .table-sweep thead th {
    padding: 12px 20px;
    border-top: 0 !important;
    border-right: 1px solid #dbe8f6 !important;
    border-bottom: 1px solid #dbe8f6;
    border-left: 0 !important;
    background: #f4f8fd;
    color: #3f5876;
    font-size: 11px;
    font-weight: 800;
    text-transform: none;
    white-space: nowrap;
}

.wpopt-db-manager-page .table-sweep thead th:last-child {
    border-right: 0 !important;
}

.wpopt-db-manager-page .table-sweep tbody td {
    padding: 14px 20px;
    border-top: 0 !important;
    border-right: 1px solid #e7eff8 !important;
    border-bottom: 1px solid #e3edf8;
    border-left: 0 !important;
    color: #28415f;
    font-size: 12px;
    line-height: 1.45;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wpopt-db-manager-page .table-sweep tbody td:last-child {
    border-right: 0 !important;
}

.wpopt-db-manager-page .table-sweep tbody tr:last-child td {
    border-bottom: 0;
}

.wpopt-db-manager-page .table-sweep tbody tr.alternate {
    background: #f7fbff;
}

.wpopt-db-manager-page .table-sweep tbody tr:hover {
    background: rgb(var(--wps-accent-rgb, 34 113 177) / 5%);
}

.wpopt-db-manager-page .table-sweep td strong {
    color: #22395a;
    font-weight: 800;
}

.wpopt-db-manager-page .table-sweep .sweep-count {
    color: #176ed0;
    font-weight: 800;
}

.wpopt-db-manager-page .table-sweep .col-sweep-action,
.wpopt-db-manager-page .table-sweep td:last-child {
    min-width: 190px;
}

.wpopt-db-manager-page .table-sweep td:last-child {
    white-space: normal;
}

.wpopt-db-manager-page .table-sweep .wpopt-btn {
    min-height: 30px;
    margin: 2px 2px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.wpopt-db-options-panel {
    display: grid;
    gap: 16px;
}

.wpopt-db-options-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wpopt-db-options-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe8f6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgb(15 44 82 / 5%);
}

.wpopt-db-options-card span {
    color: #526985;
    font-size: 12px;
    font-weight: 700;
}

.wpopt-db-options-card strong {
    color: #15345c;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.wpopt-db-options-card.is-success strong {
    color: #168048;
}

.wpopt-db-options-card.is-warning strong {
    color: #996d00;
}

.wpopt-db-options-card.is-danger strong {
    color: #d63638;
}

.wpopt-db-options-warning {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #f5c2c7;
    border-left: 4px solid #d63638;
    border-radius: 8px;
    background: #fff6f6;
    color: #5f1f24;
}

.wpopt-db-options-warning .dashicons {
    color: #d63638;
    font-size: 22px;
}

.wpopt-db-options-warning strong {
    display: block;
    margin-bottom: 4px;
    color: #8a242b;
    font-size: 13px;
    font-weight: 900;
}

.wpopt-db-options-warning p {
    margin: 0;
    color: #6f3940;
    font-size: 12px;
    line-height: 1.5;
}

.wpopt-options-table {
    table-layout: fixed;
    width: 100%;
}

.wpopt-options-table .column-option_name {
    width: auto;
}

.wpopt-options-table .column-option_size {
    width: 116px;
}

.wpopt-options-table .column-autoload {
    width: 138px;
}

.wpopt-options-table .column-actions {
    width: 128px;
}

.wpopt-option-name {
    display: inline-block;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #263f5f;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wpopt-option-name-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2271b1;
    text-align: left;
    cursor: pointer;
    vertical-align: middle;
}

.wpopt-option-name-preview:hover,
.wpopt-option-name-preview:focus {
    color: #135e96;
    outline: none;
}

.wpopt-option-name-preview:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgb(34 113 177 / 16%);
}

.wpopt-option-name-eye {
    flex: 0 0 auto;
    color: currentColor;
}

.wpopt-option-name-preview .wpopt-option-name {
    min-width: 0;
}

.wpopt-option-name-preview:hover .wpopt-option-name,
.wpopt-option-name-preview:focus .wpopt-option-name {
    background: #e7f1fb;
    color: #135e96;
}

.wpopt-option-size {
    white-space: nowrap;
}

.wpopt-option-protected {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.wpopt-option-protected .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.wpopt-option-actions {
    display: grid;
    grid-template-columns: 72px;
    gap: 8px;
    align-items: center;
    justify-content: start;
    min-width: 72px;
}

.wpopt-option-actions.is-protected {
    grid-template-columns: minmax(190px, 1fr);
    min-width: 190px;
}

.wpopt-option-actions .wpopt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 38px;
    min-width: 0 !important;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.wpopt-options-table tr.wps-loader::before,
.wpopt-options-table tr.wps-loader::after {
    display: none;
}

.wpopt-options-table tr.wps-loader > td {
    background: #f8fbff;
    opacity: 0.55;
    pointer-events: none;
}

.wpopt-options-table tr.wps-loader > td:first-child {
    position: relative;
    padding-left: 42px;
}

.wpopt-options-table tr.wps-loader > td:first-child::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    color: #2f77c4;
    font-size: 5px;
    animation: load4 1.1s linear infinite;
    transform: translateY(-50%) translateZ(0);
}

.wpopt-option-action-note {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 38px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.wpopt-option-preview-row td {
    padding: 0 !important;
    background: #f8fbff;
}

.wpopt-option-preview-row td::before {
    display: none !important;
}

.wpopt-option-preview-panel {
    display: grid;
    gap: 0;
    border-top: 1px solid #dbe8f6;
    border-bottom: 1px solid #dbe8f6;
    background: #ffffff;
}

.wpopt-option-preview-panel pre {
    box-sizing: border-box;
    width: 100%;
    max-height: 420px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border: 0;
    background: #ffffff;
    color: #1f2937;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 782px) {
    .wpopt-db-options-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpopt-db-options-warning {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-option-preview-panel pre {
        max-height: 320px;
    }

    .wpopt-db-manager-page .table-sweep {
        max-width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .wpopt-db-manager-page .table-sweep .col-sweep-action,
    .wpopt-db-manager-page .table-sweep td:last-child {
        min-width: 0;
    }

    .wpopt-db-manager-page .table-sweep .wpopt-btn {
        width: 100%;
        max-width: 100%;
        margin: 2px 0;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .wpopt-db-options-summary {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wpopt-ajax-db {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.wpopt-ajax-db > div,
.wpopt-ajax-db > p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.wpopt-ajax-db > div p {
    margin: 6px 0 0;
}

.wpopt-ajax-db .form-table,
.wpopt-ajax-db .form-table tbody,
.wpopt-ajax-db .form-table tr,
.wpopt-ajax-db .form-table td {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.wpopt-ajax-db .form-table {
    margin: 10px 0 0;
}

.wpopt-ajax-db .form-table td {
    padding: 0;
}

.wpopt-ajax-db textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    resize: vertical;
}

.wpopt-ajax-db .wpopt-db-button-row {
    align-items: stretch;
    margin-top: 14px;
}

.wpopt-ajax-db .wpopt-db-button-row .wpopt-btn {
    flex: 1 1 140px;
    max-width: 180px;
}

.wps-wrap .wpopt-db-button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.wps-wrap .wpopt-db-button-row .wpopt-btn {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 140px;
    max-width: 100%;
    white-space: nowrap;
}

.wpopt-db-backup-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.wpopt-db-backup-form {
    display: grid;
    gap: 0;
    margin: 0;
    overflow: visible;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.wpopt-db-backup-table-form + .wpopt-db-backup-form {
    margin-top: 18px;
}

.wpopt-db-backup-table-form {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.wpopt-db-backup-form h3 {
    margin: 0;
    padding: 15px 18px;
    border-bottom: 1px solid #e3e8ef;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
    color: #1f2f46;
    font-size: 15px;
    font-weight: 750;
}

.wpopt-db-backup-table-form table.widefat.wps {
    width: 100%;
    margin: 0;
    overflow: visible;
    border: 1px solid #d8e0ea !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
    table-layout: auto;
}

.wpopt-db-backup-table-form table.widefat.wps thead th {
    height: auto;
    padding: 11px 16px;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e5eaf1 !important;
    border-left: 0 !important;
    background: #f8fafc !important;
    color: #44546a !important;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    white-space: nowrap;
}

.wpopt-db-backup-table-form table.widefat.wps thead th:last-child,
.wpopt-db-backup-table-form table.widefat.wps tbody td:last-child,
.wpopt-db-backup-table-form table.widefat.wps tbody th:last-child,
.wpopt-db-backup-table-form table.widefat.wps tfoot td:last-child {
    border-right: 0 !important;
}

.wpopt-db-backup-table-form table.widefat.wps tbody td,
.wpopt-db-backup-table-form table.widefat.wps tbody th,
.wpopt-db-backup-table-form table.widefat.wps > tr td,
.wpopt-db-backup-table-form table.widefat.wps > tr th {
    padding: 14px 16px;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    border-left: 0 !important;
    color: #24364d;
    font-size: 12px;
    line-height: 1.45;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wpopt-db-backup-table-form table.widefat.wps tbody tr.alternate,
.wpopt-db-backup-table-form table.widefat.wps > tr.alternate {
    background: #fbfcfe;
}

.wpopt-db-backup-table-form table.widefat.wps tbody tr:hover,
.wpopt-db-backup-table-form table.widefat.wps > tr:hover {
    background: #f8fbff;
}

.wpopt-db-backup-table-form table.widefat.wps .wps-footer {
    background: #ffffff !important;
}

.wpopt-db-backup-table-form table.widefat.wps .wps-footer td {
    padding: 12px 16px;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #ffffff !important;
    color: #24364d !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.wpopt-db-backup-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.wpopt-db-backup-summary-row span {
    color: #5c6d82;
    font-weight: 650;
    white-space: nowrap;
}

.wpopt-db-backup-summary-cell::before {
    content: none !important;
}

.wpopt-db-backups-table tbody tr.no-items td {
    padding: 22px 16px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.wpopt-db-backup-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.wpopt-db-backup-row-actions .wpopt-btn {
    min-width: 84px;
    padding-right: 12px !important;
    padding-left: 12px !important;
    border-radius: 7px;
    box-shadow: none !important;
}

.wpopt-db-backup-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    background: #fbfcfe;
}

.wpopt-db-backup-summary-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    align-items: center;
    gap: 4px 12px;
    min-height: 76px;
    padding: 14px;
    border: 1px solid #e0e7f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

.wpopt-db-backup-summary-card.is-wide {
    grid-column: 1 / -1;
    min-height: auto;
}

.wpopt-db-backup-summary-icon {
    grid-area: icon;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef6fd;
    color: #2271b1;
    font-size: 18px;
    line-height: 1;
}

.wpopt-db-backup-summary-label {
    grid-area: label;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
}

.wpopt-db-backup-summary-value {
    grid-area: value;
    min-width: 0;
    color: #16253a;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: normal;
}

.wpopt-db-backup-summary-card.is-wide .wpopt-db-backup-summary-value {
    color: #31445f;
    font-size: 13px;
    font-weight: 600;
}

.wpopt-db-backup-form .wps-actions {
    padding: 18px !important;
    border-bottom: 0 !important;
    background: #fbfcfe;
    text-align: center !important;
}

.wpopt-db-backup-form .wps-actions .wpopt-db-button-row {
    justify-content: center;
    gap: 12px;
}

.wpopt-db-backup-form .wps-actions .wpopt-btn {
    min-width: 120px;
    border-radius: 7px;
    box-shadow: none !important;
}

.wpopt-db-backup-form.wpopt-db-backup-is-running {
    position: relative;
    overflow: hidden;
}

.wpopt-db-backup-form.wpopt-db-backup-is-running::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: inherit;
    background: rgb(248 251 255 / 82%);
    backdrop-filter: blur(1px);
}

.wpopt-db-backup-form.wpopt-db-backup-is-running .wpopt-btn.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.wpopt-db-backup-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 21;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    max-width: calc(100% - 40px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #213a57;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
    transform: translate(-50%, -50%);
}

.wpopt-db-backup-progress-spinner {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 3px solid #c8d9eb;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: wpopt-db-backup-spin 720ms linear infinite;
}

@keyframes wpopt-db-backup-spin {
    to {
        transform: rotate(360deg);
    }
}

.wpopt-db-backup-status {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #b9d3ee;
    border-left: 4px solid var(--wps-border-color);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgb(15 44 82 / 5%);
}

.wpopt-db-backup-status-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgb(var(--wps-accent-rgb, 34 113 177) / 10%);
    color: var(--wps-border-color);
    font-size: 18px;
    line-height: 34px;
}

.wpopt-db-backup-status-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.wpopt-db-backup-status-copy strong {
    color: #22395a;
    font-size: 13px;
    font-weight: 800;
}

.wpopt-db-backup-status-copy code {
    display: block;
    max-width: 100%;
    padding: 0;
    overflow-wrap: anywhere;
    border: 0;
    background: transparent;
    color: #536986;
    font-size: 12px;
    font-weight: 700;
}

.wpopt-db-backup-status-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgb(22 163 74 / 10%);
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}

.wpopt-db-backup-status.is-error {
    border-color: #f1b8b2;
    border-left-color: #b54d33;
}

.wpopt-db-backup-status.is-error .wpopt-db-backup-status-icon {
    background: rgb(181 77 51 / 10%);
    color: #b54d33;
}

.wpopt-db-backup-status.is-error .wpopt-db-backup-status-result {
    background: rgb(181 77 51 / 10%);
    color: #b54d33;
}

.wpopt-mail-message-cell {
    min-width: 220px;
}

.wpopt-mail-message-preview {
    color: #1d2327;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.wpopt-mail-message-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    text-decoration: none;
}

.wpopt-mail-message-modal-text {
    max-height: 60vh;
    overflow: auto;
    color: #1d2327;
    line-height: 1.6;
    word-break: break-word;
}

.wpopt-mail-message-modal-text p {
    margin: 0 0 1em;
}

.wpopt-mail-message-modal-text p:last-child {
    margin-bottom: 0;
}

.wpopt-sidebar .wps-box:last-child {
    margin-bottom: 0;
}

.wpopt-sidebar {
    min-width: 0;
    max-width: 320px;
}

.wpopt-dashboard-hero {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 132px;
    padding: 20px 24px !important;
    border: 1px solid #b8d4f6 !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 80% 46%, rgb(47 124 246 / 10%) 0 22%, transparent 23%),
        linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%) !important;
    box-shadow: none !important;
    overflow: hidden;
}

.wpopt-hero-copy {
    position: relative;
    z-index: 2;
    max-width: min(520px, 66%);
}

.wpopt-dashboard-hero h2 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: #0d1f3a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.wpopt-dashboard-hero .wpopt-hero-subtitle {
    max-width: 520px;
    margin-bottom: 16px;
    color: #41516a;
    font-size: 13px;
    line-height: 1.45;
}

.wpopt-dashboard-hero .wpopt-actions {
    gap: 10px;
}

.wpopt-dashboard-hero .wpopt-btn {
    min-width: 118px;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: none;
}

.wpopt-dashboard-hero .wpopt-btn .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
    margin-right: 7px;
}

.wpopt-dashboard-hero .wpopt-btn.is-info {
    --wpopt-btn-text: #ffffff;
    --wpopt-btn-border: var(--wps-accent, #2271b1);
    --wpopt-btn-bg: var(--wps-accent, #2271b1);
    --wpopt-btn-shadow: 0 5px 12px rgb(var(--wps-accent-rgb, 34 113 177) / 18%);
    color: #ffffff !important;
    border-color: var(--wps-accent, #2271b1) !important;
    background: var(--wps-accent, #2271b1) !important;
}

.wpopt-dashboard-hero .wpopt-btn.is-neutral {
    --wpopt-btn-text: var(--wps-accent, #2271b1);
    --wpopt-btn-border: rgb(var(--wps-accent-rgb, 34 113 177) / 34%);
    --wpopt-btn-bg: #f8fbff;
    --wpopt-btn-shadow: none;
    color: var(--wps-accent, #2271b1) !important;
    border-color: rgb(var(--wps-accent-rgb, 34 113 177) / 34%) !important;
    background: #f8fbff !important;
}

.wpopt-hero-art {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: min(430px, 64%);
    min-height: 116px;
    overflow: visible;
    background: transparent;
    pointer-events: none;
    transform: translateY(-50%);
}

.wpopt-hero-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    background: transparent;
}

.wpopt-panel {
    border: 1px solid #d9e5f5 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgb(15 44 82 / 7%) !important;
}

.wpopt-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wpopt-panel-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #0d1f3a;
    font-size: 16px;
    font-weight: 800;
}

.wpopt-panel-head h2 .dashicons {
    color: #2f7cf6;
}

.wpopt-panel-head > span {
    color: #6f7d95;
    font-size: 12px;
    font-weight: 600;
}

.wpopt-overview-panel .wpopt-scroll-x {
    padding-bottom: 0;
    overflow-x: visible;
}

.wpopt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    min-width: 0;
    padding: 0 2px;
}

.wpopt-kpi-card {
    appearance: none;
    position: relative;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    min-height: 96px;
    padding: 14px;
    border: 1px solid #d8e3f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 18px rgb(16 54 104 / 6%);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 12px;
    justify-content: stretch;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wpopt-kpi-card:hover,
.wpopt-kpi-card:focus-visible {
    border-color: #8dbaf0;
    box-shadow: 0 12px 24px rgb(16 54 104 / 12%);
    transform: translateY(-1px);
}

.wpopt-kpi-card:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.wpopt-kpi-icon {
    display: inline-grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 34px;
    align-self: start;
}

.wpopt-kpi-card.is-blue .wpopt-kpi-icon {
    background: #eaf3ff;
    color: #2f7cf6;
}

.wpopt-kpi-card.is-green .wpopt-kpi-icon {
    background: #e7f8ee;
    color: #13a455;
}

.wpopt-kpi-card.is-purple .wpopt-kpi-icon {
    background: #eaf3ff;
    color: var(--wps-accent, #2271b1);
}

.wpopt-kpi-card.is-orange .wpopt-kpi-icon {
    background: #fff0df;
    color: #ec7a22;
}

.wpopt-kpi-card.is-mint .wpopt-kpi-icon {
    background: #e8f8f0;
    color: #1b9a5b;
}

.wpopt-kpi-label {
    grid-column: 2;
    grid-row: 1;
    display: block;
    color: #43526b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.wpopt-kpi-value {
    grid-column: 2;
    grid-row: 2;
    display: block;
    margin: 7px 0 4px;
    color: #0e2343;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.wpopt-kpi-card small {
    grid-column: 2;
    grid-row: 3;
    display: block;
    color: #66758f;
    font-size: 11px;
    line-height: 1.35;
}

.wpopt-kpi-card.is-green .wpopt-kpi-value,
.wpopt-kpi-card.is-mint .wpopt-kpi-value {
    color: #138044;
}

.wpopt-kpi-card.is-purple .wpopt-kpi-value {
    color: var(--wps-main-dark, #135e96);
}

.wpopt-kpi-card.is-orange .wpopt-kpi-value {
    color: #e26318;
}

.wpopt-health-meter {
    grid-column: 2;
    grid-row: 3;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.wpopt-health-meter::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    height: 5px;
    border-radius: 999px;
    background: #dce7f3;
}

.wpopt-health-meter span {
    grid-column: 1;
    grid-row: 1;
    height: 5px;
    border-radius: 999px;
    background: #22c55e;
}

.wpopt-health-meter b {
    color: #66758f;
    font-size: 11px;
    font-weight: 800;
}

.wpopt-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.wpopt-modules-panel .wpopt-panel-head {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 3px;
}

.wpopt-module-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 12px;
    row-gap: 5px;
    min-height: 104px;
    padding: 14px;
    border: 1px solid #d8e3f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: #0d1f3a;
    text-decoration: none;
    box-shadow: 0 8px 18px rgb(16 54 104 / 5%);
    transition: box-shadow 170ms ease, color 170ms ease;
}

.wpopt-module-card:hover,
.wpopt-module-card:focus {
    color: #0d1f3a;
    box-shadow: 0 14px 26px rgb(47 124 246 / 13%);
}

.wpopt-module-icon {
    display: inline-grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #2f7cf6;
    font-size: 18px;
    line-height: 36px;
}

.wpopt-module-card strong {
    grid-column: 2;
    grid-row: 1;
    color: #0d1f3a;
    font-size: 13px;
    line-height: 1.25;
    align-self: end;
}

.wpopt-module-card small {
    grid-column: 2;
    grid-row: 2;
    color: #66758f;
    font-size: 11px;
    line-height: 1.35;
}

.wpopt-module-foot {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.wpopt-module-foot em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.wpopt-module-foot em::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.wpopt-module-foot em.is-active {
    background: #e8f8f0;
    color: #14733d;
}

.wpopt-module-foot em.is-active::before {
    background: #22c55e;
}

.wpopt-module-foot em.is-inactive {
    background: #f2f4f7;
    color: #66758f;
}

.wpopt-module-foot em.is-inactive::before {
    background: #98a2b3;
}

.wpopt-module-foot .dashicons {
    color: #2f7cf6;
    font-size: 16px;
}

.wpopt-view-all {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.wpopt-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 14px;
    border: 1px solid #c9daf0;
    border-radius: 999px;
    background: #ffffff;
    color: #2f7cf6;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.wpopt-tracking-panel {
    margin-bottom: 2em;
}

.wpopt-tracking-panel .wpopt-panel-head {
    align-items: flex-start;
}

.wpopt-cron-overview-panel {
    margin-bottom: 2em;
    container-type: inline-size;
    overflow: hidden;
}

.wpopt-cron-overview-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.wpopt-cron-action-form {
    margin: 0;
}

.wpopt-cron-action-form .wpopt-btn {
    height: 40px;
    min-height: 40px;
    padding: 0 18px;
    line-height: 1;
}

.wpopt-cron-action-form .wpopt-btn .dashicons {
    width: 18px;
    height: 18px;
    margin: 0 2px 0 0;
    font-size: 18px;
    line-height: 18px;
}

.wpopt-cron-overview-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(120px, 1fr));
    align-items: stretch;
    gap: 14px;
    min-width: 0;
}

.wpopt-cron-overview-summary,
.wpopt-cron-overview-stat {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d8e3f0;
    border-radius: 8px;
    background: #fbfdff;
}

.wpopt-cron-overview-summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.wpopt-cron-overview-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #2f7cf6;
    font-size: 18px;
    line-height: 34px;
}

.wpopt-cron-overview-summary strong,
.wpopt-cron-overview-stat strong {
    display: block;
    color: #0e2343;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.wpopt-cron-overview-summary small,
.wpopt-cron-overview-stat span,
.wpopt-cron-task-list span {
    display: block;
    color: #66758f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.wpopt-cron-overview-summary small {
    margin-top: 4px;
    font-weight: 600;
}

.wpopt-cron-overview-stat span {
    margin-bottom: 8px;
}

.wpopt-cron-task-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.wpopt-cron-task-list span {
    margin-right: 2px;
}

.wpopt-cron-task-list b,
.wpopt-cron-task-list em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f8f0;
    color: #14733d;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.wpopt-cron-task-list em {
    background: #f2f4f7;
    color: #66758f;
}

@container (max-width: 720px) {
    .wpopt-cron-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpopt-cron-overview-summary {
        grid-column: 1 / -1;
    }
}

@container (max-width: 460px) {
    .wpopt-cron-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-cron-overview-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-cron-overview-icon {
        margin-bottom: 4px;
    }
}

.wpopt-tracking-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    align-items: end;
    gap: 18px;
}

.wpopt-tracking-stat {
    min-height: 70px;
    padding-right: 14px;
    border-right: 1px solid #d8e3f0;
}

.wpopt-tracking-stat:last-child {
    padding-right: 0;
    border-right: 0;
}

.wpopt-tracking-stat span {
    display: block;
    margin-bottom: 8px;
    color: #66758f;
    font-size: 11px;
    font-weight: 800;
}

.wpopt-tracking-stat strong {
    color: #0e2343;
    font-size: 24px;
    line-height: 1;
}

.wpopt-tracking-stat strong small {
    color: #0e2343;
    font-size: 12px;
}

.wpopt-tracking-stat > small {
    margin-left: 8px;
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
}

.wpopt-sidebar .wps-box {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgb(15 23 42 / 6%);
}

.wpopt-sidebar .wps-box h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #112744;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.wpopt-sidebar .wps-box h3 .dashicons,
.wpopt-sidebar .wps-box h3 .wpopt-sidebar-title-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #1f7fe5;
    font-size: 18px;
    line-height: 20px;
}

.wpopt-sidebar .wpopt-support-card-primary {
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.wpopt-sidebar .wps-donation-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px 22px 20px;
    border: 1px solid #0b2a53;
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0, rgb(34 113 177 / 15%), transparent 78px),
        linear-gradient(145deg, #071b35 0%, #09264d 100%);
    box-shadow: 0 16px 32px rgb(15 23 42 / 28%);
    color: #f8fafc;
    text-align: left;
}

.wpopt-support-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 0 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #348cff 0%, #1c68e8 100%);
    color: #ffffff;
    font-size: 21px;
    line-height: 42px;
    box-shadow: 0 12px 24px rgb(47 124 246 / 34%);
}

.wpopt-support-icon .wpopt-support-icon-svg {
    width: 21px;
    height: 21px;
}

.wpopt-sidebar .wps-donation-title {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 9px;
}

.wpopt-sidebar .wpopt-muted {
    margin: 0 0 16px;
    color: #d7e5f8;
    font-size: 12px;
    line-height: 1.5;
}

.wpopt-sidebar .wps-donation-hr {
    background: #475569;
}

.wpopt-sidebar .dn-btc {
    background: #111827;
    border-color: #475569;
}

.wpopt-sidebar .wps-donation-name {
    color: #93c5fd;
}

.wpopt-sidebar .wps-donation-value {
    color: #f8fafc;
}

.wpopt-sidebar .wpopt-support-cta {
    display: grid;
    gap: 10px;
    margin-top: 0;
}

.wpopt-sidebar .wpopt-support-cta .wpopt-btn {
    width: 100%;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: none;
}

.wpopt-sidebar .wpopt-support-cta .wpopt-btn .dashicons,
.wpopt-sidebar .wpopt-support-cta .wpopt-btn .wpopt-btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    font-size: 16px;
    line-height: 16px;
}

.wpopt-sidebar .wpopt-support-cta .wpopt-btn.is-success {
    --wpopt-btn-border: #209647;
    --wpopt-btn-bg: #27a84d;
    --wpopt-btn-text: #ffffff;
    background: var(--wpopt-btn-bg) !important;
    border-color: var(--wpopt-btn-border) !important;
    color: var(--wpopt-btn-text) !important;
}

.wpopt-sidebar .wpopt-support-cta .wpopt-btn.is-neutral {
    --wpopt-btn-text: #f7fbff;
    --wpopt-btn-border: #8ca7c9;
    --wpopt-btn-bg: transparent;
}

.wpopt-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.wpopt-link-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpopt-link-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 10px 34px 10px 12px;
    border: 1px solid #d7e5f5;
    border-radius: 6px;
    background: #fbfdff;
    text-decoration: none;
    color: #20344f;
    font-size: 12px;
    font-weight: 800;
    box-shadow: none;
    transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.wpopt-link-list a .dashicons,
.wpopt-link-list a .wpopt-link-icon {
    color: #2f7cf6;
    width: 17px;
    height: 17px;
    font-size: 17px;
    line-height: 17px;
    transition: color 180ms ease;
}

.wpopt-link-list a::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #1f7fe5;
    border-right: 2px solid #1f7fe5;
    opacity: 1;
    transform: translateY(-50%) rotate(45deg);
    transition: color 180ms ease, opacity 180ms ease, right 180ms ease;
}

.wpopt-link-list a:hover,
.wpopt-link-list a:focus {
    border-color: #bfd7f4;
    background: #f7fbff;
    color: #071f38;
    box-shadow: 0 8px 18px rgb(15 44 82 / 7%);
}

.wpopt-link-list a:hover .dashicons,
.wpopt-link-list a:focus .dashicons,
.wpopt-link-list a:hover .wpopt-link-icon,
.wpopt-link-list a:focus .wpopt-link-icon {
    color: #1167e8;
}

.wpopt-link-list a:hover::after,
.wpopt-link-list a:focus::after {
    color: #1167e8;
    opacity: 1;
}

.wpopt-link-list a:active {
    box-shadow: 0 0 10px rgb(15 23 42 / 10%);
}

.wpopt-link-list a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(15 23 42 / 12%), 0 0 16px rgb(15 23 42 / 14%);
}

.dn-btc {
    padding: 10px 12px;
    border-radius: var(--wps-radius-sm);
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
}

.wps-donation-value {
    word-break: break-all;
    font-family: "Consolas", "Monaco", monospace;
    color: #1f2933;
}

@media (max-width: 1280px) {
    body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard.wpopt-dashboard-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-dashboard-shell .wpopt-sidebar {
        margin-top: 0;
        max-width: none;
    }

    .wpopt-dashboard-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-hero-art {
        display: flex;
    }

    .wpopt-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        min-width: 0;
    }

    .wpopt-module-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .wpopt-cron-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpopt-cron-overview-summary {
        grid-column: 1 / -1;
    }

    .wpopt-tracking-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
        align-items: stretch;
    }

}

@media (max-width: 782px) {
    body.wpopt-admin-screen .wpopt-dashboard-shell {
        padding: var(--wps-admin-page-gutter) !important;
    }

    body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard.wpopt-dashboard-shell {
        padding: 0 !important;
    }

    body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard .wpopt-sidebar {
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }

    body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard .wpopt-sidebar .wps-box,
    body.wpopt-admin-screen .wps-admin-app .wpopt-app-dashboard .wpopt-sidebar .wps-donation-wrap {
        width: 100%;
        max-width: none;
    }

    .wpopt-db-notice,
    .wpopt-db-sweep-card pre-table,
    .wpopt-db-backup-status {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-db-notice .wpopt-btn,
    .wpopt-db-sweeper-toolbar {
        width: 100%;
    }

    .wpopt-db-backup-status-result {
        justify-self: start;
    }

    .wpopt-db-backup-form {
        overflow-x: visible;
        overflow-y: visible;
    }

    .wpopt-db-backup-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-db-backup-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .wpopt-db-backup-row-actions .wpopt-btn {
        flex: 1 1 110px;
        max-width: none;
    }

    .wpopt-static-rules-table-wrap {
        max-width: 100%;
        overflow-x: visible;
    }

    .wpopt-static-rules-table {
        max-width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .wpopt-static-rules-table code {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }

    .wpopt-static-row-actions {
        display: grid;
        gap: 8px;
        width: 100%;
        white-space: normal;
    }

    .wpopt-static-row-actions .button {
        justify-content: center;
        width: 100%;
        margin-right: 0;
        white-space: normal;
    }

    .wpopt-db-backup-form .wps-actions .wpopt-db-button-row {
        justify-content: flex-start;
    }

    .wpopt-ajax-db .wpopt-db-button-row {
        justify-content: flex-start;
    }

    .wpopt-ajax-db .wpopt-db-button-row .wpopt-btn {
        max-width: none;
    }

    .wpopt-db-sweeper-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .wpopt-kpi-grid,
    .wpopt-module-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-tracking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpopt-dashboard-hero {
        padding: 20px !important;
    }

    .wpopt-hero-copy {
        max-width: min(460px, 72%);
    }

    .wpopt-hero-art {
        right: -16px;
        width: min(390px, 70%);
        opacity: 0.78;
    }

    .wpopt-panel-head {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
    }

    .wpopt-panel-head > span {
        align-self: flex-start;
    }

    .wpopt-cron-overview-head-actions {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        margin-left: 0;
    }

    .wpopt-cron-action-form .wpopt-btn {
        width: 100%;
    }

    .wpopt-tracking-stat {
        border-right: 0;
        border-bottom: 1px solid #d8e3f0;
        padding: 0 0 14px;
    }

    .wpopt-static-rules {
        padding: 16px;
    }

    .wpopt-cache-reset-panel {
        grid-template-columns: 1fr;
    }

    .wpopt-static-rules-head,
    .wpopt-cache-reset-panel .wps-custom-action {
        align-items: stretch;
        flex-direction: column;
    }

    .wpopt-static-rules-mode {
        width: max-content;
    }

    .wpopt-static-rule-form {
        grid-template-columns: 1fr;
    }

    .wpopt-static-rule-fields {
        grid-template-columns: 1fr;
    }

    .wpopt-static-rule-actions .description,
    .wpopt-static-rule-actions .wpopt-btn {
        grid-column: 1;
        grid-row: auto;
    }

    .wpopt-static-rule-actions .wpopt-btn,
    .wpopt-cache-reset-panel .wpopt-btn {
        width: 100%;
    }

    .wps-wrap .wpopt-db-button-row .wpopt-btn {
        width: 100% !important;
        min-width: 0;
    }

    .wpopt-mail-message-cell {
        min-width: 0;
    }

}

@media (max-width: 520px) {
    .wpopt-hero-copy {
        max-width: none;
    }

    .wpopt-hero-art {
        right: -95px;
        width: 360px;
        opacity: 0.28;
    }

    .wpopt-cron-overview-grid,
    .wpopt-tracking-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* WP Optimizer WPS admin theme. Shared layout lives in WPS framework. */
body.wpopt-admin-screen {
    --wpopt-admin-canvas-bg: #ffffff;
    --wps-admin-page-blue: #2c83ef;
    --wps-admin-page-blue-dark: #1f63c8;
    --wps-admin-page-blue-light: #85c2ff;
    --wps-admin-page-line: #d9e5f1;
    --wps-admin-page-ink: #263247;
    --wps-admin-page-muted: #667085;
    --wpopt-app-accent: var(--wps-accent, #2271b1);
    --wpopt-app-accent-dark: var(--wps-main-dark, #135e96);
    --wpopt-app-accent-soft: #eaf4ff;
    --wpopt-app-accent-soft-hover: #dcecff;
    background: var(--wpopt-admin-canvas-bg);
}

body.wpopt-admin-screen .wps-admin-app {
    --wps-app-shell-line: var(--wps-admin-page-line, #d9e5f1);
    background: var(--wpopt-admin-canvas-bg, #ffffff);
    color: var(--wps-admin-page-ink, #263247);
}

body.wpopt-admin-screen .wps-admin-app .wps-app-sidebar {
    background: #ffffff;
    border-right-color: var(--wps-admin-page-line, #d9e5f1);
}

body.wpopt-admin-screen .wps-admin-app .wps-app-brand {
    border-bottom-color: var(--wps-admin-page-line, #d9e5f1);
}

body.wpopt-admin-screen .wps-admin-app .wps-app-logo {
    background: var(--wpopt-app-accent, #2271b1);
    color: #ffffff;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-logo.has-image {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background: #ffffff;
    color: inherit;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-logo.has-image .wps-app-logo-image {
    width: 128%;
    height: 128%;
    max-width: none;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-brand strong {
    color: #0d1f3a;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-brand small {
    color: var(--wps-admin-page-muted, #667085);
}

body.wpopt-admin-screen .wps-admin-app .wps-app-nav-section {
    color: #8a99ad;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-nav-item {
    color: #263247;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-nav-item:hover,
body.wpopt-admin-screen .wps-admin-app .wps-app-nav-item:focus {
    background: var(--wpopt-app-accent-soft, #eaf4ff);
    color: var(--wpopt-app-accent-dark, #135e96);
}

body.wpopt-admin-screen .wps-admin-app .wps-app-nav-item.is-active {
    background: var(--wpopt-app-accent-soft-hover, #dcecff);
    color: var(--wpopt-app-accent-dark, #135e96);
    font-weight: 800;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-help {
    background: #f6f9fd;
    color: var(--wps-admin-page-ink, #263247);
}

body.wpopt-admin-screen .wps-admin-app .wps-app-help a {
    color: var(--wpopt-app-accent-dark, #135e96);
}

body.wpopt-admin-screen #wpwrap,
body.wpopt-admin-screen #wpcontent,
body.wpopt-admin-screen #wpbody,
body.wpopt-admin-screen #wpbody-content {
    background: var(--wpopt-admin-canvas-bg);
}

body.wpopt-admin-screen .wps-wrap {
    background: var(--wpopt-admin-canvas-bg);
}

body.wpopt-admin-screen .wps-wrap > block.wps,
body.wpopt-admin-screen .wps-wrap > .wps {
    box-shadow: none;
}

body.wpopt-admin-screen .wps-admin-app .wps-app-content:has(.wpopt-cron-manager),
body.wpopt-admin-screen .wps-admin-app .wps-app-content:has(.wpopt-db-manager-page),
body.wpopt-admin-screen .wps-admin-app .wps-app-content:has(.wpopt-media-optimizer-page) {
    overflow-x: hidden;
}

body.wpopt-admin-screen .wps-admin-app .wpopt-db-manager-page,
body.wpopt-admin-screen .wps-admin-app .wpopt-cron-manager,
body.wpopt-admin-screen .wps-admin-app .wpopt-db-shell,
body.wpopt-admin-screen .wps-admin-app .wpopt-db-manager-page .wps-ar-tabs,
body.wpopt-admin-screen .wps-admin-app .wpopt-db-manager-page .wps-ar-tabcontent,
body.wpopt-admin-screen .wps-admin-app .wpopt-media-optimizer-page,
body.wpopt-admin-screen .wps-admin-app .wpopt-media-optimizer-page > block.wps,
body.wpopt-admin-screen .wps-admin-app .wpopt-media-optimizer-page .wps-ar-tabs,
body.wpopt-admin-screen .wps-admin-app .wpopt-media-optimizer-page .wps-ar-tabcontent {
    min-width: 0;
    max-width: 100%;
}

body.wpopt-admin-screen .wps-admin-app .wpopt-db-shell,
body.wpopt-admin-screen .wps-admin-app .wpopt-media-optimizer-page > block.wps {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page > block.wps {
    --wpopt-media-gutter: 0px;
    --wpopt-media-card-pad: 14px;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-ar-tabcontent {
    padding-top: 0;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options {
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
    padding: 0 var(--wpopt-media-gutter) 16px !important;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options .wps-row {
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, auto) !important;
    align-items: center;
    gap: 14px !important;
    min-height: 68px;
    max-width: 100%;
    padding: var(--wpopt-media-card-pad) !important;
    border: 1px solid #d9e5f1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 44, 82, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options .wps-row:hover {
    border-color: #b9d3ee;
    box-shadow: 0 14px 34px rgba(15, 44, 82, 0.09);
    transform: translateY(-1px);
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options .wps-row::after {
    content: none;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-row-icon {
    width: 36px;
    height: 36px;
    justify-self: start;
    border-radius: 10px;
    background: linear-gradient(180deg, #edf5ff 0%, #e4f0ff 100%);
    box-shadow: inset 0 0 0 1px rgba(44, 131, 239, 0.12);
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-row:hover .wps-row-icon {
    background: linear-gradient(180deg, #e3f0ff 0%, #d7eaff 100%);
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-option strong {
    color: #17233a;
    font-size: 14px;
    line-height: 1.3;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-option-description {
    max-width: 68ch;
    color: #66758d;
    line-height: 1.45;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-inline-actions {
    display: flex;
    flex-wrap: wrap;
    justify-self: end;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    width: auto;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-inline-actions .wpopt-btn {
    min-width: 58px;
    min-height: 34px;
    padding: 0 12px;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-value:not(.wps-inline-actions) {
    justify-self: end;
    width: auto;
}

body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-status-pill {
    border: 1px solid #d7e3f0;
    background: #f7fbff;
    color: #43546b;
    font-weight: 800;
}

@media (min-width: 783px) and (max-width: 960px) {
    .wpopt-db-backup-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.wpopt-admin-screen .wps-wrap .wps-ar-tablist {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100%;
        max-height: none;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    body.wpopt-admin-screen .wps-wrap .wps-ar-tab {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
    }
}

.wpopt-media-preflight-notice {
    position: relative;
    display: block;
    margin: 0 var(--wpopt-media-gutter) 18px !important;
    padding: 20px 22px 20px 66px !important;
    overflow: hidden;
    border: 1px solid #bfd6ee !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f6fbff 58%, #eef6ff 100%) !important;
    box-shadow: 0 14px 36px rgba(15, 44, 82, 0.08) !important;
}

.wpopt-media-preflight-notice::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #2c83ef, #5c63f2) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 20px rgba(44, 131, 239, 0.18);
}

.wpopt-media-preflight-notice::after {
    content: "i";
    position: absolute;
    left: 35px;
    top: 28px;
    color: #2c83ef;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.wpopt-media-preflight-notice h3 {
    margin: 0 0 12px;
    color: #10203a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.wpopt-media-preflight-notice .wps-list {
    display: grid;
    gap: 9px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.wpopt-media-preflight-notice .wps-list li {
    position: relative;
    padding-left: 24px;
    color: #20314f;
}

.wpopt-media-preflight-notice .wps-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dcfce7;
    box-shadow: inset 0 0 0 4px #22c55e;
}

.wpopt-media-preflight-notice a {
    color: #0969b6;
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.wpopt-media-preflight-notice > strong:last-child {
    display: block;
    max-width: 82ch;
    color: #20314f;
    font-weight: 700;
    line-height: 1.55;
}

@media (max-width: 782px) {
    body.wpopt-admin-screen .wpopt-media-optimizer-page > block.wps {
        --wpopt-media-gutter: 0px;
        --wpopt-media-card-pad: 12px;
    }

    body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options {
        padding-bottom: 16px;
    }

    body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options .wps-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px 14px;
        border-radius: 10px;
    }

    body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options .wps-row .wps-value {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-inline-actions {
        justify-content: flex-start;
    }

    .wpopt-media-preflight-notice {
        margin-bottom: 16px !important;
        padding: 58px 14px 16px !important;
    }

    .wpopt-media-preflight-notice::before {
        left: 18px;
        top: 18px;
    }

    .wpopt-media-preflight-notice::after {
        left: 32px;
        top: 24px;
    }
}

@container wps-options (max-width: 560px) {
    body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options .wps-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px 14px;
    }

    body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-options .wps-row .wps-value {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    body.wpopt-admin-screen .wpopt-media-optimizer-page .wps-inline-actions {
        justify-content: flex-start;
    }
}

.wpopt-media-stats {
    display: block;
    margin: 0 0 24px;
}

.wpopt-media-stats-summary,
.wpopt-media-stat-card {
    border: 1px solid var(--wps-admin-page-line, #d9e5f1);
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.wpopt-media-stats-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
    padding: 18px 20px;
}

.wpopt-media-stats-summary-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.wpopt-media-stats-summary-item + .wpopt-media-stats-summary-item {
    border-left: 1px solid var(--wps-admin-page-line, #d9e5f1);
    padding-left: 34px;
}

.wpopt-media-stat-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 8px;
    color: var(--wps-admin-page-blue, #2c83ef);
    background: #eaf3ff;
}

.wpopt-media-stat-icon.is-green {
    color: #16a34a;
    background: #dcfce7;
}

.wpopt-media-stat-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.wpopt-media-stat-copy strong,
.wpopt-media-stat-card-body strong {
    color: var(--wps-admin-page-ink, #263247);
    font-size: 15px;
    font-weight: 800;
}

.wpopt-media-stat-copy span,
.wpopt-media-stat-card-body p {
    margin: 0;
    color: var(--wps-admin-page-muted, #667085);
    font-size: 13px;
}

.wpopt-media-stat-value {
    color: var(--wps-admin-page-ink, #263247);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.wpopt-media-stat-value.is-large {
    font-size: 34px;
    letter-spacing: 0;
}

.wpopt-media-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.wpopt-media-stat-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
    min-height: 220px;
    padding: 22px;
    background: #ffffff;
}

.wpopt-media-stat-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 22px;
    min-width: 0;
}

.wpopt-media-stat-card-body > strong,
.wpopt-media-stat-card-body > p {
    grid-column: 1 / -1;
}

.wpopt-media-stat-card-body .wpopt-media-stat-value {
    align-self: end;
}

.wpopt-media-stat-card:first-child .wpopt-media-progress-ring {
    grid-column: 1 / -1;
    justify-self: center;
}

.wpopt-media-stat-card:first-child .wpopt-media-stat-card-body > p {
    text-align: center;
}

.wpopt-media-progress-ring {
    --wpopt-media-progress: 0%;
    --wpopt-media-progress-color: #303134;
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: conic-gradient(var(--wpopt-media-progress-color) var(--wpopt-media-progress), #e5e7eb 0);
}

.wpopt-media-progress-ring.is-complete {
    --wpopt-media-progress-color: #22c55e;
}

.wpopt-media-progress-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #ffffff;
}

.wpopt-media-progress-ring span {
    position: relative;
    z-index: 1;
    color: #20242c;
    font-size: 28px;
    line-height: 1;
}

.wpopt-media-stats-reset {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    min-width: 0;
    padding: var(--wpopt-media-card-pad, 14px);
    border: 1px solid #d9e5f1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 44, 82, 0.06);
}

.wpopt-media-stats-reset .wpopt-media-stat-copy {
    min-width: 0;
}

.wpopt-media-stats-reset .wpopt-btn {
    justify-self: end;
    margin-left: 0;
}

@media (max-width: 960px) {
    .wpopt-media-stats-grid,
    .wpopt-media-stats-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-media-stats-summary-item + .wpopt-media-stats-summary-item {
        border-top: 1px solid var(--wps-admin-page-line, #d9e5f1);
        border-left: 0;
        margin-top: 18px;
        padding-top: 18px;
        padding-left: 0;
    }
}

@media (max-width: 782px) {
    .wpopt-media-stats {
        margin: 0 16px 18px;
    }

    .wpopt-media-stat-card,
    .wpopt-media-stat-card-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpopt-media-stats-reset {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .wpopt-media-stats-reset .wpopt-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.wpopt-faq-shell .wpopt-hero .wpopt-actions {
    position: relative;
    z-index: 2;
    margin-top: 18px;
}

/* FAQ */
body.wpopt-admin-screen .wpopt-faq-shell {
    --wpopt-faq-ink: #061a3d;
    --wpopt-faq-copy: #66748f;
    --wpopt-faq-line: #e1e7f1;
    --wpopt-faq-blue: var(--wps-accent, #2271b1);
    --wpopt-faq-icon-bg: rgb(var(--wps-accent-rgb, 34 113 177) / 10%);
    --wpopt-faq-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    max-width: none;
}

body.wpopt-admin-screen .wpopt-faq-shell > block.wps {
    overflow: hidden !important;
    border: 1px solid rgba(219, 227, 238, 0.72) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: var(--wpopt-faq-shadow) !important;
}

body.wpopt-admin-screen .wpopt-faq-shell .wpopt-hero {
    position: relative;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 104px !important;
    margin: 0 !important;
    padding: 28px 32px 24px !important;
    overflow: hidden !important;
    border: 0 !important;
    background: #ffffff !important;
    color: var(--wpopt-faq-ink) !important;
}

body.wpopt-admin-screen .wpopt-faq-shell .wpopt-hero::before {
    content: "";
    position: absolute;
    right: -46px;
    top: -66px;
    width: 176px;
    height: 176px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 104, 242, 0.12) 0 58%, transparent 59%);
}

body.wpopt-admin-screen .wpopt-faq-shell .wpopt-hero::after {
    content: "";
    position: absolute;
    right: 82px;
    top: 26px;
    width: 42px;
    height: 42px;
    opacity: .34;
    background-image: radial-gradient(rgba(89, 104, 242, 0.34) 1.5px, transparent 1.5px);
    background-size: 11px 11px;
}

body.wpopt-admin-screen .wpopt-faq-shell .wpopt-hero > * {
    position: relative;
    z-index: 1;
}

body.wpopt-admin-screen .wpopt-faq-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--wpopt-faq-blue);
    background: var(--wpopt-faq-icon-bg);
    box-shadow: inset 0 0 0 1px rgba(89, 104, 242, 0.06), 0 8px 18px rgba(89, 104, 242, 0.12);
}

body.wpopt-admin-screen .wpopt-faq-row-icon .wps-svg-icon {
    width: 17px;
    height: 17px;
}

body.wpopt-admin-screen .wpopt-faq-shell .wpopt-hero h1 {
    margin: 0 !important;
    color: var(--wpopt-faq-ink) !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

body.wpopt-admin-screen .wpopt-faq-shell .wpopt-hero p {
    margin: 8px 0 0;
    color: var(--wpopt-faq-copy);
    font-size: 14px;
    line-height: 1.45;
}

body.wpopt-admin-screen .wpopt-faq-shell .wpopt-faq-content,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wpopt-faq-content {
    margin: 0 !important;
    padding: 0 24px 24px !important;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-list,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-list {
    display: grid !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-item,
body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-question-wrapper,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-item,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-question-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-item {
    border-radius: 10px;
    transition: box-shadow 260ms ease;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-item.is-open {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-question,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-question {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    align-items: center !important;
    gap: 16px;
    min-height: 68px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    border: 1px solid var(--wpopt-faq-line) !important;
    border-left: 1px solid var(--wpopt-faq-line) !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: var(--wpopt-faq-ink) !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.035) !important;
    cursor: pointer;
    transition: border-color 220ms ease, border-radius 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-question:hover,
body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-question:focus,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-question:hover,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-question:focus {
    border-color: #d3dcec !important;
    border-left-color: #d3dcec !important;
    background: #ffffff !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
}

body.wpopt-admin-screen .wpopt-faq-question-text {
    color: var(--wpopt-faq-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-collapse-icon,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-collapse-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border: 1px solid var(--wpopt-faq-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--wpopt-faq-blue) !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.045);
    transform: rotate(0deg) scale(1);
    transform-origin: center;
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
    will-change: transform;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-item.is-open .wps-collapse-icon,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-item.is-open .wps-collapse-icon {
    color: #ffffff !important;
    border-color: var(--wpopt-faq-blue);
    background: var(--wpopt-faq-blue);
    box-shadow: 0 8px 18px rgba(89, 104, 242, 0.24);
    transform: rotate(135deg) scale(1.03);
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-item.is-open .wps-faq-question,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-item.is-open .wps-faq-question {
    border-color: #d3dcec !important;
    border-radius: 9px 9px 0 0 !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-answer,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-answer {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 22px 0 66px !important;
    border: 0 solid var(--wpopt-faq-line) !important;
    border-top: 0 !important;
    border-left: 0 solid var(--wpopt-faq-line) !important;
    border-radius: 0 0 9px 9px !important;
    background: #ffffff !important;
    color: var(--wpopt-faq-copy) !important;
    box-shadow: none !important;
    line-height: 1.58;
    opacity: 0;
    height: 0;
    transform: translateY(-8px);
    transform-origin: top;
    overflow: hidden;
    transition: height 420ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease, transform 360ms cubic-bezier(.22, 1, .36, 1);
    will-change: height, opacity, transform;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-item.is-open .wps-faq-answer,
body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-item.is-open .wps-faq-answer {
    margin: -4px 0 4px !important;
    padding: 18px 22px 20px 66px !important;
    border-width: 1px !important;
    border-top-width: 0 !important;
    border-left-width: 1px !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04) !important;
    opacity: 1;
    transform: translateY(0);
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-answer p {
    margin: 0 0 10px;
}

body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-answer p:last-child,
body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-answer ul:last-child {
    margin-bottom: 0;
}

@media (max-width: 782px) {
    body.wpopt-admin-screen .wpopt-faq-shell .wpopt-hero {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 22px 18px 20px !important;
    }

    body.wpopt-admin-screen .wpopt-faq-shell .wpopt-faq-content,
    body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wpopt-faq-content {
        padding: 0 14px 18px !important;
    }

    body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-question,
    body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-question {
        grid-template-columns: 32px minmax(0, 1fr) 34px;
        gap: 12px;
        padding: 10px 12px !important;
    }

    body.wpopt-admin-screen .wpopt-faq-shell .wps-faq-item.is-open .wps-faq-answer,
    body.wpopt-admin-screen .wps-admin-app .wpopt-faq-shell .wps-faq-item.is-open .wps-faq-answer {
        padding: 16px 16px 18px !important;
    }
}

/* System Info */
.wpopt-system-info,
.wpopt-system-info-list {
    --wpopt-system-info-ink: #061a3d;
    --wpopt-system-info-copy: #31486d;
    --wpopt-system-info-line: #e2e8f1;
    --wpopt-system-info-icon: var(--wps-accent, #2271b1);
    --wpopt-system-info-icon-bg: rgb(var(--wps-accent-rgb, 34 113 177) / 10%);
    --wpopt-system-info-panel: #ffffff;
    --wpopt-system-info-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.wpopt-system-info {
    display: block;
    margin-bottom: 2em;
}

.wpopt-system-info-list {
    display: grid;
    gap: 16px;
    width: 100%;
}

.wpopt-system-info-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.wpopt-system-info-card .sysinfo-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0 0 11px;
    border: 0;
    color: var(--wpopt-system-info-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.wpopt-system-info-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--wpopt-system-info-icon);
    background: var(--wpopt-system-info-icon-bg);
    box-shadow: inset 0 0 0 1px rgb(var(--wps-accent-rgb, 34 113 177) / 6%), 0 8px 18px rgb(var(--wps-accent-rgb, 34 113 177) / 12%);
}

.wpopt-system-info-title-icon .wps-svg-icon {
    width: 16px;
    height: 16px;
}

.wpopt-system-info-card#php .wpopt-system-info-title-icon {
    width: 36px;
    border-radius: 999px;
}

.wpopt-system-info-card#php .wpopt-system-info-title-icon .wps-svg-icon {
    display: none;
}

.wpopt-system-info-card#php .wpopt-system-info-title-icon::before {
    content: "php";
    color: var(--wpopt-system-info-ink);
    font-size: 11px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.wpopt-system-info-table.widefat {
    margin: 0;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--wpopt-system-info-panel) !important;
    box-shadow: var(--wpopt-system-info-shadow) !important;
}

.wpopt-system-info-table tbody,
.wpopt-system-info-table tbody tr,
.wpopt-system-info-table tbody tr.alternate,
.wpopt-system-info-table tbody tr:nth-child(odd),
.wpopt-system-info-table tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.wpopt-system-info-table tbody td {
    padding: 10px 18px;
    border: 0 !important;
    border-bottom: 1px solid var(--wpopt-system-info-line) !important;
    background: #ffffff !important;
    color: var(--wpopt-system-info-copy);
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

body.wpopt-admin-screen .wpopt-system-info-table.widefat tbody td,
body.wpopt-admin-screen .wpopt-system-info-table.widefat tbody th,
body.wpopt-admin-screen .wpopt-system-info-table.widefat tbody tr.alternate td {
    background: #ffffff !important;
}

.wpopt-system-info-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.wpopt-system-info-table tbody tr.alternate td {
    background: #ffffff !important;
}

.wpopt-system-info-table .width15 {
    width: 16%;
    color: var(--wpopt-system-info-ink);
}

.wpopt-system-info-table .width35 {
    width: 34%;
    color: var(--wpopt-system-info-copy);
}

.wpopt-system-info-table b {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
}

.wpopt-system-info-empty {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: var(--wpopt-system-info-panel);
    box-shadow: var(--wpopt-system-info-shadow);
    color: var(--wpopt-system-info-copy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 960px) {
    .wpopt-system-info-table.widefat,
    .wpopt-system-info-table tbody,
    .wpopt-system-info-table tr,
    .wpopt-system-info-table td {
        display: block;
        width: 100% !important;
    }

    .wpopt-system-info-table tbody td {
        box-sizing: border-box;
        border-bottom: 0;
    }

    .wpopt-system-info-table tbody td:nth-child(2n) {
        padding-top: 0;
        padding-left: 60px;
        border-bottom: 1px solid var(--wpopt-system-info-line);
    }

    .wpopt-system-info-table tbody tr:last-child td:last-child {
        border-bottom: 0;
    }

}

/* Performance Monitor */
.wpopt-perf-shell,
.wpopt-perf-slow-shell,
.wpopt-perf-cache-grid,
.wpopt-perf-component-shell {
    --wpopt-perf-ink: #0f172a;
    --wpopt-perf-muted: #64748b;
    --wpopt-perf-copy: #475569;
    --wpopt-perf-copy-strong: #334155;
    --wpopt-perf-line: rgba(15, 23, 42, 0.08);
    --wpopt-perf-line-strong: rgba(148, 163, 184, 0.34);
    --wpopt-perf-line-soft: rgba(148, 163, 184, 0.28);
    --wpopt-perf-track: rgba(148, 163, 184, 0.18);
    --wpopt-perf-surface: #fff;
    --wpopt-perf-panel: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --wpopt-perf-radius-sm: 12px;
    --wpopt-perf-radius-md: 14px;
    --wpopt-perf-radius-lg: 18px;
    --wpopt-perf-radius-xl: 22px;
    --wpopt-perf-radius-pill: 999px;
    --wpopt-perf-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.04);
    --wpopt-perf-shadow-card: 0 10px 22px rgba(15, 23, 42, 0.05);
    --wpopt-perf-shadow-panel: 0 16px 36px rgba(15, 23, 42, 0.07);
    --wpopt-perf-shadow-button: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.wpopt-perf-shell,
.wpopt-perf-kpis,
.wpopt-perf-type-grid,
.wpopt-perf-slow-chart-list,
.wpopt-perf-slow-meta,
.wpopt-perf-cache-layer-grid,
.wpopt-perf-component-shell,
.wpopt-perf-component-list,
.wpopt-perf-component-meta,
.wpopt-perf-component-facts,
.wpopt-perf-component-workload,
.wpopt-perf-type-stats,
.wpopt-perf-slow-metrics,
.wpopt-perf-component-metrics,
.wpopt-perf-component-section-head,
.wpopt-perf-component-fact {
    display: grid;
}

.wpopt-perf-toolbar,
.wpopt-perf-actions,
.wpopt-perf-legend,
.wpopt-perf-component-controls,
.wpopt-perf-slow-bar-stats,
.wpopt-perf-component-chips {
    display: flex;
    flex-wrap: wrap;
}

.wpopt-perf-shell {
    gap: 20px;
}

.wpopt-perf-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wpopt-perf-actions {
    gap: 10px;
    align-items: center;
}

.wpopt-perf-chart,
.wpopt-perf-cache-layer {
    border: 1px solid var(--wpopt-perf-line);
    border-radius: 16px;
    background: var(--wpopt-perf-panel);
}

.wpopt-perf-chart,
.wpopt-perf-table {
    overflow: auto;
}

.wpopt-perf-chart {
    padding: 16px;
}

.wpopt-perf-notice {
    display: grid;
    gap: 4px;
    margin: 16px 18px 0;
    padding: 12px 14px;
    border: 1px solid #f0c36d;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    background: #fff8e5;
    color: #3b2f13;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.08);
}

body.wps-admin-screen .wpopt-performance-monitor-page .wps-ar-tabs > .wpopt-perf-notice {
    margin: 0;
}

.wpopt-perf-notice strong {
    color: #1d2327;
}

.wpopt-perf-notice span {
    line-height: 1.45;
}

.wpopt-perf-chart h3,
.wpopt-perf-table h3 {
    margin-top: 0;
}

.wpopt-perf-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--wpopt-perf-radius-sm);
    color: var(--wpopt-perf-muted);
    background: #f8fafc;
}

.wpopt-perf-legend {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--wpopt-perf-copy);
}

.wpopt-perf-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wpopt-perf-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: var(--wpopt-perf-radius-pill);
}

/* Overview */
.wpopt-perf-kpis {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.wpopt-perf-kpi,
.wpopt-perf-type-card {
    border: 1px solid var(--wpopt-perf-line);
    border-radius: var(--wpopt-perf-radius-md);
    background: var(--wpopt-perf-surface);
}

.wpopt-perf-kpi {
    padding: 16px;
}

.wpopt-perf-kpi span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--wpopt-perf-muted);
}

.wpopt-perf-kpi strong {
    font-size: 24px;
    color: var(--wpopt-perf-ink);
}

.wpopt-perf-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
}

.wpopt-perf-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.wpopt-perf-type-card {
    padding: 14px;
}

.wpopt-perf-type-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.wpopt-perf-type-top strong,
.wpopt-perf-slow-bar-title,
.wpopt-perf-slow-section strong,
.wpopt-perf-cache-layer-head strong,
.wpopt-perf-component-title,
.wpopt-perf-component-fact strong,
.wpopt-perf-component-section-head strong {
    display: block;
    color: var(--wpopt-perf-ink);
}

.wpopt-perf-type-top span {
    font-size: 12px;
    color: var(--wpopt-perf-muted);
}

.wpopt-perf-type-accent {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.wpopt-perf-type-stats,
.wpopt-perf-cache-layer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wpopt-perf-type-stats {
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
}

.wpopt-perf-type-stats b {
    display: block;
    color: var(--wpopt-perf-ink);
    font-size: 14px;
}

/* Slow queries */
.wpopt-perf-slow-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
    gap: 18px;
    align-items: start;
}

.wpopt-perf-slow-chart-list,
.wpopt-perf-slow-meta {
    gap: 12px;
}

.wpopt-perf-slow-bar,
.wpopt-perf-component-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--wpopt-perf-line-strong);
    border-radius: 20px;
    padding: 16px 18px;
    text-align: left;
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.wpopt-perf-slow-bar {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    background: linear-gradient(135deg, #fcfffe 0%, #f3fbfb 100%);
}

.wpopt-perf-slow-bar:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
}

.wpopt-perf-slow-bar[data-active="1"] {
    border-color: #0f766e;
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.16);
    background: linear-gradient(135deg, #f4fffe 0%, #ecfdf5 100%);
}

.wpopt-perf-slow-rank,
.wpopt-perf-component-rank {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0 8px;
    border-radius: var(--wpopt-perf-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wpopt-perf-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

.wpopt-perf-slow-rank {
    min-width: 30px;
    height: 30px;
    z-index: 2;
}

.wpopt-perf-component-rank {
    min-width: 32px;
    height: 32px;
}

.wpopt-perf-slow-bar[data-active="1"] .wpopt-perf-slow-rank,
.wpopt-perf-component-card[data-active="1"] .wpopt-perf-component-rank {
    background: #0f766e;
}

.wpopt-perf-slow-bar-copy,
.wpopt-perf-component-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.wpopt-perf-slow-bar-copy {
    padding-right: 42px;
}

.wpopt-perf-component-copy {
    padding-right: 46px;
}

.wpopt-perf-slow-bar-head,
.wpopt-perf-cache-layer-head,
.wpopt-perf-component-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.wpopt-perf-slow-bar-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.wpopt-perf-slow-bar-context,
.wpopt-perf-slow-bar-peak small,
.wpopt-perf-slow-detail-kicker,
.wpopt-perf-cache-badge,
.wpopt-perf-cache-mini span,
.wpopt-perf-cache-layer-stats span,
.wpopt-perf-component-kicker,
.wpopt-perf-component-main small,
.wpopt-perf-component-metrics span,
.wpopt-perf-component-section-head span,
.wpopt-perf-component-fact span,
.wpopt-perf-component-link span,
.wpopt-perf-component-description span,
.wpopt-perf-component-workload-item span {
    color: var(--wpopt-perf-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.wpopt-perf-slow-detail-kicker,
.wpopt-perf-cache-badge,
.wpopt-perf-component-section-head span,
.wpopt-perf-component-fact span,
.wpopt-perf-component-link span,
.wpopt-perf-component-description span,
.wpopt-perf-component-workload-item span {
    font-weight: 700;
}

.wpopt-perf-slow-bar-context {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wpopt-perf-copy);
}

.wpopt-perf-slow-bar-peak,
.wpopt-perf-component-main {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: var(--wpopt-perf-ink);
    white-space: nowrap;
}

.wpopt-perf-slow-bar-peak strong {
    font-size: 16px;
    line-height: 1;
}

.wpopt-perf-slow-meter,
.wpopt-perf-component-meter {
    position: relative;
    width: 100%;
    border-radius: var(--wpopt-perf-radius-pill);
    background: var(--wpopt-perf-track);
    overflow: hidden;
}

.wpopt-perf-slow-meter {
    display: block;
    height: 8px;
}

.wpopt-perf-component-meter {
    height: 10px;
}

.wpopt-perf-slow-meter span,
.wpopt-perf-component-meter span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: var(--wpopt-perf-radius-pill);
}

.wpopt-perf-slow-meter span {
    background: linear-gradient(90deg, #38bdf8 0%, #0f766e 100%);
    box-shadow: 0 0 18px rgba(15, 118, 110, 0.24);
}

.wpopt-perf-slow-bar-stats,
.wpopt-perf-component-chips {
    gap: 8px;
}

.wpopt-perf-slow-chip,
.wpopt-perf-component-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--wpopt-perf-radius-pill);
    background: #fff;
    border: 1px solid var(--wpopt-perf-line-soft);
    color: var(--wpopt-perf-copy-strong);
    font-size: 11px;
}

.wpopt-perf-slow-chip b,
.wpopt-perf-component-chip b {
    color: var(--wpopt-perf-ink);
    font-size: 12px;
}

.wpopt-perf-slow-details,
.wpopt-perf-component-detail {
    position: sticky;
    top: 16px;
    border: 1px solid var(--wpopt-perf-line);
    border-radius: var(--wpopt-perf-radius-xl);
    padding: 18px;
    box-shadow: var(--wpopt-perf-shadow-panel);
}

.wpopt-perf-slow-details {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 34%), var(--wpopt-perf-panel);
}

.wpopt-perf-component-detail {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34%), var(--wpopt-perf-panel);
}

.wpopt-perf-slow-detail-head,
.wpopt-perf-component-detail-head {
    margin-bottom: 16px;
}

.wpopt-perf-slow-detail-head h4,
.wpopt-perf-component-detail-head h4 {
    font-size: 18px;
    line-height: 1.35;
    color: var(--wpopt-perf-ink);
}

.wpopt-perf-slow-detail-head h4 {
    margin: 6px 0 8px;
}

.wpopt-perf-component-detail-head h4 {
    margin: 0 0 8px;
}

.wpopt-perf-slow-detail-head p,
.wpopt-perf-component-detail-head p,
.wpopt-perf-cache-summary p {
    margin: 0;
    color: var(--wpopt-perf-copy);
}

.wpopt-perf-slow-detail-kicker,
.wpopt-perf-cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--wpopt-perf-radius-pill);
}

.wpopt-perf-slow-detail-kicker {
    background: #ecfeff;
    color: #0f766e;
}

.wpopt-perf-slow-metrics,
.wpopt-perf-component-metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.wpopt-perf-slow-metrics div,
.wpopt-perf-component-metrics div {
    border: 1px solid var(--wpopt-perf-line);
    border-radius: var(--wpopt-perf-radius-md);
    background: #fff;
    padding: 12px;
    box-shadow: var(--wpopt-perf-shadow-soft);
}

.wpopt-perf-slow-metrics span,
.wpopt-perf-component-metrics span {
    display: block;
    margin-bottom: 6px;
}

.wpopt-perf-slow-metrics strong,
.wpopt-perf-component-metrics strong {
    display: block;
    color: var(--wpopt-perf-ink);
    font-size: 16px;
}

.wpopt-perf-slow-section {
    border: 1px solid var(--wpopt-perf-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 14px;
}

.wpopt-perf-slow-meta p,
.wpopt-perf-component-description p {
    color: var(--wpopt-perf-copy-strong);
}

.wpopt-perf-slow-meta p {
    margin: .45em 0 0;
}

.wpopt-perf-slow-meta pre {
    margin: 8px 0 0;
    padding: 12px;
    border-radius: var(--wpopt-perf-radius-md);
    background: #0f172a;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.wpopt-perf-slow-meta code {
    font-family: Consolas, Monaco, monospace;
}

/* Cache */
.wpopt-perf-cache-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.wpopt-perf-cache-summary {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--wpopt-perf-line);
    border-radius: var(--wpopt-perf-radius-xl);
    padding: 20px;
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 42%), var(--wpopt-perf-panel);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.wpopt-perf-meta-note {
    margin-top: 10px;
}

.wpopt-perf-cache-badge {
    background: #ecfeff;
    color: #0f766e;
}

.wpopt-perf-cache-ring-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.wpopt-perf-cache-ring-box {
    position: relative;
    width: 168px;
    height: 168px;
}

.wpopt-perf-cache-ring {
    --wpopt-ratio: 0;
    display: grid;
    place-items: center;
    width: 168px;
    height: 168px;
    border-radius: var(--wpopt-perf-radius-pill);
    background: conic-gradient(#0f766e 0 calc(var(--wpopt-ratio) * 1%), #f59e0b calc(var(--wpopt-ratio) * 1%) 100%);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.10);
}

.wpopt-perf-cache-ring::before {
    content: "";
    width: 118px;
    height: 118px;
    border-radius: var(--wpopt-perf-radius-pill);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.wpopt-perf-cache-ring-copy {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.wpopt-perf-cache-ring-copy strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: var(--wpopt-perf-ink);
}

.wpopt-perf-cache-ring-copy span {
    display: block;
    margin-top: 6px;
    color: var(--wpopt-perf-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.wpopt-perf-cache-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 1 1 220px;
}

.wpopt-perf-cache-mini {
    border: 1px solid var(--wpopt-perf-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.wpopt-perf-cache-mini span {
    display: block;
    margin-bottom: 6px;
}

.wpopt-perf-cache-mini strong,
.wpopt-perf-cache-layer-ratio {
    display: block;
    color: var(--wpopt-perf-ink);
}

.wpopt-perf-cache-mini strong {
    font-size: 20px;
}

.wpopt-perf-cache-layer-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.wpopt-perf-cache-layer {
    border-radius: var(--wpopt-perf-radius-lg);
    padding: 16px;
    box-shadow: var(--wpopt-perf-shadow-card);
}

.wpopt-perf-cache-layer-head {
    margin-bottom: 12px;
}

.wpopt-perf-cache-layer-head strong {
    font-size: 16px;
}

.wpopt-perf-cache-layer-head span {
    display: block;
    color: var(--wpopt-perf-muted);
    font-size: 12px;
}

.wpopt-perf-cache-layer-ratio {
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.wpopt-perf-cache-meter {
    display: flex;
    width: 100%;
    height: 12px;
    margin-bottom: 12px;
    border-radius: var(--wpopt-perf-radius-pill);
    background: #e2e8f0;
    overflow: hidden;
}

.wpopt-perf-cache-meter span {
    display: block;
    height: 100%;
}

.wpopt-perf-cache-meter .is-hit {
    background: linear-gradient(90deg, #2dd4bf 0%, #0f766e 100%);
}

.wpopt-perf-cache-meter .is-miss {
    background: linear-gradient(90deg, #fbbf24 0%, #ea580c 100%);
}

.wpopt-perf-cache-layer-stats {
    gap: 10px;
}

.wpopt-perf-cache-layer-stats span {
    display: block;
    margin-bottom: 5px;
}

.wpopt-perf-cache-layer-stats b {
    display: block;
    color: var(--wpopt-perf-ink);
    font-size: 15px;
}

/* Components */
.wpopt-perf-component-shell {
    gap: 18px;
}

.wpopt-perf-component-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
    gap: 18px;
    align-items: start;
}

.wpopt-perf-component-controls {
    gap: 8px;
}

.wpopt-perf-component-sort {
    appearance: none;
    border: 1px solid var(--wpopt-perf-line-strong);
    border-radius: var(--wpopt-perf-radius-pill);
    background: #fff;
    padding: 8px 12px;
    color: var(--wpopt-perf-copy-strong);
    font-size: 12px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.wpopt-perf-component-sort:hover {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.wpopt-perf-component-sort.is-active {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #0f766e;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.12);
}

.wpopt-perf-component-list {
    gap: 12px;
}

.wpopt-perf-component-card {
    box-shadow: var(--wpopt-perf-shadow-button);
    background: linear-gradient(135deg, #fcfffe 0%, #f8fbff 100%);
}

.wpopt-perf-component-card:hover {
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.10);
}

.wpopt-perf-component-card[data-active="1"] {
    border-color: #0f766e;
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.14);
    background: linear-gradient(135deg, #f7fffd 0%, #ecfdf5 100%);
}

.wpopt-perf-component-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wpopt-perf-component-kicker b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: var(--wpopt-perf-radius-pill);
    background: #e2e8f0;
    color: var(--wpopt-perf-ink);
    font-size: 10px;
}

.wpopt-perf-component-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.wpopt-perf-component-sub {
    display: block;
    color: var(--wpopt-perf-muted);
    font-size: 12px;
}

.wpopt-perf-component-main strong {
    font-size: 18px;
    line-height: 1;
}

.wpopt-perf-component-meter span {
    background: linear-gradient(90deg, #0ea5e9 0%, #0f766e 100%);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.22);
}

.wpopt-perf-component-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wpopt-perf-component-section {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--wpopt-perf-line);
    border-radius: var(--wpopt-perf-radius-lg);
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.wpopt-perf-component-section::before,
.wpopt-perf-component-workload-item::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
}

.wpopt-perf-component-section::before {
    height: 1px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.55), rgba(15, 118, 110, 0.22));
}

.wpopt-perf-component-section-workload {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 38%), linear-gradient(180deg, #fbfffd 0%, #f3fbf7 100%);
}

.wpopt-perf-component-section-head {
    gap: 4px;
    margin-bottom: 14px;
}

.wpopt-perf-component-section-head strong {
    font-size: 16px;
    line-height: 1.25;
}

.wpopt-perf-component-section-workload .wpopt-perf-component-section-head span {
    color: #0f766e;
}

.wpopt-perf-component-facts,
.wpopt-perf-component-workload {
    gap: 10px;
}

.wpopt-perf-component-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpopt-perf-component-workload {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpopt-perf-component-fact,
.wpopt-perf-component-link,
.wpopt-perf-component-description,
.wpopt-perf-component-workload-item {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--wpopt-perf-radius-md);
    background: rgba(255, 255, 255, 0.92);
    padding: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.wpopt-perf-component-fact {
    gap: 6px;
}

.wpopt-perf-component-fact strong {
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.wpopt-perf-component-link {
    gap: 6px;
    text-decoration: none;
    color: var(--wpopt-perf-ink);
    transition: box-shadow .18s ease, border-color .18s ease;
}

.wpopt-perf-component-link strong {
    display: block;
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.wpopt-perf-component-link:hover {
    border-color: rgba(29, 78, 216, 0.3);
    box-shadow: 0 12px 22px rgba(29, 78, 216, 0.10);
}

.wpopt-perf-component-link:hover strong {
    color: #1e40af;
}

.wpopt-perf-component-description {
    grid-column: 1 / -1;
}

.wpopt-perf-component-description p {
    margin: 8px 0 0;
    line-height: 1.55;
}

.wpopt-perf-component-workload-item {
    position: relative;
    overflow: hidden;
}

.wpopt-perf-component-workload-item::after {
    inset: auto auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.9), rgba(15, 118, 110, 0.9));
    opacity: .75;
}

.wpopt-perf-component-workload-item strong {
    display: block;
    margin-top: 8px;
    color: var(--wpopt-perf-ink);
    font-size: 18px;
    line-height: 1.2;
}

.wps-wrap input.wpopt-sample-rate-range[type="range"] {
    --wpopt-range-fill: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.wps-wrap input.wpopt-sample-rate-range[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border: 1px solid #8da0b3;
    border-radius: 999px;
    background: linear-gradient(90deg, #5f7784 0 var(--wpopt-range-fill), #ffffff var(--wpopt-range-fill) 100%);
}

.wps-wrap input.wpopt-sample-rate-range[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: #5f7784;
    box-shadow: 0 0 0 2px #5f7784;
}

.wps-wrap input.wpopt-sample-rate-range[type="range"]::-moz-range-track {
    height: 8px;
    border: 1px solid #8da0b3;
    border-radius: 999px;
    background: #ffffff;
}

.wps-wrap input.wpopt-sample-rate-range[type="range"]::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #5f7784;
}

.wps-wrap input.wpopt-sample-rate-range[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #5f7784;
    box-shadow: 0 0 0 2px #5f7784;
}

/* Performance Monitor: responsive */
@media (max-width: 980px) {
    .wpopt-perf-grid,
    .wpopt-perf-slow-shell,
    .wpopt-perf-cache-grid,
    .wpopt-perf-component-grid {
        grid-template-columns: 1fr;
    }

    .wpopt-perf-slow-details,
    .wpopt-perf-component-detail {
        position: static;
    }

    .wpopt-perf-component-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wpopt-perf-component-facts,
    .wpopt-perf-component-workload {
        grid-template-columns: 1fr;
    }
}

/* Settings transfer panel */
body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer {
    display: grid !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 32px !important;
    box-sizing: border-box !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 40px rgba(15, 44, 82, 0.08) !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-settings-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0 0 20px !important;
    border-bottom: 1px solid #e5edf5 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 208px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn .dashicons {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    line-height: 18px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-danger {
    color: #ef3e2f !important;
    border-color: #ff9f94 !important;
    background: #ffffff !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-danger:hover,
body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-danger:focus {
    border-color: #ef3e2f !important;
    background: #fff7f5 !important;
    color: #d92d20 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-neutral {
    color: #15213a !important;
    border-color: #c7d2e2 !important;
    background: #ffffff !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-neutral:hover,
body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-neutral:focus {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-info {
    color: #ffffff !important;
    border-color: var(--wps-main-dark, #135e96) !important;
    background: linear-gradient(135deg, var(--wps-accent, #2271b1) 0%, var(--wps-main-dark, #135e96) 100%) !important;
    box-shadow: 0 12px 24px rgb(var(--wps-accent-rgb, 34 113 177) / 22%) !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-info:hover,
body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn.is-info:focus {
    border-color: #0f5a90 !important;
    background: linear-gradient(135deg, #1c67a4 0%, #0f5a90 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgb(var(--wps-accent-rgb, 34 113 177) / 28%) !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-settings-import {
    display: grid !important;
    grid-template-columns: minmax(360px, 1fr) 1px minmax(300px, 1fr) !important;
    align-items: center !important;
    gap: 56px !important;
    min-height: 182px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

@media (max-width: 1240px) {
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-settings-import {
        grid-template-columns: minmax(320px, 1fr) 1px minmax(260px, 1fr) !important;
        gap: 40px !important;
    }
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 22px !important;
    min-height: 182px !important;
    padding: 34px 56px !important;
    border: 1px dashed #8eb9da !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 20% 50%, rgb(var(--wps-accent-rgb, 34 113 177) / 10%), transparent 28%),
        linear-gradient(135deg, rgb(var(--wps-accent-rgb, 34 113 177) / 6%), rgba(255, 255, 255, 0.96) 58%) !important;
    box-shadow: none !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone:hover,
body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone:focus-within {
    border-color: var(--wps-accent, #2271b1) !important;
    background:
        radial-gradient(circle at 20% 50%, rgb(var(--wps-accent-rgb, 34 113 177) / 15%), transparent 30%),
        linear-gradient(135deg, rgb(var(--wps-accent-rgb, 34 113 177) / 8%), rgba(255, 255, 255, 0.98) 58%) !important;
    box-shadow: 0 14px 30px rgb(var(--wps-accent-rgb, 34 113 177) / 12%) !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone-icon {
    position: relative !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    background: rgb(var(--wps-accent-rgb, 34 113 177) / 12%) !important;
    color: var(--wps-accent, #2271b1) !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone-icon .wps-svg-icon {
    width: 34px !important;
    height: 34px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone-copy {
    gap: 10px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone-copy strong {
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone-copy small,
body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-action p {
    max-width: 300px !important;
    margin: 0 !important;
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-divider {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    place-self: stretch center !important;
    width: 1px !important;
    min-height: 182px !important;
    overflow: visible !important;
    background: #e5edf5 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    pointer-events: none !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-divider::before {
    content: "";
    position: absolute !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #e5edf5 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 44, 82, 0.05) !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-divider span {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-action {
    display: grid !important;
    justify-items: start !important;
    gap: 16px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-action .wps-button.wpopt-btn {
    min-width: 214px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups {
    display: grid !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 22px 0 0 !important;
    padding: 24px 32px !important;
    box-sizing: border-box !important;
    border: 1px solid #dce6f1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 32px rgba(15, 44, 82, 0.06) !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e5edf5 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-header h2 {
    margin: 0 0 6px !important;
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-header p,
body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-empty {
    max-width: 760px !important;
    margin: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table {
    width: 100% !important;
    min-width: 680px !important;
    table-layout: fixed !important;
    border: 1px solid #e5edf5 !important;
    border-radius: 8px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th:nth-child(1),
body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td:nth-child(1) {
    width: 42% !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th:nth-child(2),
body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td:nth-child(2) {
    width: 22% !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th:nth-child(3),
body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td:nth-child(3) {
    width: 36% !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th {
    padding: 12px 14px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td {
    padding: 14px !important;
    vertical-align: middle !important;
    color: #263247 !important;
    border-top: 1px solid #edf2f7 !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td:first-child {
    display: grid !important;
    gap: 5px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table code {
    width: fit-content !important;
    max-width: 100% !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 12px !important;
    word-break: break-word !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-actions .wps-button.wpopt-btn {
    min-width: 124px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

@media (max-width: 782px) {
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table-wrap {
        max-width: 100% !important;
        overflow-x: visible !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table {
        display: block !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table tbody {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th,
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td,
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th:nth-child(1),
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td:nth-child(1),
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th:nth-child(2),
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td:nth-child(2),
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table th:nth-child(3),
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-table td:nth-child(3) {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 980px) {
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-settings-import {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-divider {
        width: 100% !important;
        min-height: 1px !important;
        height: 1px !important;
    }
}

@media (max-width: 700px) {
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer,
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups {
        padding: 20px !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-settings-actions,
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-action {
        align-items: stretch !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-button.wpopt-btn,
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-action .wps-button.wpopt-btn {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        min-height: 0 !important;
        padding: 28px 20px !important;
        text-align: center !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wps-import-dropzone-copy small,
    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-action p {
        max-width: none !important;
        text-align: center !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-settings-transfer .wpopt-import-action {
        justify-items: stretch !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-actions {
        justify-content: flex-start !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.wps-admin-screen .wpopt-core-settings-page .wpopt-configuration-backups-actions .wps-button.wpopt-btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Cloudflare settings */
.wpopt-cloudflare-form {
    display: grid;
    gap: 18px;
    width: 100%;
    margin: 0;
}

.wpopt-cloudflare-form [hidden] {
    display: none !important;
}

body.wps-admin-screen .wps-core-settings-page .wpopt-cloudflare-form {
    padding: 0;
}

.wpopt-cloudflare-card {
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgb(15 44 82 / 6%);
}

.wpopt-cloudflare-panel {
    display: grid;
    gap: 22px;
    width: 100%;
    padding: 22px 24px 18px;
    box-sizing: border-box;
}

.wpopt-cloudflare-head h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.wpopt-cloudflare-head p {
    margin: 0;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.55;
}

.wpopt-cloudflare-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    color: #0f172a;
    font-weight: 800;
}

.wpopt-cloudflare-toggle input.wps-apple-switch {
    width: 40px;
    height: 22px;
    min-width: 40px;
    border: 1px solid #cbd5e1;
    background: #e9eef5 !important;
    box-shadow: none;
}

.wpopt-cloudflare-toggle input.wps-apple-switch::after {
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgb(15 23 42 / 20%);
}

.wpopt-cloudflare-toggle input.wps-apple-switch:checked {
    border-color: #5b5ce2;
    background: #6157e8 !important;
    box-shadow: 0 0 0 3px rgb(97 87 232 / 13%);
}

.wpopt-cloudflare-toggle input.wps-apple-switch:checked::after {
    left: 20px;
    background: #ffffff;
    box-shadow: 0 1px 5px rgb(15 23 42 / 24%);
}

.wpopt-cloudflare-toggle strong {
    font-size: 13px;
    line-height: 1.35;
}

.wpopt-cloudflare-help {
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #f7f8fb;
}

.wpopt-cloudflare-help summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 16px;
    color: #4f46e5;
    font-weight: 600;
    cursor: pointer;
}

.wpopt-cloudflare-help summary::marker {
    content: "";
}

.wpopt-cloudflare-help summary::before {
    content: ">";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    font-size: 18px;
    line-height: 1;
    transition: transform 160ms ease;
}

.wpopt-cloudflare-help[open] summary::before {
    transform: rotate(90deg);
}

.wpopt-cloudflare-help div {
    padding: 0 16px 14px 38px;
    color: #475569;
}

.wpopt-cloudflare-help p {
    margin: 0;
    max-width: 82ch;
    line-height: 1.55;
}

.wpopt-cloudflare-fields {
    display: grid;
    gap: 0;
    margin-top: 4px;
}

.wpopt-cloudflare-field {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 64px;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
}

.wpopt-cloudflare-field:first-child {
    border-top: 1px solid #edf0f4;
}

.wpopt-cloudflare-field span {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.wpopt-cloudflare-field input.regular-text,
.wpopt-cloudflare-field select {
    width: 100%;
    max-width: none;
    min-height: 40px;
    border-color: #d8e0ea;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: none;
}

.wpopt-cloudflare-field select {
    max-width: 400px;
    padding-right: 34px;
}

.wpopt-cloudflare-submit {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.wpopt-cloudflare-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1;
    border-color: #d5dde8;
    background: #ffffff;
    color: #0f172a;
}

@media (max-width: 700px) {
    .wpopt-cloudflare-panel {
        padding: 18px 16px 14px;
    }

    .wpopt-cloudflare-field {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
    }

    .wpopt-cloudflare-field select {
        max-width: none;
    }
}

.wpopt-page-test-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.wpopt-page-test-main {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.wpopt-page-test-panel {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 12px;
}

.wpopt-page-test-stack {
    display: grid;
    gap: 10px;
}

.wpopt-page-test-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 84%);
}

.wpopt-page-test-head h2 {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.wpopt-page-test-head p {
    max-width: 74ch;
    margin: 0;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.5;
}

.wpopt-page-test-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #cdddf7;
    border-radius: 8px;
    background: linear-gradient(180deg, #edf7ff 0%, #e7f1ff 100%);
    color: #1557b0;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%);
}

.wpopt-page-test-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) max-content;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: #f8fafc;
    box-sizing: border-box;
}

.wpopt-page-test-form input[type="url"] {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wpopt-page-test-form input[type="url"]:focus {
    border-color: #2f7cf6;
    box-shadow: 0 0 0 3px rgb(47 124 246 / 14%);
    outline: none;
}

.wpopt-page-test-form .wpopt-btn {
    --wpopt-page-test-progress: 0%;
    position: relative;
    overflow: hidden;
    min-height: 42px;
    min-width: 126px;
    white-space: nowrap;
    isolation: isolate;
    box-shadow: 0 10px 18px rgb(20 105 185 / 18%);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.wpopt-page-test-form .wpopt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgb(20 105 185 / 22%);
}

.wpopt-page-test-form .wpopt-btn:disabled {
    opacity: 1;
    cursor: progress;
}

.wpopt-page-test-form .wpopt-btn > .dashicons,
.wpopt-page-test-form .wpopt-btn > [data-wpopt-page-test-button-text] {
    position: relative;
    z-index: 2;
}

.wpopt-page-test-button-progress {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: var(--wpopt-page-test-progress);
    background: linear-gradient(90deg, rgb(16 185 129 / 32%), rgb(255 255 255 / 24%));
    transition: width 360ms cubic-bezier(.22, 1, .36, 1);
}

.wpopt-page-test-form .wpopt-btn.is-running::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 46%;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 28%), transparent);
    animation: wpoptPageTestButtonSheen 1.25s linear infinite;
}

.wpopt-page-test-form .wpopt-btn.is-running .dashicons {
    animation: wpoptPageTestPulse 900ms ease-in-out infinite;
}

.wpopt-page-test-status {
    min-height: 32px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 6px 16px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.wpopt-page-test-status.is-running {
    border-color: #c7d7f4;
    background: #eff6ff;
    color: #1557b0;
}

.wpopt-page-test-status.is-success {
    border-color: #bddfcf;
    background: #effaf4;
    color: #146c43;
}

.wpopt-page-test-status.is-error {
    border-color: #f1c7c7;
    background: #fff1f1;
    color: #b42318;
}

.wpopt-page-test-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wpopt-page-test-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    min-height: 88px;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgb(15 44 82 / 4%);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.wpopt-page-test-step > .dashicons {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.wpopt-page-test-step strong {
    min-width: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.wpopt-page-test-step small {
    min-width: 0;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.wpopt-page-test-step-metrics {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.wpopt-page-test-step-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.wpopt-page-test-step-metrics b {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.wpopt-page-test-step-metrics em {
    color: #0f172a;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.wpopt-page-test-step-metrics em.is-good {
    color: #15803d;
}

.wpopt-page-test-step-metrics em.is-bad {
    color: #b42318;
}

.wpopt-page-test-step.is-running {
    border-color: #b9cdf0;
    background: #f4f8ff;
    box-shadow: 0 12px 30px rgb(47 124 246 / 10%);
    transform: translateY(-1px);
}

.wpopt-page-test-step.is-running > .dashicons {
    background: #dbeafe;
    color: #1d4ed8;
    animation: wpoptPageTestIconPulse 900ms ease-in-out infinite;
}

.wpopt-page-test-step.is-done {
    border-color: #b8dec9;
    background: #f4fbf7;
}

.wpopt-page-test-step.is-done > .dashicons {
    background: #dcfce7;
    color: #15803d;
    transform: scale(1.04);
}

.wpopt-page-test-step.is-failed {
    border-color: #f3c2c2;
    background: #fff5f5;
}

.wpopt-page-test-step.is-failed > .dashicons {
    background: #fee2e2;
    color: #b42318;
}

.wpopt-page-test-results {
    display: grid;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 28px rgb(15 44 82 / 5%);
    animation: wpoptPageTestResultIn 260ms ease-out both;
}

.wpopt-page-test-results[hidden],
.wpopt-page-test-diagnostics[hidden] {
    display: none !important;
}

.wpopt-page-test-result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.wpopt-page-test-result-card {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    min-height: 102px;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgb(15 44 82 / 6%);
}

.wpopt-page-test-result-card > .dashicons {
    grid-row: 1 / span 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef6ff;
    color: #1d4ed8;
}

.wpopt-page-test-result-card small {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.wpopt-page-test-result-card strong {
    margin-top: 6px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.08;
}

.wpopt-page-test-result-card em {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
}

.wpopt-page-test-result-card.is-good {
    border-color: #addfc1;
    background: linear-gradient(180deg, #f1fbf5 0%, #ffffff 100%);
}

.wpopt-page-test-result-card.is-good > .dashicons {
    background: #dcfce7;
    color: #15803d;
}

.wpopt-page-test-result-card.is-good strong {
    color: #15803d;
}

.wpopt-page-test-result-card.is-bad {
    border-color: #f2c4c4;
    background: linear-gradient(180deg, #fff4f4 0%, #ffffff 100%);
}

.wpopt-page-test-result-card.is-bad > .dashicons {
    background: #fee2e2;
    color: #b42318;
}

.wpopt-page-test-result-card.is-bad strong {
    color: #b42318;
}

.wpopt-page-test-result-card.is-neutral {
    border-color: #dbe7f5;
}

.wpopt-page-test-results-list {
    display: grid;
    gap: 12px;
}

.wpopt-page-test-result-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(92px, 1fr));
    overflow: hidden;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    background: #ffffff;
    animation: wpoptPageTestRowIn 240ms ease-out both;
}

.wpopt-page-test-result-row:nth-child(2) {
    animation-delay: 70ms;
}

.wpopt-page-test-result-cell {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid #edf0f4;
}

.wpopt-page-test-result-cell:last-child {
    border-right: 0;
}

.wpopt-page-test-result-cell span {
    color: #1557b0;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.wpopt-page-test-result-cell strong {
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wpopt-page-test-diagnostics {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #cfe0f4;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 12px 28px rgb(15 44 82 / 5%);
    animation: wpoptPageTestResultIn 260ms ease-out both;
}

.wpopt-page-test-diagnostics-title {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.25;
}

.wpopt-page-test-diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 14px;
}

.wpopt-page-test-diagnostics-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #ffffff;
}

.wpopt-page-test-diagnostics-card h4 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
}

.wpopt-page-test-diagnostics-content {
    display: grid;
    gap: 12px;
}

.wpopt-page-test-diagnostic-row strong {
    color: #0f172a;
    font-size: 12.5px;
    line-height: 1.35;
}

.wpopt-page-test-diagnostic-row {
    display: grid;
    gap: 7px;
    padding: 12px 14px;
    border: 1px solid #e5edf7;
    border-radius: 7px;
    background: #fbfdff;
}

.wpopt-page-test-diagnostic-meta {
    display: grid;
    gap: 5px;
    color: #52657f;
    font-size: 11.5px;
    font-weight: 700;
}

.wpopt-page-test-diagnostic-meta span {
    display: block;
    padding-left: 8px;
    border-left: 3px solid #cfe0f4;
    color: #334155;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wpopt-page-test-diagnostic-row small {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.wpopt-page-test-diagnostic-row code {
    display: block;
    max-height: 150px;
    overflow: auto;
    padding: 8px;
    border-radius: 6px;
    background: #eef4fb;
    color: #334155;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wpopt-page-test-diagnostics-empty {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .wpopt-page-test-head {
        grid-template-columns: 1fr;
    }

    .wpopt-page-test-badge {
        justify-self: start;
    }

    .wpopt-page-test-steps {
        grid-template-columns: 1fr;
    }

    .wpopt-page-test-result-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpopt-page-test-diagnostics-grid {
        grid-template-columns: 1fr;
    }

    .wpopt-page-test-diagnostic-row {
        gap: 9px;
        padding: 12px;
    }

    .wpopt-page-test-diagnostic-row code {
        max-height: 220px;
        overflow: visible;
    }
}

@media (max-width: 782px) {
    .wpopt-page-test-stack {
        gap: 10px;
    }

    .wpopt-page-test-head {
        padding: 14px;
    }

    .wpopt-page-test-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .wpopt-page-test-form .wpopt-btn {
        width: 100%;
    }

    .wpopt-page-test-results {
        gap: 14px;
        padding: 14px;
        border-radius: 8px;
    }

    .wpopt-page-test-result-summary {
        gap: 12px;
    }

    .wpopt-page-test-result-card {
        min-height: auto;
        padding: 14px;
    }

    .wpopt-page-test-result-card strong {
        font-size: 22px;
    }

    .wpopt-page-test-result-row {
        grid-template-columns: 1fr;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgb(15 44 82 / 5%);
    }

    .wpopt-page-test-result-cell {
        grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
        align-items: start;
        padding: 12px 14px;
        border-right: 0;
        border-bottom: 1px solid #edf0f4;
    }

    .wpopt-page-test-result-cell:last-child {
        border-bottom: 0;
    }

    .wpopt-page-test-diagnostics {
        gap: 14px;
        padding: 14px;
    }

    .wpopt-page-test-diagnostics-card {
        padding: 14px;
    }

    .wpopt-page-test-diagnostics-title {
        font-size: 15px;
    }

    .wpopt-page-test-diagnostics-card h4 {
        margin-bottom: 10px;
        font-size: 12.5px;
    }

    .wpopt-page-test-diagnostic-meta span {
        padding-left: 7px;
        font-size: 11px;
        line-height: 1.4;
    }

    .wpopt-page-test-diagnostic-row code {
        padding: 9px;
        font-size: 10.5px;
    }
}

@media (max-width: 520px) {
    .wpopt-page-test-result-summary {
        grid-template-columns: 1fr;
    }

    .wpopt-page-test-result-cell {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@keyframes wpoptPageTestButtonSheen {
    to {
        transform: translateX(280%);
    }
}

@keyframes wpoptPageTestPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes wpoptPageTestIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgb(47 124 246 / 0);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 4px rgb(47 124 246 / 10%);
    }
}

@keyframes wpoptPageTestResultIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wpoptPageTestRowIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
 * Mail log columns need semantic proportions. The shared WPS table class uses
 * automatic column sizing, which lets a long message collapse the recipient,
 * subject and date columns until their text wraps one character at a time.
 */
@media (min-width: 981px) {
    .wps-wrap .wpopt-mail-log-form table.wp-list-table.wps-table {
        table-layout: fixed;
    }

    .wps-wrap .wpopt-mail-log-form table.wp-list-table .column-id {
        width: 64px;
    }

    .wps-wrap .wpopt-mail-log-form table.wp-list-table .column-to_email,
    .wps-wrap .wpopt-mail-log-form table.wp-list-table .column-subject {
        width: 20%;
    }

    .wps-wrap .wpopt-mail-log-form table.wp-list-table .column-attachments {
        width: 112px;
    }

    .wps-wrap .wpopt-mail-log-form table.wp-list-table .column-sent_date {
        width: 132px;
    }
}
