/* =====================================================================
   farmer-portal.css - SPIC ONE farmer portal design system.
   Spec: docs/superpowers/specs/2026-11-27-farmer-portal-visual-design.md
   How to use: docs/farmer-portal.md, "Design system". Gallery: /dev/farmer-portal.

   Loaded right after tokens.css in BOTH hosts (SPIC.MauiBlazorApp/wwwroot/index.html and
   SPIC.MauiBlazorApp.Web/Components/App.razor).

   SCOPE RULE: every selector below starts with .fp (the root class of every farmer page:
   <div class="fp fp-page ...">). Nothing here may reach a staff page.
   Breakpoints follow tokens.css: phone <= 767.98px, tablet 768-1199.98px, desktop >= 1200px.
   ===================================================================== */

/* ---------------------------------------------------------------- tokens */
.fp {
    --fp-green-900: #063d22;
    --fp-green-800: #08552d;
    --fp-green-700: #0b6b3a;
    --fp-green-600: #0f7d45;
    --fp-green-500: #14935a;
    --fp-green-100: #cfeadb;
    --fp-green-50: #e8f5ee;
    --fp-gold-700: #8a5d00;
    --fp-gold-500: #e8a317;
    --fp-gold-50: #fdf4e1;
    --fp-soil-600: #8a5a2b;
    --fp-soil-50: #f6ede4;
    --fp-sky-600: #1f7ae0;
    --fp-sky-50: #e7f1fc;
    --fp-violet-600: #6c4ed9;
    --fp-violet-50: #efebfc;
    --fp-teal-600: #0f8a7e;
    --fp-teal-50: #e2f4f2;
    --fp-rose-600: #c2416b;
    --fp-rose-50: #fbe9ef;
    --fp-ink-900: #0f1f17;
    --fp-ink-600: #4b5b52;
    --fp-ink-400: #7d8b83;
    --fp-line: #e3ece6;
    --fp-line-strong: #cfdcd4;
    --fp-bg: #f5f8f6;
    --fp-surface: #ffffff;
    --fp-low: #d64545;
    --fp-low-50: #fdecec;
    --fp-medium: #1e9e5a;
    --fp-medium-50: #e6f6ed;
    --fp-high: #6c4ed9;
    --fp-high-50: #efebfc;
    --fp-warn: #e08a00;
    --fp-error-text: #a61b1b;
    --fp-radius: 16px;
    --fp-radius-input: 12px;
    --fp-radius-pill: 999px;
    --fp-shadow: 0 6px 24px rgba(6, 61, 34, 0.08);
    --fp-shadow-lift: 0 10px 32px rgba(6, 61, 34, 0.14);
    --fp-focus: 0 0 0 3px rgba(20, 147, 90, 0.28);
    --fp-ease: cubic-bezier(.2, .7, .2, 1);
    --fp-hero-gradient: linear-gradient(135deg, var(--fp-green-500) 0%, var(--fp-green-700) 48%, var(--fp-green-900) 100%);
    /* Field rows and leaves, drawn white and shown at ~9 % over the hero gradient. */
    --fp-hero-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-10 150 C30 120 60 120 100 90 S150 50 170 30'/%3E%3Cpath d='M-10 120 C30 90 60 90 100 60 S150 20 170 0'/%3E%3Cpath d='M-10 180 C30 150 60 150 100 120 S150 80 170 60'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cpath d='M38 40 c10-14 26-14 30-12 c-2 10-14 22-30 12z'/%3E%3Cpath d='M118 112 c8-11 20-11 24-9 c-2 8-11 17-24 9z'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--fp-ink-900);
    font-size: 15px;
    line-height: 22px;
    -webkit-font-smoothing: antialiased;
}

    .fp *,
    .fp *::before,
    .fp *::after {
        box-sizing: border-box;
    }

/* ---------------------------------------------------------------- page frame */
.fp.fp-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1120px;
    min-width: 0;
    margin: 0 auto;
    padding-bottom: 24px;
}

.fp .fp-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.fp .fp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.fp .fp-section-title {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--fp-green-900);
}

.fp .fp-section-sub {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--fp-ink-600);
}

.fp .fp-section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: var(--fp-green-700);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.fp .fp-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fp .fp-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.fp .fp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ---------------------------------------------------------------- type */
.fp .fp-h1 {
    margin: 0;
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    color: var(--fp-green-900);
}

.fp .fp-h2 {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--fp-green-900);
}

.fp .fp-text {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
}

.fp .fp-muted {
    color: var(--fp-ink-600);
}

