/* ============================================================================
 * WordPress Design System (WPDS) Tokens
 * Reference: DESIGN.md
 * ============================================================================
 *
 * The plugin's admin UI follows the WordPress Design System. All colors,
 * spacing, radii, elevation, and typography snap to the WPDS token scale.
 *
 * Page architecture: every admin screen starts on a $gray-100 canvas; all
 * content lives inside white cards with $gray-300 1px borders and
 * $elevation-x-small shadow.
 *
 * Single brand accent: --wp-admin-theme-color (default #2271b1). It is used
 * for links, primary buttons, focus rings, selected states, and active tabs.
 */

body {
    /* Brand & accent */
    --ffs-brand: #D93E1E;
    --ffs-primary: var(--wp-admin-theme-color, #2271b1);
    --ffs-primary-darker-10: var(--wp-admin-theme-color-darker-10, #135e96);
    --ffs-primary-darker-20: var(--wp-admin-theme-color-darker-20, #0a4b78);

    /* Gray scale (WPDS) */
    --ffs-white: #ffffff;
    --ffs-gray-100: #f0f0f0;
    --ffs-gray-200: #e0e0e0;
    --ffs-gray-300: #dddddd;
    --ffs-gray-400: #cccccc;
    --ffs-gray-500: #aaaaaa;
    --ffs-gray-600: #949494;
    --ffs-gray-700: #757575;
    --ffs-gray-800: #2f2f2f;
    --ffs-gray-900: #1e1e1e;

    /* Semantic */
    --ffs-alert-red: #d63638;
    --ffs-alert-yellow: #dba617;
    --ffs-alert-green: #00a32a;
    --ffs-info-blue: #2271b1;
    --ffs-info-background: #f0f6fc;
    --ffs-info-border: #c5d9ed;

    /* Tinted backgrounds for status pills */
    --ffs-tint-red: #fcf0f1;
    --ffs-tint-yellow: #fcf9e8;
    --ffs-tint-green: #edfaef;
    --ffs-tint-blue: #f0f6fc;

    /* Spacing — 4px baseline grid */
    --ffs-space-1: 4px;
    --ffs-space-2: 8px;
    --ffs-space-3: 12px;
    --ffs-space-4: 16px;
    --ffs-space-5: 20px;
    --ffs-space-6: 24px;
    --ffs-space-7: 28px;
    --ffs-space-8: 32px;
    --ffs-space-10: 40px;
    --ffs-space-12: 48px;
    --ffs-space-15: 60px;
    --ffs-space-16: 64px;
    --ffs-space-20: 80px;

    /* Radius — six-step scale */
    --ffs-radius-xs: 2px;
    --ffs-radius-sm: 4px;
    --ffs-radius-md: 6px;
    --ffs-radius-lg: 8px;
    --ffs-radius-xl: 12px;
    --ffs-radius-2xl: 16px;
    --ffs-radius-full: 9999px;
    --ffs-radius-round: 100%;

    /* Elevation — drop shadows */
    --ffs-elevation-x-small: 0 1px 1px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ffs-elevation-small: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
    --ffs-elevation-medium: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.08);
    --ffs-elevation-large: 0 4px 8px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Font stack — native system fonts */
    --ffs-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --ffs-font-mono: Menlo, Consolas, monaco, monospace;

    /* Type scale (WPDS) */
    --ffs-font-size-x-small: 11px;
    --ffs-font-size-small: 12px;
    --ffs-font-size-medium: 13px;
    --ffs-font-size-base: 14px;
    --ffs-font-size-large: 15px;
    --ffs-font-size-x-large: 20px;
    --ffs-font-size-2x-large: 32px;

    --ffs-line-height-base: 1.5;
    --ffs-line-height-tight: 1.4;
    --ffs-line-height-display: 1.25;

    --ffs-font-weight-regular: 400;
    --ffs-font-weight-medium: 500;
    --ffs-font-weight-semi: 600;
}

/* ============================================================================
 * Base
 * ============================================================================
 */

.ffs-settings,
.ffs-card,
.ffs-stats,
.ffs-pricing-card,
.ffs-input,
.ffs-color-text,
.ffs-color-label,
.ffs-stats__label,
.ffs-post-type-list,
.ffs-tab-radio__label,
.ffs-segmented__option,
.ffs-check-group p,
.ffs-radio-group label,
.ffs-file-input,
.ffs-repeater input,
.ffs-repeater button {
    font-family: var(--ffs-font-sans);
    color: var(--ffs-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code,
.ffs-mono {
    font-family: var(--ffs-font-mono);
    font-size: 0.92em;
    background: var(--ffs-gray-100);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-xs);
    padding: 2px 4px;
}

[x-cloak] {
    display: none !important;
}

/* ============================================================================
 * Settings form loading state
 * ============================================================================
 */
.ffs-settings[data-state="loading"],
.ffs-settings[data-state="updating"] {
    pointer-events: none;
    animation: ffs-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ffs-pulse {
    50% {
        opacity: .5;
    }
}

.ffs-settings input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

/* ============================================================================
 * Pro label badge
 * ============================================================================
 */
.ffs-pro-label {
    position: relative;
}

.ffs-pro-label::after {
    content: 'Pro';
    position: absolute;
    top: var(--ffs-space-2);
    right: var(--ffs-space-2);
    background: var(--ffs-alert-yellow);
    color: var(--ffs-white);
    font-family: var(--ffs-font-sans);
    font-size: var(--ffs-font-size-x-small);
    font-weight: var(--ffs-font-weight-semi);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 4px var(--ffs-space-2);
    border-radius: var(--ffs-radius-full);
    box-shadow: var(--ffs-elevation-x-small);
}

/* ============================================================================
 * Layout helpers
 * ============================================================================
 */
.ffs-flex {
    display: flex;
}

.ffs-flex-wrap {
    flex-wrap: wrap;
}

.ffs-flex-col {
    flex-direction: column;
}

.ffs-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffs-flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ffs-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ffs-inline-flex-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ffs-grid {
    display: grid;
}

.ffs-shrink-0 {
    flex-shrink: 0;
}

/* Width / Height */
.ffs-w-full {
    width: 100%;
}

.ffs-w-auto {
    width: auto;
}

.ffs-h-auto {
    height: auto;
}

.ffs-w-5 {
    width: var(--ffs-space-5);
}

.ffs-w-6 {
    width: var(--ffs-space-6);
}

.ffs-h-6 {
    height: var(--ffs-space-6);
}

.ffs-h-10 {
    height: 40px;
}

.ffs-max-w-full {
    max-width: 100%;
}

/* Gap — snapped to 4px grid */
.ffs-gap-1 {
    gap: var(--ffs-space-1);
}

.ffs-gap-2 {
    gap: var(--ffs-space-2);
}

.ffs-gap-3 {
    gap: var(--ffs-space-3);
}

.ffs-gap-4 {
    gap: var(--ffs-space-4);
}

.ffs-gap-6 {
    gap: var(--ffs-space-6);
}

.ffs-gap-8 {
    gap: var(--ffs-space-8);
}

.ffs-gap-x-1 {
    column-gap: var(--ffs-space-1);
}

.ffs-gap-x-3 {
    column-gap: var(--ffs-space-3);
}

.ffs-gap-y-3 {
    row-gap: var(--ffs-space-3);
}

/* Padding */
.ffs-p-0 {
    padding: 0;
}

.ffs-p-2 {
    padding: var(--ffs-space-2);
}

.ffs-p-3 {
    padding: var(--ffs-space-3);
}

.ffs-p-4 {
    padding: var(--ffs-space-4);
}

.ffs-p-5 {
    padding: var(--ffs-space-5);
}

.ffs-p-6 {
    padding: var(--ffs-space-6);
}

.ffs-p-7 {
    padding: 28px;
}

.ffs-p-8 {
    padding: var(--ffs-space-8);
}

.ffs-px-1 {
    padding-left: var(--ffs-space-1);
    padding-right: var(--ffs-space-1);
}

.ffs-px-2 {
    padding-left: var(--ffs-space-2);
    padding-right: var(--ffs-space-2);
}

.ffs-px-3 {
    padding-left: var(--ffs-space-3);
    padding-right: var(--ffs-space-3);
}

.ffs-px-4 {
    padding-left: var(--ffs-space-4);
    padding-right: var(--ffs-space-4);
}

.ffs-py-1 {
    padding-top: var(--ffs-space-1);
    padding-bottom: var(--ffs-space-1);
}

.ffs-py-2 {
    padding-top: var(--ffs-space-2);
    padding-bottom: var(--ffs-space-2);
}

.ffs-py-3 {
    padding-top: var(--ffs-space-3);
    padding-bottom: var(--ffs-space-3);
}

.ffs-py-4 {
    padding-top: var(--ffs-space-4);
    padding-bottom: var(--ffs-space-4);
}

.ffs-py-8 {
    padding-top: var(--ffs-space-8);
    padding-bottom: var(--ffs-space-8);
}

.ffs-py-16 {
    padding-top: var(--ffs-space-16);
    padding-bottom: var(--ffs-space-16);
}

.ffs-pt-3 {
    padding-top: var(--ffs-space-3);
}

.ffs-pb-8 {
    padding-bottom: var(--ffs-space-8);
}

/* Margin */
.ffs-m-0 {
    margin: 0;
}

.ffs-mt-1 {
    margin-top: var(--ffs-space-1);
}

.ffs-mt-2 {
    margin-top: var(--ffs-space-2);
}

.ffs-mt-3 {
    margin-top: var(--ffs-space-3);
}

.ffs-mt-4 {
    margin-top: var(--ffs-space-4);
}

.ffs-mt-8 {
    margin-top: var(--ffs-space-8);
}

.ffs-mb-3 {
    margin-bottom: var(--ffs-space-3);
}

.ffs-mb-6 {
    margin-bottom: var(--ffs-space-6);
}

.ffs-mb-8 {
    margin-bottom: var(--ffs-space-8);
}

.ffs-mb-16 {
    margin-bottom: var(--ffs-space-16);
}

.ffs-mb-\[30px\] {
    margin-bottom: 30px;
}

.ffs-ml-2 {
    margin-left: var(--ffs-space-2);
}

.ffs-ml-3 {
    margin-left: var(--ffs-space-3);
}

.ffs-ms-1 {
    margin-inline-start: var(--ffs-space-1);
}

.ffs-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ffs-my-8 {
    margin-top: var(--ffs-space-8);
    margin-bottom: var(--ffs-space-8);
}

/* ============================================================================
 * Typography
 * ============================================================================
 */
.ffs-text-left {
    text-align: left;
}

.ffs-text-center {
    text-align: center;
}

.ffs-text-xs {
    font-size: var(--ffs-font-size-x-small);
    line-height: 16px;
}

.ffs-text-sm {
    font-size: var(--ffs-font-size-small);
    line-height: 20px;
}

.ffs-text-base {
    font-size: var(--ffs-font-size-base);
    line-height: 22px;
}

.ffs-text-xl {
    font-size: var(--ffs-font-size-x-large);
    line-height: 30px;
}

.ffs-text-2xl {
    font-size: var(--ffs-font-size-2x-large);
    line-height: 40px;
}

.ffs-text-3xl {
    font-size: 30px;
    line-height: 36px;
}

.ffs-text-6xl {
    font-size: 60px;
    line-height: 1;
}

.ffs-text-\[48px\] {
    font-size: 48px;
}

.ffs-font-medium {
    font-weight: var(--ffs-font-weight-medium);
}

.ffs-font-semibold {
    font-weight: var(--ffs-font-weight-semi);
}

.ffs-font-bold {
    font-weight: 700;
}

.ffs-leading-4 {
    line-height: var(--ffs-line-height-base);
}

.ffs-leading-10 {
    line-height: 40px;
}

.ffs-leading-\[1\.3\] {
    line-height: 1.3;
}

.ffs-whitespace-nowrap {
    white-space: nowrap;
}

.ffs-capitalize {
    text-transform: capitalize;
}

.ffs-pointer-events-none {
    pointer-events: none;
}

/* ============================================================================
 * Borders
 * ============================================================================
 */
.ffs-border {
    border-width: 1px;
    border-style: solid;
}

.ffs-border-0 {
    border-width: 0;
}

.ffs-border-2 {
    border-width: 2px;
    border-style: solid;
}

.ffs-border-b {
    border-bottom-width: 1px;
    border-style: solid;
}

.ffs-border-r {
    border-right-width: 1px;
    border-style: solid;
}

.ffs-border-solid {
    border-style: solid;
}

.ffs-border-none {
    border-style: none;
}

.ffs-rounded {
    border-radius: var(--ffs-radius-sm);
}

.ffs-rounded-md {
    border-radius: var(--ffs-radius-md);
}

.ffs-rounded-full {
    border-radius: var(--ffs-radius-full);
}

/* Border colors — WPDS gray scale */
.ffs-border-gray-300 {
    border-color: var(--ffs-gray-300);
}

.ffs-border-gray-500 {
    border-color: var(--ffs-gray-500);
}

.ffs-border-black {
    border-color: var(--ffs-gray-900);
}

.ffs-border-primary {
    border-color: var(--ffs-primary);
}

/* ============================================================================
 * Background
 * ============================================================================
 */
.ffs-bg-white {
    background-color: var(--ffs-white);
}

.ffs-bg-transparent {
    background-color: transparent;
}

.ffs-bg-gray-50 {
    background-color: var(--ffs-gray-100);
}

.ffs-bg-gray-100 {
    background-color: var(--ffs-gray-100);
}

.ffs-bg-gray-300 {
    background-color: var(--ffs-gray-300);
}

.ffs-bg-green-100 {
    background-color: var(--ffs-tint-green);
}

.ffs-bg-red-100 {
    background-color: var(--ffs-tint-red);
}

.ffs-bg-yellow-100 {
    background-color: var(--ffs-tint-yellow);
}

.ffs-bg-blue-100 {
    background-color: var(--ffs-tint-blue);
}

/* ============================================================================
 * Text colors — WPDS ink + semantic
 * ============================================================================
 */
.ffs-text-gray-500 {
    color: var(--ffs-gray-700);
}

.ffs-text-gray-700 {
    color: var(--ffs-gray-700);
}

.ffs-text-gray-900 {
    color: var(--ffs-gray-900);
}

.ffs-text-green-600 {
    color: var(--ffs-alert-green);
}

.ffs-text-green-800 {
    color: #005c1d;
}

.ffs-text-red-500 {
    color: var(--ffs-alert-red);
}

.ffs-text-red-600 {
    color: var(--ffs-alert-red);
}

.ffs-text-red-800 {
    color: #8b1a1c;
}

.ffs-text-white {
    color: var(--ffs-white);
}

.ffs-text-indigo-500 {
    color: var(--ffs-primary);
}

.ffs-text-indigo-600 {
    color: var(--ffs-primary-darker-10);
}

.ffs-text-primary {
    color: var(--ffs-primary);
}

.ffs-text-inherit {
    color: inherit;
}

/* ============================================================================
 * Shadow — WPDS elevation tokens
 * ============================================================================
 */
.ffs-shadow-sm {
    box-shadow: var(--ffs-elevation-x-small);
}

.ffs-shadow-md {
    box-shadow: var(--ffs-elevation-medium);
}

.ffs-shadow-lg {
    box-shadow: var(--ffs-elevation-large);
}

/* ============================================================================
 * Transitions
 * ============================================================================
 */
.ffs-transition {
    transition: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ffs-transition-colors {
    transition: color, background-color, border-color, text-decoration-color, fill, stroke 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ffs-duration-200 {
    transition-duration: 200ms;
}

/* ============================================================================
 * Overflow / Cursor / List / Object
 * ============================================================================
 */
.ffs-overflow-hidden {
    overflow: hidden;
}

.ffs-cursor-pointer {
    cursor: pointer;
}

.ffs-list-none {
    list-style-type: none;
}

.ffs-object-cover {
    object-fit: cover;
}

/* Grid helpers */
.ffs-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ffs-justify-center {
    justify-content: center;
}

/* ============================================================================
 * Accessibility
 * ============================================================================
 */
.ffs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
 * Color picker
 * ============================================================================
 */
.ffs-color-label {
    display: inline-flex;
    width: auto;
    align-items: stretch;
    cursor: pointer;
    overflow: hidden;
    background-color: var(--ffs-gray-100);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-sm);
    padding: 0;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ffs-color-label:hover {
    border-color: var(--ffs-gray-400);
}

.ffs-color-label:focus-within {
    border-color: var(--ffs-primary);
    box-shadow: 0 0 0 1px var(--ffs-primary);
}

.ffs-color-input {
    width: var(--ffs-space-8);
    height: auto;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

.ffs-color-text {
    display: inline-flex;
    align-items: center;
    padding: var(--ffs-space-1) var(--ffs-space-2);
    font-size: var(--ffs-font-size-small);
    line-height: 20px;
    font-weight: var(--ffs-font-weight-semi);
    color: var(--ffs-gray-900);
    pointer-events: none;
}

/* ============================================================================
 * Image radio card
 * ============================================================================
 */
.ffs-img-radio {
    padding: var(--ffs-space-4);
    padding-top: var(--ffs-space-3);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ffs-img-radio:hover {
    border-color: var(--ffs-gray-400);
}

.ffs-img-radio--selected {
    border-color: var(--ffs-primary);
    box-shadow: 0 0 0 1px var(--ffs-primary);
}

.ffs-img-radio img {
    width: 224px;
    height: auto;
    border-width: 2px;
    border-radius: var(--ffs-radius-md);
    border-style: solid;
    object-fit: cover;
    border-color: var(--ffs-gray-300);
}

.ffs-img-radio img.ffs-img-radio-img--selected {
    border-color: var(--ffs-primary);
}

.ffs-img-radio img.ffs-img-radio-img--default {
    border-color: var(--ffs-gray-300);
}

/* ============================================================================
 * Segmented control (replaces the legacy bar / label / label--active)
 * ============================================================================
 */
.ffs-tab-radio {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ffs-space-3);
}

.ffs-tab-radio__content {
    width: 100%;
}

/* ============================================================================
 * Checkbox group
 * ============================================================================
 */
.ffs-check-group {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
    margin-bottom: var(--ffs-space-3);
    cursor: pointer;
    font-size: var(--ffs-font-size-small);
    color: var(--ffs-gray-900);
}

.ffs-check-group input[type="checkbox"] {
    height: 20px;
    width: 20px;
    margin: 0 !important;
    accent-color: var(--ffs-primary);
}

.ffs-check-group p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--ffs-font-size-small) !important;
    line-height: var(--ffs-line-height-base) !important;
    color: var(--ffs-gray-900);
}

/* ============================================================================
 * Radio group
 * ============================================================================
 */
.ffs-radio-group {
    margin-top: var(--ffs-space-2);
    display: flex;
    gap: var(--ffs-space-4);
}

.ffs-radio-group label {
    display: inline-flex;
    align-items: center;
    font-size: var(--ffs-font-size-small);
    color: var(--ffs-gray-900);
}

.ffs-radio-group input[type="radio"] {
    height: var(--ffs-space-4);
    width: var(--ffs-space-4);
    accent-color: var(--ffs-primary);
}

/* ============================================================================
 * File input
 * ============================================================================
 */
.ffs-file-input {
    margin-top: var(--ffs-space-1);
    display: block;
    width: 100%;
    font-size: var(--ffs-font-size-small);
    line-height: 20px;
    color: var(--ffs-gray-900);
    font-family: var(--ffs-font-sans);
}

/* ============================================================================
 * Date input
 * ============================================================================
 */
.ffs-date-input {
    margin-top: var(--ffs-space-1);
    display: block;
    width: 100%;
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    padding: var(--ffs-space-2) var(--ffs-space-3);
    font-family: var(--ffs-font-sans);
    font-size: var(--ffs-font-size-small);
    color: var(--ffs-gray-900);
    background-color: var(--ffs-white);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ffs-date-input:focus {
    border-color: var(--ffs-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--ffs-primary);
}

/* ============================================================================
 * Repeater
 * ============================================================================
 */
.ffs-repeater {
    margin-top: var(--ffs-space-2);
    display: flex;
    gap: var(--ffs-space-2);
}

.ffs-repeater input {
    display: block;
    width: 100%;
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    padding: var(--ffs-space-2) var(--ffs-space-3);
    font-size: var(--ffs-font-size-small);
    background-color: var(--ffs-white);
    color: var(--ffs-gray-900);
    box-shadow: var(--ffs-elevation-x-small);
    font-family: var(--ffs-font-sans);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ffs-repeater input:focus {
    border-color: var(--ffs-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--ffs-primary);
}

.ffs-repeater button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--ffs-font-size-small);
    line-height: 20px;
    white-space: nowrap;
    color: var(--ffs-alert-red);
    font-family: var(--ffs-font-sans);
    font-weight: var(--ffs-font-weight-medium);
    transition: color 150ms ease;
}

.ffs-repeater button:hover {
    color: #8b1a1c;
}

/* ============================================================================
 * Block / inline
 * ============================================================================
 */
.ffs-block {
    display: block;
}

.ffs-inline {
    display: inline;
}

.ffs-hidden {
    display: none;
}

.ffs-inline-flex {
    display: inline-flex;
}

/* ============================================================================
 * Position
 * ============================================================================
 */
.ffs-relative {
    position: relative;
}

.ffs-fixed {
    position: fixed;
}

/* ============================================================================
 * Z-index
 * ============================================================================
 */
.ffs-z-1000 {
    z-index: 1000;
}

/* ============================================================================
 * Switch component (toggle)
 * ============================================================================
 */
.ffs-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.ffs-switch__track {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2px;
    padding-right: 2px;
    height: 22px;
    width: 36px;
    border-radius: var(--ffs-radius-full);
    background-color: var(--ffs-gray-400);
    cursor: pointer;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.ffs-switch__input:checked + .ffs-switch__track {
    background-color: var(--ffs-alert-green);
    justify-content: flex-end;
}

.ffs-switch__thumb {
    height: 18px;
    width: 18px;
    background-color: var(--ffs-white);
    border-radius: var(--ffs-radius-full);
    box-shadow: var(--ffs-elevation-small);
}

.ffs-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ============================================================================
 * Input fields
 * ============================================================================
 */
.ffs-input {
    display: block;
    width: 100%;
    padding: var(--ffs-space-2) var(--ffs-space-3);
    font-size: var(--ffs-font-size-small);
    line-height: 20px;
    color: var(--ffs-gray-900);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-sm);
    box-shadow: var(--ffs-elevation-x-small);
    font-family: var(--ffs-font-sans);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ffs-input:focus {
    border-color: var(--ffs-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--ffs-primary);
}

.ffs-input:disabled {
    background-color: var(--ffs-gray-100);
    color: var(--ffs-gray-600);
    cursor: not-allowed;
}

.ffs-input--select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M2.5 4.5l3.5 3.5 3.5-3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--ffs-space-3) center;
    background-size: 12px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ffs-input--textarea {
    resize: vertical;
    min-height: 180px;
    font-family: var(--ffs-font-mono, Menlo, Consolas, monaco, monospace);
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================================
 * Stats card — uses WPDS stat list pattern
 * ============================================================================
 */
.ffs-stats {
    max-width: 100%;
    padding-left: var(--ffs-space-6) !important;
    padding-right: var(--ffs-space-6) !important;
    padding-top: var(--ffs-space-8);
    padding-bottom: var(--ffs-space-8);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    box-shadow: var(--ffs-elevation-x-small);
    margin-top: var(--ffs-space-8);
    margin-bottom: var(--ffs-space-8);
}

.ffs-stats__grid {
    display: grid;
    align-items: center;
    gap: var(--ffs-space-6);
}

.ffs-stats__label {
    display: inline-flex;
    align-items: center;
    gap: var(--ffs-space-1);
    padding: 2px var(--ffs-space-2) 2px var(--ffs-space-2);
    font-size: var(--ffs-font-size-x-small);
    line-height: 16px;
    font-weight: var(--ffs-font-weight-medium);
    border-radius: var(--ffs-radius-full);
    white-space: nowrap;
}

/* ============================================================================
 * Post type list
 * ============================================================================
 */
.ffs-post-type-list {
    list-style: none;
    margin: var(--ffs-space-3) 0 0 0;
    padding: 0;
}

.ffs-post-type-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--ffs-space-2) 0;
    border-bottom: 1px solid var(--ffs-gray-300);
    font-size: var(--ffs-font-size-small);
    color: var(--ffs-gray-900);
}

.ffs-post-type-list li:last-child {
    border-bottom: none;
}

.ffs-post-type-list li strong {
    color: var(--ffs-gray-900);
    font-weight: var(--ffs-font-weight-medium);
}

/* ============================================================================
 * Card — WPDS content-card pattern
 * Every content unit lives inside a white card on the gray canvas.
 * ============================================================================
 */
.ffs-card {
    background-color: var(--ffs-white);
    padding: var(--ffs-space-8);
    margin-top: var(--ffs-space-8);
    margin-bottom: var(--ffs-space-8);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    box-shadow: var(--ffs-elevation-x-small);
    color: var(--ffs-gray-900);
}

.ffs-card h1,
.ffs-card h2,
.ffs-card h3 {
    color: var(--ffs-gray-900);
    font-weight: var(--ffs-font-weight-medium);
    line-height: var(--ffs-line-height-tight);
}

.ffs-card h2 {
    font-size: var(--ffs-font-size-x-large);
    margin-top: 0;
    margin-bottom: var(--ffs-space-4);
}

/* ============================================================================
 * Pricing card
 * ============================================================================
 */
.ffs-pricing-card {
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ffs-elevation-x-small);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.ffs-pricing-card:hover {
    box-shadow: var(--ffs-elevation-medium);
}

.ffs-pricing-card img {
    width: auto;
    height: 40px;
}

.ffs-w-5 {
    width: var(--ffs-space-5);
}

/* ============================================================================
 * Responsive breakpoints (WPDS uses fluid, content-driven layouts)
 * ============================================================================
 */
@media (min-width: 640px) {
    .ffs-sm-py-16 {
        padding-top: var(--ffs-space-16);
        padding-bottom: var(--ffs-space-16);
    }

    .ffs-sm-text-sm {
        font-size: var(--ffs-font-size-small);
        line-height: 20px;
    }

    .ffs-sm-gap-8 {
        gap: var(--ffs-space-8);
    }
}

@media (min-width: 768px) {
    .ffs-md-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ffs-md-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ffs-lg-grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .ffs-lg-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ffs-lg-col-span-4 {
        grid-column: span 4 / span 4;
    }

    .ffs-lg-col-span-8 {
        grid-column: span 8 / span 8;
    }

    .ffs-lg-gap-12 {
        gap: var(--ffs-space-12);
    }

    .ffs-lg-pe-6 {
        padding-inline-end: var(--ffs-space-6);
    }

    .ffs-lg-h-\[60px\] {
        height: 60px;
    }
}

@media (min-width: 1280px) {
    .ffs-xl-p-10 {
        padding: 40px;
    }

    .ffs-xl-pe-12 {
        padding-inline-end: var(--ffs-space-12);
    }

    .ffs-xl-mb-20 {
        margin-bottom: var(--ffs-space-20);
    }

    .ffs-xl-text-\[72px\] {
        font-size: 72px;
    }
}

/* ============================================================================
 * Floating notice container (bottom-right, stacks notices)
 * ============================================================================ */
#ffs-notice-container {
    position: fixed;
    bottom: var(--ffs-space-8);
    right: var(--ffs-space-8);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--ffs-space-2);
    max-width: 420px;
    pointer-events: none;
}

#ffs-notice-container > * {
    pointer-events: auto;
    margin: 0;
    box-shadow: var(--ffs-elevation-medium);
}

#ffs-notice-container .notice {
    border-radius: var(--ffs-radius-sm);
}

