:root {
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--farmey-text, #1a1a1a);
    background: var(--farmey-bg, #f4f6f8);
}

* { box-sizing: border-box; }

.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: var(--farmey-shell-max, 100%);
    margin: 0 auto;
    padding: 0 var(--farmey-shell-pad-x, 1rem);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Dev / Staging only — Production renders nothing (EnvironmentBanner). */
.env-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 calc(-1 * var(--farmey-shell-pad-x, 1rem)) 0.5rem;
    padding: 0.35rem var(--farmey-shell-pad-x, 1rem);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    background: #f0e6c8;
    border-bottom: 1px solid #d9c89a;
}

.env-banner--development {
    background: #d9e8f5;
    border-bottom-color: #a8c4db;
}

.env-banner--staging {
    background: #f0e6c8;
    border-bottom-color: #d9c89a;
}

.env-banner__label {
    text-transform: uppercase;
}

.env-banner__version {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

/* Nested page wrappers — outer MainLayout shell owns width/pad */
.app-shell .app-shell {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
}

/* Shell already pads — avoid double horizontal inset on chrome / pages */
.app-shell .farm-context-header {
    padding-left: 0;
    padding-right: 0;
}

.app-shell .agenda-page {
    padding-left: 0;
    padding-right: 0;
}

.auth-card, .card:not(.qr-hub-paycard) {
    background: var(--farmey-surface, #fff);
    border-radius: var(--farmey-radius, 12px);
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 1.5rem;
}

.auth-card h1 {
    color: var(--farmey-accent, #2d6a4f);
}

.auth-card .btn-link {
    width: 100%;
}

h1 { font-size: 1.75rem; margin: 0 0 .25rem; }
h2 { font-size: 1.125rem; margin: 0 0 1rem; }

.subtitle { color: #555; margin: 0 0 1rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }

.field-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #e8ecef;
    color: #444;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
}

.editor-advanced {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8ecef;
}

.editor-advanced summary {
    list-style: none;
}

.editor-advanced summary::-webkit-details-marker {
    display: none;
}

.editor-collapsible {
    margin-top: 0.75rem;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    background: #fafbfc;
    overflow: hidden;
}

.editor-collapsible__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 1rem;
    list-style: none;
    user-select: none;
}

.editor-collapsible__summary::-webkit-details-marker {
    display: none;
}

.editor-collapsible__chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.editor-collapsible[open] > .editor-collapsible__summary .editor-collapsible__chevron {
    transform: rotate(45deg);
}

.editor-collapsible__title {
    flex: 1 1 auto;
}

.editor-collapsible__badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e8f5ee;
    color: #2d6a4f;
}

.editor-collapsible__body {
    padding: 0 1rem 1rem;
    border-top: 1px solid #e8ecef;
    background: #fff;
}

.editor-collapsible__intro {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.editor-collapsible--nested {
    margin-top: 0.5rem;
    background: #fff;
}

.editor-collapsible--nested > .editor-collapsible__body {
    background: #fafbfc;
}

.input {
    width: 100%;
    padding: .75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.btn-primary {
    width: 100%;
    min-height: 3.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    background: #2d6a4f;
    color: #fff;
    cursor: pointer;
}

.btn-primary:disabled { opacity: .6; cursor: wait; }

/* .btn-link / .app-control base lives in farmey-ui.css (no underline) */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.page-header a,
.app-shell p > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--farmey-accent, #2d6a4f);
    font-weight: 600;
    text-decoration: none;
}

.page-header a:hover,
.app-shell p > a:hover {
    text-decoration: none;
    color: var(--farmey-accent-hover, #245a42);
}

.page-header a:visited,
.app-shell p > a:visited {
    color: var(--farmey-accent, #2d6a4f);
}

.error { color: #b00020; background: #fdecea; padding: .75rem; border-radius: 8px; }
.success { color: #1b5e20; background: #e8f5e9; padding: .75rem; border-radius: 8px; }
.empty { color: #666; }

.worker-list { list-style: none; padding: 0; margin: 0; }
.worker-list li {
    padding: .75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.worker-list li.equipo-member {
    display: block;
    padding: 0;
}

.equipo-member-static,
.equipo-member-toggle {
    display: block;
    width: 100%;
    padding: .75rem 0;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.equipo-member-static {
    cursor: default;
}

.equipo-member-summary {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.equipo-member-main {
    flex: 1;
    min-width: 0;
}

.equipo-member-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
}

.equipo-member-status {
    display: block;
    margin: .15rem 0 0;
    color: #666;
    font-size: .875rem;
}

.equipo-member-chevron {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
    color: #888;
    transition: transform .15s ease;
}

.equipo-member-chevron.is-open {
    transform: rotate(90deg);
}

.equipo-member-details {
    padding: 0 0 .75rem 1rem;
    margin-left: .25rem;
    border-left: 2px solid #e5e5e5;
}

.equipo-member-danger {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0d0d0;
}

/* Top-anchored on narrow / keyboard viewports; centered on wide desktop. */
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem 1rem;
    background: rgba(0, 0, 0, 0.45);
    max-height: 100dvh;
    overflow: auto;
}

.app-modal {
    width: min(100%, 28rem);
    margin-top: 0.35rem;
    max-height: min(78dvh, calc(100dvh - 2rem));
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 769px) {
    .app-modal-backdrop {
        align-items: center;
        padding: 1rem;
    }

    .app-modal {
        margin-top: 0;
        max-height: calc(100vh - 2rem);
    }
}

.app-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
}

.app-modal__title {
    margin: 0;
    font-size: 1.15rem;
}

.app-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.app-modal__body {
    padding: 0.5rem 1rem 1.25rem;
}

.app-modal__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap;
}

.badge {
    font-size: .75rem;
    background: #e8f5e9;
    color: #2d6a4f;
    padding: .15rem .5rem;
    border-radius: 999px;
}

/* Owner-tier (Owner/Co-Owner) — co-owner-persona-permissions DESIGN.md §3: shared yellow modifier,
   distinguished from each other only by label text, not color/icon. */
.badge--owner-tier {
    background: #fdecc8;
    color: #6b4d00;
}

/* PhoneNumberInput */
.phone-input-wrapper {
    display: flex;
    width: 100%;
    gap: 0;
}

.phone-country-wrapper {
    position: relative;
    flex: 0 0 5.5rem;
    min-width: 5.5rem;
}

.phone-country-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 3rem;
    padding: .5rem .75rem;
    font-size: .95rem;
    font-weight: 600;
    border: 1px solid #ccc;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f9f9f9;
    cursor: pointer;
}

.phone-country-display--invalid {
    border-color: #b00020;
}

.phone-country-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.phone-number-field {
    border-radius: 0 8px 8px 0 !important;
    flex: 1;
}

.input--invalid {
    border-color: #b00020;
}

/* Farm picker cards */
.farm-picker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .farm-picker-grid.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.farm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s, box-shadow .15s;
}

.farm-card:hover:not(:disabled) {
    border-color: #2d6a4f;
    box-shadow: 0 4px 16px rgba(45,106,79,.15);
}

.farm-card:disabled, .farm-card[disabled] {
    opacity: .6;
    cursor: wait;
}

.farm-photo {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.farm-photo-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #d4edda;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.farm-card-body {
    padding: .75rem 1rem;
}

.farm-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}

.role-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    background: #e8f5e9;
    color: #2d6a4f;
    padding: .15rem .6rem;
    border-radius: 999px;
}

.farm-card-entering {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #2d6a4f;
    font-size: .9rem;
}

/* Locked farm card (ARCHITECTURE-PLAN.md §5 step 26) — same greyed-out treatment for both
   RealLocked and ViewerLocked (co-owner-without-slot addendum); only the tooltip copy differs. */
.farm-card--locked {
    cursor: not-allowed;
    filter: grayscale(0.7);
    opacity: .65;
}

.farm-card--locked:hover {
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.locked-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    background: #f3e8e8;
    color: #8a3b3b;
    padding: .15rem .6rem;
    border-radius: 999px;
    margin-top: .25rem;
}

.finca-picker-row.is-locked {
    cursor: not-allowed;
    filter: grayscale(0.7);
    opacity: .65;
}
.finca-picker-locked-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    background: #f3e8e8;
    color: #8a3b3b;
    padding: .1rem .45rem;
    border-radius: 999px;
    margin-top: .2rem;
}

/* Paused workforce seat — content-only read-only veil (header + bottom nav stay usable). */
.farmey-shell__content--seat-paused {
    position: relative;
}
.seat-paused-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(245, 244, 240, 0.72);
    backdrop-filter: grayscale(0.35) blur(1px);
    pointer-events: all;
}
.seat-paused-overlay__card {
    max-width: 26rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.seat-paused-overlay__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}
