/* /Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-x6vt4s8f20] {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.app-header[b-x6vt4s8f20] {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 max(18px, calc((100vw - 1040px) / 2));
    border-bottom: 1px solid rgba(121, 134, 153, 0.22);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

.brand[b-x6vt4s8f20] {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.product-label[b-x6vt4s8f20] {
    padding-left: 12px;
    border-left: 1px solid #d3dae4;
    color: #667085;
    font-size: 0.88rem;
    font-weight: 600;
}

main[b-x6vt4s8f20] {
    min-width: 0;
}

@media (max-width: 520px) {
    .app-header[b-x6vt4s8f20] {
        height: 56px;
        padding: 0 14px;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* NAVBAR */
.navbar[b-mlfl6qc89z] {
    display: flex;
    align-items: center;
    background: #25304a;
    height: 3.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid #21243f;
    position: sticky;
    top: 0;
    z-index: 200;
}

.hamburger-btn[b-mlfl6qc89z] {
    font-size: 2.2rem;
    background: none;
    color: #d1e3f5;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    margin-right: 1.1rem;
}

    .hamburger-btn:hover[b-mlfl6qc89z],
    .hamburger-btn:focus[b-mlfl6qc89z] {
        color: #37a2f0;
        outline: none;
    }

.navbar-title[b-mlfl6qc89z] {
    font-size: 1.18rem;
    font-weight: 600;
    color: #fff;
}

.navbar-user[b-mlfl6qc89z] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-label[b-mlfl6qc89z] {
    color: #fff;
    font-weight: 500;
    background: rgba(40,40,60,0.2);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 1rem;
}

    .user-label strong[b-mlfl6qc89z] {
        color: #ffe063;
        font-weight: 700;
        margin-left: 0.3rem;
    }

.logout-btn[b-mlfl6qc89z] {
    background: linear-gradient(90deg,#324ea9,#842685 70%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.32rem 1rem;
    font-size: 0.96rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .logout-btn:hover[b-mlfl6qc89z] {
        background: #648bf0;
    }

/* SIDEBAR - slide in/out */
.sidebar[b-mlfl6qc89z] {
    position: fixed;
    top: 0;
    left: -230px;
    width: 230px;
    height: 100vh;
    background: #25304a;
    box-shadow: 2px 0 11px -6px #0005;
    z-index: 150;
    transition: left 0.25s cubic-bezier(.7,.1,.3,.95);
    padding-top: 4.1rem;
}

    .sidebar.visible[b-mlfl6qc89z] {
        left: 0;
    }

    .sidebar nav[b-mlfl6qc89z] {
        display: flex;
        flex-direction: column;
        padding: 0 0.8rem;
    }

.sidebar-link[b-mlfl6qc89z] {
    color: #e6eeff;
    font-size: 1.04rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 3px 0;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    transition: background 0.14s;
    display: block;
}

    .sidebar-link:hover[b-mlfl6qc89z],
    .sidebar-link.active[b-mlfl6qc89z] {
        background: #353d51;
        color: #fff;
    }

/* OVERLAY - kattintasra bezarja a menut */
.sidebar-overlay[b-mlfl6qc89z] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,24,32,.22);
    z-index: 149;
}

/* Tartalom tolasa desktopon */
.app-main-content[b-mlfl6qc89z] {
    transition: margin-left 0.25s cubic-bezier(.7,.1,.3,.95);
}

.with-sidebar[b-mlfl6qc89z] {
    margin-left: 230px;
}

/* Mobilon - nincs tolas */
@media (max-width: 700px) {
    /* Mobilon csukva ne logjon ra a tartalomra */
    .sidebar[b-mlfl6qc89z] {
        width: 80vw;
        left: -80vw; /* ne fix -230px legyen, hanem a sajat szelessegenek megfeleloen legyen eltolva */
    }

        .sidebar.visible[b-mlfl6qc89z] {
            left: 0; /* nyitva legyen teljesen lathato */
        }
}

.with-sidebar[b-mlfl6qc89z] {
    margin-left: 0;
}

.hamburger-btn[b-mlfl6qc89z] {
    font-size: 2.6rem;
}

.navbar[b-mlfl6qc89z] {
    padding: 0 0.6rem;
}

.navbar-user[b-mlfl6qc89z] {
    /* Mobilon csak egy sor legyen, rejtse el vagy torje: */
    max-width: 60vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.98rem;
    /* Ha szukseges, margin-left helyett margin-right-ot adj a hamburger gombnak: */
    margin-right: 0.8rem;
}

.user-label[b-mlfl6qc89z] {
    /* Mobilon kisebb betumeret, hogy kiferjen */
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48vw;
    display: inline-block;
    vertical-align: middle;
}

.logout-btn[b-mlfl6qc89z] {
    /* Gomb is legyen kisebb, hogy ne tolja ki */
    font-size: 0.9rem;
    padding: 0.2rem 0.8rem;
    margin-left: 0.3rem;
}

.navbar-title[b-mlfl6qc89z] {
    font-size: 1.12rem;
    /* Ha kell, kisebb margo */
}
/* /Pages/AdminDiagnostics.razor.rz.scp.css */
.admin-diagnostics-page[b-qqm7r02m9e] {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 96px;
}

.admin-card[b-qqm7r02m9e] {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #d5dde8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.admin-note[b-qqm7r02m9e] {
    color: #667085;
}

.admin-muted[b-qqm7r02m9e] {
    display: block;
    color: #667085;
    font-size: 0.85rem;
}

.admin-login-grid[b-qqm7r02m9e] {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
}

.admin-action[b-qqm7r02m9e] {
    margin-top: 14px;
}

.admin-textarea-label[b-qqm7r02m9e] {
    display: block;
    margin-top: 14px;
    font-weight: 700;
}

.admin-textarea[b-qqm7r02m9e] {
    display: block;
    width: 100%;
    min-height: 180px;
    margin: 8px 0 12px;
    padding: 12px;
    border: 1px solid #c8d2df;
    border-radius: 10px;
    resize: vertical;
}

.admin-message[b-qqm7r02m9e] {
    margin-top: 12px;
}

.admin-message-success[b-qqm7r02m9e] {
    color: #166534;
}

.admin-message-error[b-qqm7r02m9e] {
    color: #b42318;
}

.diagnostic-file-list[b-qqm7r02m9e] {
    display: grid;
    gap: 10px;
}

.diagnostic-file[b-qqm7r02m9e] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.diagnostic-file span[b-qqm7r02m9e] {
    display: block;
    color: #667085;
}