/* ============================================================================
 * WPDS Page Architecture
 * Every page starts on a gray canvas; all content lives inside white cards.
 * Reference: DESIGN.md — Page Layout Patterns, Surface Model
 * ============================================================================
 */
.ffs-page {
    margin: 0;
    padding: var(--ffs-space-6) var(--ffs-space-6) 0 var(--ffs-space-6);
    max-width: 1400px;
    color: var(--ffs-gray-900);
}

.ffs-page * {
    box-sizing: border-box;
}

/* ============================================================================
 * Plugin Header Bar
 * Top-of-page plugin identity bar with logo, title, and global actions.
 * ============================================================================
 */
.ffs-plugin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ffs-space-4);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    padding: var(--ffs-space-4) var(--ffs-space-6);
    margin-bottom: var(--ffs-space-4);
    box-shadow: var(--ffs-elevation-x-small);
    flex-wrap: wrap;
}

.ffs-plugin-header__brand {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-3);
    min-width: 0;
}

.ffs-plugin-header__icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ffs-radius-sm);
    background-color: var(--ffs-brand);
    color: var(--ffs-white);
    flex-shrink: 0;
}

.ffs-plugin-header__icon img,
.ffs-plugin-header__icon svg {
    width: 20px;
    height: 20px;
    display: block;
    color: var(--ffs-white);
}