.seat-paused-overlay__message {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.45;
}

/* Wizard steps */
.wizard-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--farmey-accent, #2d6a4f);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 .5rem 0 0;
    text-decoration: none;
}

.wizard-back:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.entry-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}

.btn-outline {
    width: 100%;
    min-height: 3rem;
    font-size: .95rem;
    font-weight: 600;
    border: 2px solid #2d6a4f;
    border-radius: 10px;
    background: #fff;
    color: #2d6a4f;
    cursor: pointer;
}

.btn-outline:hover {
    background: #f0faf4;
}

.home-hero {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 0.5rem;
}

.home-hero--photo {
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.home-hero--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-hero-icon {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
}

.home-hero h1 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
}

.home-hero--photo h1 {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.home-hero-cta {
    margin-top: 0.75rem;
}

.home-work-alert {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-work-alert--ready {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.home-work-alert--pending {
    background: #fff8e1;
    border: 1px solid #ffe082;
    flex-direction: column;
    align-items: stretch;
}

.home-work-alert--pending .home-work-alert__actions {
    margin-top: 0.25rem;
}

.home-work-alert--blocked {
    background: #fff3e0;
    border: 1px solid #ffcc80;
}

.home-work-alert__title {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.home-work-alert__subtitle {
    margin: 0.35rem 0 0;
    color: #5f6368;
    font-size: 0.92rem;
}

.home-work-alert__rate {
    margin: 0.5rem 0 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.home-work-alert__cta {
    width: 100%;
    margin-top: 0.25rem;
}

.home-work-alert__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 520px) {
    .home-work-alert {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .home-work-alert--pending {
        flex-direction: column;
        align-items: stretch;
    }

    .home-work-alert__cta {
        width: auto;
        min-width: 11rem;
        margin-top: 0;
    }

    .home-work-alert__actions {
        flex-direction: row;
        flex-shrink: 0;
    }
}

.farm-settings-photo-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.settings-dl {
    display: grid;
    grid-template-columns: minmax(8rem, auto) 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}

.settings-dl dt {
    font-weight: 600;
    color: #555;
}

.settings-dl dd {
    margin: 0;
}

/* .home-tile-grid / .home-tile* SSOT: farmey-ui.css (2-col → 3-col @640) */

.equipo-action-grid {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.segment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.segment-btn {
    flex: 1 1 auto;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #d0d7de;
    border-radius: 999px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
}

.segment-btn--active {
    border-color: #2d6a4f;
    background: #e8f5e9;
    color: #2d6a4f;
}

.step-preview-list li {
    font-weight: 500;
}

.step-preview-done {
    color: #2d6a4f;
}

.step-preview-current {
    font-weight: 700;
}

.step-preview-pending {
    color: #666;
}

.step-mark {
    display: inline-block;
    width: 1.25rem;
    flex-shrink: 0;
}

.work-plan-week__nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.work-plan-week__range {
    margin: 0;
    font-weight: 600;
    text-align: center;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Override global .btn-outline { width: 100% } so prev | range | next stay one row. */
.work-plan-week__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.work-plan-week__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 720px) {
    .work-plan-week__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.work-plan-day-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.65rem 0.35rem;
    border-radius: 12px;
    border: 2px solid #e8ecef;
    background: #fff;
    cursor: pointer;
    min-height: 6.25rem;
    transition: border-color .15s, box-shadow .15s;
}

.work-plan-day-tile--selected {
    border-color: #2e7d32;
    box-shadow: 0 0 0 1px #2e7d32;
}

.work-plan-day-tile--has-plan {
    background: #f1f8f4;
}

.work-plan-day-tile--today .work-plan-day-tile__date {
    color: #2e7d32;
    font-weight: 700;
}

.work-plan-day-tile__dow {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
}

.work-plan-day-tile__date {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

.work-plan-day-tile__marker {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.work-plan-day-tile__summary {
    font-size: 0.65rem;
    color: #555;
    text-align: center;
    line-height: 1.25;
    margin-top: 0.2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    hyphens: auto;
}

.work-plan-day-tile__bands {
    display: flex;
    gap: 3px;
    width: 100%;
    margin-top: 0.35rem;
    min-height: 4px;
}

.work-plan-day-tile__band {
    flex: 1;
    height: 4px;
    border-radius: 999px;
}

.work-plan-day-tile__band--morning {
    background: #43a047;
}

.work-plan-day-tile__band--afternoon {
    background: #fb8c00;
}

.work-plan-day-tile__band--fullday {
    background: linear-gradient(90deg, #43a047 0 50%, #fb8c00 50% 100%);
}

.work-plan-day-tile__band--quarter {
    background: #90a4ae;
}

.work-plan-day-tile__band--empty {
    background: #e8ecef;
    opacity: 0.85;
}

.work-plan-locked-hint {
    margin: 0 0 0.75rem;
    color: #8a5a00;
    font-size: 0.9rem;
}

.work-plan-daypart-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 1rem 0 0.5rem;
}

.work-plan-editing-chip {
    margin: 0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 0.85rem;
    font-weight: 600;
}

.work-plan-daypart-mode-toggle {
    margin-left: auto;
}

.work-plan-select-daypart-hint {
    margin: 0.75rem 0 0;
}

.work-crew-progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.work-crew-progress__quarters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.work-crew-progress__q {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.35rem 0.2rem;
    border-radius: 8px;
    border: 1px solid #e8ecef;
    background: #fafafa;
    font-size: 0.72rem;
    line-height: 1.1;
}

.work-crew-progress__q--planned {
    border-color: #a5d6a7;
    background: #f1f8f4;
}

.work-crew-progress__q--pending {
    border-color: #f9a825;
    border-style: dashed;
    background: #fff8e1;
    font-weight: 600;
}

.work-crew-progress__q--accepted {
    border-color: #2e7d32;
    border-style: dashed;
    background: #e8f5e9;
    font-weight: 700;
}

.work-crew-progress__q--logged {
    border-color: #2e7d32;
    background: #e8f5e9;
    font-weight: 700;
}

.work-crew-progress__q-label {
    font-weight: 600;
    color: #444;
}

.work-crew-progress__q-state {
    font-size: 0.8rem;
}

.work-crew-progress__summary {
    margin: 0;
    font-size: 0.78rem;
    color: #666;
}

.work-crew-progress__empty {
    color: #888;
}

.work-crew-today__list {
    gap: 0.85rem;
}

.work-crew-today__row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .work-crew-today__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .work-crew-today__row .work-crew-progress {
        min-width: 14rem;
    }
}

.work-plan-save-row {
    margin-top: 1rem;
}

.work-plan-pending-inline {
    margin: 0 0 0.4rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #6d4c00;
    font-size: 0.85rem;
    font-weight: 600;
}

.work-plan-save-row > .work-btn--save {
    margin-top: 0;
}

.work-plan-draft-preview {
    margin-bottom: 0.5rem;
}

.work-plan-day-rows {
    margin-bottom: 0.5rem;
}

.work-no-rate {
    border-left: 4px solid #b00020;
}

/* Only the work details (type / time / submit) — date + worker stay interactive so a
   no-rate worker does not trap the picker (cuaderno → Registrar trabajo). */
.work-log-form--blocked {
    opacity: 0.55;
    pointer-events: none;
}

.work-log-rate-line {
    margin: 0.5rem 0 0;
}

.work-log-intervention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
    .work-log-intervention-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Saldos (wallet ledger) CSS moved to Farmey.UI/wwwroot/farmey-ui.css (Components/Wallet/*.razor,
   loaded on Web via _content/Farmey.UI/farmey-ui.css) — see mobile-saldos 01-spec/ARCHITECTURE-PLAN.md §5. */

/* �� Marketing landing (web-teaser-mobile-onboarding) �� */
.marketing-shell {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(45, 106, 79, 0.14), transparent 55%),
        linear-gradient(180deg, #eef5f1 0%, #f4f6f8 40%, #f4f6f8 100%);
    color: #1a1a1a;
}

.marketing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    max-width: 1100px;
    margin: 0 auto;
}

.marketing-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2d6a4f;
    text-decoration: none;
}

.marketing-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
}

.landing-hero {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
    .landing-hero {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
        min-height: min(70vh, 640px);
        align-items: center;
    }
}

.landing-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.35rem 0.75rem;
    border: 2px dashed #a5d6a7;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #2d6a4f;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.landing-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}

.landing-support {
    font-size: 1.05rem;
    color: #5c6b73;
    max-width: 36rem;
    margin: 0 0 1.25rem;
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.landing-quick-panel {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.landing-quick-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.landing-quick-register {
    width: 100%;
    margin-top: 0.75rem;
}

.landing-section {
    margin: 0 0 2rem;
    max-width: 40rem;
}

.landing-section h2 {
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    color: #2d6a4f;
}

.landing-section p {
    margin: 0;
    color: #5c6b73;
    line-height: 1.55;
}

.landing-shots {
    max-width: none;
}

.landing-shot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 720px) {
    .landing-shot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-shot {
    margin: 0;
}

.landing-shot-frame {
    aspect-ratio: 9 / 16;
    max-height: 280px;
    border-radius: 12px;
    border: 2px dashed #c5d4cc;
    background: #f1f8f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #5c6b73;
    font-size: 0.85rem;
}

.landing-shot figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Admin promo CRUD + /admin founder dashboard shell CSS moved to Farmey.Admin/wwwroot/app.css
   (platform-founder-dashboard, 2026-08-01 separate-host revision) — the founder console is no
   longer part of Farmey.Web. */