.fp .fp-caption {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--fp-ink-600);
}

.fp .fp-num {
    font-variant-numeric: tabular-nums;
}

.fp .fp-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;
}

.fp a {
    color: var(--fp-green-700);
}

.fp :focus-visible {
    outline: 3px solid var(--fp-green-500);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- hues (tiles, cards, chips) */
.fp .fp-hue-green { --fp-hue: var(--fp-green-700); --fp-hue-bg: var(--fp-green-50); }
.fp .fp-hue-gold { --fp-hue: var(--fp-gold-700); --fp-hue-bg: var(--fp-gold-50); }
.fp .fp-hue-soil { --fp-hue: var(--fp-soil-600); --fp-hue-bg: var(--fp-soil-50); }
.fp .fp-hue-sky { --fp-hue: var(--fp-sky-600); --fp-hue-bg: var(--fp-sky-50); }
.fp .fp-hue-violet { --fp-hue: var(--fp-violet-600); --fp-hue-bg: var(--fp-violet-50); }
.fp .fp-hue-teal { --fp-hue: var(--fp-teal-600); --fp-hue-bg: var(--fp-teal-50); }
.fp .fp-hue-rose { --fp-hue: var(--fp-rose-600); --fp-hue-bg: var(--fp-rose-50); }
.fp .fp-hue-neutral { --fp-hue: var(--fp-ink-600); --fp-hue-bg: #eef2f0; }

.fp .fp-icon-circle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fp-hue-bg, var(--fp-green-50));
    color: var(--fp-hue, var(--fp-green-700));
    font-size: 20px;
}

.fp .fp-icon-circle--sm {
    width: 36px;
    height: 36px;
    font-size: 17px;
}

.fp .fp-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fp-green-50);
    color: var(--fp-green-800);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .02em;
    text-decoration: none;
}

/* ---------------------------------------------------------------- buttons */
.fp .fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--fp-radius-input);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color .18s var(--fp-ease), border-color .18s var(--fp-ease), box-shadow .18s var(--fp-ease), transform .18s var(--fp-ease);
}

    .fp .fp-btn:disabled,
    .fp .fp-btn[aria-disabled="true"] {
        opacity: .55;
        cursor: default;
        box-shadow: none;
    }

    .fp .fp-btn:active:not(:disabled) {
        transform: translateY(1px);
    }

    .fp .fp-btn .bi {
        font-size: 1.1em;
    }

.fp .fp-btn--primary {
    min-height: 52px;
    background: var(--fp-green-700);
    color: #fff;
    box-shadow: 0 6px 18px rgba(11, 107, 58, .24);
}

    .fp .fp-btn--primary:hover:not(:disabled) {
        background: var(--fp-green-800);
        color: #fff;
    }

.fp .fp-btn--secondary {
    background: var(--fp-surface);
    border-color: var(--fp-green-700);
    color: var(--fp-green-700);
}

    .fp .fp-btn--secondary:hover:not(:disabled) {
        background: var(--fp-green-50);
        color: var(--fp-green-800);
    }

.fp .fp-btn--ghost {
    background: transparent;
    color: var(--fp-green-700);
}

    .fp .fp-btn--ghost:hover:not(:disabled) {
        background: var(--fp-green-50);
    }

/* On the green hero / brand panel. */
.fp .fp-btn--light {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    backdrop-filter: blur(6px);
}

    .fp .fp-btn--light:hover:not(:disabled) {
        background: rgba(255, 255, 255, .26);
        color: #fff;
    }

.fp .fp-btn--gold {
    min-height: 52px;
    background: var(--fp-gold-500);
    color: #2b1d00;
    box-shadow: 0 6px 18px rgba(232, 163, 23, .28);
}

    .fp .fp-btn--gold:hover:not(:disabled) {
        background: #d4930f;
    }

.fp .fp-btn--block {
    width: 100%;
}

.fp .fp-btn--sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 14px;
}

/* Text-sized link button with an invisible 44 px tall hit area (::after), so "Change" or
   "Send a new code" stay compact in a sentence but are easy to tap. */
.fp .fp-link-btn {
    position: relative;
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fp-green-700);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

    .fp .fp-link-btn::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -8px;
        right: -8px;
        height: 44px;
        min-width: 44px;
        transform: translateY(-50%);
    }

    .fp .fp-link-btn:disabled {
        opacity: .55;
        cursor: default;
    }