.ffs-plugin-header__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ffs-plugin-header__name {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-semi);
    line-height: var(--ffs-line-height-tight);
    color: var(--ffs-gray-900);
    margin: 0;
}

.ffs-plugin-header__subtitle {
    font-size: var(--ffs-font-size-x-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
    margin: 0;
    font-weight: var(--ffs-font-weight-regular);
}

.ffs-plugin-header__actions {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
    flex-wrap: wrap;
}

.ffs-plugin-header__action {
    display: inline-flex;
    align-items: center;
    gap: var(--ffs-space-1);
    padding: var(--ffs-space-2) var(--ffs-space-3);
    font-size: var(--ffs-font-size-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
    text-decoration: none;
    border-radius: var(--ffs-radius-sm);
    transition: background-color 150ms ease, color 150ms ease;
    font-weight: var(--ffs-font-weight-medium);
}

.ffs-plugin-header__action:hover,
.ffs-plugin-header__action:focus {
    background-color: var(--ffs-gray-100);
    color: var(--ffs-primary);
    outline: none;
}

.ffs-plugin-header__action .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Upgrade to Pro — outlined golden pill. Golden text on transparent
   background with a golden border, fully rounded. The hover state adds
   a subtle gold-tinted background for affordance. */
.ffs-plugin-header__action--upgrade {
    background: transparent;
    color: #b45309;
    border: 1.5px solid #d97706;
    border-radius: 9999px;
    padding: var(--ffs-space-2) var(--ffs-space-5);
    font-weight: var(--ffs-font-weight-semi, 600);
    transition: background-color var(--ffs-duration-fast) var(--ffs-easing),
                color var(--ffs-duration-fast) var(--ffs-easing),
                border-color var(--ffs-duration-fast) var(--ffs-easing),
                box-shadow var(--ffs-duration-fast) var(--ffs-easing),
                transform var(--ffs-duration-fast) var(--ffs-easing);
}

.ffs-plugin-header__action--upgrade:hover,
.ffs-plugin-header__action--upgrade:focus {
    background-color: rgba(251, 191, 36, 0.12);
    color: #92400e;
    border-color: #b45309;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.15);
    outline: none;
}

.ffs-plugin-header__action--upgrade:focus-visible {
    outline: 2px solid var(--ffs-color-primary-600, #2271b1);
    outline-offset: 2px;
}

.ffs-plugin-header__action--upgrade:active {
    transform: scale(0.97);
    background-color: rgba(251, 191, 36, 0.2);
}

.ffs-plugin-header__status {
    display: inline-flex;
    align-items: center;
    gap: var(--ffs-space-1);
    padding: 4px var(--ffs-space-3);
    font-size: var(--ffs-font-size-x-small);
    line-height: 1.4;
    font-weight: var(--ffs-font-weight-semi);
    color: var(--ffs-gray-900);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-full);
}

.ffs-plugin-header__status-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--ffs-radius-round);
    background-color: var(--ffs-gray-500);
    flex-shrink: 0;
}

