/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-lkdxwv2kpi] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-lkdxwv2kpi] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ---- state visibility logic (unchanged) ---- */
.components-reconnect-first-attempt-visible[b-x3owi583nl],
.components-reconnect-repeated-attempt-visible[b-x3owi583nl],
.components-reconnect-failed-visible[b-x3owi583nl],
.components-pause-visible[b-x3owi583nl],
.components-resume-failed-visible[b-x3owi583nl],
.components-rejoining-animation[b-x3owi583nl] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-retrying[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-failed[b-x3owi583nl],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-x3owi583nl] {
    display: block;
}

/* ---- appearance: colour + typography (customised) ---- */
#components-reconnect-modal[b-x3owi583nl] {
    background-color: var(--card, #111827);
    color: var(--text, #e5e7eb);
    width: 21rem;
    margin: 20vh auto;
    padding: 2.25rem 2rem;
    border: 1px solid var(--line, #1f2937);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-x3owi583nl 0.5s both;
}

#components-reconnect-modal[open][b-x3owi583nl] {
    animation: components-reconnect-modal-slideUp-b-x3owi583nl 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
               components-reconnect-modal-fadeInOpacity-b-x3owi583nl 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-x3owi583nl]::backdrop {
    background-color: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(3px);
    animation: components-reconnect-modal-fadeInOpacity-b-x3owi583nl 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-x3owi583nl {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-x3owi583nl {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-x3owi583nl {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container[b-x3owi583nl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

/* primary status line */
#components-reconnect-modal p[b-x3owi583nl] {
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.5;
    color: var(--text, #e5e7eb);
}

/* secondary / retry lines: quieter */
#components-reconnect-modal .components-reconnect-repeated-attempt-visible[b-x3owi583nl],
#components-reconnect-modal .components-resume-failed-visible[b-x3owi583nl],
#components-reconnect-modal .components-pause-visible[b-x3owi583nl] {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted, #94a3b8);
}

#components-seconds-to-next-attempt[b-x3owi583nl] {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--text, #e5e7eb);
}

/* buttons */
#components-reconnect-modal button[b-x3owi583nl] {
    border: 0;
    background-color: var(--accent, #3b82f6);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

#components-reconnect-modal button:hover[b-x3owi583nl] {
    background-color: #2563eb;
}

#components-reconnect-modal button:active[b-x3owi583nl] {
    background-color: #1d4ed8;
    transform: translateY(1px);
}

/* ---- rejoining ring animation (recoloured) ---- */
.components-rejoining-animation[b-x3owi583nl] {
    position: relative;
    width: 76px;
    height: 76px;
}

.components-rejoining-animation div[b-x3owi583nl] {
    position: absolute;
    border: 3px solid var(--accent, #3b82f6);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-x3owi583nl 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-x3owi583nl] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-x3owi583nl {
    0%   { top: 38px; left: 38px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 38px; left: 38px; width: 0; height: 0; opacity: 0; }
    5%   { top: 38px; left: 38px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 76px; height: 76px; opacity: 0; }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.page[b-34bznndmm0] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

/* ---------- header ---------- */
.topbar[b-34bznndmm0] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.5rem;
}

.brand[b-34bznndmm0] { display: flex; align-items: center; gap: 0.9rem; }
.brand .logo[b-34bznndmm0] {
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.4));
}
.brand h1[b-34bznndmm0] { font-size: 1.35rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.brand p[b-34bznndmm0] { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.85rem; }

.stats[b-34bznndmm0] { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.stat[b-34bznndmm0] {
    display: flex; flex-direction: column; align-items: center;
    min-width: 74px; padding: 0.5rem 0.75rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.stat .num[b-34bznndmm0] { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.stat .lbl[b-34bznndmm0] { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.25rem; }
.stat.processing .num[b-34bznndmm0] { color: #d97706; }
.stat.done .num[b-34bznndmm0] { color: #059669; }
.stat.failed .num[b-34bznndmm0] { color: #dc2626; }

.live[b-34bznndmm0] {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    color: #dc2626; padding: 0.4rem 0.7rem; border: 1px solid #fecaca;
    background: #fef2f2; border-radius: 999px;
}
.live .dot[b-34bznndmm0] { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: pulse-b-34bznndmm0 1.4s infinite; }
@keyframes pulse-b-34bznndmm0 { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- action bar (capture) ---------- */
.actionbar[b-34bznndmm0] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}
.capture-btn[b-34bznndmm0] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: #fff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border: 0;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: filter 0.15s ease, transform 0.05s ease;
}
.capture-btn .cam[b-34bznndmm0] { font-size: 1.05rem; line-height: 1; }
.capture-btn:hover:not(:disabled)[b-34bznndmm0] { filter: brightness(1.08); }
.capture-btn:active:not(:disabled)[b-34bznndmm0] { transform: translateY(1px); }
.capture-btn:disabled[b-34bznndmm0] { opacity: 0.6; cursor: default; }

.capture-hint[b-34bznndmm0] { font-size: 0.8rem; color: var(--muted); }
.capture-msg[b-34bznndmm0] { font-size: 0.85rem; font-weight: 500; }
.capture-msg.ok[b-34bznndmm0] { color: #059669; }
.capture-msg.err[b-34bznndmm0] { color: #dc2626; }

/* ---------- retention notice ---------- */
.retention-note[b-34bznndmm0] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--chip);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.retention-note .clock[b-34bznndmm0] { font-size: 0.95rem; line-height: 1; }

/* ---------- empty state ---------- */
.empty[b-34bznndmm0] { text-align: center; padding: 5rem 1rem; color: var(--muted); }
.empty-icon[b-34bznndmm0] { font-size: 3.5rem; animation: bob-b-34bznndmm0 2.5s ease-in-out infinite; }
.empty h2[b-34bznndmm0] { margin: 0.75rem 0 0.25rem; color: var(--text); font-weight: 600; }
@keyframes bob-b-34bznndmm0 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- grid + cards ---------- */
.grid[b-34bznndmm0] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.card[b-34bznndmm0] {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.card:hover[b-34bznndmm0] { box-shadow: 0 8px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }
.card.is-processing[b-34bznndmm0] { border-color: #fcd34d; }
.card.is-done[b-34bznndmm0] { border-color: #a7f3d0; }
.card.is-failed[b-34bznndmm0] { border-color: #fecaca; }

.thumb[b-34bznndmm0] { position: relative; aspect-ratio: 16 / 9; background: #0f172a; overflow: hidden; }
.thumb img[b-34bznndmm0] { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .topic[b-34bznndmm0] {
    position: absolute; left: 8px; bottom: 8px;
    font-size: 0.68rem; font-family: ui-monospace, monospace;
    background: rgba(15,23,42,0.78); color: #e2e8f0;
    padding: 0.2rem 0.5rem; border-radius: 6px;
}

/* delete button (top-right of the thumbnail) */
.thumb .del[b-34bznndmm0] {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; line-height: 1;
    color: #fff; background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%; cursor: pointer;
    opacity: 0.7; transition: opacity 0.15s ease, background 0.15s ease;
}
.card:hover .thumb .del[b-34bznndmm0] { opacity: 1; }
.thumb .del:hover[b-34bznndmm0] { background: #dc2626; border-color: #dc2626; opacity: 1; }

/* inline delete confirmation (covers the thumbnail) */
.confirm-overlay[b-34bznndmm0] {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(2px);
    color: #fff; font-size: 0.9rem; font-weight: 600;
    text-align: center; padding: 0 1rem;
}
.confirm-actions[b-34bznndmm0] { display: flex; gap: 0.5rem; }
.confirm-overlay button[b-34bznndmm0] {
    border: 0; border-radius: 8px; padding: 0.45rem 1.05rem;
    font-size: 0.85rem; font-weight: 650; cursor: pointer;
}
.confirm-overlay .c-del[b-34bznndmm0] { background: #dc2626; color: #fff; }
.confirm-overlay .c-del:hover[b-34bznndmm0] { background: #b91c1c; }
.confirm-overlay .c-cancel[b-34bznndmm0] { background: rgba(255,255,255,0.16); color: #fff; }
.confirm-overlay .c-cancel:hover[b-34bznndmm0] { background: rgba(255,255,255,0.28); }

/* scanning sweep while processing */
.scan[b-34bznndmm0] {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,0.0) 45%, rgba(37,99,235,0.55) 50%, rgba(37,99,235,0.0) 55%, transparent 100%);
    animation: sweep-b-34bznndmm0 1.6s ease-in-out infinite;
}
@keyframes sweep-b-34bznndmm0 { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.body[b-34bznndmm0] { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.meta-top[b-34bznndmm0] { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.device[b-34bznndmm0] { font-weight: 650; font-size: 0.98rem; }
.time[b-34bznndmm0] { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dims[b-34bznndmm0] { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--muted); }
.dims span[b-34bznndmm0] { background: var(--chip); padding: 0.1rem 0.45rem; border-radius: 6px; }
.dims .latency[b-34bznndmm0] {
    background: rgba(37, 99, 235, 0.14);
    color: var(--accent);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* processing */
.processing-box[b-34bznndmm0] {
    display: flex; align-items: center; gap: 0.6rem;
    color: #b45309; font-size: 0.9rem; font-weight: 500;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    padding: 0.7rem 0.85rem;
}
.spinner[b-34bznndmm0] {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid #fde68a; border-top-color: #d97706;
    animation: spin-b-34bznndmm0 0.8s linear infinite; flex: none;
}
@keyframes spin-b-34bznndmm0 { to { transform: rotate(360deg); } }

/* result */
.result[b-34bznndmm0] { display: flex; flex-direction: column; gap: 0.6rem; }
.result-head[b-34bznndmm0] { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.badge[b-34bznndmm0] { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 6px; }
.badge.ok[b-34bznndmm0] { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge.err[b-34bznndmm0] { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.pill[b-34bznndmm0] { font-size: 0.7rem; color: var(--muted); background: var(--chip); padding: 0.15rem 0.5rem; border-radius: 999px; }

.text[b-34bznndmm0] {
    margin: 0; padding: 0.7rem 0.8rem;
    background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px;
    font-family: ui-monospace, "Cascadia Code", monospace; font-size: 0.85rem;
    white-space: pre-wrap; word-break: break-word;
    max-height: 130px; overflow-y: auto; color: var(--text);
}

.conf[b-34bznndmm0] { display: flex; flex-direction: column; gap: 0.3rem; }
.conf-row[b-34bznndmm0] { display: flex; justify-content: space-between; font-size: 0.82rem; }
.conf-row strong[b-34bznndmm0] { font-variant-numeric: tabular-nums; }
.bar[b-34bznndmm0] { height: 8px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.fill[b-34bznndmm0] { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.fill.high[b-34bznndmm0] { background: linear-gradient(90deg, #10b981, #059669); }
.fill.mid[b-34bznndmm0]  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.fill.low[b-34bznndmm0]  { background: linear-gradient(90deg, #f87171, #dc2626); }
.blocks[b-34bznndmm0] { font-size: 0.72rem; color: var(--muted); }

/* failed */
.failed-box[b-34bznndmm0] { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 0.7rem 0.85rem; }
.failed-box p[b-34bznndmm0] { margin: 0.4rem 0 0; font-size: 0.82rem; color: #b91c1c; word-break: break-word; }

/* ---------- pager ---------- */
.pager[b-34bznndmm0] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}
.pg[b-34bznndmm0] {
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.pg:hover:not(:disabled):not(.current)[b-34bznndmm0] { background: var(--chip); }
.pg.current[b-34bznndmm0] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    cursor: default;
}
.pg.nav[b-34bznndmm0] { font-weight: 500; }
.pg:disabled[b-34bznndmm0] { opacity: 0.45; cursor: default; }
.pg-gap[b-34bznndmm0] { padding: 0 0.25rem; color: var(--muted); align-self: flex-end; }

.pageinfo[b-34bznndmm0] {
    text-align: center;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ==================== mode switch + merged face UI ==================== */

/* ---------- mode switch in the header ---------- */
.modewrap[b-34bznndmm0] { display: flex; align-items: center; gap: 0.6rem; }
.modelabel[b-34bznndmm0] { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.modeswitch[b-34bznndmm0] {
    display: inline-flex;
    background: var(--chip);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
}
.mode-btn[b-34bznndmm0] {
    display: inline-flex; align-items: center; gap: 0.4rem;
    border: 0; background: none; cursor: pointer;
    font-size: 0.85rem; font-weight: 650; color: var(--muted);
    padding: 0.4rem 0.9rem; border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
.mode-btn .m-ico[b-34bznndmm0] { font-size: 0.95rem; line-height: 1; }
.mode-btn:hover:not(.active)[b-34bznndmm0] { color: var(--text); }
.mode-btn.active[b-34bznndmm0] {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
}

/* ---------- active-mode note ---------- */
.modenote[b-34bznndmm0] {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    margin: 0 0 1.25rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem; color: var(--muted);
    background: var(--chip); border: 1px solid var(--line); border-radius: 8px;
}
.badge-mode[b-34bznndmm0] {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
    color: #fff; background: var(--accent);
    padding: 0.18rem 0.55rem; border-radius: 6px;
}

/* ---------- enrolled people panel ---------- */
.enroll[b-34bznndmm0] { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 1.25rem; overflow: hidden; }
.enroll-head[b-34bznndmm0] {
    display: flex; align-items: center; gap: 0.6rem; width: 100%;
    padding: 0.85rem 1.1rem; background: none; border: 0; cursor: pointer;
    font-size: 0.98rem; font-weight: 650; color: var(--text); text-align: left;
}
.enroll-head .ico[b-34bznndmm0] { font-size: 1.15rem; line-height: 1; }
.enroll-head .chevron[b-34bznndmm0] { margin-left: auto; font-size: 0.7rem; color: var(--muted); }
.enroll-body[b-34bznndmm0] { padding: 0 1.1rem 1.1rem; }
.enroll-form[b-34bznndmm0] { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.name-input[b-34bznndmm0] {
    flex: 0 1 220px; padding: 0.5rem 0.7rem; font-size: 0.9rem;
    color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
}
.name-input:focus[b-34bznndmm0] { outline: 2px solid var(--accent); outline-offset: -1px; }
.file-btn[b-34bznndmm0] {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.9rem; font-size: 0.88rem; font-weight: 550; color: var(--text);
    background: var(--chip); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; max-width: 240px;
}
.file-btn :global(input[type=file])[b-34bznndmm0] { width: 0.1px; height: 0.1px; opacity: 0; position: absolute; overflow: hidden; z-index: -1; }
.file-btn span[b-34bznndmm0] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-btn[b-34bznndmm0] {
    padding: 0.5rem 1.1rem; font-size: 0.9rem; font-weight: 650; color: #fff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8); border: 0; border-radius: 9px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.add-btn:hover:not(:disabled)[b-34bznndmm0] { filter: brightness(1.08); }
.add-btn:disabled[b-34bznndmm0] { opacity: 0.5; cursor: default; box-shadow: none; }
.enroll-msg[b-34bznndmm0] { font-size: 0.84rem; font-weight: 500; }
.enroll-msg.ok[b-34bznndmm0] { color: #059669; }
.enroll-msg.err[b-34bznndmm0] { color: #dc2626; }
.enroll-hint[b-34bznndmm0] { margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--muted); }
.gallery-empty[b-34bznndmm0] {
    margin-top: 0.9rem; padding: 0.9rem; font-size: 0.85rem; color: var(--muted);
    background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; text-align: center;
}
.gallery[b-34bznndmm0] { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.person[b-34bznndmm0] {
    position: relative; display: flex; align-items: center; gap: 0.55rem;
    padding: 0.4rem 0.7rem 0.4rem 0.4rem; background: var(--bg);
    border: 1px solid var(--line); border-radius: 999px;
}
.avatar[b-34bznndmm0] {
    width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; font-weight: 700; font-size: 0.95rem;
}
.avatar img[b-34bznndmm0] { width: 100%; height: 100%; object-fit: cover; }
.pname[b-34bznndmm0] { font-size: 0.9rem; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-del[b-34bznndmm0] {
    width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; line-height: 1; color: var(--muted); background: var(--chip);
    border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.p-del:hover[b-34bznndmm0] { color: #fff; background: #dc2626; border-color: #dc2626; }

/* ---------- face count badge on the thumbnail ---------- */
.thumb .facecount[b-34bznndmm0] {
    position: absolute; right: 8px; bottom: 8px;
    font-size: 0.68rem; font-weight: 700;
    background: rgba(37, 99, 235, 0.9); color: #fff;
    padding: 0.2rem 0.5rem; border-radius: 6px;
}

/* ---------- result badges + faces list ---------- */
.badge.none[b-34bznndmm0] { background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.badge.unknown[b-34bznndmm0] { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.faces[b-34bznndmm0] { display: flex; flex-direction: column; gap: 0.35rem; }
.face-row[b-34bznndmm0] {
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
    padding: 0.4rem 0.6rem; border-radius: 9px; font-size: 0.9rem;
}
.face-row.is-known[b-34bznndmm0] { background: #ecfdf5; border: 1px solid #a7f3d0; }
.face-row.is-unknown[b-34bznndmm0] { background: #fff7ed; border: 1px solid #fed7aa; }
.face-row .who[b-34bznndmm0] { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--text); }
.face-row .face-ico[b-34bznndmm0] { font-size: 0.9rem; line-height: 1; }
.face-row.is-known .who[b-34bznndmm0] { color: #047857; }
.face-row.is-unknown .who[b-34bznndmm0] { color: #c2410c; }
.face-row .sim[b-34bznndmm0] { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.82rem; color: var(--muted); }

@media (prefers-color-scheme: dark) {
    .face-row.is-known[b-34bznndmm0] { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.35); }
    .face-row.is-known .who[b-34bznndmm0] { color: #34d399; }
    .face-row.is-unknown[b-34bznndmm0] { background: rgba(234, 88, 12, 0.10); border-color: rgba(234, 88, 12, 0.35); }
    .face-row.is-unknown .who[b-34bznndmm0] { color: #fb923c; }
    .badge.unknown[b-34bznndmm0] { background: rgba(234, 88, 12, 0.12); color: #fb923c; border-color: rgba(234, 88, 12, 0.35); }
}

/* ---------- upload (simulate capture) button ---------- */
.upload-btn[b-34bznndmm0] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 0.6rem 1.15rem;
    cursor: pointer;
    transition: background 0.15s ease, filter 0.15s ease;
}
.upload-btn:hover[b-34bznndmm0] { background: var(--chip); }
.upload-btn .up-ico[b-34bznndmm0] { font-size: 1.05rem; line-height: 1; color: var(--accent); }
.upload-btn.busy[b-34bznndmm0] { opacity: 0.6; cursor: default; }
.upload-btn :global(input[type=file])[b-34bznndmm0] {
    width: 0.1px; height: 0.1px; opacity: 0; position: absolute; overflow: hidden; z-index: -1;
}