/* Icon + label pill actions for list cards: Call, WhatsApp, Directions, Request call back. */
.fp .fp-action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp .fp-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--fp-line-strong);
    border-radius: var(--fp-radius-pill);
    background: var(--fp-surface);
    color: var(--fp-green-800);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s var(--fp-ease), border-color .18s var(--fp-ease);
}

    .fp .fp-action-pill:hover {
        background: var(--fp-green-50);
        border-color: var(--fp-green-500);
        color: var(--fp-green-900);
    }

    .fp .fp-action-pill .bi {
        font-size: 16px;
        color: var(--fp-green-700);
    }

.fp .fp-action-pill--whatsapp .bi {
    color: #1f9d55;
}

.fp .fp-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fp-spin .7s linear infinite;
}

@keyframes fp-spin {
    to { transform: rotate(360deg); }
}

/* Sticky primary action at the bottom on phone (above the tab bar); a plain row elsewhere. */
.fp .fp-actionbar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ---------------------------------------------------------------- forms */
.fp .fp-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fp .fp-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--fp-ink-900);
}

.fp .fp-req {
    color: var(--fp-low);
}

.fp .fp-optional {
    font-weight: 400;
    color: var(--fp-ink-600);
}

.fp .fp-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--fp-line-strong);
    border-radius: var(--fp-radius-input);
    background-color: var(--fp-surface);
    color: var(--fp-ink-900);
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    transition: border-color .15s var(--fp-ease), box-shadow .15s var(--fp-ease);
}

    /* Layout.css makes every placeholder the text colour (!important). On farmer forms an example
       like "98765 43210" must not look already typed, so it is lighter here (still 4.6:1). */
    .fp .fp-input::placeholder {
        color: #6b7a72 !important;
    }

    .fp .fp-input:hover:not(:disabled):not([readonly]) {
        border-color: #b4c7bb;
    }

    .fp .fp-input:focus {
        outline: none;
        border-color: var(--fp-green-700);
        box-shadow: var(--fp-focus);
    }

    .fp .fp-input[readonly],
    .fp .fp-input:disabled {
        background-color: var(--fp-bg);
        color: var(--fp-ink-600);
    }

    .fp .fp-input.is-invalid {
        border-color: var(--fp-low);
        background-color: #fffafa;
    }

        .fp .fp-input.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(214, 69, 69, .2);
        }

.fp select.fp-input {
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%234b5b52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.fp .fp-input--short {
    max-width: 220px;
}

.fp .fp-input-group {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border: 1px solid var(--fp-line-strong);
    border-radius: var(--fp-radius-input);
    background: var(--fp-surface);
    overflow: hidden;
    transition: border-color .15s var(--fp-ease), box-shadow .15s var(--fp-ease);
}

    .fp .fp-input-group:focus-within {
        border-color: var(--fp-green-700);
        box-shadow: var(--fp-focus);
    }

    .fp .fp-input-group.is-invalid {
        border-color: var(--fp-low);
    }

    .fp .fp-input-group .fp-input {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

.fp .fp-input-addon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: var(--fp-green-50);
    color: var(--fp-green-900);
    font-weight: 700;
    border-right: 1px solid var(--fp-line);
}

    .fp .fp-input-addon .bi {
        color: var(--fp-green-700);
    }

.fp .fp-hint {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--fp-ink-600);
}

.fp .fp-hint--ok {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--fp-green-700);
}

.fp .fp-field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    color: var(--fp-error-text);
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
}

.fp .fp-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fp .fp-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--fp-ink-600);
    font-size: 14px;
    cursor: pointer;
}

    .fp .fp-check input {
        width: 20px;
        height: 20px;
        margin: 0;
        accent-color: var(--fp-green-700);
        cursor: pointer;
    }

/* Alert strips: error / info / success / dev. */
.fp .fp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--fp-radius-input);
    font-size: 14px;
    line-height: 20px;
}

    .fp .fp-alert .bi {
        flex: 0 0 auto;
        margin-top: 1px;
        font-size: 16px;
    }

.fp .fp-alert--error {
    background: var(--fp-low-50);
    color: #8f1d1d;
    border: 1px solid #f6caca;
}

.fp .fp-alert--info {
    background: var(--fp-sky-50);
    color: #144f91;
    border: 1px solid #cfe2f8;
}

.fp .fp-alert--success {
    background: var(--fp-green-50);
    color: var(--fp-green-900);
    border: 1px solid var(--fp-green-100);
}

.fp .fp-alert--dev {
    background: var(--fp-gold-50);
    color: #6b4700;
    border: 1px dashed #efcf87;
}