.ffs-plugin-header__status-dot--success {
    background-color: var(--ffs-alert-green);
}

.ffs-plugin-header__status-dot--warning {
    background-color: var(--ffs-alert-yellow);
}

.ffs-plugin-header__status-dot--error {
    background-color: var(--ffs-alert-red);
}

.ffs-plugin-header__status-dot--info {
    background-color: var(--ffs-info-blue);
}

/* ============================================================================
 * Tab Navigation
 * Sits directly on the gray canvas below the plugin header.
 * ============================================================================
 */
.ffs-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    background-color: transparent;
    border-bottom: 1px solid var(--ffs-gray-300);
    margin-bottom: var(--ffs-space-6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overflow-y: hidden;
}

.ffs-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--ffs-space-2);
    padding: var(--ffs-space-3) var(--ffs-space-4);
    font-family: inherit;
    font-size: var(--ffs-font-size-base);
    line-height: var(--ffs-line-height-base);
    font-weight: var(--ffs-font-weight-medium);
    color: var(--ffs-gray-700);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
    white-space: nowrap;
    text-decoration: none;
    margin-bottom: -1px;
}

.ffs-tab:hover,
.ffs-tab:focus {
    color: var(--ffs-gray-900);
    background-color: var(--ffs-gray-100);
    outline: none;
}

