:root {
    --wpfs-white: #fff;
    --wpfs-brand-deep: #123f55;
    --wps-border-color: #41a961;
    --wps-tabs-bg-selected: #379357;
    --wps-tabs-text-selected: var(--wpfs-white);
    --wps-main-dark: #349154;
    --wps-main-light: #efefef;
    --wps-header-text: var(--wpfs-white);
    --wps-bg-primary: #f3f4f5;
    --wps-bg-white: rgb(255 255 255 / 70%);
    --wps-shadow-light: 0 0 4px 1px rgb(0 0 0 / 20%);
    --wps-shadow-medium: 0 0 8px 2px rgb(0 0 0 / 20%);
    --wps-radius-sm: 3px;
    --wps-radius-md: 8px;
    --wps-transition: 250ms ease-in-out;
    --wpfs-ink: #15202b;
    --wpfs-muted: #5f6b7a;
    --wpfs-line: #d8dee6;
    --wpfs-field-border: #c7d0dc;
    --wpfs-panel: #ffffff;
    --wpfs-soft: #f7f9fb;
    --wpfs-soft-blue: #f8fbff;
    --wpfs-soft-blue-border: #cfd9e6;
    --wpfs-success-soft: #e8f6ef;
    --wpfs-success-border: #9ad3b3;
    --wpfs-warning-soft: #fff7e8;
    --wpfs-warning-border: #f0c36d;
    --wpfs-accent: #1d6f9f;
    --wpfs-accent-dark: #155f8a;
    --wpfs-success: #168a45;
    --wpfs-warning: #b76e00;
    --wpfs-danger: #b42318;
    --wpfs-hero-gradient: linear-gradient(135deg, var(--wpfs-brand-deep) 0%, #1d6f9f 58%, #2e7d52 100%);
    --wpfs-lift-shadow: 0 6px 14px rgb(21 32 43 / 8%);
}

.wpfs-admin-shell {
    color: var(--wpfs-ink);
    max-width: 1320px;
}

.wpfs-dashboard {
    margin-top: 0;
    padding-top: 0;
}

.wpfs-dashboard .wpfs-page-hero {
    margin-top: 4px;
}

.wpfs-admin-shell * {
    box-sizing: border-box;
}

.wpfs-admin-shell a {
    color: var(--wpfs-accent);
}

.wpfs-page-hero {
    align-items: center;
    background: var(--wpfs-hero-gradient);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgb(21 32 43 / 14%);
    color: var(--wpfs-white);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 18px 0;
    min-height: 138px;
    padding: 24px 28px;
}

.wpfs-page-hero h1 {
    color: var(--wpfs-white);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.18;
    margin: 6px 0 8px;
}

.wpfs-page-hero p {
    color: rgb(255 255 255 / 86%);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}

.wpfs-kicker {
    color: rgb(255 255 255 / 72%);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wpfs-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 290px;
}

.wpfs-quick-actions a {
    align-items: center;
    background: rgb(255 255 255 / 14%);
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 6px;
    color: var(--wpfs-white);
    display: inline-flex;
    font-weight: 600;
    gap: 7px;
    min-height: 36px;
    padding: 8px 11px;
    text-decoration: none;
    transition: background var(--wps-transition), border-color var(--wps-transition), transform var(--wps-transition);
}

.wpfs-quick-actions a:focus,
.wpfs-quick-actions a:hover {
    background: rgb(255 255 255 / 23%);
    border-color: rgb(255 255 255 / 42%);
    color: var(--wpfs-white);
    transform: translateY(-1px);
}

.wpfs-quick-actions .dashicons {
    font-size: 17px;
    height: 17px;
    width: 17px;
}

.wpfs-admin-shell block.wps,
.wpfs-admin-shell .wps-box,
.wpfs-card {
    background: var(--wpfs-panel);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgb(21 32 43 / 8%);
}

.wpfs-admin-shell block.wps {
    display: block;
}

.wpfs-admin-shell .wps-header {
    background: var(--wpfs-brand-deep);
    border-radius: 8px 8px 0 0;
}

.wps-wrap.wps > block.wps > .wps-header,
.wpfs-breadcrumbs-page block.wps > .wps-header {
    align-items: center;
    background: var(--wpfs-hero-gradient);
    border: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 24px rgb(21 32 43 / 14%);
    color: var(--wpfs-white);
    display: flex;
    justify-content: flex-start;
    margin: -1.5em -1.5em 22px;
    min-height: 118px;
    padding: 24px 28px;
    text-align: left;
    width: calc(100% + 3em);
}

.wps-wrap.wps > block.wps > .wps-header h1,
.wpfs-breadcrumbs-page block.wps > .wps-header h1 {
    color: var(--wpfs-white);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0;
}

.wpfs-admin-shell .wps-header h1 {
    color: var(--wpfs-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.wpfs-admin-shell .wps-submit {
    background: var(--wpfs-soft);
    border-top: 1px solid var(--wpfs-line);
    margin: 22px -1px -1px;
    padding: 16px 20px;
}

.wpfs-admin-shell .button-primary {
    background: var(--wpfs-accent);
    border-color: var(--wpfs-accent-dark);
}

.wpfs-admin-shell .button-primary:focus,
.wpfs-admin-shell .button-primary:hover {
    background: var(--wpfs-accent-dark);
    border-color: var(--wpfs-accent-dark);
}

.wpfs-config-layout {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 180px minmax(0, 1fr);
}

.wpfs-config-summary strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.wpfs-config-summary p {
    color: var(--wpfs-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 12px;
    max-width: 680px;
}

.wpfs-config-checklist {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    max-width: 720px;
}

.wpfs-config-breakdown,
.wpfs-action-row,
.wpfs-audit-detail__actions,
.wpfs-audit-detail__issues {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wpfs-config-breakdown span {
    background: #eef8f2;
    border: 1px solid #c8dfd3;
    border-radius: 999px;
    color: var(--wpfs-brand-deep);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 10px;
}

.wpfs-config-checklist > span {
    color: var(--wpfs-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wpfs-config-checklist a {
    align-items: center;
    background: var(--wpfs-soft);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    color: var(--wpfs-ink);
    display: inline-flex;
    font-size: 13px;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    text-decoration: none;
    transition: background var(--wps-transition), border-color var(--wps-transition), box-shadow var(--wps-transition), transform var(--wps-transition);
}

.wpfs-config-checklist a:hover,
.wpfs-config-checklist a:focus {
    background: var(--wpfs-white);
    border-color: var(--wpfs-accent);
    box-shadow: var(--wpfs-lift-shadow);
    color: var(--wpfs-ink);
    transform: translateY(-1px);
}

.wpfs-config-checklist .dashicons {
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.wpfs-config-checklist .is-complete .dashicons {
    color: var(--wpfs-success);
}

.wpfs-config-checklist .is-pending .dashicons {
    color: var(--wpfs-warning);
}

.wpfs-dashboard-options,
.wpfs-audit-detail__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpfs-option-tile {
    background: var(--wpfs-soft-blue);
    border: 1px solid var(--wpfs-soft-blue-border);
    border-radius: 8px;
    color: var(--wpfs-muted);
    display: block;
    margin: 0;
    min-height: 142px;
    padding: 14px;
    text-decoration: none;
    transition: background var(--wps-transition), border-color var(--wps-transition), box-shadow var(--wps-transition), transform var(--wps-transition);
}

.wpfs-option-tile:hover,
.wpfs-option-tile:focus {
    background: var(--wpfs-white);
    border-color: var(--wpfs-accent);
    box-shadow: 0 8px 18px rgb(21 32 43 / 9%);
    color: var(--wpfs-muted);
    transform: translateY(-1px);
}

.wpfs-option-tile strong {
    color: var(--wpfs-ink);
    display: block;
    font-size: 15px;
    margin-bottom: 7px;
}

.wpfs-option-tile p {
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.wpfs-option-tile span {
    color: var(--wpfs-accent);
    display: inline-block;
    font-weight: 700;
}

.wpfs-settings-page #wps-options {
    margin-top: 0;
}

.wpfs-settings-page textarea.wps,
.wpfs-settings-page input[type="text"].wps {
    border-color: var(--wpfs-field-border);
    border-radius: 6px;
    min-height: 38px;
    transition: border-color var(--wps-transition), box-shadow var(--wps-transition);
}

.wpfs-settings-page textarea.wps:focus,
.wpfs-settings-page input[type="text"].wps:focus,
.wpfs-token-editor:focus {
    border-color: var(--wpfs-accent);
    box-shadow: 0 0 0 1px var(--wpfs-accent);
}

.wpfs-settings-page textarea.wps {
    min-height: 96px;
}

.wpfs-token-source,
.wpfs-settings-page textarea.wpfs-token-source,
.wpfs-settings-page input.wpfs-token-source {
    display: none !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
}

.wpfs-token-editor {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-field-border);
    border-radius: 6px;
    box-shadow: inset 0 0 0 0 transparent;
    color: var(--wpfs-ink);
    cursor: text;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.55;
    min-height: 112px;
    outline: none;
    overflow: auto;
    padding: 9px 10px;
    transition: border-color var(--wps-transition), box-shadow var(--wps-transition);
    white-space: pre-wrap;
    width: 100%;
    word-break: break-word;
}

.wpfs-token-editor.is-single-line {
    min-height: 38px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.wpfs-token-editor.is-single-line br,
.wpfs-token-editor.is-single-line div {
    display: none;
}

.wpfs-token-chip {
    align-items: center;
    background: var(--wpfs-success-soft);
    border: 1px solid var(--wpfs-success-border);
    border-radius: 5px;
    color: #0b6b3a;
    display: inline-flex;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 2px;
    max-width: 100%;
    padding: 2px 6px;
    user-select: all;
    vertical-align: baseline;
}

.wpfs-token-menu {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgb(21 32 43 / 22%);
    max-width: calc(100vw - 32px);
    overflow: hidden;
    padding: 10px;
    position: absolute;
    z-index: 100002;
}

.wpfs-token-menu-search {
    border: 1px solid var(--wpfs-field-border);
    border-radius: 6px;
    margin: 0 0 8px;
    min-height: 34px;
    width: 100%;
}

.wpfs-token-menu-list {
    max-height: 240px;
    overflow-y: auto;
}

.wpfs-token-menu-item {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--wpfs-ink);
    cursor: pointer;
    display: block;
    padding: 8px;
    text-align: left;
    width: 100%;
}

.wpfs-token-menu-item:focus,
.wpfs-token-menu-item:hover {
    background: #eef5f8;
    outline: none;
}

.wpfs-token-menu-item strong {
    color: var(--wpfs-brand-deep);
    display: block;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

.wpfs-token-menu-item span {
    color: var(--wpfs-muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}

.wpfs-token-menu-empty {
    color: var(--wpfs-muted);
    padding: 10px 8px;
}

.wpfs-settings-page .wps-options {
    display: block;
}

.wpfs-settings-page .wps-options label,
.wpfs-settings-page .wps-options th {
    color: var(--wpfs-ink);
    font-weight: 650;
}

.wpfs-snippet-preview {
    background: var(--wpfs-soft);
    border-bottom: 1px solid var(--wpfs-line);
    padding: 18px 20px 20px;
}

.wpfs-snippet-preview__head,
.wpfs-audit-detail__head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wpfs-snippet-preview__head h2 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 4px;
}

.wpfs-snippet-preview__head p,
.wpfs-replacers-head p,
.wpfs-audit-detail__head p,
.wpfs-section-head p {
    color: var(--wpfs-muted);
    margin: 0;
}

.wpfs-snippet-preview__counters {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
}

.wpfs-snippet-preview__counters span {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-line);
    border-radius: 5px;
    color: var(--wpfs-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    padding: 5px 8px;
}

.wpfs-snippet-preview__counters span.is-warning {
    background: var(--wpfs-warning-soft);
    border-color: var(--wpfs-warning-border);
    color: var(--wpfs-warning);
}

.wpfs-snippet-preview__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
}

.wpfs-serp-preview,
.wpfs-social-preview {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
}

.wpfs-serp-preview {
    padding: 18px;
}

.wpfs-serp-preview__url {
    color: #202124;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpfs-serp-preview h3 {
    color: #1a0dab;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
}

.wpfs-serp-preview p {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.wpfs-social-preview__media {
    align-items: center;
    background: #e9eef3;
    color: var(--wpfs-muted);
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
    text-align: center;
}

.wpfs-social-preview__media img {
    display: block;
    height: 100%;
    max-height: 190px;
    object-fit: cover;
    width: 100%;
}

.wpfs-social-preview__body {
    padding: 12px 14px 14px;
}

.wpfs-social-preview__body span {
    color: var(--wpfs-muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.wpfs-social-preview__body strong {
    color: var(--wpfs-ink);
    display: block;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.wpfs-social-preview__body p {
    color: var(--wpfs-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.wpfs-replacers-panel {
    background: var(--wpfs-soft);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    margin: 12px 0 16px;
    padding: 18px;
}

.wpfs-replacers-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.wpfs-replacers-head h2 {
    font-size: 19px;
    margin: 0 0 4px;
}

.wpfs-replacer-search {
    border-color: var(--wpfs-field-border);
    border-radius: 6px;
    min-height: 38px;
    min-width: 240px;
}

.wpfs-token-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.wpfs-token-strip code,
.wpfs-replacers-table strong {
    background: #eef5f8;
    border: 1px solid #cce0e9;
    border-radius: 5px;
    color: var(--wpfs-brand-deep);
    display: inline-block;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    padding: 3px 6px;
}

.wpfs-replacers-table,
.wpfs-audit-table {
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    overflow: hidden;
}

.wpfs-replacers-table th,
.wpfs-audit-table th {
    background: var(--wpfs-brand-deep);
    color: var(--wpfs-white);
}

.wpfs-replacers-table td {
    vertical-align: middle;
}

.wpfs-faq-page block.wps {
    overflow: hidden;
    padding-bottom: 8px;
}

.wpfs-faq-page .wps-header {
    background: linear-gradient(135deg, var(--wpfs-brand-deep) 0%, var(--wpfs-accent) 64%, var(--wpfs-success) 100%);
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    box-shadow: 0 10px 22px rgb(21 32 43 / 12%);
    padding: 18px 24px;
}

.wpfs-faq-page .wps-header h1 {
    font-size: 19px;
    letter-spacing: 0;
    text-align: left;
}

.wpfs-faq-page .wps-faq-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.wpfs-faq-page .wps-faq-item,
.wpfs-faq-page .wps-faq-question-wrapper {
    margin: 0;
}

.wpfs-faq-page .wps-faq-question {
    align-items: center;
    background: #f7fbf9;
    border: 1px solid #c8dfd3;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(21 32 43 / 7%);
    color: var(--wpfs-ink);
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px;
    transition: background var(--wps-transition), border-color var(--wps-transition), box-shadow var(--wps-transition), transform var(--wps-transition);
}

.wpfs-faq-page .wps-faq-question:hover,
.wpfs-faq-page .wps-faq-question:focus {
    background: #eef8f2;
    border-color: #95c7a9;
    box-shadow: 0 7px 18px rgb(21 32 43 / 10%);
    transform: translateY(-1px);
}

.wpfs-faq-page .wps-collapse-icon {
    align-items: center;
    background: var(--wpfs-success);
    border-radius: 999px;
    color: var(--wpfs-white);
    display: inline-flex;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    line-height: 1;
    margin-left: 14px;
    min-width: 26px;
    width: 26px;
}

.wpfs-faq-page .wps-faq-answer {
    background: #fbfdfc;
    border: 1px solid #d9ebe2;
    border-left: 4px solid var(--wpfs-success);
    border-radius: 0 0 8px 8px;
    color: var(--wpfs-muted);
    margin: -4px 0 4px;
    padding: 14px 16px;
}

.wpfs-faq-page .wps-faq-answer p {
    line-height: 1.58;
}

.wpfs-faq-page .wps-faq-answer code {
    background: #eef8f2;
    border: 1px solid #c8dfd3;
    border-radius: 5px;
    color: var(--wpfs-brand-deep);
    display: inline-block;
    padding: 4px 6px;
}

.wpfs-dashboard aside.wps {
    margin-top: 4px;
}

.wpfs-dashboard .wpfs-donation-card {
    background: var(--wpfs-soft-blue);
    border-color: var(--wpfs-soft-blue-border);
    box-shadow: 0 10px 24px rgb(21 32 43 / 12%);
    padding: 14px;
}

.wpfs-donation-panel {
    background: #111b2b;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgb(17 27 43 / 26%);
    color: var(--wpfs-white);
    padding: 24px 20px;
    text-align: center;
}

.wpfs-donation-panel h2 {
    color: var(--wpfs-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}

.wpfs-donation-panel p {
    color: rgb(255 255 255 / 88%);
    font-size: 13px;
    line-height: 1.45;
    margin: 0 auto 18px;
    max-width: 270px;
}

.wpfs-donation-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--wpfs-white) !important;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 40px;
    padding: 10px 14px;
    text-decoration: none;
    transition: background var(--wps-transition), border-color var(--wps-transition), transform var(--wps-transition);
    width: 100%;
}

.wpfs-donation-button + .wpfs-donation-button {
    margin-top: 10px;
}

.wpfs-donation-button:hover,
.wpfs-donation-button:focus {
    color: var(--wpfs-white);
    transform: translateY(-1px);
}

.wpfs-donation-button--paypal {
    background: #1da64f;
    border-color: #56d47d;
}

.wpfs-donation-button--paypal:hover,
.wpfs-donation-button--paypal:focus {
    background: #168a45;
    border-color: #74e191;
}

.wpfs-donation-button--review {
    background: #2d7ebd;
    border-color: #76b9ea;
}

.wpfs-donation-button--review:hover,
.wpfs-donation-button--review:focus {
    background: #23699f;
    border-color: #91ccf4;
}

.wpfs-support-card {
    background: var(--wpfs-soft-blue);
    border-color: var(--wpfs-soft-blue-border);
    box-shadow: 0 10px 24px rgb(21 32 43 / 10%);
    padding: 20px;
}

.wpfs-support-card h3 {
    color: #08264a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.wpfs-support-card h3 + .wpfs-support-links {
    margin-bottom: 18px;
}

.wpfs-support-card .wpfs-support-links:last-child {
    margin-bottom: 0;
}

.wpfs-support-links {
    display: grid;
    gap: 10px;
}

.wpfs-support-links a {
    align-items: center;
    background: var(--wpfs-white);
    border: 1px solid #a9bdd4;
    border-radius: 8px;
    color: #08264a;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    justify-content: space-between;
    line-height: 1.25;
    min-height: 44px;
    padding: 10px 12px;
    text-decoration: none;
    transition: background var(--wps-transition), border-color var(--wps-transition), box-shadow var(--wps-transition), transform var(--wps-transition);
}

.wpfs-support-links a:hover,
.wpfs-support-links a:focus {
    background: #f2f7fc;
    border-color: #2d7ebd;
    box-shadow: 0 6px 14px rgb(21 32 43 / 10%);
    color: #08264a;
    transform: translateY(-1px);
}

.wpfs-support-links a span:last-child {
    color: #1d6f9f;
    font-size: 15px;
    font-weight: 700;
    margin-left: 12px;
}

.wpfs-audit-page block.wps {
    padding: 18px;
}

.wpfs-audit-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.wpfs-audit-summary div {
    background: var(--wpfs-soft);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    padding: 14px;
}

.wpfs-audit-summary strong {
    color: var(--wpfs-ink);
    display: block;
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.wpfs-audit-summary span,
.wpfs-audit-muted {
    color: var(--wpfs-muted);
}

.wpfs-audit-filters,
.wpfs-audit-detail-lookup {
    align-items: flex-end;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
}

.wpfs-audit-filters {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-line);
}

.wpfs-audit-detail-lookup {
    background: #f8fbfd;
    border: 1px solid #cbdce8;
    margin: -6px 0 18px;
}

.wpfs-audit-detail-lookup.is-detail-page {
    margin: 0 0 18px;
}

.wpfs-audit-filters label,
.wpfs-audit-detail-lookup label {
    display: grid;
    gap: 5px;
}

.wpfs-audit-filters label span,
.wpfs-audit-detail-lookup label span,
.wpfs-audit-detail article div span:not(.wpfs-audit-badge) {
    color: var(--wpfs-muted);
    font-size: 12px;
    font-weight: 700;
}

.wpfs-audit-filters select,
.wpfs-audit-filters input[type="search"],
.wpfs-audit-detail-lookup select,
.wpfs-audit-detail-lookup input[type="search"] {
    border-color: var(--wpfs-field-border);
    border-radius: 6px;
    min-height: 36px;
}

.wpfs-audit-search,
.wpfs-audit-detail-field {
    flex: 1 1 260px;
}

.wpfs-audit-table td {
    vertical-align: top;
}

.wpfs-audit-table p {
    color: var(--wpfs-muted);
    margin: 6px 0 0;
    max-width: 460px;
    overflow-wrap: anywhere;
}

.wpfs-audit-count {
    color: var(--wpfs-muted);
    display: inline-block;
    font-size: 12px;
    margin-left: 6px;
}

.wpfs-audit-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
}

.wpfs-audit-badge.is-ok {
    background: var(--wpfs-success-soft);
    color: var(--wpfs-success);
}

.wpfs-audit-badge.is-warn {
    background: var(--wpfs-warning-soft);
    color: var(--wpfs-warning);
}

.wpfs-audit-badge.is-bad {
    background: #fdecea;
    color: var(--wpfs-danger);
}

.wpfs-audit-detail {
    background: #f8fbfd;
    border: 1px solid #cbdce8;
    border-radius: 8px;
    box-shadow: inset 4px 0 0 var(--wpfs-accent);
    margin: 0 0 18px;
    padding: 18px;
}

.wpfs-audit-detail.is-empty {
    align-items: center;
    display: flex;
    gap: 10px;
}

.wpfs-audit-detail.is-empty p {
    margin: 0;
}

.wpfs-audit-detail__head .wpfs-kicker {
    color: var(--wpfs-accent);
}

.wpfs-audit-detail__head h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 4px 0 5px;
}

.wpfs-audit-detail__actions {
    justify-content: flex-end;
}

.wpfs-audit-detail article {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    min-width: 0;
    padding: 14px;
}

.wpfs-audit-detail__wide {
    grid-column: 1 / -1;
}

.wpfs-audit-detail h3 {
    font-size: 13px;
    line-height: 1.3;
    margin: 0 0 9px;
    text-transform: uppercase;
}

.wpfs-audit-detail article div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wpfs-audit-detail article p {
    color: var(--wpfs-muted);
    line-height: 1.55;
    margin: 9px 0 0;
    overflow-wrap: anywhere;
}

.wpfs-audit-detail__issues span {
    background: var(--wpfs-warning-soft);
    border: 1px solid var(--wpfs-warning-border);
    border-radius: 999px;
    color: var(--wpfs-warning);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.wpfs-audit-image-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
}

.wpfs-audit-image-list li {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-line);
    border-radius: 7px;
    display: grid;
    gap: 3px;
    list-style: none;
    padding: 9px 10px;
}

.wpfs-audit-image-list strong {
    color: var(--wpfs-ink);
    overflow-wrap: anywhere;
}

.wpfs-audit-image-list span {
    color: var(--wpfs-muted);
    font-size: 12px;
}

.wpfs-audit-actions {
    align-items: stretch;
    display: inline-grid;
    gap: 6px;
    grid-template-columns: 1fr;
    min-width: 108px;
}

.wpfs-audit-action {
    align-items: center;
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-field-border);
    border-radius: 7px;
    color: var(--wpfs-accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 5px;
    justify-content: center;
    line-height: 1.2;
    min-height: 34px;
    padding: 7px 10px;
    text-decoration: none;
    transition: background var(--wps-transition), border-color var(--wps-transition), color var(--wps-transition);
}

.wpfs-audit-action:focus,
.wpfs-audit-action:hover {
    background: #eef5f8;
    border-color: var(--wpfs-accent);
    color: var(--wpfs-accent-dark);
}

.wpfs-audit-action .dashicons {
    font-size: 15px;
    height: 15px;
    width: 15px;
}

.wpfs-audit-action--edit {
    color: #b42318;
}

.wpfs-audit-action--edit:focus,
.wpfs-audit-action--edit:hover {
    background: #fdecea;
    border-color: #f1b4af;
    color: #8f1d14;
}

.wpfs-audit-pagination {
    align-items: center;
    background: var(--wpfs-soft);
    border: 1px solid var(--wpfs-line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 16px 0 0;
    padding: 14px 16px;
}

.wpfs-audit-page-link,
.wpfs-audit-page-current {
    align-items: center;
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-field-border);
    border-radius: 8px;
    display: inline-flex;
    min-height: 38px;
    text-decoration: none;
}

.wpfs-audit-pagination__controls {
    display: flex;
    gap: 8px;
}

.wpfs-audit-page-link {
    color: var(--wpfs-accent);
    font-weight: 700;
    gap: 4px;
    padding: 8px 12px;
}

.wpfs-audit-page-link:focus,
.wpfs-audit-page-link:hover {
    border-color: var(--wpfs-accent);
    color: var(--wpfs-accent-dark);
}

.wpfs-audit-page-link.is-disabled {
    color: #98a4b3;
    cursor: default;
    opacity: .72;
}

.wpfs-audit-page-current {
    color: var(--wpfs-ink);
    flex-direction: column;
    justify-content: center;
    min-width: 160px;
    padding: 8px 14px;
}

.wpfs-audit-page-current strong {
    line-height: 1.2;
}

.wpfs-audit-page-current small {
    color: var(--wpfs-muted);
    font-size: 11px;
    line-height: 1.2;
}

#wpfs-toast-host,
#wpopt-toast-host {
    display: grid;
    gap: 8px;
    position: fixed;
    right: 24px;
    top: 46px;
    width: min(360px, calc(100vw - 52px));
    z-index: 100000;
}

.wpfs-toast,
.wpopt-toast {
    background: #15202b;
    border-left: 4px solid var(--wpfs-accent);
    border-radius: 7px;
    box-shadow: 0 14px 34px rgb(21 32 43 / 24%);
    color: var(--wpfs-white);
    font-weight: 700;
    line-height: 1.4;
    opacity: 0;
    padding: 13px 15px;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.wpfs-toast.is-visible,
.wpopt-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wpfs-toast.is-success,
.wpopt-toast.is-success {
    border-left-color: var(--wpfs-success);
}

.wpfs-toast.is-error,
.wpopt-toast.is-error {
    border-left-color: var(--wpfs-danger);
}

.wpfs-toast.is-warning,
.wpopt-toast.is-warning {
    border-left-color: var(--wpfs-warning);
}

.wpfs-autosave-status {
    align-items: center;
    color: var(--wpfs-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 4px;
    margin-left: 12px;
    min-height: 28px;
}

.wpfs-core-settings-page .wpfs-autosave-status {
    margin: 0 0 14px;
}

.wpfs-autosave-status .dashicons {
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.wpfs-autosave-status.is-saving .dashicons {
    animation: wpfs-spin 1s linear infinite;
}

.wpfs-autosave-status.is-saved {
    color: var(--wpfs-success);
}

.wpfs-autosave-status.is-error {
    color: var(--wpfs-danger);
}

.wpfs-autosave-status.is-pending {
    color: var(--wpfs-warning);
}

@keyframes wpfs-spin {
    to {
        transform: rotate(360deg);
    }
}

.wpfs-redirect-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, .8fr);
    margin-bottom: 18px;
}

.wpfs-redirect-form,
.wpfs-redirect-import {
    display: grid;
    gap: 16px;
}

.wpfs-redirect-form label,
.wpfs-redirect-import label {
    display: grid;
    gap: 6px;
}

.wpfs-redirect-form label span,
.wpfs-redirect-import label span {
    color: var(--wpfs-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wpfs-redirect-form input[type="text"],
.wpfs-redirect-form select,
.wpfs-redirect-form textarea {
    max-width: 100%;
    width: 100%;
}

.wpfs-csv-uploader {
    display: grid;
    gap: 8px;
}

.wpfs-upload-drop {
    align-items: center;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef5f8 100%);
    border: 1px dashed #9bb9cc;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 86px;
    padding: 16px;
    position: relative;
    transition: background var(--wps-transition), border-color var(--wps-transition), box-shadow var(--wps-transition);
}

.wpfs-upload-drop:focus-within,
.wpfs-upload-drop:hover {
    background: #f5fafc;
    border-color: var(--wpfs-accent);
    box-shadow: 0 0 0 3px rgb(29 111 159 / 12%);
}

.wpfs-upload-drop > .dashicons {
    align-items: center;
    background: #e3f1f7;
    border-radius: 8px;
    color: var(--wpfs-accent);
    display: inline-flex;
    font-size: 20px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.wpfs-file-input {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.wpfs-upload-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.wpfs-upload-copy strong {
    color: var(--wpfs-ink);
    font-size: 14px;
    line-height: 1.25;
}

.wpfs-upload-copy small {
    color: var(--wpfs-muted);
    font-size: 12px;
    line-height: 1.35;
}

.wpfs-upload-button {
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-field-border);
    border-radius: 7px;
    color: var(--wpfs-accent);
    font-weight: 700;
    min-height: 34px;
    padding: 8px 12px;
    text-align: center;
}

.wpfs-file-name {
    align-items: center;
    background: var(--wpfs-white);
    border: 1px solid var(--wpfs-line);
    border-radius: 7px;
    color: var(--wpfs-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    min-height: 34px;
    overflow-wrap: anywhere;
    padding: 8px 10px;
}

.wpfs-file-name.has-file {
    background: var(--wpfs-success-soft);
    border-color: var(--wpfs-success-border);
    color: var(--wpfs-success);
}

.wpfs-redirect-table code {
    white-space: normal;
    word-break: break-word;
}

.wpfs-inline-form {
    display: inline;
    margin: 0;
}

.wpfs-inline-form button.wpfs-audit-action {
    border: 0;
    cursor: pointer;
}

.wpfs-section-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wpfs-section-head h2 {
    margin: 0 0 6px;
}

.wpfs-404-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.wpfs-404-table-wrap {
    border: 1px solid #ccd0d4;
    overflow-x: auto;
    width: 100%;
}

.wpfs-404-table {
    border: 0;
    min-width: 1180px;
    table-layout: fixed;
}

.wpfs-404-table th,
.wpfs-404-table td {
    vertical-align: top;
}

.wpfs-404-table th:nth-child(1) {
    width: 24%;
}

.wpfs-404-table th:nth-child(2) {
    width: 74px;
}

.wpfs-404-table th:nth-child(3),
.wpfs-404-table th:nth-child(4) {
    width: 150px;
}

.wpfs-404-table th:nth-child(5) {
    width: 210px;
}

.wpfs-404-table th:nth-child(6) {
    width: 250px;
}

.wpfs-404-url code,
.wpfs-404-referrer code {
    background: transparent;
    display: block;
    line-height: 1.45;
    overflow-wrap: anywhere;
    padding: 0;
    white-space: normal;
    word-break: break-word;
}

.wpfs-404-count {
    font-weight: 700;
}

.wpfs-404-redirect-form {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}

.wpfs-404-redirect-form input[type="text"] {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.wpfs-404-redirect-form .button {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .wpfs-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .wpfs-quick-actions {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .wpfs-config-layout {
        grid-template-columns: 1fr;
    }

    .wpfs-dashboard-options {
        grid-template-columns: 1fr;
    }

    .wpfs-snippet-preview__grid {
        grid-template-columns: 1fr;
    }

    .wpfs-audit-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpfs-audit-detail__head {
        flex-direction: column;
    }

    .wpfs-redirect-layout {
        grid-template-columns: 1fr;
    }

    .wpfs-section-head {
        flex-direction: column;
    }

    .wpfs-upload-drop {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .wpfs-upload-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .wpfs-page-hero {
        padding: 20px;
    }

    .wpfs-page-hero h1 {
        font-size: 24px;
    }

    .wpfs-quick-actions a {
        width: 100%;
    }

    .wpfs-replacers-head {
        align-items: stretch;
        flex-direction: column;
    }

    .wpfs-snippet-preview {
        padding: 16px;
    }

    .wpfs-snippet-preview__head {
        align-items: stretch;
        flex-direction: column;
    }

    .wpfs-snippet-preview__counters {
        align-items: stretch;
    }

    .wpfs-replacer-search {
        min-width: 0;
        width: 100%;
    }

    .wpfs-audit-summary {
        grid-template-columns: 1fr;
    }

    .wpfs-404-redirect-form {
        grid-template-columns: 1fr;
    }

    .wpfs-audit-filters .button,
    .wpfs-audit-filters label,
    .wpfs-audit-detail-lookup .button,
    .wpfs-audit-detail-lookup label {
        width: 100%;
    }

    .wpfs-audit-detail__grid {
        grid-template-columns: 1fr;
    }

    .wpfs-audit-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .wpfs-audit-pagination__controls {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .wpfs-audit-page-link,
    .wpfs-audit-page-current {
        justify-content: center;
        width: 100%;
    }

    #wpfs-toast-host {
        left: 16px;
        right: 16px;
        top: 56px;
        width: calc(100vw - 32px);
    }
}