/* ---------------------------------------------------------------- FpHero */
.fp .fp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 28px 32px;
    border-radius: 24px;
    background: var(--fp-hero-gradient);
    color: #fff;
    box-shadow: 0 14px 36px rgba(6, 61, 34, .18);
}

    .fp .fp-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background-image: var(--fp-hero-pattern);
        background-size: 160px 160px;
        opacity: .09;
    }

    /* soft light in the top-right corner */
    .fp .fp-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        top: -120px;
        right: -80px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
        pointer-events: none;
    }

.fp .fp-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fp .fp-hero__back {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -2px 0 0 -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: background-color .18s var(--fp-ease);
}

    .fp .fp-hero__back:hover {
        background: rgba(255, 255, 255, .26);
        color: #fff;
    }

    .fp .fp-hero__back:focus-visible {
        outline-color: #fff;
    }

.fp .fp-hero__text {
    flex: 1 1 auto;
    min-width: 0;
}

.fp .fp-hero__eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.fp .fp-hero__title {
    margin: 0;
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    color: #fff;
    overflow-wrap: anywhere;
}

    .fp .fp-hero__title:focus {
        outline: none;
    }

.fp .fp-hero__subtitle {
    margin: 6px 0 0;
    max-width: 640px;
    font-size: 15px;
    line-height: 22px;
    color: rgba(255, 255, 255, .86);
}

.fp .fp-hero__aside {
    flex: 0 0 auto;
}

.fp .fp-hero__slot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.fp .fp-hero .fp-avatar {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .5);
    color: #fff;
}

.fp .fp-hero--compact {
    padding: 20px 24px;
}

    .fp .fp-hero--compact .fp-hero__title {
        font-size: 24px;
        line-height: 30px;
    }

/* chips on the hero */
.fp .fp-hero .fp-chip {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .24);
    color: #fff;
}

    .fp .fp-hero .fp-chip .bi {
        color: #fff;
        opacity: .9;
    }

/* ---------------------------------------------------------------- FpCard */
.fp .fp-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
}

.fp .fp-card--flush {
    padding: 0;
    overflow: hidden;
}

.fp .fp-card--highlight {
    position: relative;
    overflow: hidden;
    border-color: #f2dfb2;
    background: linear-gradient(120deg, #fffaf0 0%, #fdf4e1 60%, #fbe9c2 100%);
}

.fp .fp-card--tinted {
    background: var(--fp-green-50);
    border-color: var(--fp-green-100);
    box-shadow: none;
}

.fp .fp-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fp .fp-card__titles {
    flex: 1 1 auto;
    min-width: 0;
}

.fp .fp-card__title {
    margin: 0;
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
    color: var(--fp-green-900);
}

.fp .fp-card__subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--fp-ink-600);
}

.fp .fp-card__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}

.fp .fp-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.fp .fp-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--fp-line);
}

/* ---------------------------------------------------------------- FpTile */
.fp .fp-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.fp .fp-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    min-height: 100%;
    padding: 18px 16px 16px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
    color: var(--fp-ink-900);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--fp-ease), box-shadow .2s var(--fp-ease), border-color .2s var(--fp-ease);
}

    .fp .fp-tile:hover {
        transform: translateY(-3px);
        box-shadow: var(--fp-shadow-lift);
        border-color: #d3e3d9;
        color: var(--fp-ink-900);
    }

    .fp .fp-tile:active {
        transform: translateY(-1px);
    }

.fp .fp-tile__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    width: 100%;
    padding-right: 18px;
}

.fp .fp-tile__title {
    font-size: 15px;
    line-height: 21px;
    font-weight: 700;
    color: var(--fp-green-900);
}

.fp .fp-tile__desc {
    font-size: 13px;
    line-height: 18px;
    color: var(--fp-ink-600);
}

.fp .fp-tile__chevron {
    position: absolute;
    right: 14px;
    bottom: 16px;
    color: var(--fp-ink-400);
    font-size: 14px;
    transition: transform .2s var(--fp-ease), color .2s var(--fp-ease);
}

.fp .fp-tile:hover .fp-tile__chevron {
    transform: translateX(3px);
    color: var(--fp-green-700);
}

.fp .fp-tile__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 9px;
    border-radius: var(--fp-radius-pill);
    background: var(--fp-gold-500);
    color: #2b1d00;
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.fp .fp-tile.is-soon {
    cursor: default;
    background: #fbfcfb;
    box-shadow: none;
}

    .fp .fp-tile.is-soon:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--fp-line);
    }

    .fp .fp-tile.is-soon .fp-icon-circle {
        filter: saturate(.75);
        opacity: .85;
    }

    .fp .fp-tile.is-soon .fp-tile__badge {
        background: #eef2f0;
        color: var(--fp-ink-600);
    }