.ffs-tab.is-active {
    color: var(--ffs-primary);
    border-bottom-color: var(--ffs-primary);
    background-color: transparent;
}

.ffs-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: var(--ffs-font-size-x-small);
    font-weight: var(--ffs-font-weight-semi);
    line-height: 1;
    color: var(--ffs-gray-700);
    background-color: var(--ffs-gray-200);
    border-radius: var(--ffs-radius-full);
    font-variant-numeric: tabular-nums;
}

.ffs-tab.is-active .ffs-tab__count {
    color: var(--ffs-primary);
    background-color: var(--ffs-tint-blue);
}

.ffs-tab-panel {
    display: none;
}

.ffs-tab-panel.is-active {
    display: block;
}

/* ============================================================================
 * Card / Content Card
 * Universal content vessel.
 * ============================================================================
 */
.ffs-content-card {
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    box-shadow: var(--ffs-elevation-x-small);
    margin-bottom: var(--ffs-space-5);
    overflow: hidden;
}

.ffs-content-card__header {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-3);
    padding: var(--ffs-space-4) var(--ffs-space-6);
    border-bottom: 1px solid var(--ffs-gray-300);
    background-color: var(--ffs-white);
}

.ffs-content-card__header-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ffs-radius-sm);
    background-color: var(--ffs-gray-100);
    color: var(--ffs-gray-900);
    flex-shrink: 0;
    font-size: 16px;
}

.ffs-content-card__header-icon--accent {
    background-color: var(--ffs-tint-blue);
    color: var(--ffs-primary);
    border: 1px solid var(--ffs-info-border);
}

.ffs-content-card__header-text {
    flex: 1;
    min-width: 0;
}

.ffs-content-card__title {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-semi);
    line-height: var(--ffs-line-height-tight);
    color: var(--ffs-gray-900);
    margin: 0;
}

.ffs-content-card__subtitle {
    font-size: var(--ffs-font-size-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
    margin: 2px 0 0 0;
}

.ffs-content-card__header-actions {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
    flex-shrink: 0;
}

.ffs-content-card__body {
    padding: 0;
}

.ffs-content-card__body--padded {
    padding: var(--ffs-space-4) var(--ffs-space-6);
}

.ffs-content-card__footer {
    padding: var(--ffs-space-3) var(--ffs-space-6);
    border-top: 1px solid var(--ffs-gray-300);
    background-color: var(--ffs-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ffs-space-3);
    flex-wrap: wrap;
}

.ffs-content-card .dashicons {
    line-height: 1 !important;
}

/* ============================================================================
 * Form Row (two-column label | control)
 * ============================================================================
 */
.ffs-form-row {
    display: grid;
    grid-template-columns: minmax(160px, 28%) 1fr;
    gap: var(--ffs-space-4);
    padding: var(--ffs-space-4) var(--ffs-space-6);
    border-bottom: 1px solid var(--ffs-gray-300);
    align-items: start;
}

.ffs-form-row:last-child {
    border-bottom: none;
}

.ffs-form-row__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
}

.ffs-form-row__label-text {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-medium);
    line-height: 1.4;
    color: var(--ffs-gray-900);
    display: flex;
    align-items: center;
    gap: var(--ffs-space-1);
}

.ffs-form-row__label-text .ffs-form-row__pro {
    display: inline-flex;
    align-items: center;
    font-size: var(--ffs-font-size-x-small);
    font-weight: var(--ffs-font-weight-semi);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ffs-alert-yellow);
    background-color: var(--ffs-tint-yellow);
    border: 1px solid #f0e5b3;
    border-radius: var(--ffs-radius-full);
    padding: 1px 6px;
    line-height: 1.3;
}

.ffs-form-row__label-desc {
    font-size: var(--ffs-font-size-x-small);
    line-height: 1.5;
    color: var(--ffs-gray-700);
}

.ffs-form-row__control {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--ffs-space-2);
}

.ffs-form-row__help {
    font-size: var(--ffs-font-size-x-small);
    line-height: 1.5;
    color: var(--ffs-gray-700);
    margin: 0;
}

