@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.card-shadow {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-shadow:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cell { transition: all 0.15s ease; }
.cell:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.cell.occupied { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border-color: #a7f3d0; }
.cell.occupied.pre-transplant { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #93c5fd; }
.cell.pot-cell.pre-transplant { background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%) !important; border-color: #3b82f6 !important; }
.cell.satellite-blocked { visibility: hidden; pointer-events: none; }
.cell.span-preview { background: rgba(16,185,129,0.18) !important; border-color: #10b981 !important; box-shadow: inset 0 0 0 2px #10b981; transform: none; }
.cell.span-preview-invalid { background: rgba(239,68,68,0.15) !important; border-color: #ef4444 !important; box-shadow: inset 0 0 0 2px #ef4444; transform: none; }
.plant-item { transition: all 0.2s ease; }
.plant-item:hover { transform: translateY(-2px); }
.plant-item.selected { box-shadow: 0 0 0 2px #10b981; outline: none; }

/* Plant info button — same bottom-right corner as always (the top-right corner
   belongs to the companion badge). Only the contrast and size changed: the old
   #d1d5db 18px dot read as decoration and new users never found it. */
.plant-info-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    z-index: 20;
    line-height: 1;
}
.plant-info-btn:hover { color: #059669; background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.45); }
.plant-info-btn.has-override { color: #b45309; background: #fef3c7; border-color: #fcd34d; }
.plant-info-btn.has-override:hover { color: #92400e; background: #fde68a; border-color: #f59e0b; }

/* Mobile tiles have a centred spacing chip right where this button sits, so the
   filled box would clip it. Colour-only bump there — visible, but no box. */
.mobile-plant-card .plant-info-btn {
    width: 18px;
    height: 18px;
    font-size: 11px;
    background: none;
    border: none;
    color: #9ca3af;
}
.mobile-plant-card .plant-info-btn.has-override { color: #f59e0b; background: none; }

/* One-time hint strip above the plant list. The .specs-hint-dismissed class is
   set on <html> by an inline head script, so a dismissed hint is never painted. */
.specs-hint { display: flex; }
.specs-hint.hidden,
.specs-hint-dismissed .specs-hint { display: none; }

/* Companion Planting Badges */
.companion-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: transform 0.2s;
}
.companion-badge:hover {
    transform: scale(1.15);
}
.companion-badge.good {
    background: #10b981;
    color: white;
}
.companion-badge.bad {
    background: #ef4444;
    color: white;
}

/* Mobile companion badges */
.mobile-plant-card .companion-badge {
    width: 22px;
    height: 22px;
    top: 6px;
    right: 6px;
    font-size: 11px;
}

/* Due Today Badge */
.due-today-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.mobile-plant-card .due-today-badge {
    top: 6px;
    left: 6px;
    font-size: 9px;
    padding: 2px 5px;
}

/* Companion preview highlights when a plant is selected from the palette */
.cell.companion-preview {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35) !important;
}
.cell.companion-preview::after {
    content: '✓';
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
    pointer-events: none;
}
.cell.antagonist-preview {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3) !important;
}
.cell.antagonist-preview::after {
    content: '✕';
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
    pointer-events: none;
}

/* PRO Feature: Incompatible cell highlighting */
.cell.incompatible {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
    }
}

.incompatibility-indicator {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 20;
    animation: bounce-indicator 1s infinite;
}

@keyframes bounce-indicator {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Slide-down animation for incompatibility alert */
@keyframes slide-down {
    from {
        transform: translateY(-120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slide-down 0.4s ease-out;
}

/* Custom scrollbar for alert */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #fef2f2;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35), 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 45;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45), 0 4px 8px rgba(0,0,0,0.1);
}

.fab:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile plants drawer: size against the *visible* viewport (dvh) so the
   drawer and FAB stay aligned when iOS Safari / Android toolbars are shown */
@supports (height: 1dvh) {
    #mobilePlantsDrawer {
        max-height: 70dvh;
    }
}

@media (max-width: 768px) {
    .cell:hover { transform: scale(1.02); }

    /* Adjust alert position for mobile */
    #incompatibilityWarning {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    #bedNameDisplay {
        font-size: 1rem;
        line-height: 1.2;
    }
}

/* Bed name: gradient on desktop only — mobile/tablet uses solid color so ... is visible */
@media (min-width: 1024px) {
    #bedNameDisplay {
        background: linear-gradient(to right, #16a34a, #059669);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #059669;
    }
}

/* Directional labels */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Compass directions styling */
@media (max-width: 640px) {
    .writing-mode-vertical {
        writing-mode: horizontal-tb;
        font-size: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #bedNameDisplay {
        font-size: 1.1rem;
    }
}

/* ===== Vertical Garden Styles ===== */
.vertical-garden-container {
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shelf-tier {
    display: flex;
    align-items: stretch;
    margin-bottom: 8px;
    position: relative;
}

.tier-label {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    border-radius: 6px 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shelf-surface {
    flex: 1;
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #a1887f 0%, #8d6e63 50%, #6d4c41 100%);
    border-radius: 0 6px 6px 0;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
}

.shelf-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 6px 6px 0 0;
}

.shelf-surface::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    right: 10px;
    height: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.15), transparent);
    border-radius: 0 0 50% 50%;
}

.vertical-cell {
    width: 55px;
    height: 55px;
    background: linear-gradient(180deg, #5d4037 0%, #4e342e 100%);
    border: 2px solid #3e2723;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow:
        inset 0 -4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.vertical-cell:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 -4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.vertical-cell.occupied {
    background: linear-gradient(180deg, #33691e 0%, #1b5e20 100%);
    border-color: #2e7d32;
}

.metal-bracket {
    position: absolute;
    width: 8px;
    background: linear-gradient(90deg, #78909c, #546e7a, #78909c);
    border-radius: 2px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bracket-left {
    left: -12px;
    top: 20%;
    height: 60%;
}

.bracket-right {
    right: -12px;
    top: 20%;
    height: 60%;
}

/* ===== Hydroponic System Styles ===== */
.hydroponic-container {
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hydro-channel {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.channel-label {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border-radius: 6px;
    padding: 8px 4px;
    margin-right: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.channel-pipe {
    flex: 1;
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #eceff1 0%, #cfd8dc 30%, #b0bec5 70%, #90a4ae 100%);
    border-radius: 25px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.channel-pipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
    border-radius: 25px 25px 0 0;
}

.water-flow {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg,
        transparent,
        rgba(33, 150, 243, 0.3),
        rgba(33, 150, 243, 0.5),
        rgba(33, 150, 243, 0.3),
        transparent);
    animation: waterFlowAnimation 2s linear infinite;
    border-radius: 0 0 25px 25px;
}

@keyframes waterFlowAnimation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hydro-cell {
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #37474f 0%, #263238 100%);
    border: 3px solid #455a64;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.hydro-cell::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px dashed #546e7a;
    border-radius: 50%;
    opacity: 0.5;
}

.hydro-cell:hover {
    transform: scale(1.05);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.hydro-cell.occupied {
    background: linear-gradient(180deg, #1b5e20 0%, #2e7d32 100%);
    border-color: #4caf50;
}

.hydro-cell.occupied::before {
    border-color: #81c784;
}

.flow-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #2196f3;
    font-size: 16px;
    animation: flowPulse 1.5s ease-in-out infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(4px); }
}

.reservoir-indicator {
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(180deg, #1565c0 0%, #0d47a1 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reservoir-indicator i {
    font-size: 16px;
    animation: waterWave 2s ease-in-out infinite;
}

@keyframes waterWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ===== Pot Container Styles ===== */
.pot-container {
    padding: 40px 20px;
    /* The size label + companion pill hang below the pot (absolutely positioned,
       so they add no flow height) — reserve room or they clip on a large pot. */
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.pot-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.pot-wrapper:hover {
    transform: scale(1.02);
}

.pot-wrapper::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 8%;
    width: 84%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

.pot-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    filter: blur(5px);
}

.pot-soil {
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.4);
}

.pot-cell {
    transition: all 0.2s ease !important;
}

.pot-cell.occupied {
    background: linear-gradient(145deg, #2d5a27, #1e4d1a) !important;
    border-color: rgba(76, 175, 80, 0.5) !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3), inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

.pot-label {
    text-align: center;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.pot-add-companion {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.pot-add-companion:hover {
    background: #d1fae5;
}

.pot-split-cancel {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.pot-capacity-note {
    color: #059669;
    font-weight: 600;
}

/* Switches a large pot between halves and quarters. Quieter than the green
   "Add companion" pill — it adjusts an existing pot rather than starting
   something. */
.pot-sections-toggle {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.pot-sections-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.pot-room-hint {
    color: #6b7280;
}

/* Layout type badge */
.layout-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.layout-badge.vertical {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    color: white;
}

.layout-badge.hydroponic {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
}

.layout-badge.pot {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
}

/* Mobile responsive for specialized layouts */
@media (max-width: 640px) {
    .tier-label, .channel-label {
        width: 40px;
        font-size: 9px;
    }

    .vertical-cell {
        width: 40px;
        height: 40px;
    }

    .hydro-cell {
        width: 38px;
        height: 38px;
    }

    .shelf-surface {
        padding: 6px 8px;
    }

    .channel-pipe {
        padding: 8px 12px;
    }

    .reservoir-indicator {
        font-size: 10px;
        padding: 8px 12px;
    }

    .pot-container {
        padding: 30px 15px;
        /* Extra bottom room for the stacked size label + companion pill */
        padding-bottom: 90px;
        min-height: 280px;
    }

    .pot-label {
        font-size: 11px;
        /* Stack instead of overflowing a narrow screen — the size text plus a
           pill does not fit on one line at 320-375px. */
        flex-direction: column;
        gap: 6px;
        white-space: normal;
        width: max-content;
        max-width: 88vw;
    }

    /* Real touch targets — the desktop pill is only ~19px tall */
    .pot-add-companion,
    .pot-sections-toggle,
    .pot-split-cancel {
        min-height: 40px;
        padding: 10px 20px;
        font-size: 12px;
    }

    .pot-split-cancel {
        padding: 10px 16px;
    }
}

/* ===== Print Block Message (non-Pro users) ===== */
#printBlockMessage {
    display: none; /* hidden in normal view */
}
@media print {
    /* Hide every direct child of body EXCEPT the block message */
    body > *:not(#printBlockMessage) {
        display: none !important;
    }
    /* Show block message */
    #printBlockMessage {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        inset: 0;
        background: white;
        text-align: center;
        padding: 40px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
}

/* Variety locate — click a plant-summary chip to spotlight its cells on the bed */
.cell.variety-highlight {
    outline: 3px solid #f59e0b;
    outline-offset: -2px;
    position: relative;
    z-index: 5;
    animation: varietyLocatePulse 1.2s ease-in-out infinite;
}
.cell.variety-dim {
    opacity: 0.35;
}
@keyframes varietyLocatePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* Per-variety colour key on the bed. Only painted where a plant has 2+ varieties in
   this bed — see buildVarietyColorMap() in garden-designer.js. The chips under the
   grid carry the matching swatch and are the legend.

   The LEFT edge is the only uncontested one: top-right holds the quantity badge and
   the companion badge, bottom-right the plant-info button. A bar there also survives
   the icon growing on pot cells, where a bottom strip would be crowded out. */
.cell.has-variety-marker { position: relative; }
.cell .variety-marker {
    position: absolute;
    left: 2px;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    pointer-events: none;
    /* Below .variety-highlight (z-index 5) so click-to-locate still reads on top. */
    z-index: 4;
}
/* Dimmed cells fade the bar with them, or the key stays loud while its cell recedes. */
.cell.variety-dim .variety-marker { opacity: 0.5; }

/* ── Move plants ─────────────────────────────────────────────────────────
   Popup: bed/pot cards and reason chips in place of the old native selects.
   Destination bed: picked squares while placing moved plants. */
.move-dest-card {
    display: flex; align-items: center; gap: 0.625rem; width: 100%;
    padding: 0.625rem 0.75rem; text-align: left;
    border: 1px solid #e5e7eb; border-radius: 0.75rem; background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.move-dest-card:hover:not(:disabled) { border-color: #4ade80; }
.move-dest-card[aria-checked="true"] { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 0 1px #16a34a; }
.move-dest-card:disabled { opacity: 0.5; cursor: not-allowed; }
.move-chip {
    padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500; color: #374151;
    border: 1px solid #e5e7eb; border-radius: 9999px; background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.move-chip:hover { border-color: #4ade80; }
.move-chip[aria-checked="true"] { border-color: #16a34a; background: #f0fdf4; color: #15803d; }

.cell.move-pick { background: #dcfce7 !important; border-color: #16a34a !important; box-shadow: inset 0 0 0 2px #16a34a; }
/* In flow, not absolute: pot cells aren't positioned, and every cell already
   centres its content. */
.cell.move-pick .move-ghost {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; line-height: 1; pointer-events: none;
}
.cell.move-pick .move-ghost img { width: 70%; max-width: 2.5rem; height: auto; }
.cell.move-span-anchor .move-ghost { font-size: 1.75rem; }
/* Squares the moved plants can go on — dashed so they read as "available",
   not as already planted. */
.cell.move-fit { outline: 2px dashed #22c55e; outline-offset: -4px; }
/* Existing plants the picked squares are too close to (incompatible). */
.cell.move-conflict { outline: 2px solid #f59e0b; outline-offset: -3px; }
.move-placing .cell:not(.occupied):not(.move-pick) { cursor: copy; }
.move-placing .cell.occupied { cursor: not-allowed; }