/* ---------------------------------------------------------------- FpChip / FpStatus */
.fp .fp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-pill);
    background: var(--fp-hue-bg, #eef2f0);
    color: var(--fp-hue, var(--fp-ink-900));
    font: inherit;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    white-space: nowrap;
}

    .fp .fp-chip .bi {
        font-size: 14px;
    }

.fp .fp-chip__emoji {
    font-size: 17px;
    line-height: 1;
}

.fp button.fp-chip {
    min-height: 44px;
    padding: 8px 16px 8px 10px;
    border-color: var(--fp-line-strong);
    background: var(--fp-surface);
    color: var(--fp-ink-900);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .18s var(--fp-ease), border-color .18s var(--fp-ease), box-shadow .18s var(--fp-ease);
}

    .fp button.fp-chip:hover {
        border-color: var(--fp-green-500);
    }

    .fp button.fp-chip .fp-chip__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--fp-bg);
        color: var(--fp-green-700);
    }

    .fp button.fp-chip.is-on {
        border-color: var(--fp-green-700);
        background: var(--fp-green-50);
        color: var(--fp-green-900);
        font-weight: 600;
        box-shadow: inset 0 0 0 1px var(--fp-green-700);
    }

        .fp button.fp-chip.is-on .fp-chip__icon {
            background: var(--fp-green-700);
            color: #fff;
        }

.fp .fp-chip--sm {
    min-height: 26px;
    padding: 3px 10px;
    font-size: 12px;
}

.fp .fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp .fp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 10px 3px 8px;
    border-radius: var(--fp-radius-pill);
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    background: #eef2f0;
    color: var(--fp-ink-600);
}

    .fp .fp-status::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
    }

.fp .fp-status--low { background: var(--fp-low-50); color: #b42f2f; }
.fp .fp-status--medium { background: var(--fp-medium-50); color: #137a43; }
.fp .fp-status--high { background: var(--fp-high-50); color: #5a3ec4; }

.fp .fp-status--lg {
    min-height: 32px;
    padding: 5px 14px 5px 10px;
    font-size: 14px;
}

/* ---------------------------------------------------------------- FpZoneSlider */
.fp .fp-zone {
    --fp-thumb: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fp .fp-zone__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fp .fp-zone__label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.fp .fp-zone__body {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.fp .fp-zone__slider {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 26px;
}

.fp .fp-zone__bubble {
    position: absolute;
    top: 0;
    left: calc(var(--fp-zone-p, 0) * (100% - var(--fp-thumb)) + var(--fp-thumb) / 2);
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--fp-green-900);
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
}

    .fp .fp-zone__bubble::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 8px;
        height: 8px;
        background: inherit;
        transform: translateX(-50%) rotate(45deg);
    }

/* FpZoneSlider HintWarn: a caution under the slider ("Not in your report, enter it from your soil card"). */
.fp .fp-hint.fp-zone__hint--warn {
    color: #8a5300;
    font-weight: 600;
}

.fp .fp-zone.is-empty .fp-zone__bubble {
    background: var(--fp-ink-400);
}

/* 44 px tall input (the hit area); the 10 px track and 28 px thumb are centred in it. */
.fp .fp-zone__range {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

    .fp .fp-zone__range:focus {
        outline: none;
    }

    .fp .fp-zone__range::-webkit-slider-runnable-track {
        height: 10px;
        border-radius: 999px;
        background: var(--fp-zone-track);
    }

    .fp .fp-zone__range::-moz-range-track {
        height: 10px;
        border-radius: 999px;
        background: var(--fp-zone-track);
    }

    .fp .fp-zone__range::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: var(--fp-thumb);
        height: var(--fp-thumb);
        margin-top: calc((10px - var(--fp-thumb)) / 2);
        border: 3px solid var(--fp-green-700);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(6, 61, 34, .25);
        transition: transform .15s var(--fp-ease);
    }

    .fp .fp-zone__range::-moz-range-thumb {
        width: calc(var(--fp-thumb) - 6px);
        height: calc(var(--fp-thumb) - 6px);
        border: 3px solid var(--fp-green-700);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(6, 61, 34, .25);
    }

    .fp .fp-zone__range:focus-visible::-webkit-slider-thumb {
        box-shadow: 0 0 0 5px rgba(20, 147, 90, .3);
    }

    .fp .fp-zone__range:active::-webkit-slider-thumb {
        transform: scale(1.1);
    }

.fp .fp-zone.is-empty .fp-zone__range::-webkit-slider-thumb {
    border-color: var(--fp-ink-400);
}

.fp .fp-zone__scale {
    position: relative;
    height: 18px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 18px;
    color: var(--fp-ink-600);
    font-variant-numeric: tabular-nums;
}

    .fp .fp-zone__scale span {
        position: absolute;
        top: 0;
        white-space: nowrap;
    }

.fp .fp-zone__scale-min { left: 0; }
.fp .fp-zone__scale-max { right: 0; }

.fp .fp-zone__scale-mark {
    transform: translateX(-50%);
    color: var(--fp-ink-400);
}

.fp .fp-zone__entry {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
}

    .fp .fp-zone__entry .fp-input {
        width: 92px;
        min-height: 44px;
        padding: 8px 10px;
        text-align: center;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

.fp .fp-zone__unit {
    font-size: 13px;
    color: var(--fp-ink-600);
}

/* ---------------------------------------------------------------- FpBigNumber */
.fp .fp-big {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.fp .fp-big__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fp .fp-big__label {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fp-ink-600);
}

.fp .fp-big__value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 0;
    color: var(--fp-green-900);
}

.fp .fp-big__number {
    font-size: 44px;
    line-height: 48px;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.fp .fp-big__unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--fp-ink-600);
}

.fp .fp-big__caption {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--fp-ink-600);
}

.fp .fp-range {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp .fp-range__bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fp-green-100), var(--fp-green-500) var(--fp-range-p, 50%), var(--fp-green-100));
}