.ffs-form-row__help a {
    color: var(--ffs-primary);
    text-decoration: none;
}

.ffs-form-row__help a:hover {
    text-decoration: underline;
}

.ffs-form-row__inline-notice {
    margin: 0;
}

@media (max-width: 782px) {
    .ffs-form-row {
        grid-template-columns: 1fr;
        gap: var(--ffs-space-2);
    }

    .ffs-form-row__label {
        padding-top: 0;
    }
}

/* ============================================================================
 * Banner (warnings, info, status)
 * ============================================================================
 */
.ffs-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--ffs-space-3);
    padding: var(--ffs-space-3) var(--ffs-space-4);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-left: 4px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    box-shadow: var(--ffs-elevation-x-small);
    margin-bottom: var(--ffs-space-3);
}

.ffs-banner--warning {
    border-left-color: var(--ffs-alert-yellow);
}

.ffs-banner--error {
    border-left-color: var(--ffs-alert-red);
}

.ffs-banner--success {
    border-left-color: var(--ffs-alert-green);
}

.ffs-banner--info {
    border-left-color: var(--ffs-info-blue);
}

.ffs-banner--primary {
    border-left-color: var(--ffs-primary);
}

.ffs-banner__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--ffs-gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ffs-banner--warning .ffs-banner__icon {
    color: var(--ffs-alert-yellow);
}

.ffs-banner--error .ffs-banner__icon {
    color: var(--ffs-alert-red);
}

.ffs-banner--success .ffs-banner__icon {
    color: var(--ffs-alert-green);
}

.ffs-banner--info .ffs-banner__icon {
    color: var(--ffs-info-blue);
}

.ffs-banner--primary .ffs-banner__icon {
    color: var(--ffs-primary);
}

.ffs-banner__icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ffs-banner__body {
    flex: 1;
    min-width: 0;
}

.ffs-banner__title {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-semi);
    line-height: 1.4;
    color: var(--ffs-gray-900);
    margin: 0 0 2px 0;
}

.ffs-banner__message {
    font-size: var(--ffs-font-size-small);
    line-height: 1.5;
    color: var(--ffs-gray-700);
    margin: 0;
}

.ffs-banner__message a {
    color: var(--ffs-primary);
    text-decoration: none;
}

.ffs-banner__message a:hover {
    text-decoration: underline;
}

.ffs-banner__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
}

@media (max-width: 600px) {
    .ffs-banner__actions {
        width: 100%;
        margin-top: var(--ffs-space-2);
    }
}

/* ============================================================================
 * Info Notice (inline help / callouts inside cards)
 * ============================================================================
 */
.ffs-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--ffs-space-2);
    padding: var(--ffs-space-3) var(--ffs-space-4);
    background-color: var(--ffs-info-background);
    border: 1px solid var(--ffs-info-border);
    border-radius: var(--ffs-radius-sm);
    color: var(--ffs-gray-900);
    font-size: var(--ffs-font-size-small);
    line-height: 1.5;
}

.ffs-notice__icon {
    width: 16px;
    height: 16px;
    color: var(--ffs-info-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.ffs-notice__title {
    font-weight: var(--ffs-font-weight-semi);
    color: var(--ffs-info-blue);
    margin: 0 0 2px 0;
    font-size: var(--ffs-font-size-base);
}

.ffs-notice__body {
    color: var(--ffs-gray-900);
    margin: 0;
}

.ffs-notice__body a {
    color: var(--ffs-primary);
    text-decoration: none;
}

.ffs-notice__body a:hover {
    text-decoration: underline;
}

.ffs-notice code {
    font-family: var(--ffs-font-mono);
    font-size: 0.92em;
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-info-border);
    border-radius: var(--ffs-radius-xs);
    padding: 1px 4px;
    color: var(--ffs-gray-900);
}

.ffs-notice--success {
    background-color: var(--ffs-tint-green);
    border-color: #b6e2bf;
}

.ffs-notice--success .ffs-notice__icon,
.ffs-notice--success .ffs-notice__title {
    color: #005c1d;
}

.ffs-notice--warning {
    background-color: var(--ffs-tint-yellow);
    border-color: #f0e5b3;
}

.ffs-notice--warning .ffs-notice__icon,
.ffs-notice--warning .ffs-notice__title {
    color: #8a6d00;
}

.ffs-notice--error {
    background-color: var(--ffs-tint-red);
    border-color: #f0c8ca;
}

.ffs-notice--error .ffs-notice__icon,
.ffs-notice--error .ffs-notice__title {
    color: #8b1a1c;
}

/* ============================================================================
 * Warning text (e.g., base theme load warning in custom aesthetic editor)
 * ============================================================================ */
.ffs-warning-text {
    font-size: var(--ffs-font-size-small);
    line-height: 1.5;
    color: var(--ffs-alert-red);
    margin: var(--ffs-space-1) 0 0;
    width: 100%;
}

/* ============================================================================
 * Sticky Save Bar
 * ============================================================================
 */
.ffs-sticky-save-bar {
    position: sticky;
    bottom: var(--ffs-space-4);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ffs-space-3);
    padding: var(--ffs-space-3) var(--ffs-space-4);
    margin-top: var(--ffs-space-5);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    box-shadow: var(--ffs-elevation-medium);
    flex-wrap: wrap;
}

.ffs-sticky-save-bar__info {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
    font-size: var(--ffs-font-size-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
    min-width: 0;
}

.ffs-sticky-save-bar__info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ffs-sticky-save-bar__info--saved .ffs-sticky-save-bar__info-icon {
    color: var(--ffs-alert-green);
}

.ffs-sticky-save-bar__info--dirty .ffs-sticky-save-bar__info-icon {
    color: var(--ffs-alert-yellow);
}

.ffs-sticky-save-bar__info--saving .ffs-sticky-save-bar__info-icon {
    color: var(--ffs-info-blue);
}

.ffs-sticky-save-bar__info--error .ffs-sticky-save-bar__info-icon {
    color: var(--ffs-alert-red);
}

.ffs-sticky-save-bar__actions {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
    flex-shrink: 0;
}

.ffs-sticky-save-bar__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--ffs-gray-200);
    border-top-color: var(--ffs-primary);
    border-radius: var(--ffs-radius-round);
    animation: ffs-spin 0.8s linear infinite;
    display: inline-block;
}

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

@media (max-width: 600px) {
    .ffs-sticky-save-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ffs-sticky-save-bar__actions {
        justify-content: flex-end;
    }
}

/* ============================================================================
 * Empty State
 * ============================================================================
 */
.ffs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--ffs-space-10) var(--ffs-space-6);
}

.ffs-empty-state--inline {
    padding: var(--ffs-space-8) var(--ffs-space-6);
}

.ffs-empty-state__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ffs-radius-round);
    background-color: var(--ffs-gray-100);
    border: 1px solid var(--ffs-gray-300);
    color: var(--ffs-gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ffs-space-4);
    opacity: 0.85;
}

.ffs-empty-state__icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.ffs-empty-state__icon svg {
    width: 24px;
    height: 24px;
}

.ffs-empty-state__title {
    font-size: var(--ffs-font-size-x-large);
    font-weight: var(--ffs-font-weight-medium);
    line-height: var(--ffs-line-height-tight);
    color: var(--ffs-gray-900);
    margin: 0 0 var(--ffs-space-2) 0;
}

.ffs-empty-state__description {
    font-size: var(--ffs-font-size-base);
    line-height: 1.5;
    color: var(--ffs-gray-700);
    margin: 0 0 var(--ffs-space-4) 0;
    max-width: 420px;
}