.benchmark-summary[b-qqm7r02m9e] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.benchmark-summary div[b-qqm7r02m9e] {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.benchmark-summary strong[b-qqm7r02m9e],
.benchmark-summary span[b-qqm7r02m9e] {
    display: block;
}

.benchmark-table[b-qqm7r02m9e] {
    width: 100%;
    margin: 12px 0 20px;
    border-collapse: collapse;
}

.benchmark-table-scroll[b-qqm7r02m9e] {
    overflow-x: auto;
}

.benchmark-table th[b-qqm7r02m9e],
.benchmark-table td[b-qqm7r02m9e] {
    padding: 9px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.benchmark-samples[b-qqm7r02m9e] {
    min-width: 220px;
}

.benchmark-samples span[b-qqm7r02m9e] {
    display: block;
    color: #667085;
}

@media (max-width: 640px) {
    .admin-login-grid[b-qqm7r02m9e] {
        grid-template-columns: 1fr;
    }

    .diagnostic-file[b-qqm7r02m9e] {
        display: block;
    }
}
/* /Pages/Home.razor.rz.scp.css */
.name-app[b-ncysg1vfs4] {
    --mn-cream: #fbf6ed;
    --mn-card: #fffdf8;
    --mn-green: #285142;
    --mn-green-dark: #18382d;
    --mn-sage: #dce8dc;
    --mn-sage-strong: #b8d0bd;
    --mn-salmon: #df8a76;
    --mn-salmon-soft: #fff0ea;
    --mn-ink: #20312b;
    --mn-muted: #6c766d;
    --mn-border: #e4d8c8;
    --mn-positive: #2f6f4f;
    --mn-positive-soft: #edf6ef;
    --mn-danger: #a34053;
    --mn-danger-soft: #fff1f0;
    width: 100%;
    min-height: calc(100vh - 64px);
    padding:
        calc(34px + env(safe-area-inset-top, 0px))
        20px
        calc(104px + env(safe-area-inset-bottom, 0px));
    color: var(--mn-ink);
    background:
        radial-gradient(circle at 15% 8%, rgba(220, 232, 220, 0.62), transparent 30%),
        radial-gradient(circle at 86% 6%, rgba(255, 240, 234, 0.78), transparent 28%),
        var(--mn-cream);
    overflow-x: hidden;
}

.compact-nav[b-ncysg1vfs4] {
    width: min(100%, 760px);
    margin: -14px auto 14px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--mn-border);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 14px 34px rgba(40, 81, 66, 0.10);
}

.compact-nav button[b-ncysg1vfs4],
.nav-sheet button[b-ncysg1vfs4] {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--mn-muted);
    font-weight: 800;
}

.compact-nav button.active[b-ncysg1vfs4],
.nav-sheet button.active[b-ncysg1vfs4] {
    background: var(--mn-sage);
    color: var(--mn-green);
}

.compact-nav button:focus-visible[b-ncysg1vfs4],
.nav-sheet button:focus-visible[b-ncysg1vfs4] {
    outline: 3px solid rgba(223, 138, 118, 0.35);
    outline-offset: 2px;
}

.nav-icon[b-ncysg1vfs4] {
    width: 22px;
    height: 22px;
    display: inline-block;
}

.nav-icon svg[b-ncysg1vfs4] {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-sheet[b-ncysg1vfs4] {
    width: min(100%, 760px);
    margin: -6px auto 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--mn-border);
    border-radius: 18px;
    background: var(--mn-card);
    box-shadow: 0 18px 46px rgba(40, 81, 66, 0.18);
}

.nav-sheet button[b-ncysg1vfs4],
.nav-setting-button[b-ncysg1vfs4] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
}

.nav-setting-button[b-ncysg1vfs4] {
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: #fff;
    color: var(--mn-green-dark);
    font: inherit;
    font-weight: 800;
}

.dashboard-view[b-ncysg1vfs4] {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.dashboard-hero[b-ncysg1vfs4] {
    padding: 22px 18px;
    border: 1px solid rgba(184, 208, 189, 0.72);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 18%, rgba(220, 232, 220, 0.86), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(255, 240, 234, 0.92), transparent 36%),
        var(--mn-card);
    box-shadow: 0 20px 48px rgba(40, 81, 66, 0.12);
    text-align: center;
}

.dashboard-hero h1[b-ncysg1vfs4] {
    margin: 4px 0 10px;
    color: var(--mn-green-dark);
    font-size: clamp(1.75rem, 6vw, 2.8rem);
    line-height: 1.08;
}

.dashboard-hero p:last-child[b-ncysg1vfs4] {
    max-width: 560px;
    margin: 0 auto;
    color: var(--mn-muted);
    line-height: 1.48;
}

.dashboard-action-grid[b-ncysg1vfs4],
.dashboard-status-grid[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-action-card[b-ncysg1vfs4],
.dashboard-status-card[b-ncysg1vfs4] {
    min-width: 0;
    border: 1px solid var(--mn-border);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.94);
    color: var(--mn-ink);
    box-shadow: 0 14px 34px rgba(40, 81, 66, 0.08);
}

.dashboard-action-card[b-ncysg1vfs4] {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 14px;
    text-align: left;
    font: inherit;
}

.dashboard-action-card.primary[b-ncysg1vfs4] {
    border-color: var(--mn-sage-strong);
    background: linear-gradient(145deg, rgba(220, 232, 220, 0.72), rgba(255, 253, 248, 0.96));
}

.dashboard-action-card:hover[b-ncysg1vfs4],
.dashboard-action-card:focus-visible[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    outline: 3px solid rgba(40, 81, 66, 0.14);
    outline-offset: 2px;
}

.dashboard-action-icon[b-ncysg1vfs4] {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--mn-sage);
    color: var(--mn-green);
}

.dashboard-action-icon svg[b-ncysg1vfs4] {
    width: 22px;
    height: 22px;
}

.dashboard-action-card strong[b-ncysg1vfs4],
.dashboard-status-card strong[b-ncysg1vfs4] {
    color: var(--mn-green-dark);
    font-size: 1rem;
}

.dashboard-action-card span:last-child[b-ncysg1vfs4],
.dashboard-status-card p[b-ncysg1vfs4] {
    color: var(--mn-muted);
    font-size: 0.9rem;
    line-height: 1.36;
}

.dashboard-status-card[b-ncysg1vfs4] {
    padding: 14px;
}