.fp .fp-range__marker {
    position: absolute;
    top: 50%;
    left: var(--fp-range-p, 50%);
    width: 22px;
    height: 22px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--fp-green-900);
    box-shadow: 0 2px 8px rgba(6, 61, 34, .3);
    transform: translate(-50%, -50%);
}

.fp .fp-range__labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 18px;
    color: var(--fp-ink-600);
    font-variant-numeric: tabular-nums;
}

    .fp .fp-range__labels strong {
        color: var(--fp-ink-900);
    }

.fp .fp-ring {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .fp .fp-ring svg {
        display: block;
        transform: rotate(-90deg);
    }

.fp .fp-ring__track {
    fill: none;
    stroke: var(--fp-green-50);
    stroke-width: 8;
}

.fp .fp-ring__value {
    fill: none;
    stroke: var(--fp-green-500);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray .6s var(--fp-ease);
}

.fp .fp-ring__pct {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    font-size: 17px;
    font-weight: 800;
    color: var(--fp-green-900);
    font-variant-numeric: tabular-nums;
}

.fp .fp-ring__label {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--fp-ink-600);
    text-align: center;
}

/* ---------------------------------------------------------------- FpSteps */
.fp .fp-steps {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fp-step;
}

.fp .fp-steps__item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

    /* connector to the previous step */
    .fp .fp-steps__item + .fp-steps__item::before {
        content: "";
        position: absolute;
        top: 17px;
        right: calc(50% + 24px);
        left: calc(-50% + 24px);
        height: 3px;
        border-radius: 2px;
        background: var(--fp-line-strong);
        transition: background-color .3s var(--fp-ease);
    }

    .fp .fp-steps__item.is-done + .fp-steps__item::before,
    .fp .fp-steps__item.is-done + .fp-steps__item.is-current::before {
        background: var(--fp-green-500);
    }

.fp .fp-steps__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--fp-line-strong);
    border-radius: 50%;
    background: var(--fp-surface);
    color: var(--fp-ink-600);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: background-color .25s var(--fp-ease), border-color .25s var(--fp-ease), color .25s var(--fp-ease);
}

.fp .fp-steps__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.fp .fp-steps__label {
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--fp-ink-600);
}

.fp .fp-steps__item.is-current .fp-steps__dot {
    border-color: var(--fp-green-700);
    background: var(--fp-green-700);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(20, 147, 90, .16);
}

.fp .fp-steps__item.is-current .fp-steps__label {
    color: var(--fp-green-900);
}

.fp .fp-steps__item.is-done .fp-steps__dot {
    border-color: var(--fp-green-500);
    background: var(--fp-green-50);
    color: var(--fp-green-700);
}

.fp .fp-steps__item.is-done .fp-steps__label {
    color: var(--fp-green-700);
}