.ffs-empty-state__actions {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================================
 * Stat Row (WPDS stat-list pattern)
 * ============================================================================
 */
.ffs-stat-row {
    display: grid;
    grid-template-columns: minmax(160px, 32%) 1fr;
    gap: var(--ffs-space-4);
    padding: var(--ffs-space-4) 0;
    border-bottom: 1px solid var(--ffs-gray-300);
    align-items: start;
}

.ffs-stat-row:last-child {
    border-bottom: none;
}

.ffs-stat-row__label {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-medium);
    color: var(--ffs-gray-900);
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
}

.ffs-stat-row__value {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ffs-stat-row__primary {
    font-size: var(--ffs-font-size-base);
    color: var(--ffs-gray-900);
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
    flex-wrap: wrap;
}

.ffs-stat-row__primary-value {
    font-size: var(--ffs-font-size-x-large);
    font-weight: var(--ffs-font-weight-regular);
    color: var(--ffs-gray-900);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.ffs-stat-row__secondary {
    font-size: var(--ffs-font-size-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
}

@media (max-width: 600px) {
    .ffs-stat-row {
        grid-template-columns: 1fr;
        gap: var(--ffs-space-1);
    }
}

/* ============================================================================
 * Header status pill
 * ============================================================================
 */
.ffs-status-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--ffs-space-1);
    padding: 4px var(--ffs-space-3);
    font-size: var(--ffs-font-size-x-small);
    font-weight: var(--ffs-font-weight-semi);
    line-height: 1.4;
    color: var(--ffs-gray-900);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-full);
}

.ffs-status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: var(--ffs-radius-round);
    background-color: var(--ffs-gray-500);
}

.ffs-status-pill--success .ffs-status-pill__dot {
    background-color: var(--ffs-alert-green);
}

.ffs-status-pill--warning .ffs-status-pill__dot {
    background-color: var(--ffs-alert-yellow);
}

.ffs-status-pill--error .ffs-status-pill__dot {
    background-color: var(--ffs-alert-red);
}

.ffs-status-pill--info .ffs-status-pill__dot {
    background-color: var(--ffs-info-blue);
}

.ffs-status-pill--idle .ffs-status-pill__dot {
    background-color: var(--ffs-gray-500);
}

/* ============================================================================
 * Loading skeleton
 * ============================================================================
 */
.ffs-skeleton {
    display: block;
    background: linear-gradient(90deg,
            var(--ffs-gray-100) 0%,
            var(--ffs-gray-200) 50%,
            var(--ffs-gray-100) 100%);
    background-size: 200% 100%;
    animation: ffs-skeleton 1.4s ease-in-out infinite;
    border-radius: var(--ffs-radius-sm);
    color: transparent;
}

@keyframes ffs-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================================================
 * Stats — refresh + section header additions
 * ============================================================================
 */
.ffs-stats__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ffs-space-3);
    margin-bottom: var(--ffs-space-3);
    flex-wrap: wrap;
}

.ffs-stats__title {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-semi);
    line-height: 1.4;
    color: var(--ffs-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
}

.ffs-stats__metric {
    display: flex;
    align-items: baseline;
    gap: var(--ffs-space-2);
    margin: 0 0 var(--ffs-space-1) 0;
}

.ffs-stats__metric-value {
    font-size: 40px;
    font-weight: var(--ffs-font-weight-medium);
    line-height: 1.2;
    color: var(--ffs-gray-900);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.ffs-stats__metric-label {
    font-size: var(--ffs-font-size-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
    margin: 0;
}

.ffs-stats__divider {
    border: 0;
    border-top: 1px solid var(--ffs-gray-300);
    margin: var(--ffs-space-4) 0;
}

.ffs-stats__subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--ffs-space-4);
}

.ffs-stats__subgrid>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ffs-stats__subgrid-label {
    font-size: var(--ffs-font-size-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
    margin: 0;
}

.ffs-stats__subgrid-value {
    font-size: var(--ffs-font-size-x-large);
    font-weight: var(--ffs-font-weight-medium);
    line-height: 1.3;
    color: var(--ffs-gray-900);
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
 * Range / slider control
 * ============================================================================
 */
.ffs-range {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-3);
}

.ffs-range__slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--ffs-gray-300);
    border-radius: var(--ffs-radius-full);
    outline: none;
    margin: 0;
}

.ffs-range__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: var(--ffs-radius-round);
    background: var(--ffs-primary);
    cursor: pointer;
    border: 2px solid var(--ffs-white);
    box-shadow: var(--ffs-elevation-small);
    transition: background-color 150ms ease, transform 150ms ease;
}

.ffs-range__slider::-webkit-slider-thumb:hover {
    background: var(--ffs-primary-darker-10);
    transform: scale(1.1);
}

.ffs-range__slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: var(--ffs-radius-round);
    background: var(--ffs-primary);
    cursor: pointer;
    border: 2px solid var(--ffs-white);
    box-shadow: var(--ffs-elevation-small);
}

.ffs-range__slider:focus {
    outline: 2px solid var(--ffs-primary);
    outline-offset: 2px;
}

.ffs-range__value {
    min-width: 60px;
    padding: var(--ffs-space-1) var(--ffs-space-2);
    font-size: var(--ffs-font-size-small);
    font-weight: var(--ffs-font-weight-medium);
    font-variant-numeric: tabular-nums;
    color: var(--ffs-gray-900);
    background-color: var(--ffs-gray-100);
    border-radius: var(--ffs-radius-sm);
    text-align: center;
}

/* ============================================================================
 * Segmented control — pills inside .ffs-segmented
 * ============================================================================
 */
.ffs-segmented {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background-color: var(--ffs-gray-100);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    gap: 2px;
    flex-wrap: wrap;
}

.ffs-segmented__option {
    display: inline-flex;
    align-items: center;
    gap: var(--ffs-space-1);
    padding: var(--ffs-space-2) var(--ffs-space-3);
    font-family: var(--ffs-font-sans);
    font-size: var(--ffs-font-size-small);
    font-weight: var(--ffs-font-weight-medium);
    line-height: 1.4;
    color: var(--ffs-gray-700);
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--ffs-radius-sm);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.ffs-segmented__option:hover {
    color: var(--ffs-gray-900);
}

.ffs-segmented__option.is-active {
    background-color: var(--ffs-white);
    color: var(--ffs-gray-900);
    box-shadow: var(--ffs-elevation-x-small);
}

.ffs-segmented__option:disabled {
    color: var(--ffs-gray-500);
    cursor: not-allowed;
}

.ffs-segmented__option:focus-visible {
    outline: 2px solid var(--ffs-primary);
    outline-offset: 2px;
}

.ffs-segmented__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Pro badge inside a compact pill — scoped so it doesn't overflow */
.ffs-segmented__option.ffs-pro-label {
    position: relative;
}

.ffs-segmented__option.ffs-pro-label::after {
    content: 'Pro';
    position: absolute;
    top: 2px;
    right: 4px;
    font-family: var(--ffs-font-sans);
    font-size: 9px;
    font-weight: var(--ffs-font-weight-semi);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #8a6d00;
    background-color: var(--ffs-tint-yellow);
    border: 1px solid #f0e5b3;
    border-radius: var(--ffs-radius-full);
    padding: 1px 5px;
}

/* ============================================================================
 * Choice Card (radio / checkbox)
 * ============================================================================
 */
.ffs-choice-card {
    display: flex;
    align-items: flex-start;
    gap: var(--ffs-space-3);
    padding: var(--ffs-space-3) var(--ffs-space-4);
    background-color: var(--ffs-white);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-sm);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    position: relative;
}

