/* Mobile data collection — minimal UI */
.mobile-collect-body {
    margin: 0;
    min-height: 100vh;
    background: #0b1b89;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
}

/* Override global style.css link underlines (default + hover) on mobile */
.mobile-collect-body a,
.mobile-collect-body a:link,
.mobile-collect-body a:visited,
.mobile-collect-body a:hover,
.mobile-collect-body a:focus,
.mobile-collect-body a:active {
    text-decoration: none;
}

/* Login page: full-height column so church name can sit at bottom */
.mobile-collect-login-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.mobile-collect-login {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
    padding-bottom: 0;
    box-sizing: border-box;
}

.mobile-collect-login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0 1rem;
    min-height: 0;
}

.mobile-collect-brand {
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
}

.mobile-collect-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.mobile-collect-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.mobile-collect-login-footer {
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
    padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-collect-login-church {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.mobile-collect-login-system {
    margin: 0.35rem 0 0;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.mobile-collect-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.mobile-collect-hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-collect-hint--login {
    margin: 1rem 0 0;
    text-align: center;
}

.mobile-collect-login-link {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
}

.mobile-collect-login-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mobile-collect-login-link-sep {
    color: rgba(255, 255, 255, 0.45);
}

.mobile-collect-alert--success {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.45);
    color: #ecfdf5;
}

/* —— Login: CSS-only splash (~5s) —— */
.mobile-login-splash {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(155deg, #0b1b89 0%, #081456 42%, #0d228f 78%, #0b1b89 100%);
    background-size: 200% 200%;
    animation:
        mobile-login-splash-bg 5s ease-in-out forwards,
        mobile-login-splash-exit 5s ease-in-out forwards;
}

@keyframes mobile-login-splash-bg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 50% 100%;
    }
}

@keyframes mobile-login-splash-exit {
    0%,
    82% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.mobile-login-splash__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.mobile-login-splash__glow--1 {
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    background: radial-gradient(circle, rgba(237, 19, 26, 0.35) 0%, transparent 68%);
    animation: mobile-login-splash-pulse-a 2.2s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
}

.mobile-login-splash__glow--2 {
    width: min(55vw, 200px);
    height: min(55vw, 200px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: mobile-login-splash-pulse-b 2.8s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
}

@keyframes mobile-login-splash-pulse-a {
    0%,
    100% {
        transform: translate(-50%, -58%) scale(1);
        opacity: 0.75;
    }

    50% {
        transform: translate(-50%, -58%) scale(1.12);
        opacity: 1;
    }
}

@keyframes mobile-login-splash-pulse-b {
    0%,
    100% {
        transform: translate(-50%, -52%) scale(1.05);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -52%) scale(1.22);
        opacity: 0.85;
    }
}

.mobile-login-splash__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 18rem;
}

.mobile-login-splash__logo {
    display: block;
    margin: 0 auto 1rem;
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
    animation: mobile-login-splash-logo 5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes mobile-login-splash-logo {
    0% {
        opacity: 0;
        transform: scale(0.55) translateY(28px) rotate(-8deg);
    }

    14% {
        opacity: 1;
        transform: scale(1.08) translateY(0) rotate(0deg);
    }

    22% {
        transform: scale(1) translateY(0) rotate(0deg);
    }

    38% {
        transform: scale(1) translateY(-10px);
    }

    52% {
        transform: scale(1) translateY(0);
    }

    66% {
        transform: scale(1.03) translateY(-6px);
    }

    80% {
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mobile-login-splash__site {
    margin: 0 0 0.2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    animation: mobile-login-splash-fade-rise 5s ease-out forwards;
}

.mobile-login-splash__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0;
    animation: mobile-login-splash-fade-rise 5s ease-out forwards;
    animation-delay: 0.12s;
}

@keyframes mobile-login-splash-fade-rise {
    0%,
    8% {
        opacity: 0;
        transform: translateY(12px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    82% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.mobile-login-splash__track {
    width: min(12.5rem, 70vw);
    height: 4px;
    margin: 1.35rem auto 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.mobile-login-splash__fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #ed131a, #ff8a8a);
    box-shadow: 0 0 12px rgba(237, 19, 26, 0.55);
    animation: mobile-login-splash-progress 4.75s linear forwards;
}

@keyframes mobile-login-splash-progress {
    to {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-login-splash,
    .mobile-login-splash__glow--1,
    .mobile-login-splash__glow--2,
    .mobile-login-splash__logo,
    .mobile-login-splash__site,
    .mobile-login-splash__title,
    .mobile-login-splash__fill {
        animation: none !important;
    }

    .mobile-login-splash {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.mobile-collect-alert {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.mobile-collect-form {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Login: keep form card narrower than full width for easier reading & tap targets */
.mobile-collect-login-body .mobile-collect-alert,
.mobile-collect-login-body .mobile-collect-form {
    max-width: 17.5rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.mobile-collect-field {
    margin-bottom: 1rem;
}

.mobile-collect-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #334155;
}

.mobile-collect-input-wrap {
    position: relative;
    display: block;
}

.mobile-collect-input-leading {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
}

.mobile-collect-input-leading svg {
    display: block;
}

.mobile-collect-field .mobile-collect-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem 0.65rem 2.55rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-collect-input-wrap--password .mobile-collect-input {
    padding-right: 2.85rem;
}

.mobile-collect-field .mobile-collect-input:focus {
    outline: none;
    border-color: #0b1b89;
    box-shadow: 0 0 0 3px rgba(11, 27, 137, 0.12);
}

.mobile-collect-password-toggle {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-collect-password-toggle:hover,
.mobile-collect-password-toggle:focus-visible {
    color: #0b1b89;
    background: rgba(11, 27, 137, 0.06);
}

.mobile-collect-password-toggle:focus-visible {
    outline: 2px solid #0b1b89;
    outline-offset: 1px;
}

.mobile-collect-password-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-collect-password-toggle__icon[hidden] {
    display: none !important;
}

.mobile-collect-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: #ed131a;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-sizing: border-box;
}

.mobile-collect-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mobile-collect-shell {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f1f5f9;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.mobile-collect-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    /* Clear status bar / notch / Dynamic Island (viewport-fit=cover) */
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
    padding-bottom: 0.65rem;
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    background: #0b1b89;
    color: #fff;
    box-sizing: border-box;
}

.mobile-collect-topbar h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.mobile-collect-topbar a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.95;
}

/* Member view: centred title + primary Edit control */
.mobile-collect-topbar--view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
}

.mobile-collect-topbar--view > a:first-of-type {
    justify-self: start;
}

.mobile-collect-topbar--view > h1 {
    justify-self: center;
    text-align: center;
    max-width: 100%;
}

.mobile-collect-topbar--view > .mobile-collect-topbar-action,
.mobile-collect-topbar--view > .mobile-collect-topbar-spacer {
    justify-self: end;
}

.mobile-collect-topbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
    text-decoration: none !important;
    background: #ed131a;
    border-radius: 8px;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    -webkit-tap-highlight-color: transparent;
}

.mobile-collect-topbar-action:active {
    transform: scale(0.97);
}

.mobile-collect-topbar-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mobile-collect-topbar-spacer {
    width: 3.35rem;
    height: 1px;
}

.mobile-collect-main {
    padding: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.mobile-collect-fab {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: #ed131a;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(237, 19, 26, 0.45);
}

.mobile-collect-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-collect-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
}

.mobile-collect-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mobile-collect-card .meta {
    font-size: 0.8125rem;
    color: #64748b;
}

.mobile-collect-card--mine {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}

.mobile-card-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.mobile-card-memno {
    font-weight: 600;
    color: #475569;
}

.mobile-dir-search {
    margin-bottom: 0.75rem;
}

.mobile-dir-search-inner {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.mobile-dir-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-dir-search-glyph {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-dir-search-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0.65rem 0.85rem 0.65rem 2.75rem;
    font-size: 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-dir-search-input:focus {
    outline: none;
    border-color: #0b1b89;
    box-shadow: 0 0 0 3px rgba(11, 27, 137, 0.12);
}

.mobile-dir-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 1.15rem;
    width: 1.15rem;
    margin-right: 0.15rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat;
    cursor: pointer;
}

.mobile-dir-search-submit {
    flex-shrink: 0;
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0b1b89;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 27, 137, 0.25);
    transition: background 0.15s, transform 0.1s;
}

.mobile-dir-search-submit:hover {
    background: #0d228f;
}

.mobile-dir-search-submit:active {
    transform: scale(0.96);
}

.mobile-dir-search-submit:focus-visible {
    outline: 2px solid #0b1b89;
    outline-offset: 2px;
}

.mobile-dir-search-submit svg {
    display: block;
}

.mobile-dir-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.mobile-list-edit-hint {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.65rem;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mobile-list-edit-hint strong {
    color: #334155;
    font-weight: 600;
}

/* Read-only member view */
.mobile-view-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.35rem 1.15rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(11, 27, 137, 0.08);
}

.mobile-view-hero {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
    padding: 1rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8edf5;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 14px;
}

.mobile-view-photo-wrap {
    flex-shrink: 0;
    width: 118px;
    height: 118px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.mobile-view-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-view-hero-text {
    flex: 1;
    min-width: 0;
}

.mobile-view-name {
    margin: 0 0 0.35rem;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.28;
    color: #0b1b89;
    letter-spacing: -0.02em;
}

.mobile-view-memno {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.mobile-view-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.mobile-view-tags {
    margin: 0;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.55;
    padding: 0.45rem 0.55rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #e8edf5;
}

.mobile-view-tags span:not(:last-child)::after {
    content: ' · ';
}

.mobile-view-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0;
}

.mobile-view-badge--mine {
    color: #1d4ed8;
    background: #dbeafe;
}

.mobile-view-badge--deceased {
    color: #b91c1c;
    background: #fee2e2;
}

.mobile-view-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-view-block {
    padding: 1rem 1rem 0.95rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e8edf5;
}

.mobile-view-block-title {
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0b1b89;
    border-bottom: 2px solid #e0e7ff;
}

.mobile-view-dl {
    margin: 0;
    padding: 0;
}

.mobile-view-dl dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0.75rem 0 0.2rem;
}

.mobile-view-block .mobile-view-dl dt:first-of-type {
    margin-top: 0;
}

.mobile-view-dl dd {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.5;
    font-weight: 500;
}

/* Tappable contact links — no underline, pill style */
.mobile-view-dl dd a {
    display: inline-block;
    max-width: 100%;
    margin-top: 0.1rem;
    padding: 0.45rem 0.75rem;
    background: #fff;
    color: #0b1b89 !important;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    border: 1.5px solid #c7d2fe;
    word-break: break-all;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(11, 27, 137, 0.06);
}

.mobile-view-dl dd a:active {
    background: #eef2ff;
    transform: scale(0.98);
}

.mobile-view-dl dd a:focus-visible {
    outline: 2px solid #0b1b89;
    outline-offset: 2px;
}

@media (max-width: 380px) {
    .mobile-view-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mobile-view-hero-text {
        width: 100%;
    }

    .mobile-view-meta-row {
        justify-content: center;
    }

    .mobile-view-photo-wrap {
        width: 132px;
        height: 132px;
    }
}

.mobile-view-dd-warn {
    color: #b91c1c;
    font-weight: 600;
}

.mobile-view-muted {
    color: #94a3b8;
    font-size: 0.9rem;
}

.mobile-view-notes {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

.mobile-view-edit-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 1.15rem;
}

.mobile-view-note {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 1rem 0 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.mobile-collect-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.mobile-collect-form-page .form-card,
.mobile-collect-form-page .form-group,
.mobile-collect-form-page .form-row {
    max-width: 100%;
}

.mobile-collect-form-page .form-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.mobile-collect-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-collect-form-actions .btn {
    text-align: center;
    justify-content: center;
}

.mobile-collect-toast {
    margin: 0 1rem 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.875rem;
}

/* ——— Member form (stacked, touch-friendly) ——— */
.mobile-form-card {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 1.15rem 1rem 1.5rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
}

.mobile-form-required-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 1.1rem;
    padding: 0.5rem 0.65rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mobile-req-star {
    color: #ed131a;
    font-weight: 700;
}

.mobile-label-opt {
    font-weight: 400;
    font-size: 0.75rem;
    color: #94a3b8;
}

.mobile-field-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.4rem 0 0;
    line-height: 1.4;
}

.mobile-form-section {
    margin-bottom: 1.35rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-form-section--flush {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0.25rem;
}

.mobile-form-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0b1b89;
    margin: 0 0 0.85rem;
}

.mobile-collect-form-page .mobile-member-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.mobile-collect-form-page .mobile-member-form .form-row .form-group {
    width: 100%;
    flex: none;
    margin-bottom: 1.1rem;
}

.mobile-collect-form-page .mobile-member-form .form-group {
    margin-bottom: 1.1rem;
}

.mobile-collect-form-page .mobile-member-form .form-group:last-child {
    margin-bottom: 0;
}

.mobile-collect-form-page .mobile-member-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.45rem;
    display: block;
    line-height: 1.3;
}

.mobile-collect-form-page .mobile-member-form input[type="text"],
.mobile-collect-form-page .mobile-member-form input[type="email"],
.mobile-collect-form-page .mobile-member-form input[type="tel"],
.mobile-collect-form-page .mobile-member-form input[type="url"],
.mobile-collect-form-page .mobile-member-form input[type="date"],
.mobile-collect-form-page .mobile-member-form select,
.mobile-collect-form-page .mobile-member-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 2.875rem;
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mobile-collect-form-page .mobile-member-form input:focus,
.mobile-collect-form-page .mobile-member-form select:focus,
.mobile-collect-form-page .mobile-member-form textarea:focus {
    outline: none;
    border-color: #0b1b89;
    box-shadow: 0 0 0 3px rgba(11, 27, 137, 0.15);
}

.mobile-collect-form-page .mobile-member-form textarea {
    min-height: 5.5rem;
    resize: vertical;
    line-height: 1.45;
}

/* Photo picker — larger tap target */
.mobile-collect-form-page .member-photo-upload {
    max-width: 200px;
    margin: 0 auto;
}

.mobile-collect-form-page .member-photo-placeholder {
    min-height: 160px;
    border-radius: 14px !important;
    border-width: 2px !important;
}

.mobile-collect-form-page .member-photo-placeholder-text {
    font-size: 0.8125rem !important;
}

/* Service group picker */
.mobile-collect-form-page .mobile-ministry-row {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem !important;
}

.mobile-collect-form-page .mobile-ministry-row select {
    width: 100%;
}

.mobile-collect-form-page .mobile-ministry-row #ministry_add_btn {
    width: 100%;
    min-height: 2.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.mobile-collect-topbar h1 {
    font-size: 0.9375rem;
    line-height: 1.25;
    text-align: center;
    flex: 1;
    padding: 0 0.25rem;
}

.mobile-collect-form-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-collect-form-actions .mobile-collect-btn {
    min-height: 3rem;
    font-size: 1.05rem;
}

.mobile-collect-form-actions .btn-ghost {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Link to PWA / session help (same page as church sidebar sa-7) */
.mobile-help-footer-link {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.mobile-help-footer-link a {
    color: #0b1b89;
    font-weight: 600;
    text-decoration: underline;
}