/* On the hero: white on green. */
.fp .fp-hero .fp-steps__dot {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.fp .fp-hero .fp-steps__label {
    color: rgba(255, 255, 255, .78);
}

.fp .fp-hero .fp-steps__item + .fp-steps__item::before {
    background: rgba(255, 255, 255, .28);
}

.fp .fp-hero .fp-steps__item.is-done + .fp-steps__item::before {
    background: #fff;
}

.fp .fp-hero .fp-steps__item.is-current .fp-steps__dot {
    border-color: #fff;
    background: #fff;
    color: var(--fp-green-800);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .18);
}

.fp .fp-hero .fp-steps__item.is-current .fp-steps__label,
.fp .fp-hero .fp-steps__item.is-done .fp-steps__label {
    color: #fff;
}

.fp .fp-hero .fp-steps__item.is-done .fp-steps__dot {
    border-color: #fff;
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* ---------------------------------------------------------------- FpEmpty / FpError / FpArt */
.fp .fp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px 20px;
    text-align: center;
}

.fp .fp-empty--card {
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
}

.fp .fp-empty--compact {
    flex-direction: row;
    gap: 16px;
    padding: 16px 20px;
    text-align: left;
}

    .fp .fp-empty--compact .fp-art {
        width: 88px;
        height: 66px;
        margin: 0;
    }

    .fp .fp-empty--compact .fp-empty__actions {
        justify-content: flex-start;
        margin-top: 8px;
    }

.fp .fp-art {
    display: block;
    flex: 0 0 auto;
    width: 168px;
    height: 126px;
    margin-bottom: 8px;
}

.fp .fp-empty__title {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--fp-green-900);
}

.fp .fp-empty__text {
    margin: 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 22px;
    color: var(--fp-ink-600);
}

.fp .fp-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.fp .fp-empty--error .fp-empty__title {
    color: #7a1c1c;
}

/* ---------------------------------------------------------------- FpSkeleton */
.fp .fp-skel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp .fp-skel__bone {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #e9efeb 0%, #f4f7f5 40%, #e9efeb 80%);
    background-size: 300% 100%;
    animation: fp-shimmer 1.4s ease-in-out infinite;
}

.fp .fp-skel__hero {
    height: 148px;
    border-radius: 24px;
}

.fp .fp-skel__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.fp .fp-skel__tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
}

.fp .fp-skel__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
}

.fp .fp-skel__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp .fp-skel__circle {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

@keyframes fp-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ---------------------------------------------------------------- FpDisclaimer */
.fp .fp-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--fp-radius-input);
    background: #f0f4f2;
    color: var(--fp-ink-600);
    font-size: 13px;
    line-height: 18px;
}

    .fp .fp-disclaimer .bi {
        flex: 0 0 auto;
        margin-top: 1px;
        color: var(--fp-sky-600);
        font-size: 14px;
    }

/* ---------------------------------------------------------------- FpOtpInput */
.fp .fp-otp {
    position: relative;
    width: 100%;
    max-width: 376px;
}

.fp .fp-otp__input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    font-size: 16px; /* no zoom on iOS focus */
    letter-spacing: 0;
    opacity: 0.01;
    cursor: text;
}

    .fp .fp-otp__input:focus {
        outline: none;
    }

    .fp .fp-otp__input::selection {
        background: transparent;
    }

.fp .fp-otp__boxes {
    display: grid;
    grid-template-columns: repeat(var(--fp-otp-len, 6), minmax(0, 1fr));
    gap: 10px;
}

.fp .fp-otp__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5 / 6;
    min-height: 52px;
    max-height: 64px;
    border: 1.5px solid var(--fp-line-strong);
    border-radius: var(--fp-radius-input);
    background: var(--fp-surface);
    color: var(--fp-green-900);
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s var(--fp-ease), box-shadow .15s var(--fp-ease), background-color .15s var(--fp-ease);
}

    .fp .fp-otp__box.is-filled {
        border-color: #9cc5ae;
        background: #fbfdfc;
    }

.fp .fp-otp:focus-within .fp-otp__box.is-active {
    border-color: var(--fp-green-700);
    box-shadow: var(--fp-focus);
}

    /* blinking caret in the next empty box */
    .fp .fp-otp:focus-within .fp-otp__box.is-active:not(.is-filled)::after {
        content: "";
        width: 2px;
        height: 26px;
        border-radius: 1px;
        background: var(--fp-green-700);
        animation: fp-caret 1s steps(1) infinite;
    }