.ffs-choice-card:hover {
    border-color: var(--ffs-gray-400);
}

.ffs-choice-card.is-selected {
    border-color: var(--ffs-primary);
    box-shadow: 0 0 0 1px var(--ffs-primary);
}

.ffs-choice-card input {
    margin-top: 2px;
    accent-color: var(--ffs-primary);
}

.ffs-choice-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ffs-choice-card__title {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-medium);
    color: var(--ffs-gray-900);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: var(--ffs-space-2);
}

.ffs-choice-card__description {
    font-size: var(--ffs-font-size-small);
    line-height: 1.4;
    color: var(--ffs-gray-700);
}

/* ============================================================================
 * Page header / sub header (used in pricing section, mode templates)
 * ============================================================================
 */
.ffs-page-header {
    text-align: center;
    margin-bottom: var(--ffs-space-8);
}

.ffs-page-header__title {
    font-size: var(--ffs-font-size-2x-large);
    font-weight: var(--ffs-font-weight-medium);
    line-height: 1.25;
    color: var(--ffs-gray-900);
    margin: 0 0 var(--ffs-space-2) 0;
    letter-spacing: -0.01em;
}

.ffs-page-header__subtitle {
    font-size: var(--ffs-font-size-x-large);
    line-height: 1.5;
    color: var(--ffs-gray-700);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
 * Mode template — shortcode / auto info
 * ============================================================================
 */
.ffs-mode-content {
    display: flex;
    flex-direction: column;
    gap: var(--ffs-space-3);
}

.ffs-mode-content__shortcode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ffs-space-3);
    padding: var(--ffs-space-3) var(--ffs-space-4);
    background-color: var(--ffs-gray-100);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-sm);
    font-family: var(--ffs-font-mono);
    font-size: var(--ffs-font-size-small);
    color: var(--ffs-gray-900);
    flex-wrap: wrap;
}

.ffs-mode-content__shortcode code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: inherit;
}

.ffs-mode-content__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ffs-space-2);
}

.ffs-mode-content__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--ffs-space-2);
    font-size: var(--ffs-font-size-small);
    line-height: 1.5;
    color: var(--ffs-gray-900);
}

.ffs-mode-content__list li code {
    font-family: var(--ffs-font-mono);
    font-size: 0.92em;
    background-color: var(--ffs-gray-100);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-xs);
    padding: 1px 6px;
    color: var(--ffs-gray-900);
    flex-shrink: 0;
}

.ffs-mode-content__list li b {
    font-weight: var(--ffs-font-weight-semi);
    color: var(--ffs-gray-900);
}

/* ============================================================================
 * Pricing card refinements
 * ============================================================================
 */
.ffs-pricing-card__header {
    display: flex;
    align-items: center;
    gap: var(--ffs-space-3);
    margin-bottom: var(--ffs-space-4);
}

.ffs-pricing-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ffs-gray-100);
    border: 1px solid var(--ffs-gray-300);
    border-radius: var(--ffs-radius-md);
    color: var(--ffs-gray-900);
    flex-shrink: 0;
}

.ffs-pricing-card__icon img,
.ffs-pricing-card__icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.ffs-pricing-card__plan {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ffs-pricing-card__plan-name {
    font-size: var(--ffs-font-size-base);
    font-weight: var(--ffs-font-weight-semi);
    color: var(--ffs-gray-900);
    line-height: 1.3;
    margin: 0;
}

.ffs-pricing-card__plan-tag {
    font-size: var(--ffs-font-size-x-small);
    color: var(--ffs-gray-700);
    line-height: 1.3;
    margin: 0;
}

.ffs-pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--ffs-space-1);
    margin: 0 0 var(--ffs-space-4) 0;
}

.ffs-pricing-card__price-amount {
    font-size: 40px;
    font-weight: var(--ffs-font-weight-medium);
    line-height: 1.1;
    color: var(--ffs-gray-900);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.ffs-pricing-card__price-period {
    font-size: var(--ffs-font-size-small);
    color: var(--ffs-gray-700);
    line-height: 1.4;
}

.ffs-pricing-card__features {
    margin: 0 0 var(--ffs-space-4) 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--ffs-space-2);
    flex: 1;
}

.ffs-pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--ffs-space-2);
    font-size: var(--ffs-font-size-small);
    line-height: 1.5;
    color: var(--ffs-gray-900);
}

.ffs-pricing-card__feature-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ffs-alert-green);
}

.ffs-pricing-card__feature-icon--missing {
    color: var(--ffs-gray-500);
}

.ffs-pricing-card__feature--missing {
    color: var(--ffs-gray-700);
}

.ffs-pricing-card__feature--missing .ffs-pricing-card__feature-text {
    text-decoration: line-through;
    text-decoration-color: var(--ffs-gray-400);
}

.ffs-pricing-card__cta {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ffs-pricing-card--featured {
    border-color: var(--ffs-primary);
    box-shadow: 0 0 0 1px var(--ffs-primary), var(--ffs-elevation-x-small);
}

/* ============================================================================
 * WP core button overrides — keep the button classes but normalize them
 * to WPDS sizing inside our scope.
 * ============================================================================
 */
.ffs-page .button-primary,
.ffs-page .button-secondary,
.ffs-page .button {
    border-radius: var(--ffs-radius-sm);
    font-family: var(--ffs-font-sans);
    font-weight: var(--ffs-font-weight-regular);
    height: auto;
    line-height: 1.4;
    padding: var(--ffs-space-2) var(--ffs-space-4);
    font-size: var(--ffs-font-size-base);
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.ffs-page .button-primary {
    background: var(--ffs-primary);
    border-color: var(--ffs-primary);
    color: var(--ffs-white);
}

.ffs-page .button-primary:hover,
.ffs-page .button-primary:focus {
    background: var(--ffs-primary-darker-10);
    border-color: var(--ffs-primary-darker-10);
    color: var(--ffs-white);
}

.ffs-page .button-primary:active {
    background: var(--ffs-primary-darker-20);
    border-color: var(--ffs-primary-darker-20);
}

.ffs-page .button-primary:disabled,
.ffs-page .button-primary[disabled] {
    background: var(--ffs-gray-300) !important;
    border-color: var(--ffs-gray-300) !important;
    color: var(--ffs-gray-700) !important;
    cursor: not-allowed;
    text-shadow: none;
    box-shadow: none;
}

.ffs-page .button-secondary {
    background: var(--ffs-white);
    border-color: var(--ffs-gray-300);
    color: var(--ffs-primary);
}

.ffs-page .button-secondary:hover,
.ffs-page .button-secondary:focus {
    background: var(--ffs-gray-100);
    border-color: var(--ffs-gray-400);
    color: var(--ffs-primary);
}

.ffs-page .button-link {
    color: var(--ffs-primary);
}

.ffs-page .button-link:hover {
    color: var(--ffs-primary-darker-10);
}

/* ============================================================================
 * Misc utility refinements
 * ============================================================================
 */
.ffs-page h1 {
    display: none;
}

.ffs-page h2 {
    margin-top: 0;
}

.ffs-page .form-table th,
.ffs-page .form-table td {
    padding: 0;
}

.ffs-page .form-table th {
    display: none;
}

.ffs-page .form-table tr {
    display: block;
}

.ffs-text-mono {
    font-family: var(--ffs-font-mono);
    font-size: 0.92em;
}

.ffs-flex-grow {
    flex: 1;
}

.ffs-min-w-0 {
    min-width: 0;
}

/* Pricing grid */
.ffs-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--ffs-space-5);
    align-items: stretch;
}

@media (min-width: 900px) {
    .ffs-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}