/* ── Camera FAB ──────────────────────────────────────────────────────────── */

#lnCameraFab {
    position: fixed;
    right: 20px;
    /* Sit above the tab bar + home indicator */
    bottom: calc(var(--ln-tab-bar-height, 56px) + env(safe-area-inset-bottom, 0px) + 14px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 8500;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

#lnCameraFab:active {
    transform: scale(0.9);
    background: #4338ca;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

#lnCameraFab.ln-camera-fab--busy {
    opacity: 0.6;
    pointer-events: none;
}

#lnCameraFab svg {
    flex-shrink: 0;
}

/* ── Loading state (mobile, while reading IndexedDB) ─────────────────────── */

.ln-mobile-photo-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: #64748b;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

/* ── Missing state (photo not on this device) ────────────────────────────── */

.ln-mobile-photo-missing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

/* ── Desktop placeholder card ────────────────────────────────────────────── */

.ln-mobile-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    margin: 6px 8px;
    color: #64748b;
    text-align: center;
    min-height: 110px;
}

.ln-mobile-photo-placeholder svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.ln-mobile-photo-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

.ln-mobile-photo-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    line-height: 1.4;
}