.fp .fp-otp.is-invalid .fp-otp__box {
    border-color: var(--fp-low);
    background: #fffafa;
}

.fp .fp-otp.is-invalid {
    animation: fp-shake .32s var(--fp-ease);
}

.fp .fp-otp.is-disabled .fp-otp__box {
    background: var(--fp-bg);
    color: var(--fp-ink-600);
}

@keyframes fp-caret {
    50% { opacity: 0; }
}

@keyframes fp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ---------------------------------------------------------------- countdown ring */
.fp .fp-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

    .fp .fp-countdown svg {
        transform: rotate(-90deg);
    }

.fp .fp-countdown__track {
    fill: none;
    stroke: var(--fp-line);
    stroke-width: 3;
}

.fp .fp-countdown__value {
    fill: none;
    stroke: var(--fp-green-500);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

/* ---------------------------------------------------------------- motion */
.fp .fp-fade-up {
    animation: fp-fade-up .22s var(--fp-ease) both;
}

.fp .fp-fade-up-2 {
    animation: fp-fade-up .22s var(--fp-ease) .06s both;
}

.fp .fp-fade-up-3 {
    animation: fp-fade-up .22s var(--fp-ease) .12s both;
}

@keyframes fp-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fp *,
    .fp *::before,
    .fp *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }

    .fp .fp-otp:focus-within .fp-otp__box.is-active:not(.is-filled)::after {
        animation: none;
    }
}

/* ---------------------------------------------------------------- tablet */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .fp .fp-tile-grid,
    .fp .fp-skel__tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 767.98px) {
    .fp {
        font-size: 15px;
    }

    .fp.fp-page {
        gap: 16px;
    }

    .fp .fp-h1 {
        font-size: 24px;
        line-height: 30px;
    }

    /* The hero bleeds to the screen edges under the compact top bar (.main-content pads 12px). */
    .fp .fp-hero {
        margin: -12px -12px 0;
        padding: 22px 20px 24px;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 10px 28px rgba(6, 61, 34, .16);
    }

    .fp .fp-hero__title {
        font-size: 24px;
        line-height: 30px;
    }

    .fp .fp-hero__subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .fp .fp-hero__slot {
        margin-top: 14px;
    }

    .fp .fp-hero--compact {
        padding: 18px 20px 20px;
    }

    .fp .fp-skel__hero {
        margin: -12px -12px 0;
        border-radius: 0 0 24px 24px;
    }

    .fp .fp-card {
        padding: 16px;
    }

    .fp .fp-card--flush {
        padding: 0;
    }

    .fp .fp-tile-grid,
    .fp .fp-skel__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fp .fp-tile {
        padding: 16px 14px 14px;
    }

    .fp .fp-tile__chevron {
        display: none;
    }

    .fp .fp-tile__body {
        padding-right: 0;
    }

    .fp .fp-grid-2,
    .fp .fp-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp .fp-input--short {
        max-width: none;
    }

    .fp .fp-btn--primary,
    .fp .fp-btn--gold {
        width: 100%;
    }

    .fp .fp-actionbar {
        position: sticky;
        bottom: var(--shell-bottom-offset, 0px);
        z-index: 5;
        margin: 0 -12px;
        padding: 12px;
        background: rgba(245, 248, 246, .94);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--fp-line);
    }

        .fp .fp-actionbar .fp-btn {
            flex: 1 1 0;
        }

    .fp .fp-empty--compact {
        flex-direction: column;
        text-align: center;
    }

        .fp .fp-empty--compact .fp-empty__actions {
            justify-content: center;
        }

    .fp .fp-big__number {
        font-size: 40px;
        line-height: 44px;
    }

    .fp .fp-otp__boxes {
        gap: 8px;
    }

    /* Small buttons keep their look but get the full 44 px tap height on phone. */
    .fp .fp-btn--sm {
        min-height: 44px;
    }

    .fp .fp-zone__entry .fp-input {
        width: 80px;
    }
}

/* ---------------------------------------------------------------- public pages (final fix wave)
   /farmer/privacy and /farmer/delete-account: readable before sign-in (EmptyLayout, no shell), so the page
   draws its own background and gutter; the hero still bleeds to the edges on phone (12 px gutter). */
.fp.fp-page.fp-public {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 24px 40px;
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(20, 147, 90, .07), transparent 60%),
        var(--fp-bg);
}

.fp .fp-public__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 880px;
    min-width: 0;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .fp.fp-page.fp-public {
        padding: 12px 12px 32px;
    }

    .fp .fp-public__body {
        gap: 16px;
    }
}