.dashboard-status-card > span[b-ncysg1vfs4] {
    display: block;
    margin-bottom: 6px;
    color: var(--mn-salmon);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-status-card.highlight[b-ncysg1vfs4] {
    border-color: rgba(223, 138, 118, 0.5);
    background: var(--mn-salmon-soft);
}

.dashboard-card-actions[b-ncysg1vfs4] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-card-actions button[b-ncysg1vfs4] {
    min-height: 38px;
    border: 1px solid var(--mn-green);
    border-radius: 999px;
    background: var(--mn-green);
    color: #fff;
    font-weight: 850;
    padding: 8px 12px;
}

.dashboard-card-actions button.secondary[b-ncysg1vfs4] {
    border-color: var(--mn-border);
    background: var(--mn-card);
    color: var(--mn-green);
}

.dashboard-card-actions button:disabled[b-ncysg1vfs4] {
    border-color: var(--mn-border);
    background: #eee8dc;
    color: var(--mn-muted);
}

.family-name-panel[b-ncysg1vfs4] {
    width: min(100%, 760px);
    margin: -6px auto 14px;
    padding: 12px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 12px 30px rgba(40, 81, 66, 0.08);
}

.family-name-panel.setup-card[b-ncysg1vfs4] {
    border-color: var(--mn-sage-strong);
    background: rgba(220, 232, 220, 0.44);
}

.family-name-panel label[b-ncysg1vfs4] {
    display: block;
    margin-bottom: 8px;
    color: var(--mn-green-dark);
    font-weight: 700;
}

.family-name-panel p[b-ncysg1vfs4] {
    margin: -2px 0 10px;
    color: var(--mn-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.family-name-panel div[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.family-name-panel input[b-ncysg1vfs4] {
    min-width: 0;
    border: 1px solid var(--mn-border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.family-name-panel button[b-ncysg1vfs4],
.discovery-view-toggle button[b-ncysg1vfs4] {
    border: 1px solid var(--mn-border);
    border-radius: 10px;
    background: var(--mn-card);
    color: var(--mn-green);
    font-weight: 800;
    padding: 9px 12px;
}

.discovery-view-toggle button[b-ncysg1vfs4] {
    display: grid;
    gap: 2px;
    text-align: center;
}

.discovery-view-toggle button span[b-ncysg1vfs4] {
    color: var(--mn-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.family-name-panel button.secondary[b-ncysg1vfs4] {
    color: var(--mn-muted);
}

.discovery-view-toggle[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.discovery-view-toggle button.active[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    background: var(--mn-sage);
    color: var(--mn-green-dark);
}

.swipe-name-list[b-ncysg1vfs4] {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
    touch-action: pan-y;
}

.swipe-name-row[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid var(--mn-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--mn-card);
    box-shadow: 0 10px 28px rgba(40, 81, 66, 0.08);
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        opacity 160ms ease;
}

.swipe-name-row.liked[b-ncysg1vfs4] {
    border-color: var(--mn-positive);
    background: var(--mn-positive-soft);
}

.swipe-name-row.rejected[b-ncysg1vfs4] {
    border-color: var(--mn-danger);
    background: var(--mn-danger-soft);
}

.swipe-name-row.pending-exit[b-ncysg1vfs4] {
    transform: translateX(0);
}

.swipe-name-row.exiting[b-ncysg1vfs4] {
    opacity: 0;
    transform: translateX(18px);
}

.swipe-name-row:focus-within[b-ncysg1vfs4] {
    outline: 3px solid rgba(47, 109, 246, 0.22);
    outline-offset: 2px;
}

.swipe-name-row.liked .swipe-icon.like[b-ncysg1vfs4] {
    background: #d8f0df;
    color: var(--mn-positive);
}

.swipe-name-row.rejected .swipe-icon.reject[b-ncysg1vfs4] {
    background: #ffe0e0;
    color: var(--mn-danger);
}

.swipe-icon[b-ncysg1vfs4] {
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.7);
    color: var(--mn-muted);
    font-size: 1.4rem;
    font-weight: 900;
}

.swipe-icon.reject[b-ncysg1vfs4] {
    border-right: 1px solid var(--mn-border);
}

.swipe-icon.like[b-ncysg1vfs4] {
    border-left: 1px solid var(--mn-border);
}

.swipe-name[b-ncysg1vfs4] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
    color: var(--mn-green-dark);
    font-size: 1.08rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-name-preview[b-ncysg1vfs4] {
    margin: -4px 0 10px;
    color: var(--mn-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .family-name-panel div[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
    }

    .swipe-name-row[b-ncysg1vfs4] {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        min-height: 44px;
    }

    .swipe-name[b-ncysg1vfs4] {
        font-size: 1rem;
    }
}

.start-view[b-ncysg1vfs4],
.cold-start-view[b-ncysg1vfs4],
.compare-view[b-ncysg1vfs4],
.search-view[b-ncysg1vfs4],
.import-view[b-ncysg1vfs4],
.shortlist-view[b-ncysg1vfs4],
.family-view[b-ncysg1vfs4] {
    width: min(100%, 760px);
    margin: 0 auto;
}

.start-view[b-ncysg1vfs4] {
    min-height: min(720px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow[b-ncysg1vfs4] {
    margin: 0 0 8px;
    color: var(--mn-green);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1[b-ncysg1vfs4] {
    margin: 0;
    color: var(--mn-green-dark);
    font-size: clamp(2.1rem, 7vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.start-copy[b-ncysg1vfs4] {
    max-width: 570px;
    margin: 20px 0 32px;
    color: var(--mn-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.gender-options[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gender-option[b-ncysg1vfs4] {
    min-height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid var(--mn-border);
    border-radius: 18px;
    background: var(--mn-card);
    color: var(--mn-green-dark);
    font-size: 1.18rem;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(40, 81, 66, 0.09);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gender-option:hover[b-ncysg1vfs4],
.gender-option:focus-visible[b-ncysg1vfs4] {
    border-color: var(--mn-salmon);
    box-shadow: 0 18px 44px rgba(223, 138, 118, 0.18);
    transform: translateY(-2px);
}

.gender-symbol[b-ncysg1vfs4] {
    font-size: 2rem;
    color: var(--mn-salmon);
}

.cold-start-view .start-copy[b-ncysg1vfs4] {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cold-start-view .section-heading[b-ncysg1vfs4] {
    margin-bottom: 16px;
}

.cold-start-view .start-copy[b-ncysg1vfs4] {
    margin-top: 10px;
    margin-bottom: 14px;
}

.discovery-mode-toggle[b-ncysg1vfs4] {
    width: min(100%, 440px);
    margin: 0 auto 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.first-use-hint[b-ncysg1vfs4] {
    width: min(100%, 520px);
    margin: -2px auto 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--mn-border);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 12px 30px rgba(40, 81, 66, 0.08);
    color: var(--mn-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.first-use-hint strong[b-ncysg1vfs4],
.first-use-hint span[b-ncysg1vfs4] {
    display: block;
}

.first-use-hint strong[b-ncysg1vfs4] {
    color: var(--mn-green-dark);
}

.hint-illustration[b-ncysg1vfs4] {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mn-sage);
    color: var(--mn-green);
    font-size: 1.2rem;
    font-weight: 900;
}

.first-use-hint button[b-ncysg1vfs4],
.hint-reopen[b-ncysg1vfs4] {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--mn-sage-strong);
    border-radius: 999px;
    background: var(--mn-sage);
    color: var(--mn-green-dark);
    font-weight: 800;
}

.hint-reopen[b-ncysg1vfs4] {
    display: block;
    margin: -4px auto 10px;
    background: transparent;
}

.discovery-mode-toggle button[b-ncysg1vfs4] {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: var(--mn-card);
    color: var(--mn-green-dark);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(40, 81, 66, 0.06);
}

.discovery-mode-toggle button:first-child.active[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    background: var(--mn-sage);
    color: var(--mn-green-dark);
}

.discovery-mode-toggle button:last-child.active[b-ncysg1vfs4] {
    border-color: var(--mn-salmon);
    background: var(--mn-salmon-soft);
    color: #9f4b3a;
}

.name-tile-grid[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto 12px;
}

.name-tile[b-ncysg1vfs4] {
    position: relative;
    min-height: 58px;
    padding: 10px 9px;
    border: 1px solid var(--mn-border);
    border-radius: 16px;
    background: var(--mn-card);
    color: var(--mn-green-dark);
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(40, 81, 66, 0.06);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.name-tile:hover[b-ncysg1vfs4],
.name-tile:focus-visible[b-ncysg1vfs4] {
    border-color: var(--mn-salmon);
    box-shadow: 0 14px 32px rgba(223, 138, 118, 0.16);
    transform: translateY(-1px);
    outline: 0;
}

.name-tile.liked[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    background: var(--mn-sage);
    color: var(--mn-green-dark);
    box-shadow: 0 12px 30px rgba(40, 81, 66, 0.16);
}

.name-tile.rejected[b-ncysg1vfs4] {
    border-color: var(--mn-salmon);
    background: var(--mn-salmon-soft);
    color: #8d3f31;
    box-shadow: 0 12px 30px rgba(223, 138, 118, 0.16);
}

.tile-state-icon[b-ncysg1vfs4] {
    position: absolute;
    top: 7px;
    right: 9px;
    min-width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1;
}

.name-tile.liked .tile-state-icon[b-ncysg1vfs4] {
    background: var(--mn-green);
}

.name-tile.rejected .tile-state-icon[b-ncysg1vfs4] {
    background: var(--mn-salmon);
}

.name-tile.liked:hover[b-ncysg1vfs4],
.name-tile.liked:focus-visible[b-ncysg1vfs4] {
    border-color: var(--mn-green-dark);
    box-shadow: 0 16px 34px rgba(40, 81, 66, 0.22);
}

.name-tile.rejected:hover[b-ncysg1vfs4],
.name-tile.rejected:focus-visible[b-ncysg1vfs4] {
    border-color: #9f4b3a;
    box-shadow: 0 16px 34px rgba(223, 138, 118, 0.22);
}

.tile-name[b-ncysg1vfs4] {
    display: block;
    font-size: clamp(1rem, 4vw, 1.26rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.discovery-progress[b-ncysg1vfs4] {
    display: grid;
    gap: 2px;
    margin: 0 auto 10px;
    padding: 9px 11px;
    border: 1px solid var(--mn-sage-strong);
    border-radius: 14px;
    background: rgba(220, 232, 220, 0.72);
    color: var(--mn-green);
    font-size: 0.86rem;
    line-height: 1.35;
}

.discovery-partial-message[b-ncysg1vfs4] {
    margin: -2px auto 10px;
    padding: 10px 12px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.86rem;
    font-weight: 650;
}

.discovery-progress strong[b-ncysg1vfs4],
.comparison-cta strong[b-ncysg1vfs4] {
    color: #172033;
}

.discovery-progress span[b-ncysg1vfs4] {
    color: rgba(42, 76, 61, 0.72);
    font-size: 0.78rem;
}

.comparison-cta[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 auto 10px;
    padding: 11px;
    border: 1px solid var(--mn-sage-strong);
    border-radius: 16px;
    background: rgba(220, 232, 220, 0.76);
    color: var(--mn-green-dark);
    font-size: 0.88rem;
    line-height: 1.35;
}

.comparison-cta span[b-ncysg1vfs4] {
    display: block;
    margin-top: 2px;
}

.comparison-cta button[b-ncysg1vfs4] {
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: var(--mn-green);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.workspace-header[b-ncysg1vfs4] {
    display: none;
}

.gender-context[b-ncysg1vfs4] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mn-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.gender-context select[b-ncysg1vfs4] {
    min-height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--mn-border);
    border-radius: 12px;
    background: var(--mn-card);
    color: var(--mn-green-dark);
    font: inherit;
    font-weight: 850;
}

.nav-gender-context[b-ncysg1vfs4] {
    width: 100%;
    justify-content: space-between;
    padding: 2px 2px 10px;
    border-bottom: 1px solid rgba(91, 122, 108, 0.12);
}

.shortlist-button[b-ncysg1vfs4] {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--mn-border);
    border-radius: 999px;
    background: var(--mn-card);
    color: #be4b6b;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(40, 81, 66, 0.06);
}

.shortlist-button span:last-child[b-ncysg1vfs4] {
    white-space: nowrap;
}

.shortlist-count[b-ncysg1vfs4] {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #be4b6b;
    color: #fff;
    font-size: 0.76rem;
}

.reset-session-button[b-ncysg1vfs4] {
    color: var(--mn-danger);
}

.section-heading[b-ncysg1vfs4] {
    margin-bottom: 28px;
    text-align: center;
}

.section-heading h1[b-ncysg1vfs4] {
    font-size: clamp(1.75rem, 5vw, 2.7rem);
}

.candidate-pair[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.pair-source-panel[b-ncysg1vfs4] {
    width: min(100%, 420px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -10px 0 14px;
    padding: 9px 11px;
    border: 1px solid rgba(91, 122, 108, 0.2);
    border-radius: 14px;
    background: rgba(250, 247, 239, 0.82);
    box-shadow: 0 10px 24px rgba(40, 81, 66, 0.06);
}

.pair-source-panel > span[b-ncysg1vfs4] {
    color: var(--mn-green-dark);
    font-size: 0.84rem;
    font-weight: 800;
}

.pair-source-panel select[b-ncysg1vfs4] {
    min-width: 0;
    max-width: 210px;
    min-height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--mn-border);
    border-radius: 12px;
    background: #fff;
    color: var(--mn-green-dark);
    font: inherit;
    font-weight: 800;
}

.pair-source-panel select:focus[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    outline: 3px solid rgba(40, 81, 66, 0.16);
}

.candidate-card[b-ncysg1vfs4] {
    width: 100%;
    min-height: 246px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    border: 1px solid var(--mn-border);
    border-radius: 18px;
    background: var(--mn-card);
    box-shadow: 0 18px 46px rgba(40, 81, 66, 0.12);
    text-align: center;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.candidate-card.selectable:hover[b-ncysg1vfs4] {
    border-color: var(--mn-salmon);
    box-shadow: 0 22px 52px rgba(223, 138, 118, 0.18);
    outline: 0;
    transform: translateY(-2px);
}

.candidate-card.selectable:focus-visible[b-ncysg1vfs4] {
    outline: 3px solid rgba(223, 138, 118, 0.35);
    outline-offset: 3px;
}

.pair-status[b-ncysg1vfs4] {
    margin: 12px 0 0;
    color: var(--mn-green);
    font-size: 0.9rem;
    font-weight: 750;
    text-align: center;
}

.candidate-card h2[b-ncysg1vfs4] {
    margin: 8px 0 22px;
    color: var(--mn-green-dark);
    font-size: clamp(2rem, 6vw, 3.1rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.candidate-marker[b-ncysg1vfs4] {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mn-sage);
    color: var(--mn-green);
    font-size: 0.78rem;
    font-weight: 800;
}

.candidate-facts[b-ncysg1vfs4] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.candidate-facts span[b-ncysg1vfs4] {
    padding: 6px 9px;
    border-radius: 5px;
    background: #f4efe4;
    color: var(--mn-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.pair-or[b-ncysg1vfs4] {
    color: #7b8796;
    font-size: 0.84rem;
    font-weight: 700;
}

.pair-actions[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.pair-actions button[b-ncysg1vfs4],
.empty-state button[b-ncysg1vfs4],
.state-message button[b-ncysg1vfs4] {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--mn-green);
    border-radius: 7px;
    background: var(--mn-green);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(40, 81, 66, 0.18);
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.pair-actions button:hover[b-ncysg1vfs4],
.empty-state button:hover[b-ncysg1vfs4],
.state-message button:hover[b-ncysg1vfs4] {
    background: var(--mn-green-dark);
    box-shadow: 0 14px 30px rgba(40, 81, 66, 0.24);
    transform: translateY(-1px);
}

.pair-actions button.secondary[b-ncysg1vfs4] {
    border-color: var(--mn-border);
    background: var(--mn-card);
    color: var(--mn-green-dark);
    box-shadow: 0 8px 20px rgba(40, 81, 66, 0.06);
}

.pair-actions button.secondary:hover[b-ncysg1vfs4] {
    background: var(--mn-sage);
    box-shadow: 0 10px 24px rgba(40, 81, 66, 0.08);
}

.pair-actions button.reject[b-ncysg1vfs4] {
    color: var(--mn-danger);
}

.decision-help[b-ncysg1vfs4] {
    margin: 10px 0 0;
    color: var(--mn-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
}

.why-suggestion[b-ncysg1vfs4],
.preference-summary[b-ncysg1vfs4] {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(91, 122, 108, 0.22);
    border-radius: 7px;
    background: var(--mn-sage);
    color: var(--mn-green-dark);
    font-size: 0.92rem;
    line-height: 1.45;
}

.preference-summary[b-ncysg1vfs4] {
    margin: -12px 0 18px;
}

.reason-sheet-backdrop[b-ncysg1vfs4] {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(32, 50, 43, 0.22);
    backdrop-filter: blur(2px);
}

.reason-panel[b-ncysg1vfs4] {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 31;
    width: min(560px, calc(100vw - 24px));
    display: grid;
    gap: 14px;
    padding: 22px 16px 16px;
    border: 1px solid rgba(223, 138, 118, 0.34);
    border-radius: 24px;
    background: #fffaf3;
    box-shadow: 0 24px 70px rgba(32, 50, 43, 0.24);
    transform: translateX(-50%);
}

.reason-panel[b-ncysg1vfs4]::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(91, 122, 108, 0.35);
    transform: translateX(-50%);
}

.reason-close[b-ncysg1vfs4] {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(91, 122, 108, 0.18);
    border-radius: 50%;
    background: #fff;
    color: var(--mn-muted);
    font-size: 1.2rem;
    line-height: 1;
}

.reason-panel strong[b-ncysg1vfs4],
.reason-panel span[b-ncysg1vfs4] {
    display: block;
}

.reason-panel span[b-ncysg1vfs4] {
    margin-top: 3px;
    max-width: 32rem;
    color: var(--mn-muted);
    font-size: 0.9rem;
}

.reason-options[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.reason-option[b-ncysg1vfs4],
.skip-reason[b-ncysg1vfs4] {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: #fff;
    color: var(--mn-ink);
    font-weight: 700;
    text-align: left;
}

.reason-option:hover[b-ncysg1vfs4],
.reason-option:focus-visible[b-ncysg1vfs4],
.skip-reason:hover[b-ncysg1vfs4],
.skip-reason:focus-visible[b-ncysg1vfs4] {
    border-color: #be4b6b;
    outline: 0;
}

.skip-reason[b-ncysg1vfs4] {
    justify-self: start;
    color: #9f344d;
}

button:disabled[b-ncysg1vfs4] {
    cursor: wait;
    opacity: 0.55;
}

.search-box[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 20px;
}

.search-box input[b-ncysg1vfs4] {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: var(--mn-card);
    font-size: 1rem;
}

.search-box input:focus[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    outline: 3px solid rgba(40, 81, 66, 0.16);
}

.search-box button[b-ncysg1vfs4] {
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: var(--mn-green);
    color: #fff;
    font-weight: 800;
}

.import-panel[b-ncysg1vfs4] {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--mn-border);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 16px 38px rgba(40, 81, 66, 0.08);
}

.import-panel label[b-ncysg1vfs4] {
    color: var(--mn-green-dark);
    font-weight: 750;
}

.import-textarea-field[b-ncysg1vfs4] {
    display: grid;
    gap: 8px;
}

.import-panel textarea[b-ncysg1vfs4] {
    min-height: 150px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: var(--mn-card);
    color: var(--mn-ink);
    line-height: 1.45;
}

.import-panel textarea:focus[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    outline: 3px solid rgba(40, 81, 66, 0.16);
}

.text-clear-button[b-ncysg1vfs4] {
    justify-self: start;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid rgba(91, 114, 99, 0.2);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--mn-green-dark);
    font-size: 0.88rem;
    font-weight: 750;
}

.import-mode[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.import-mode label[b-ncysg1vfs4] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: rgba(220, 232, 220, 0.24);
    color: var(--mn-green-dark);
    font-size: 0.95rem;
}

.import-panel > button[b-ncysg1vfs4],
.compact-name-grid button[b-ncysg1vfs4] {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--mn-green);
    border-radius: 14px;
    background: var(--mn-green);
    color: #fff;
    font-weight: 800;
}

.discover-groups[b-ncysg1vfs4],
.selected-group-panel[b-ncysg1vfs4] {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(91, 114, 99, 0.18);
    border-radius: 22px;
    background: rgba(255, 251, 244, 0.92);
    box-shadow: 0 16px 38px rgba(44, 62, 49, 0.08);
}

.section-heading.compact[b-ncysg1vfs4] {
    margin-bottom: 12px;
    text-align: left;
}

.section-heading.compact h2[b-ncysg1vfs4],
.selected-group-panel h2[b-ncysg1vfs4] {
    margin: 0;
    color: var(--mn-green-dark);
    font-size: 1.15rem;
}

.group-card-grid[b-ncysg1vfs4],
.group-candidate-grid[b-ncysg1vfs4] {
    display: grid;
    gap: 10px;
}

.group-card-grid[b-ncysg1vfs4] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-candidate-grid[b-ncysg1vfs4] {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.group-card[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 82px;
    padding: 12px;
    border: 1px solid rgba(91, 114, 99, 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, #fffdf8, #f5f0e6);
    color: #1f352b;
    text-align: left;
    box-shadow: 0 10px 24px rgba(44, 62, 49, 0.07);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.group-card-icon[b-ncysg1vfs4] {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #e9f0e7;
    color: #285445;
}

.group-card-icon svg[b-ncysg1vfs4] {
    width: 16px;
    height: 16px;
}

.group-card-copy[b-ncysg1vfs4] {
    min-width: 0;
}

.group-card strong[b-ncysg1vfs4],
.group-card span[b-ncysg1vfs4],
.group-candidate-grid strong[b-ncysg1vfs4],
.group-candidate-grid span[b-ncysg1vfs4] {
    display: block;
}

.group-card strong[b-ncysg1vfs4] {
    margin-bottom: 2px;
    color: #20372d;
    font-size: 0.95rem;
}

.group-card span[b-ncysg1vfs4],
.selected-group-panel p[b-ncysg1vfs4],
.group-candidate-grid span[b-ncysg1vfs4] {
    color: #6d756d;
    font-size: 0.82rem;
    line-height: 1.35;
}

.group-card:hover[b-ncysg1vfs4],
.group-card:focus-visible[b-ncysg1vfs4] {
    transform: translateY(-1px);
    border-color: #ef9f8f;
    background: #fff8f2;
    box-shadow: 0 14px 30px rgba(44, 62, 49, 0.11);
    outline: 0;
}

.group-candidate-grid article[b-ncysg1vfs4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(91, 114, 99, 0.14);
    border-radius: 16px;
    background: #fffdf8;
}

.group-candidate-grid button[b-ncysg1vfs4] {
    min-width: 76px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #f1c5ba;
    border-radius: 999px;
    background: #fff7f4;
    color: #bb5f51;
    font-size: 0.82rem;
    font-weight: 700;
}

.group-actions[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.group-actions button[b-ncysg1vfs4] {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #285445;
    border-radius: 999px;
    background: #285445;
    color: #fff;
    font-weight: 700;
}

.group-actions button.secondary[b-ncysg1vfs4] {
    border-color: rgba(91, 114, 99, 0.22);
    background: #fffdf8;
    color: #285445;
}

.group-actions button.secondary.active[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    background: var(--mn-sage);
    color: var(--mn-green-dark);
    box-shadow: inset 0 0 0 1px rgba(40, 84, 69, 0.14);
}

.group-actions button.secondary.danger-soft[b-ncysg1vfs4] {
    border-color: #f1c5ba;
    background: var(--mn-danger-soft);
    color: var(--mn-danger);
}

.group-actions button.secondary.danger-soft.active[b-ncysg1vfs4] {
    border-color: var(--mn-salmon);
    background: #ffe3dc;
    color: #9f4b3a;
}

.group-filter-status[b-ncysg1vfs4] {
    margin: 10px 2px 0;
    color: var(--mn-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

@media (max-width: 390px) {
    .group-card-grid[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
    }
}

.import-panel > button.danger[b-ncysg1vfs4] {
    border-color: #f3c6cf;
    background: var(--mn-danger-soft);
    color: var(--mn-danger);
}

.import-success-message[b-ncysg1vfs4] {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--mn-sage-strong);
    border-radius: 16px;
    background: rgba(220, 232, 220, 0.42);
    color: var(--mn-green-dark);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.38;
}

.import-summary[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.import-summary div[b-ncysg1vfs4] {
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--mn-border);
    border-radius: 16px;
    background: var(--mn-card);
    box-shadow: 0 10px 26px rgba(40, 81, 66, 0.05);
}

.import-summary strong[b-ncysg1vfs4] {
    color: var(--mn-green-dark);
    font-size: 1.2rem;
}

.import-summary span[b-ncysg1vfs4],
.muted-list[b-ncysg1vfs4] {
    color: var(--mn-muted);
}

.import-section[b-ncysg1vfs4] {
    margin-top: 18px;
}

.import-section h2[b-ncysg1vfs4] {
    margin: 0 0 10px;
    color: var(--mn-green-dark);
    font-size: 1.05rem;
}

.compact-name-grid[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.compact-name-grid article[b-ncysg1vfs4] {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--mn-border);
    border-radius: 16px;
    background: var(--mn-card);
}

.compact-name-grid span[b-ncysg1vfs4] {
    color: var(--mn-muted);
    font-size: 0.82rem;
}

.search-results[b-ncysg1vfs4],
.shortlist-grid[b-ncysg1vfs4] {
    display: grid;
    gap: 8px;
}

.rejected-section[b-ncysg1vfs4] {
    margin-top: 24px;
}

.final-selection-panel[b-ncysg1vfs4] {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--mn-sage-strong);
    border-radius: 18px;
    background: rgba(220, 232, 220, 0.46);
}

.final-selection-panel.saved[b-ncysg1vfs4] {
    border-color: var(--mn-positive);
    background: var(--mn-positive-soft);
}

.final-selection-panel h2[b-ncysg1vfs4],
.final-selection-panel p[b-ncysg1vfs4] {
    margin: 0;
}

.final-selection-panel h2[b-ncysg1vfs4] {
    color: var(--mn-green-dark);
    font-size: 1.18rem;
}

.final-selection-actions[b-ncysg1vfs4],
.final-choice-list[b-ncysg1vfs4] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.final-selection-actions button[b-ncysg1vfs4],
.final-choice-list button[b-ncysg1vfs4] {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mn-sage-strong);
    border-radius: 999px;
    background: var(--mn-card);
    color: var(--mn-green);
    font-weight: 800;
}

.final-selection-actions .secondary[b-ncysg1vfs4],
.final-selection-panel .secondary[b-ncysg1vfs4] {
    color: var(--mn-muted);
    border-color: var(--mn-border);
}

.search-result[b-ncysg1vfs4],
.shortlist-item[b-ncysg1vfs4] {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--mn-border);
    border-radius: 16px;
    background: var(--mn-card);
    box-shadow: 0 10px 26px rgba(40, 81, 66, 0.06);
}

.search-result h2[b-ncysg1vfs4],
.shortlist-item h2[b-ncysg1vfs4] {
    margin: 0 0 3px;
    color: var(--mn-green-dark);
    font-size: 1.18rem;
}

.search-result p[b-ncysg1vfs4],
.shortlist-item p[b-ncysg1vfs4] {
    margin: 0;
    color: var(--mn-muted);
    font-size: 0.85rem;
}

.rating-actions[b-ncysg1vfs4] {
    display: flex;
    gap: 8px;
}

.rating-actions button[b-ncysg1vfs4],
.shortlist-item > button[b-ncysg1vfs4] {
    min-width: 64px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--mn-border);
    border-radius: 999px;
    background: var(--mn-card);
    font-size: 0.86rem;
    font-weight: 800;
}

.shortlist-item > button.restore-button[b-ncysg1vfs4] {
    width: auto;
    min-width: 118px;
    padding: 0 12px;
    color: var(--mn-green);
    font-size: 0.88rem;
    font-weight: 700;
}

.rejected-item[b-ncysg1vfs4] {
    background: rgba(255, 241, 240, 0.64);
}

.rating-actions .like[b-ncysg1vfs4] {
    color: #be4b6b;
}

.rating-actions .reject[b-ncysg1vfs4],
.shortlist-item > button[b-ncysg1vfs4] {
    color: var(--mn-danger);
}

.empty-state[b-ncysg1vfs4],
.state-message[b-ncysg1vfs4] {
    padding: 40px 20px;
    text-align: center;
    color: var(--mn-muted);
}

.empty-state h2[b-ncysg1vfs4] {
    margin: 0 0 8px;
    color: var(--mn-green-dark);
    font-size: 1.35rem;
}

.state-message.error[b-ncysg1vfs4] {
    color: var(--mn-danger);
}

.family-start[b-ncysg1vfs4],
.invite-panel[b-ncysg1vfs4] {
    padding: 24px;
    border: 1px solid var(--mn-border);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 16px 38px rgba(40, 81, 66, 0.08);
}

.family-start[b-ncysg1vfs4] {
    text-align: center;
}

.family-start h2[b-ncysg1vfs4],
.invite-panel h2[b-ncysg1vfs4] {
    margin: 0 0 8px;
}

.family-start p[b-ncysg1vfs4],
.invite-panel p[b-ncysg1vfs4] {
    margin: 0 0 18px;
    color: var(--mn-muted);
    line-height: 1.5;
}

.family-start button[b-ncysg1vfs4],
.invite-link button[b-ncysg1vfs4],
.invite-actions button[b-ncysg1vfs4] {
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--mn-green);
    color: #fff;
    font-weight: 800;
}

.invite-actions[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 14px;
}

.invite-actions input[b-ncysg1vfs4],
.invite-item-main input[b-ncysg1vfs4] {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: var(--mn-card);
}

.invite-list[b-ncysg1vfs4] {
    display: grid;
    gap: 10px;
}

.invite-item[b-ncysg1vfs4] {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--mn-border);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.9);
}

.invite-item.active[b-ncysg1vfs4] {
    border-color: var(--mn-sage-strong);
    background: rgba(220, 232, 220, 0.42);
}

.invite-item.inactive[b-ncysg1vfs4] {
    opacity: 0.72;
}

.invite-item-main[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.invite-item-main span[b-ncysg1vfs4] {
    color: var(--mn-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.invite-link[b-ncysg1vfs4] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.invite-link input[b-ncysg1vfs4] {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: var(--mn-card);
    color: var(--mn-muted);
}

.danger-button[b-ncysg1vfs4] {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(163, 64, 83, 0.24);
    border-radius: 14px;
    background: var(--mn-danger-soft);
    color: var(--mn-danger);
    font-weight: 800;
}

.partner-status[b-ncysg1vfs4] {
    padding: 12px 16px;
    border-left: 4px solid var(--mn-positive);
    background: var(--mn-positive-soft);
    color: var(--mn-positive);
}

.common-scope-toggle[b-ncysg1vfs4] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--mn-border);
    border-radius: 16px;
    background: var(--mn-card);
    color: var(--mn-green-dark);
    font-weight: 800;
}

.common-scope-toggle input[b-ncysg1vfs4] {
    width: 18px;
    height: 18px;
}

.family-list[b-ncysg1vfs4] {
    display: grid;
    gap: 8px;
}

.family-item[b-ncysg1vfs4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--mn-border);
    border-radius: 16px;
    background: var(--mn-card);
    box-shadow: 0 10px 26px rgba(40, 81, 66, 0.06);
}

.family-item.vetoed[b-ncysg1vfs4] {
    background: rgba(255, 241, 240, 0.7);
    color: var(--mn-muted);
}

.family-item h2[b-ncysg1vfs4] {
    margin: 0 0 4px;
    font-size: 1.18rem;
}

.family-item p[b-ncysg1vfs4] {
    margin: 0;
    color: var(--mn-muted);
    font-size: 0.86rem;
}

.common-explanation[b-ncysg1vfs4] {
    margin-top: 6px !important;
}

.common-next-action[b-ncysg1vfs4] {
    margin-top: 4px !important;
    color: var(--mn-green-dark) !important;
    font-weight: 700;
}

.common-score[b-ncysg1vfs4] {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px !important;
    color: var(--mn-green-dark) !important;
    font-weight: 800;
}

.common-score span[b-ncysg1vfs4] {
    color: var(--mn-muted);
    font-weight: 700;
}

.family-item-actions[b-ncysg1vfs4] {
    flex: 0 0 auto;
}

.item-action-menu[b-ncysg1vfs4] {
    position: relative;
    flex: 0 0 auto;
}

.item-action-menu summary[b-ncysg1vfs4] {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--mn-border);
    border-radius: 50%;
    background: var(--mn-card);
    color: var(--mn-muted);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    list-style: none;
}

.item-action-menu summary[b-ncysg1vfs4]::-webkit-details-marker {
    display: none;
}

.item-action-menu[open] summary[b-ncysg1vfs4],
.item-action-menu summary:focus-visible[b-ncysg1vfs4] {
    border-color: var(--mn-green);
    color: var(--mn-green-dark);
    outline: 3px solid rgba(40, 81, 66, 0.14);
}

.item-action-menu button[b-ncysg1vfs4] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 8;
    min-width: 178px;
    padding: 10px 12px;
    border: 1px solid var(--mn-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(38, 58, 49, 0.16);
    color: var(--mn-green-dark);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: left;
}

.item-action-menu button + button[b-ncysg1vfs4] {
    top: calc(100% + 48px);
}

.item-action-menu .veto-button[b-ncysg1vfs4] {
    color: var(--mn-danger);
}

@media (max-width: 620px) {
    .name-app[b-ncysg1vfs4] {
        min-height: 100vh;
        padding:
            calc(14px + env(safe-area-inset-top, 0px))
            12px
            calc(102px + env(safe-area-inset-bottom, 0px));
    }

    h1[b-ncysg1vfs4] {
        font-size: 1.58rem;
        line-height: 1.12;
    }

    .start-copy[b-ncysg1vfs4] {
        max-width: 100%;
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .gender-options[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
    }

    .compact-nav[b-ncysg1vfs4] {
        gap: 4px;
        padding: 5px;
    }

    .dashboard-view[b-ncysg1vfs4] {
        gap: 12px;
    }

    .dashboard-hero[b-ncysg1vfs4] {
        padding: 18px 14px;
    }

    .dashboard-action-grid[b-ncysg1vfs4],
    .dashboard-status-grid[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
    }

    .dashboard-action-card[b-ncysg1vfs4],
    .dashboard-status-card[b-ncysg1vfs4] {
        border-radius: 16px;
    }

    .dashboard-action-card[b-ncysg1vfs4] {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .dashboard-action-card span:last-child[b-ncysg1vfs4] {
        grid-column: 2;
    }

    .import-mode[b-ncysg1vfs4],
    .import-summary[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
    }

    .candidate-pair[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pair-source-panel[b-ncysg1vfs4] {
        margin: -2px 0 12px;
        padding: 10px;
    }

    .pair-source-panel select[b-ncysg1vfs4] {
        max-width: 190px;
    }

    .cold-start-view[b-ncysg1vfs4] {
        padding-bottom: 10px;
    }

    .cold-start-view .section-heading[b-ncysg1vfs4] {
        margin-bottom: 10px;
    }

    .cold-start-view .start-copy[b-ncysg1vfs4] {
        margin-bottom: 10px;
    }

    .discovery-mode-toggle[b-ncysg1vfs4] {
        margin-bottom: 8px;
    }

    .first-use-hint[b-ncysg1vfs4] {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .first-use-hint button[b-ncysg1vfs4] {
        grid-column: 1 / -1;
    }

    .discovery-mode-toggle button[b-ncysg1vfs4] {
        min-height: 40px;
        font-size: 0.9rem;
    }

    .name-tile-grid[b-ncysg1vfs4] {
        gap: 7px;
        margin-bottom: 8px;
    }

    .name-tile[b-ncysg1vfs4] {
        min-height: 50px;
        padding: 8px 8px;
    }

    .tile-state-icon[b-ncysg1vfs4] {
        top: 5px;
        right: 6px;
        min-width: 18px;
        height: 18px;
        font-size: 0.72rem;
    }

    .tile-name[b-ncysg1vfs4] {
        font-size: 1rem;
    }

    .discovery-progress[b-ncysg1vfs4],
    .comparison-cta[b-ncysg1vfs4] {
        margin-bottom: 8px;
        padding: 8px 9px;
        font-size: 0.78rem;
    }

    .comparison-cta[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
    }

    .comparison-cta button[b-ncysg1vfs4] {
        width: 100%;
        min-height: 40px;
    }

    .candidate-card[b-ncysg1vfs4] {
        min-height: 132px;
        padding: 18px 14px;
    }

    .candidate-card h2[b-ncysg1vfs4] {
        margin: 2px 0 10px;
        font-size: clamp(1.72rem, 7vw, 2.35rem);
    }

    .candidate-marker[b-ncysg1vfs4] {
        top: 9px;
        left: 9px;
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .candidate-facts span[b-ncysg1vfs4] {
        padding: 4px 7px;
        font-size: 0.72rem;
    }

    .pair-or[b-ncysg1vfs4] {
        text-align: center;
    }

    .pair-actions[b-ncysg1vfs4] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 8px;
    }

.discovery-actions[b-ncysg1vfs4] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discovery-actions-rolling[b-ncysg1vfs4] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

    .pair-actions button[b-ncysg1vfs4],
    .empty-state button[b-ncysg1vfs4],
    .state-message button[b-ncysg1vfs4] {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .decision-help[b-ncysg1vfs4] {
        display: none;
    }

    .workspace-header[b-ncysg1vfs4] {
        display: none;
        margin-bottom: 14px;
        align-items: stretch;
    }

    .invite-link[b-ncysg1vfs4] {
        grid-template-columns: 1fr;
    }

    .family-item[b-ncysg1vfs4] {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) and (max-height: 760px) {
    .name-app[b-ncysg1vfs4] {
        padding-top: 8px;
        padding-bottom: 86px;
    }

    .workspace-header[b-ncysg1vfs4] {
        display: none;
        margin-bottom: 8px;
        gap: 8px;
    }

    .dashboard-hero p:last-child[b-ncysg1vfs4],
    .dashboard-action-card span:last-child[b-ncysg1vfs4],
    .dashboard-status-card p[b-ncysg1vfs4] {
        font-size: 0.84rem;
        line-height: 1.28;
    }

    .dashboard-action-card[b-ncysg1vfs4],
    .dashboard-status-card[b-ncysg1vfs4] {
        padding: 11px;
    }

    .cold-start-view .section-heading[b-ncysg1vfs4] {
        margin-bottom: 6px;
    }

    .cold-start-view .start-copy[b-ncysg1vfs4] {
        display: none;
    }

    .discovery-mode-toggle[b-ncysg1vfs4] {
        margin-bottom: 6px;
    }

    .first-use-hint[b-ncysg1vfs4] {
        display: none;
    }

    .discovery-mode-toggle button[b-ncysg1vfs4] {
        min-height: 36px;
        font-size: 0.84rem;
    }

    .name-tile-grid[b-ncysg1vfs4] {
        gap: 6px;
        margin-bottom: 6px;
    }

    .name-tile[b-ncysg1vfs4] {
        min-height: 44px;
        padding: 6px 7px;
    }

    .tile-name[b-ncysg1vfs4] {
        font-size: 0.95rem;
    }

    .discovery-progress[b-ncysg1vfs4],
    .comparison-cta[b-ncysg1vfs4] {
        margin-bottom: 6px;
        padding: 7px 8px;
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .pair-actions button[b-ncysg1vfs4],
    .empty-state button[b-ncysg1vfs4],
    .state-message button[b-ncysg1vfs4] {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.8rem;
    }

    .compare-view .section-heading[b-ncysg1vfs4] {
        margin-bottom: 10px;
    }

    .compare-view .section-heading h1[b-ncysg1vfs4] {
        font-size: 1.7rem;
    }

    .compare-view .eyebrow[b-ncysg1vfs4] {
        margin-bottom: 4px;
    }

    .compare-view .candidate-card[b-ncysg1vfs4] {
        min-height: 108px;
        padding: 14px 12px;
    }

}
