/* The Collector — new mobile-first UI
   Dark, neon-gradient aesthetic. Mobile-first, centred app shell on desktop. */

:root {
    /* Fallback tokens — overridden per user by nu-theme-vars in layout head */
    --collector-blue: #1E5EFF;
    --deep-blue: #0B1C3D;
    --soft-blue: #5FA8FF;
    --bg: #0B1C3D;
    --bg-2: #101a33;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.07);
    --stroke: rgba(255, 255, 255, 0.09);
    --stroke-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f5fb;
    --muted: #9aa0b8;
    --faint: #6b7191;
    --brand-1: var(--collector-blue);
    --brand-2: #5b8fff;
    --brand-3: var(--soft-blue);
    --accent: var(--soft-blue);
    --danger: #fb7185;
    --gold: #f5b942;
    --grad: linear-gradient(110deg, var(--collector-blue) 0%, var(--brand-2) 55%, var(--soft-blue) 100%);
    --grad-soft: linear-gradient(135deg, rgba(30, 94, 255, 0.2), rgba(95, 168, 255, 0.14));
    --glow-1: rgba(30, 94, 255, 0.2);
    --glow-2: rgba(63, 131, 255, 0.16);
    --glow-3: rgba(95, 168, 255, 0.12);
    --stroke-brand: rgba(91, 143, 255, 0.42);
    --stroke-brand-strong: rgba(91, 143, 255, 0.55);
    --stroke-brand-soft: rgba(30, 94, 255, 0.34);
    --fab-shadow: rgba(30, 94, 255, 0.5);
    --avatar-ring: rgba(91, 143, 255, 0.5);
    --ring-strong: rgba(91, 143, 255, 0.55);
    --shadow-brand: rgba(30, 94, 255, 0.55);
    --shadow-brand-strong: rgba(91, 143, 255, 0.6);
    --shadow-brand-xl: rgba(91, 143, 255, 0.8);
    --hero-panel: linear-gradient(135deg, rgba(30, 94, 255, 0.18), rgba(95, 168, 255, 0.14));
    --panel-tint: linear-gradient(135deg, rgba(95, 168, 255, 0.08), rgba(30, 94, 255, 0.04));
    --topbar-fade: rgba(11, 28, 61, 0.92);
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
    --nav-h: 76px;
    --maxw: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    max-width: var(--maxw);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Top bar ---------- */
.nu-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top) + 16px) 20px 12px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
}
.nu-topbar-titles { flex: 1; min-width: 0; }
.nu-topbar-titles h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nu-topbar-titles p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.nu-topbar-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.nu-topbar-actions .nu-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
}
.nu-topbar-icon { position: relative; }
.nu-topbar-icon.is-active,
.nu-settings-btn.is-active { border-color: var(--stroke-brand-strong); color: var(--brand-2); background: var(--grad-soft); }
.nu-topbar-icon.has-unread { border-color: var(--stroke-brand); color: var(--brand-1); }
.nu-icon-badge {
    position: absolute; top: 7px; right: 7px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-1);
    box-shadow: 0 0 0 2px var(--surface);
    pointer-events: none;
}
.nu-settings-btn .nu-gear-icon { display: block; }

.nu-iconbtn {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--stroke);
    color: var(--text);
}
.nu-iconbtn:active { transform: scale(0.94); }

/* ---------- Generic layout ---------- */
.nu-wrap { padding: 0 20px 28px; }
.nu-section { margin-top: 26px; }
.nu-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.nu-section-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.nu-section-head a { font-size: 13px; font-weight: 600; color: var(--brand-1); }

.nu-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.nu-grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Home: greeting ---------- */
.nu-greeting { display: flex; align-items: center; gap: 14px; padding: 8px 20px 4px; }
.nu-greeting-hit {
    flex: 0 0 auto;
    border-radius: 50%;
    line-height: 0;
    text-decoration: none;
}
.nu-greeting-hit:active { opacity: 0.85; }
.nu-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; flex: 0 0 auto;
    background: var(--grad-soft);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px var(--avatar-ring);
}
.nu-avatar-fallback {
    width: 50px; height: 50px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 800; font-size: 20px;
    background: var(--grad); color: #fff;
}
.nu-greeting .g-name { font-size: 19px; font-weight: 800; margin: 0; }
.nu-greeting .g-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }

.nu-profile-public-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 20px 0;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}
.nu-profile-public-link .ppl-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad-soft);
    color: var(--brand-1);
    flex: 0 0 auto;
}
.nu-profile-public-link .ppl-body { flex: 1; min-width: 0; }
.nu-profile-public-link strong { display: block; font-size: 14px; font-weight: 700; }
.nu-profile-public-link small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.nu-profile-public-link .ppl-arrow { color: var(--brand-1); font-size: 18px; font-weight: 700; flex: 0 0 auto; }
.nu-profile-account { margin-top: 8px; padding-bottom: 12px; }
.nu-profile-logout { display: block; width: 100%; margin-top: 12px; text-align: center; text-decoration: none; }

.nu-profile-private-note {
    margin: 12px 20px 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.1);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}
.nu-profile-private-note a { color: var(--brand-1); font-weight: 700; text-decoration: none; }

/* ---------- Stat overview card ---------- */
.nu-overview { margin: 14px 20px 0; padding: 18px; }
.nu-overview .ov-label {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--faint); font-weight: 700; margin-bottom: 14px;
}
.nu-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
.nu-stat .s-top { display: flex; align-items: center; gap: 7px; }
.nu-stat .s-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-1); }
.nu-stat .s-ico svg { width: 16px; height: 16px; }
.nu-stat .s-val { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 8px; }
.nu-stat .s-lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.nu-stat .s-delta { font-size: 11px; font-weight: 700; color: var(--accent); }
.nu-stat .s-sub { font-size: 10px; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
a.nu-stat-link { display: block; text-decoration: none; color: inherit; border-radius: 12px; transition: background 0.15s ease; }
a.nu-stat-link:active { background: rgba(255,255,255,0.04); }
a.nu-stat-link.nu-stat-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
a.nu-stat-link.nu-stat-ring .s-lbl { margin-top: 6px; }

/* New-since-login collection picker */
.nu-new-products-filters {
    margin: 14px 20px 0;
    padding: 16px;
}
.nu-new-products-filters .npf-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 700;
    margin-bottom: 12px;
}
.nu-new-products-filters .nu-filter-chip {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.nu-new-products-filters .npf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.nu-new-products-filters .npf-btn {
    font-size: 12px;
    padding: 8px 12px;
}

/* progress ring */
.nu-ring { position: relative; width: 56px; height: 56px; }
.nu-ring svg { transform: rotate(-90deg); }
.nu-ring .ring-num {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 14px; font-weight: 800;
}

/* ---------- Level / progress banner ---------- */
.nu-level { margin: 16px 20px 0; padding: 16px; display: flex; gap: 14px; align-items: center; }
.nu-level .lv-badge {
    width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
    display: grid; place-items: center; font-size: 22px;
    background: var(--grad-soft); border: 1px solid var(--stroke-strong);
}
.nu-level .lv-body { flex: 1; min-width: 0; }
.nu-level .lv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nu-level .lv-title { font-size: 14px; font-weight: 700; }
.nu-level .lv-lvl { font-size: 12px; color: var(--muted); font-weight: 600; }
.nu-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 9px; }
.nu-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.nu-level .lv-sub { font-size: 11px; color: var(--faint); margin-top: 7px; }
a.nu-level-link { display: block; text-decoration: none; color: inherit; margin: 16px 20px 0; }
a.nu-level-link:active .nu-level { background: rgba(255,255,255,0.04); }
a.nu-level-link .nu-level { margin: 0; transition: background 0.15s ease; }
a.nu-level-link .lv-sub { color: var(--brand-1); font-weight: 600; }

/* ---------- Horizontal scroller of items ---------- */
.nu-hscroll {
    display: flex; gap: 14px; overflow-x: auto; padding: 2px 20px 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nu-hscroll::-webkit-scrollbar { display: none; }
.nu-mini {
    flex: 0 0 150px; scroll-snap-align: start;
}
.nu-mini .m-img {
    position: relative;
    width: 150px; height: 150px; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--surface-2); border: 1px solid var(--stroke);
}
.nu-mini .m-img img { width: 100%; height: 100%; object-fit: cover; }
.nu-mini .m-name { font-size: 13.5px; font-weight: 700; margin-top: 9px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nu-mini .m-coll { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* rarity / status chips */
.nu-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
    padding: 3px 9px; border-radius: 99px; border: 1px solid var(--stroke-strong);
    text-transform: capitalize;
}
.nu-chip.r-common    { color: #b9c0d8; border-color: rgba(185,192,216,0.4); }
.nu-chip.r-rare      { color: #5aa7ff; border-color: rgba(90,167,255,0.5); background: rgba(90,167,255,0.1); }
.nu-chip.r-epic      { color: #b48bff; border-color: rgba(180,139,255,0.5); background: rgba(180,139,255,0.1); }
.nu-chip.r-legendary { color: #f5b942; border-color: rgba(245,185,66,0.5); background: rgba(245,185,66,0.1); }
.nu-chip.r-mythic    { color: #ff7ae0; border-color: rgba(255,122,224,0.5); background: rgba(255,122,224,0.1); }
.nu-chip.is-new      { color: var(--accent); border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.1); }

.m-badge {
    position: absolute; top: 8px; left: 8px;
    backdrop-filter: blur(6px); background: rgba(7,7,15,0.55);
}
.m-tag-new { position: absolute; bottom: 8px; left: 8px; }

/* ---------- Collections list ---------- */
.nu-coll-list { display: flex; flex-direction: column; gap: 14px; }
.nu-coll {
    display: flex; gap: 14px; align-items: center; padding: 12px;
}
.nu-coll .c-img {
    width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--stroke);
}
.nu-coll .c-img img { width: 100%; height: 100%; object-fit: cover; }
.nu-coll .c-body { flex: 1; min-width: 0; }
.nu-coll .c-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-coll .c-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nu-coll .c-bar { margin-top: 9px; }
.nu-coll .c-pct { font-size: 13px; font-weight: 800; flex: 0 0 auto; }

/* ---------- Collection detail header ---------- */
.nu-cd-hero { margin: 8px 20px 0; padding: 18px; display: flex; gap: 18px; align-items: center; }
.nu-cd-hero .ring-wrap { flex: 0 0 auto; }
.nu-cd-statline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.nu-cd-statline .v { font-size: 18px; font-weight: 800; }
.nu-cd-statline .l { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* filters */
.nu-filters { display: flex; gap: 8px; overflow-x: auto; padding: 16px 20px 4px; scrollbar-width: none; }
.nu-filters::-webkit-scrollbar { display: none; }
.nu-filter {
    flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 8px 15px; border-radius: 99px; background: var(--surface);
    border: 1px solid var(--stroke);
}
.nu-filter.is-active { color: #fff; background: var(--grad); border-color: transparent; }

.nu-coll-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 0;
}
.nu-coll-toolbar .nu-coll-quick {
    flex: 1;
    min-width: 0;
    padding: 0;
}
.nu-coll-filter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 99px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
}
.nu-coll-filter-btn:active { background: rgba(255,255,255,0.05); }
.nu-coll-filter-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: var(--grad);
}
.nu-coll-search { margin-top: 12px; }
.nu-catalogue-search { margin-top: 14px; }
.nu-catalogue-empty { margin-top: 8px; }

/* ---------- Push notifications (new UI) ---------- */
.nu-push-banner {
    margin: 0 20px 12px;
    border-color: var(--stroke-brand);
    background: var(--grad-soft);
}
.nu-push-banner .tca-push-banner__text { color: var(--text); font-size: 14px; }
.nu-push-banner .tca-push-banner__actions { gap: 10px; }
.nu-push-status {
    margin: 0 20px 8px;
    color: var(--muted);
}
.nu-push-status--live,
.tca-push-status.nu-push-status.tca-push-status--live { color: var(--brand-1); }
.nu-push-status--warn,
.tca-push-status.nu-push-status.tca-push-status--warn { color: #f59e0b; }
.tca-push-flash {
    margin: 12px 20px 0;
    border-color: var(--stroke-brand);
    background: var(--grad-soft);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tca-push-flash.is-visible { opacity: 1; transform: translateY(0); }
.tca-push-flash strong { color: var(--text); }
.tca-push-flash span { color: var(--muted); }
.tca-push-flash__link {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-1);
    text-decoration: none;
}

/* ---------- Ownership evidence ---------- */
.nu-evidence-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.nu-evidence-sheet.is-open { pointer-events: auto; opacity: 1; visibility: visible; }
.nu-evidence-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 12, 0.78);
    backdrop-filter: blur(6px);
}
.nu-evidence-panel {
    position: relative;
    width: min(100%, 520px);
    max-height: min(88vh, 720px);
    overflow: auto;
    margin: 0;
    padding: 22px 20px calc(env(safe-area-inset-bottom) + 22px);
    border-radius: 22px 22px 0 0;
    background: var(--bg-2);
    border: 1px solid var(--stroke);
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.nu-evidence-sheet.is-open .nu-evidence-panel { transform: translateY(0); }
.nu-evidence-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}
.nu-evidence-title { margin: 0 36px 6px 0; font-size: 18px; font-weight: 800; }
.nu-evidence-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.nu-evidence-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke-brand);
    background: var(--grad-soft);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}
.nu-evidence-label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
}
.nu-evidence-file,
.nu-evidence-text {
    width: 100%;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}
.nu-evidence-text { min-height: 88px; resize: vertical; }
.nu-evidence-actions { display: flex; gap: 10px; margin-top: 4px; }
.nu-evidence-actions .nu-btn { flex: 1; }
.t-check.pending {
    border-color: rgba(245, 158, 11, 0.55);
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}
.t-state.pending { color: #f59e0b; }
.nu-toast.warn { border-color: rgba(245, 158, 11, 0.5); }

/* ---------- Country variant picker ---------- */
.nu-variant-sheet {
    position: fixed;
    inset: 0;
    z-index: 121;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.nu-variant-sheet.is-open { pointer-events: auto; opacity: 1; visibility: visible; }
.nu-variant-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 12, 0.78);
    backdrop-filter: blur(6px);
}
.nu-variant-panel {
    position: relative;
    width: min(100%, 520px);
    max-height: min(88vh, 720px);
    overflow: auto;
    margin: 0;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: var(--bg-2);
    border: 1px solid var(--stroke);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.32, .72, 0, 1);
}
.nu-variant-sheet.is-open .nu-variant-panel { transform: translateY(0); }
.nu-variant-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}
.nu-variant-title { margin: 0 36px 6px 0; font-size: 18px; font-weight: 800; }
.nu-variant-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.nu-variant-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: var(--bg);
}
.nu-variant-product img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    flex-shrink: 0;
}
.nu-variant-pname { font-size: 14px; font-weight: 700; line-height: 1.3; }
.nu-variant-psub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nu-variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nu-vp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.nu-vp-chip:hover { border-color: var(--stroke-brand-strong); }
.nu-vp-chip--owned {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
}
.nu-vp-chip--viewer { box-shadow: 0 0 0 2px rgba(90, 167, 255, 0.35); }
.nu-vp-chip--pending { opacity: .55; pointer-events: none; }
.nu-vp-flag { font-size: 16px; line-height: 1; }
.nu-vp-master { opacity: .85; font-size: 11px; }
.nu-vp-tick { margin-left: 2px; opacity: .9; }

.nu-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nu-filter-sheet.is-open { pointer-events: auto; opacity: 1; visibility: visible; }
.nu-filter-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 12, 0.78);
    backdrop-filter: blur(6px);
}
.nu-filter-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 720px);
    margin: 0 auto;
    max-width: var(--maxw);
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--bg-2);
    border: 1px solid var(--stroke);
    border-bottom: 0;
    transform: translateY(100%);
    transition: transform 0.24s ease;
    overflow: auto;
}
.nu-filter-sheet.is-open .nu-filter-sheet-panel { transform: translateY(0); }
.nu-filter-sheet-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}
.nu-filter-sheet-title { margin: 0 36px 4px 0; font-size: 18px; font-weight: 800; }
.nu-filter-sheet-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.nu-filter-sheet-body { display: flex; flex-direction: column; gap: 16px; }
.nu-filter-group h3 {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 700;
}
.nu-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nu-filter-chip {
    padding: 7px 12px;
    border-radius: 99px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}
.nu-filter-chip.is-active {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
}
.nu-filter-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--stroke);
}

/* product grid */
.nu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 20px 0;
    align-items: stretch;
}
.nu-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--stroke);
}
.nu-tile .t-img {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 100%;
    background: var(--surface-2);
    overflow: hidden;
}
.nu-tile .t-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.nu-tile.is-missing .t-img img { filter: grayscale(1) brightness(0.45); }
.nu-tile .t-ov {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7px;
    background: linear-gradient(
        180deg,
        rgba(7, 7, 15, 0.62) 0%,
        rgba(7, 7, 15, 0.08) 38%,
        rgba(7, 7, 15, 0.05) 58%,
        rgba(7, 7, 15, 0.82) 100%
    );
}
.nu-tile .t-ov-top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 6px;
    padding-right: 30px;
}
.nu-tile .t-ov-flag {
    font-size: 17px; line-height: 1;
    padding: 4px 7px; border-radius: 9px;
    background: rgba(7, 7, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.nu-tile .t-ov-rarity {
    font-size: 9px; padding: 3px 7px; max-width: 58%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    backdrop-filter: blur(8px);
    background: rgba(7, 7, 15, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}
.nu-tile .t-ov-foot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 76px;
    justify-content: flex-end;
}
.nu-tile .t-ov-name {
    padding: 0 2px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.nu-tile .t-ov-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    min-height: 24px;
}
.nu-tile .t-ov-stat {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.01em;
    color: rgba(244, 245, 251, 0.96);
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 7px; border-radius: 8px;
    background: rgba(7, 7, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}
.nu-tile .t-ov-stat svg { opacity: 0.9; flex-shrink: 0; }
.nu-tile .t-ov-owners { color: #c8f5e4; border-color: rgba(52, 211, 153, 0.28); }
.nu-tile .t-ov-variants { color: #d4e4ff; border-color: rgba(90, 167, 255, 0.28); }
.nu-tile .t-lock {
    position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint);
}
.nu-tile .t-body {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 11px 10px;
    display: flex;
    align-items: center;
}
.nu-tile .t-name { font-size: 13px; font-weight: 700; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.nu-tile .t-foot { display: flex; align-items: center; justify-content: flex-end; margin-top: 0; width: 100%; }
.nu-tile .t-state { font-size: 11.5px; font-weight: 700; }
.nu-tile .t-state.owned { color: var(--accent); }
.nu-tile .t-state.wish { color: var(--brand-2); }
.nu-tile .t-state.missing { color: var(--faint); }
.nu-tile .t-check {
    position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(7,7,15,0.6); border: 1px solid var(--stroke-strong);
    color: var(--muted);
}
.nu-tile .t-check.owned { background: var(--grad); border-color: transparent; color: #fff; }
.nu-tile .t-check.wish { color: var(--brand-2); border-color: var(--stroke-brand-strong); }

/* ---------- Item detail ---------- */
.nu-item-hero { padding: 8px 20px 0; display: flex; flex-direction: column; align-items: center; }
.nu-item-hero .ih-img {
    width: 220px; max-width: 70%; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--stroke);
    box-shadow: 0 30px 60px -28px var(--shadow-brand);
}
.nu-item-hero .ih-img img { width: 100%; height: 100%; object-fit: contain; }
.nu-item-meta { padding: 18px 20px 0; }
.nu-item-meta .im-coll { font-size: 12.5px; font-weight: 700; color: var(--brand-1); }
.nu-item-meta .im-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.nu-item-meta .im-variant { font-size: 14px; color: var(--muted); }
.nu-item-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.nu-item-variants {
    margin: 16px 20px 0;
    padding: 16px 18px;
}
.nu-item-variants-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.nu-item-variants-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--faint);
}
.nu-item-variants-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--grad-soft);
    border: 1px solid var(--stroke-brand);
    color: var(--text);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}
.nu-item-variants-nudge {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-1);
    text-decoration: none;
}
.nu-item-variants-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nu-item-v-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.nu-item-v-chip:hover { border-color: var(--stroke-brand-strong); }
.nu-item-v-chip.is-active {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(90, 167, 255, 0.22);
}
.nu-item-v-chip.is-owned { border-color: rgba(16, 185, 129, 0.55); }
.nu-item-v-chip.is-active.is-owned { border-color: rgba(255, 255, 255, 0.35); }
.nu-item-v-flag { font-size: 15px; line-height: 1; }
.nu-item-v-master { font-size: 11px; opacity: .85; }
.nu-item-v-owned { font-size: 12px; color: #34d399; }
.nu-item-v-chip.is-active .nu-item-v-owned { color: #ecfdf5; }

.nu-item-barcodes {
    margin: 16px 20px 0;
    padding: 16px 18px;
}
.nu-item-barcodes-head { margin-bottom: 12px; }
.nu-item-barcodes-title {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--faint);
}
.nu-item-barcodes-sub {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--muted);
}
.nu-item-barcodes-list { display: grid; gap: 12px; }
.nu-item-barcode-row {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: var(--bg);
}
.nu-item-barcode-country {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.nu-item-barcode-muted { color: var(--faint); }
.nu-item-barcode-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
}
.nu-item-barcode-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    min-height: 44px;
    background: #fff;
}
.nu-item-barcode-code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #212529;
    user-select: all;
    word-break: break-all;
    text-align: center;
}

.nu-kv { margin: 18px 20px 0; padding: 4px 0; }
.nu-kv .kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); }
.nu-kv .kv-row:last-child { border-bottom: 0; }
.nu-kv .kv-k { font-size: 13px; color: var(--muted); }
.nu-kv .kv-v { font-size: 13px; font-weight: 600; text-align: right; }

.nu-actions-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; }
.nu-actions-row .nu-actions-span { grid-column: 1 / -1; }

/* ---------- Buttons ---------- */
.nu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 15px 18px; border-radius: 15px; border: 0;
    font-size: 15px; font-weight: 700; color: #fff; background: var(--grad);
}
.nu-btn:active { transform: scale(0.98); }
.nu-btn.secondary { background: var(--surface-2); border: 1px solid var(--stroke-strong); color: var(--text); }
.nu-btn.danger { background: rgba(251,113,133,0.14); color: var(--danger); border: 1px solid rgba(251,113,133,0.4); }
.nu-btn.ghost { background: transparent; border: 1px solid var(--stroke-strong); color: var(--text); }
.nu-btn:disabled { opacity: 0.55; }

/* ---------- Profile ---------- */
.nu-profile-head { padding: 8px 20px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nu-profile-head .ph-avatar, .nu-profile-head .ph-avatar-fb {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 3px var(--ring-strong), 0 12px 30px -10px var(--shadow-brand-strong);
}
.nu-profile-head .ph-avatar-fb { display: grid; place-items: center; font-size: 34px; font-weight: 800; background: var(--grad); color: #fff; }
.nu-profile-head .ph-name { font-size: 22px; font-weight: 800; margin: 14px 0 2px; display: flex; align-items: center; gap: 6px; }
.nu-profile-head .ph-handle { font-size: 13px; color: var(--muted); }
.nu-verified { color: var(--brand-1); }
.nu-profile-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 20px 14px 0; padding: 16px 6px; }
.nu-profile-stats .ps { text-align: center; }
.nu-profile-stats .pv { font-size: 16px; font-weight: 800; }
.nu-profile-stats .pl { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.nu-collector-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; padding: 0 16px; }
.nu-id-badge.id-admin { color: #93c5fd; border-color: rgba(147, 197, 253, 0.45); background: rgba(59, 130, 246, 0.12); }
.nu-id-badge.id-champion { color: var(--gold); border-color: rgba(245, 185, 66, 0.45); background: rgba(245, 185, 66, 0.1); }
.nu-id-badge.id-mod { color: var(--brand-3); border-color: var(--stroke-brand); background: color-mix(in srgb, var(--brand-2) 12%, transparent); }
.nu-collector-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 16px 20px 0; }
.nu-collector-actions .nu-btn { flex: 1 1 auto; min-width: 100px; max-width: 160px; padding: 11px 14px; font-size: 13px; }
.nu-collector-stats { margin-top: 14px; }
.nu-collector-collection-hero { margin-top: 14px; }
.nu-earned-badges { margin: 14px 20px 0; padding: 14px 16px; }
.nu-earned-badges .eb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.nu-earned-badges .eb-head span { color: var(--muted); font-size: 12px; }
.nu-earned-badges .eb-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nu-earned-badges .eb-chip {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; padding: 6px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--stroke);
    color: var(--gold); -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nu-earned-badges .eb-chip:hover,
.nu-earned-badges .eb-chip:focus-visible {
    border-color: var(--stroke-brand-strong);
    background: var(--grad-soft);
    outline: none;
    transform: translateY(-1px);
}
.nu-earned-badges .eb-chip:active { transform: scale(0.96); }
.nu-earned-badges .eb-chip img,
.nu-earned-badges .eb-chip .eb-icon {
    width: 36px; height: 36px; object-fit: contain; display: block;
}
.nu-earned-badges .eb-fa { font-size: 22px; color: var(--gold); line-height: 1; }

.nu-badge-sheet {
    position: fixed; inset: 0; z-index: 120;
    display: flex; align-items: flex-end; justify-content: center;
    pointer-events: none; opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nu-badge-sheet.is-open { pointer-events: auto; opacity: 1; visibility: visible; }
.nu-badge-sheet-backdrop {
    position: absolute; inset: 0;
    background: rgba(4, 4, 12, 0.72);
    backdrop-filter: blur(4px);
}
.nu-badge-sheet-panel {
    position: relative; z-index: 1;
    width: min(100%, var(--maxw));
    margin: 0 auto;
    padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--bg-2);
    border: 1px solid var(--stroke);
    border-bottom: 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    transition: transform 0.24s ease;
    text-align: center;
}
.nu-badge-sheet.is-open .nu-badge-sheet-panel { transform: translateY(0); }
.nu-badge-sheet-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: var(--surface); color: var(--muted);
    font-size: 22px; line-height: 1; cursor: pointer;
}
.nu-badge-sheet-icon {
    width: 88px; height: 88px; margin: 4px auto 14px;
    border-radius: 18px; display: grid; place-items: center;
    background: var(--grad-soft); border: 1px solid var(--stroke-strong);
}
.nu-badge-sheet-img { width: 64px; height: 64px; object-fit: contain; display: block; }
.nu-badge-sheet-fa { font-size: 36px; color: var(--gold); line-height: 1; }
.nu-badge-sheet-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.nu-badge-sheet-desc { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.nu-badge-sheet-meta { font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.nu-badge-sheet-meta .bm-pill {
    display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px;
    border: 1px solid var(--stroke); background: var(--surface);
    font-weight: 700; color: var(--text);
}
.nu-collector-collections { padding-top: 14px; }
.nu-coll-pick { text-decoration: none; color: inherit; border: 1px solid transparent; border-radius: var(--radius-sm); padding-bottom: 8px; }
.nu-coll-pick.is-active { border-color: var(--stroke-brand-strong); background: var(--grad-soft); }
a.nu-tile.nu-public-tile,
article.nu-tile.nu-public-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.nu-public-tile .nu-public-tile-link { display: block; text-decoration: none; color: inherit; flex: 1 1 auto; min-height: 0; }
.nu-public-tile .t-pub-badge {
    position: absolute; top: 8px; right: 8px; z-index: 4;
    font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 7px; border-radius: 99px;
    background: rgba(7, 7, 15, 0.78); border: 1px solid rgba(255, 255, 255, 0.12);
}
.nu-public-tile .t-pub-badge.owned,
.nu-public-tile .t-pub-badge.wish {
    top: 38px;
    left: 7px;
    right: auto;
}
.nu-public-tile .t-ov-top {
    padding-right: 4px;
}
.nu-public-tile .t-ov-rarity {
    max-width: calc(100% - 12px);
}
.nu-public-tile .t-pub-badge.owned { color: var(--accent); border-color: rgba(52, 211, 153, 0.35); }
.nu-public-tile .t-pub-badge.wish { color: var(--brand-2); border-color: var(--stroke-brand); }
.nu-public-tile .t-pub-badge.offer {
    top: auto; bottom: 8px; left: 8px; right: auto;
    color: var(--accent); border-color: rgba(52, 211, 153, 0.45);
}
.nu-public-tile .t-pub-coll { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-collector-watch-tile .nu-collector-msg-btn {
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
}
.nu-collector-watch-banner { margin: 14px 20px 0; }
.nu-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 20px 6px; scrollbar-width: none; }
.nu-tabs::-webkit-scrollbar { display: none; }

/* ---------- Scan ---------- */
.nu-scan-page.has-match .nu-scan-capture,
.nu-scan-page.has-search .nu-scan-capture {
    display: none;
}
.nu-scan-outcomes {
    padding: 16px 20px 0;
}
.nu-scan-tip {
    margin-top: 16px;
}
.nu-scan-tip p {
    font-size: 12.5px;
    color: var(--faint);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}
.nu-scan-stage {
    position: relative; margin: 0; height: 42vh; max-height: 360px; min-height: 220px; background: #000; overflow: hidden;
}
.nu-scan-stage video { width: 100%; height: 100%; object-fit: cover; }
.nu-scan-frame {
    position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.nu-scan-frame .reticle {
    width: 66%; max-width: 280px; aspect-ratio: 1; border-radius: 26px;
    box-shadow: 0 0 0 9999px rgba(7,7,15,0.55);
    position: relative;
}
.nu-scan-frame .reticle::before, .nu-scan-frame .reticle::after {
    content: ''; position: absolute; width: 34px; height: 34px;
    border: 3px solid var(--brand-2);
}
.nu-scan-frame .reticle::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.nu-scan-frame .reticle::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.nu-scan-laser {
    position: absolute; left: 17%; right: 17%; height: 2px; top: 50%;
    background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
    box-shadow: 0 0 14px var(--brand-2);
    animation: nuScan 2.4s ease-in-out infinite;
}
@keyframes nuScan { 0%,100% { transform: translateY(-90px); } 50% { transform: translateY(90px); } }
.nu-scan-status {
    position: absolute; left: 12px; right: 12px; bottom: 18px; text-align: center;
    font-size: 13px; font-weight: 600; color: #fff;
    pointer-events: none;
}
.nu-scan-status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); margin-right: 7px; animation: nuPulse 1.1s infinite; }
@keyframes nuPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.nu-scan-cam-row {
    display: flex;
    justify-content: center;
    padding: 12px 20px 0;
}
.nu-scan-cam-btn {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 1;
    white-space: nowrap;
    width: auto;
    min-width: 160px;
    padding: 12px 18px;
}
.nu-scan-cam-btn.is-hidden,
.nu-scan-cam-btn[hidden],
.nu-scan-stage.is-live ~ .nu-scan-cam-row {
    display: none !important;
}
.nu-scan-manual {
    display: flex;
    gap: 10px;
    padding: 14px 20px 12px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}
.nu-scan-manual-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border: 1px solid var(--stroke-strong);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 14px;
    font-size: 16px; /* 16px avoids iOS/Android focus zoom */
}
.nu-scan-manual-input::placeholder { color: var(--faint); }
.nu-scan-manual .nu-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    padding: 14px 16px;
}
.nu-scan-request {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}
.nu-scan-request__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-top: 4px;
}
.nu-scan-request__select,
.nu-scan-request input.nu-scan-manual-input {
    width: 100%;
    border: 1px solid var(--stroke-strong);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 16px;
}
.nu-scan-request__status {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}
.nu-scan-miss .nu-scan-again {
    margin-top: 10px;
}
.nu-scan-link-hint {
    margin: -4px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.nu-scan-link-search {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.nu-scan-link-search .nu-scan-manual-input {
    flex: 1 1 auto;
    min-width: 0;
}
.nu-scan-link-search .nu-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 88px;
    padding: 12px 14px;
}
.nu-scan-link-results {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding: 4px 0;
}
.nu-scan-link-empty {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    padding: 10px 6px;
}
.nu-scan-link-pick {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 1px solid var(--stroke);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 14px;
    padding: 10px;
}
.nu-scan-link-pick.is-selected {
    border-color: var(--stroke-brand-strong);
    background: var(--grad-soft);
}
.nu-scan-link-pick img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--surface);
    flex: 0 0 auto;
}
.nu-scan-link-pick span {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.nu-scan-link-pick strong {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nu-scan-link-pick small {
    font-size: 12px;
    color: var(--muted);
}
.nu-scan-new-toggle {
    margin-top: 12px;
}
.nu-scan-new-panel {
    margin-top: 10px;
    padding-top: 4px;
}
.nu-scan-hit {
    padding: 18px;
    margin: 0;
}
.nu-scan-hit__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--brand-1);
    background: var(--grad-soft);
    margin-bottom: 14px;
}
.nu-scan-hit__main {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}
.nu-scan-hit__img {
    width: 108px;
    height: 108px;
    border-radius: 18px;
    object-fit: contain;
    background: var(--surface-2);
    flex: 0 0 auto;
    padding: 8px;
}
.nu-scan-hit__copy { min-width: 0; flex: 1; }
.nu-scan-hit__name {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.nu-scan-hit__coll {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.nu-scan-hit__meta {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}
.nu-scan-hit__lead {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.45;
}
.nu-scan-hit__actions {
    display: grid;
    gap: 10px;
}
.nu-scan-hit__own,
.nu-scan-hit__view,
.nu-scan-hit .nu-scan-again,
.nu-scan-hit #nuMatchDiffToggle {
    width: 100%;
    text-align: center;
    text-decoration: none;
}
.nu-scan-diff {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--stroke);
}
.nu-scan-diff__tabs {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.nu-scan-diff__tabs .nu-btn.is-active {
    border-color: var(--brand-1);
    color: var(--brand-1);
    background: var(--grad-soft);
}
.nu-scan-diff .nu-scan-request {
    margin-top: 0;
}
.nu-scan-hit--multi .nu-scan-hit__list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}
.nu-scan-hit--multi .nu-result {
    margin: 0;
}
.nu-scan-search-empty {
    padding: 30px 10px;
}
.nu-scan-again-wrap { padding: 4px 0 8px; margin-bottom: 8px; }
.nu-scan-again { width: 100%; }

.nu-scan-tools { display: flex; gap: 10px; padding: 16px 20px 0; }
.nu-search-box { position: relative; margin: 16px 20px 0; }
.nu-search-box input {
    width: 100%; padding: 14px 16px 14px 44px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--stroke); color: var(--text); font-size: 15px;
}
.nu-search-box input::placeholder { color: var(--faint); }
.nu-search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); }

.nu-result {
    display: flex; gap: 13px; align-items: center; padding: 12px;
    margin: 0;
}
.nu-result .res-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: var(--surface-2); }
.nu-result .res-img img { width: 100%; height: 100%; object-fit: cover; }
.nu-result .res-body { flex: 1; min-width: 0; }
.nu-result .res-name { font-size: 14px; font-weight: 700; }
.nu-result .res-coll { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nu-result .res-add {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; border: 0;
    display: grid; place-items: center; background: var(--grad); color: #fff;
}
.nu-result .res-add.is-owned { background: rgba(52,211,153,0.16); color: var(--accent); }
.nu-result .res-add:disabled { opacity: 0.6; }

/* ---------- Empty states ---------- */
.nu-empty { text-align: center; padding: 50px 30px; color: var(--muted); }
.nu-empty .e-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-1); }
.nu-empty h3 { margin: 0 0 6px; color: var(--text); font-size: 17px; }
.nu-empty p { margin: 0 0 18px; font-size: 13.5px; }
.nu-empty .nu-btn { width: auto; padding: 12px 22px; }

.nu-loadmore { padding: 18px 20px 0; }

/* ---------- Activity ---------- */
.nu-activity { display: flex; gap: 11px; align-items: center; padding: 13px; margin-top: 10px; }
.nu-activity .a-ava { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; overflow: hidden; }
.nu-activity .a-ava img { width: 100%; height: 100%; object-fit: cover; }
.nu-activity .a-text { font-size: 13px; flex: 1; }
.nu-activity .a-text b { font-weight: 700; }
.nu-activity .a-time { font-size: 11px; color: var(--faint); }

/* ---------- Toast ---------- */
.nu-toast {
    position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); transform: translate(-50%, 20px);
    background: #16162a; color: #fff; padding: 12px 18px; border-radius: 13px;
    font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
    border: 1px solid var(--stroke-strong);
    opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 100; max-width: 86%;
}
.nu-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nu-toast.ok { border-color: rgba(52,211,153,0.5); }
.nu-toast.err { border-color: rgba(251,113,133,0.5); }

/* ---------- Bottom navigation ---------- */
.nu-bottomnav {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
    width: 100%; max-width: var(--maxw); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex; align-items: center; justify-content: space-around;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 72%, transparent), color-mix(in srgb, var(--bg) 96%, transparent));
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--stroke);
    z-index: 50;
}
.nu-navitem {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--faint); font-size: 10.5px; font-weight: 600; flex: 1; padding-top: 6px;
}
.nu-navitem svg { opacity: 0.85; }
.nu-navitem.is-active { color: var(--text); }
.nu-navitem.is-active svg { color: var(--brand-1); opacity: 1; }
.nu-fab {
    flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    margin-top: -26px;
    background: var(--grad);
    box-shadow: 0 0 0 5px var(--bg), 0 12px 28px -8px var(--shadow-brand-xl);
}
.nu-fab:active { transform: scale(0.94); }

/* ---------- Settings ---------- */
.nu-settings { padding: 10px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.nu-settings-block { margin: 0 20px; padding: 16px; }
.nu-settings-block .sb-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.nu-settings-block .sb-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.nu-settings-block .sb-note { margin: 10px 0 0; font-size: 11.5px; color: var(--faint); }
.nu-settings-form { display: flex; flex-direction: column; gap: 10px; }
.nu-settings-form .sf-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.nu-theme-preview {
    display: flex;
    gap: 8px;
    margin: 0 0 10px;
}
.nu-theme-preview .tp-chip {
    flex: 1;
    height: 28px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sf-input,
.nu-settings-form .sf-input {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--stroke); background: var(--surface-2); color: var(--text); font-size: 14px;
}
.nu-settings-form .sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nu-settings-inline { margin: 0 0 10px; }
.nu-settings-link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px; border-radius: 14px; text-decoration: none; color: inherit;
    background: var(--surface-2); border: 1px solid var(--stroke);
}
.nu-settings-link .sl-body strong { display: block; font-size: 14px; }
.nu-settings-link .sl-body small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.nu-settings-link .sl-arrow { color: var(--brand-1); font-weight: 800; }
.nu-settings-textlink { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand-1); text-decoration: none; }
.sf-avatar {
    position: relative; width: 88px; height: 88px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 0 0 3px var(--stroke-brand);
}
.sf-avatar img, .sf-avatar-fb { width: 100%; height: 100%; object-fit: cover; }
.sf-avatar-fb { display: grid; place-items: center; font-size: 30px; font-weight: 800; background: var(--grad); color: #fff; }
.sf-avatar-btn {
    position: absolute; inset: auto 0 0; padding: 16px 4px 5px; font-size: 9px; font-weight: 800;
    text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
.sf-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nu-pref-list { display: flex; flex-direction: column; gap: 10px; }
.nu-pref-card { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--stroke); }
.nu-pref-card.is-saving { opacity: 0.7; }
.nu-pref-card .pc-name { font-size: 14px; font-weight: 700; }
.nu-pref-card .pc-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.nu-pref-card .pc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.nu-pref-card .pc-seg-btn {
    padding: 8px 10px; border-radius: 10px; border: 1px solid var(--stroke);
    background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
}
.nu-pref-card .pc-seg-btn.is-active { color: #fff; background: var(--grad); border-color: transparent; }
.nu-hidden-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nu-hidden-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--stroke);
    font-size: 13px;
}
.nu-settings-foot { padding: 8px 20px 0; }

/* ---------- League tables ---------- */
.nu-league-hero { margin: 14px 20px 0; padding: 18px; }
.nu-league-hero .lh-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.nu-league-hero .lh-title { font-size: 22px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.02em; }
.nu-league-hero .lh-sub { font-size: 13px; color: var(--muted); margin: 0; }
.nu-league-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.nu-league-stats .ls { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); }
.nu-league-stats .ls-v { font-size: 18px; font-weight: 800; }
.nu-league-stats .ls-l { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.nu-league-controls { margin: 14px 20px 0; padding: 16px; }
.nu-league-controls .lc-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 10px; }
.nu-league-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.nu-league-pills::-webkit-scrollbar { display: none; }
.nu-league-pill {
    flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px;
    padding: 10px 14px; border-radius: 14px; min-width: 120px;
    background: var(--surface-2); border: 1px solid var(--stroke); color: var(--text); text-decoration: none;
}
.nu-league-pill.is-active { background: var(--grad-soft); border-color: var(--stroke-brand); }
.nu-league-pill .lp-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.nu-league-pill .lp-count { font-size: 11px; color: var(--muted); }
.nu-league-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nu-league-toggle input { width: 18px; height: 18px; accent-color: var(--brand-1); }

.nu-league-you { margin: 14px 20px 0; padding: 16px; }
.nu-league-you .ly-main { display: flex; gap: 12px; align-items: center; }
.nu-league-you .ly-rank {
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center; font-size: 14px; font-weight: 800;
    background: var(--grad-soft); border: 1px solid var(--stroke-strong); color: var(--brand-1);
}
.nu-league-you .ly-name { font-size: 15px; font-weight: 700; }
.nu-league-you .ly-tier { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nu-league-you .ly-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.nu-league-you .ly-metrics div { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,0.03); }
.nu-league-you .ly-metrics strong { display: block; font-size: 15px; font-weight: 800; }
.nu-league-you .ly-metrics span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

.nu-league-block { margin: 14px 20px 0; padding: 14px; }
.nu-league-block .lb-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.nu-league-block .lb-icon {
    width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
    display: grid; place-items: center; color: #fff;
}
.nu-league-diamond .lb-icon { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.nu-league-platinum .lb-icon { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.nu-league-gold .lb-icon { background: linear-gradient(135deg, #fbbf24, #f97316); }
.nu-league-silver .lb-icon { background: linear-gradient(135deg, #94a3b8, #475569); }
.nu-league-block .lb-title { font-size: 15px; font-weight: 800; margin: 0; }
.nu-league-block .lb-sub { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.nu-league-block .lb-count {
    margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted);
    padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,0.04); border: 1px solid var(--stroke);
}
.nu-league-rows { display: flex; flex-direction: column; gap: 6px; }
.nu-league-row {
    display: grid; grid-template-columns: 34px 1fr auto auto; gap: 8px; align-items: center;
    padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit;
    background: rgba(255,255,255,0.02); border: 1px solid var(--stroke);
}
.nu-league-row.is-you { background: var(--grad-soft); border-color: var(--stroke-brand-soft); }
.nu-league-row .lr-rank { font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; }
.nu-league-row .lr-name { font-size: 13.5px; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-league-row .lr-name em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--brand-1); margin-left: 4px; }
.nu-league-row .lr-owned { font-size: 11px; color: var(--muted); }
.nu-league-row .lr-pts { font-size: 12px; font-weight: 800; color: var(--brand-1); }

/* ---------- Community feed ---------- */
.nu-feed-spotlight-wrap { margin-bottom: 4px; }
.nu-feed-filters { padding: 8px 0 0; }
.nu-filter-select {
    appearance: none; -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%238b93b0' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.nu-feed-stream { display: flex; flex-direction: column; gap: 14px; padding: 14px 20px 0; }
.nu-feed-card { padding: 14px; }
.nu-feed-card.is-focused { box-shadow: 0 0 0 2px var(--stroke-brand); }

.nf-head { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }
.nf-ava, .nf-ava-fb {
    width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
    object-fit: cover; background: var(--grad-soft); border: 1px solid var(--stroke);
}
.nf-ava-fb { display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--brand-1); }
.nf-meta { min-width: 0; flex: 1; }
.nf-user { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.nf-action { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nf-pill {
    display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
    background: rgba(245,185,66,0.15); color: #f5b942; border: 1px solid rgba(245,185,66,0.35);
}

.nf-product {
    display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit;
    padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke);
}
.nf-product-img {
    width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
    background: var(--surface-2);
}
.nf-product-body { min-width: 0; }
.nf-product-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.nf-product-sub, .nf-product-coll { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nf-product-coll { color: var(--brand-1); font-weight: 600; }

.nf-gallery-img { display: block; border-radius: 12px; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--stroke); }
.nf-gallery-img img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.nf-caption { font-size: 13.5px; line-height: 1.4; margin-bottom: 8px; }
.nf-linked { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-1); text-decoration: none; margin-bottom: 8px; }

.nf-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.nf-like {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
    border: 1px solid var(--stroke-strong); background: transparent; color: var(--muted);
    font-size: 12px; font-weight: 700;
}
.nf-like.is-liked { color: #fb7185; border-color: rgba(251,113,133,0.45); background: rgba(251,113,133,0.1); }
.nf-like:disabled { opacity: 0.5; }
.nf-comment-count { font-size: 12px; font-weight: 700; color: var(--muted); }

.nf-comments { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.nf-comment { font-size: 13px; line-height: 1.35; }
.nf-comment-user { font-weight: 700; color: var(--text); text-decoration: none; }

.nf-comment-form {
    display: flex; gap: 8px; margin-top: 10px; align-items: center;
}
.nf-comment-form input {
    flex: 1; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--stroke);
    background: var(--surface-2); color: var(--text); font-size: 13px;
}
.nf-comment-form input::placeholder { color: var(--faint); }
.nf-comment-form button {
    width: 38px; height: 38px; border-radius: 12px; border: 0; flex: 0 0 auto;
    display: grid; place-items: center; background: var(--grad); color: #fff;
}

.nf-burst-scroll { padding-left: 0; padding-right: 0; align-items: stretch; }
.nf-burst-item {
    flex: 0 0 200px; display: flex; flex-direction: column;
    padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--stroke);
}
.nf-burst-item.is-focused { border-color: var(--stroke-brand); box-shadow: 0 0 0 1px var(--stroke-brand-soft); }
.nf-burst-img {
    display: block; width: 100%; height: 130px; border-radius: 10px; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--stroke);
}
.nf-burst-img img { width: 100%; height: 100%; object-fit: cover; }
.nf-burst-name { font-size: 12px; font-weight: 700; margin-top: 7px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-burst-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.nf-burst-actions .nf-like { padding: 5px 8px; font-size: 11px; }
.nf-burst-item .nf-comments { margin-top: 8px; }
.nf-burst-item .nf-comment { font-size: 11.5px; }
.nf-burst-comment-form { margin-top: 8px; }
.nf-burst-comment-form input { padding: 8px 10px; font-size: 12px; }
.nf-burst-comment-form button { width: 34px; height: 34px; border-radius: 10px; }

/* ---------- Missions ---------- */
.nu-missions-hero { margin: 14px 20px 0; padding: 18px; background: var(--hero-panel); border-color: var(--stroke-brand-soft); }
.nu-missions-hero .mh-top { display: flex; gap: 14px; align-items: flex-start; }
.nu-missions-hero .mh-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,0.08); border: 1px solid var(--stroke-strong); flex: 0 0 auto; }
.nu-missions-hero .mh-body { flex: 1; min-width: 0; }
.nu-missions-hero .mh-kicker { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.nu-missions-hero .mh-title { font-size: 22px; font-weight: 800; margin: 4px 0; letter-spacing: -0.02em; }
.nu-missions-hero .mh-sub { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.35; }
.nu-missions-hero .mh-ring-wrap { flex: 0 0 auto; }
.nu-missions-hero .mh-copy { font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }
.nu-missions-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.nu-missions-stats .ms { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); }
.nu-missions-stats .ms-v { font-size: 17px; font-weight: 800; }
.nu-missions-stats .ms-l { font-size: 10px; color: var(--muted); margin-top: 2px; }
.nu-missions-hero .mh-next { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke); font-size: 12px; color: var(--muted); }
.nu-missions-hero .mh-next strong { color: var(--text); font-size: 13px; }

.nu-mission-next { margin: 14px 20px 0; padding: 16px; border-color: var(--stroke-brand-soft); background: var(--grad-soft); }
.nu-mission-next .mn-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-1); font-weight: 700; margin-bottom: 10px; }
.nu-mission-next .mn-row { display: flex; gap: 12px; }
.nu-mission-next .mn-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: 0 0 auto; }
.nu-mission-next .mn-body { flex: 1; min-width: 0; }
.nu-mission-next h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.nu-mission-next p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nu-mission-next .mn-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }

.nu-mission-list { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
.nu-mission-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.nu-mission-card.is-done { opacity: 0.88; }
.nu-mission-card .mc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-1); flex: 0 0 auto; }
.nu-mission-card.is-done .mc-icon { color: var(--accent); }
.nu-mission-card .mc-body { flex: 1; min-width: 0; }
.nu-mission-card .mc-title { font-size: 14px; font-weight: 700; }
.nu-mission-card .mc-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.nu-mission-card .mc-meta { font-size: 11px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.nu-mission-card .mc-bar { margin-top: 6px; }
.nu-mission-card .mc-state { font-size: 11px; font-weight: 800; color: var(--brand-1); flex: 0 0 auto; padding-top: 2px; }
.nu-mission-card.is-done .mc-state { color: var(--accent); }

.nu-missions-fuel { margin: 16px 20px 0; padding: 16px; }
.nu-missions-fuel .mf-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.nu-missions-fuel .mf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nu-missions-fuel .mf-grid div { text-align: center; padding: 10px 4px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); }
.nu-missions-fuel strong { display: block; font-size: 15px; font-weight: 800; }
.nu-missions-fuel span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

.nu-mission-actions { display: flex; flex-direction: column; gap: 10px; }
.nu-mission-action { display: flex; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: inherit; }
.nu-mission-action.is-done { border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.08); }
.nu-mission-action .ma-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-1); flex: 0 0 auto; }
.nu-mission-action.is-done .ma-ico { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.nu-mission-action strong { display: block; font-size: 14px; font-weight: 700; }
.nu-mission-action small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.nu-mission-action .ma-done { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #34d399; flex: 0 0 auto; }

.nu-level-road { padding-bottom: 8px; }
.nu-level-node { flex: 0 0 160px; padding: 14px; position: relative; min-height: 150px; }
.nu-level-node.nu-level-current { border-color: var(--stroke-brand); background: var(--grad-soft); }
.nu-level-node.nu-level-complete { border-color: rgba(52,211,153,0.35); }
.nu-level-node.nu-level-locked { opacity: 0.65; }
.nu-level-node .ln-chip { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,0.06); color: var(--muted); }
.nu-level-current .ln-chip { background: var(--grad); color: #fff; }
.nu-level-complete .ln-chip { background: rgba(52,211,153,0.2); color: var(--accent); }
.nu-level-node .ln-icon { font-size: 28px; margin-top: 8px; }
.nu-level-node .ln-name { font-size: 11px; color: var(--muted); margin-top: 10px; font-weight: 700; }
.nu-level-node .ln-title { font-size: 14px; font-weight: 800; margin-top: 2px; line-height: 1.2; }
.nu-level-node .ln-meta { font-size: 11px; color: var(--faint); margin-top: 6px; }

/* ---------- Watchlist (uniform cards) ---------- */
.nu-watchlist-banner { margin: 14px 20px 0; padding: 14px 16px; border-color: var(--stroke-brand-soft); background: var(--grad-soft); }
.nu-watchlist-banner strong { display: block; font-size: 14px; margin-bottom: 4px; }
.nu-watchlist-banner p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.nu-watch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 14px 20px 0;
    align-items: stretch;
}
.nu-watch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    padding: 0;
    overflow: hidden;
}
.nu-watch-card.is-owned { opacity: 0.92; }
.nu-watch-card .wc-img {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 100%;
    overflow: hidden;
    background: var(--surface-2);
    flex: 0 0 auto;
}
.nu-watch-card .wc-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}
.nu-watch-card.is-owned .wc-img img { filter: saturate(0.85); }
.nu-watch-card .wc-match-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 8px; border-radius: 99px;
    background: var(--grad); color: #fff;
}
.nu-watch-card .t-check {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--stroke-brand);
    color: var(--brand-2); cursor: pointer;
}
.nu-watch-card .wc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 11px 12px;
    min-height: 0;
}
.nu-watch-card .wc-name {
    font-size: 13px; font-weight: 700; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 32px; color: var(--text); text-decoration: none;
}
.nu-watch-card .wc-meta { margin-top: 8px; }
.nu-watch-card .wc-coll {
    font-size: 11px; color: var(--muted); margin-top: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nu-watch-card .wc-foot {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nu-watch-card .wc-owner-label { font-size: 11.5px; font-weight: 700; color: var(--brand-1); }
.nu-watch-card .wc-owned { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.nu-watch-card .wc-none { font-size: 11px; color: var(--faint); }
.nu-watch-card .wc-msg-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 12.5px;
    border-radius: 12px;
}
.nu-watch-card .wc-msg-btn:disabled { opacity: 0.45; }

/* ---------- Inbox ---------- */
.nu-flash {
    margin: 10px 20px 0; padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
}
.nu-flash.ok { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.35); color: var(--accent); }
.nu-flash.err { background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.35); color: var(--danger); }

.nu-inbox-hint { margin: 14px 20px 0; padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.nu-inbox-hint strong { color: var(--text); }
.nu-inbox-hint a { display: inline-block; margin-top: 8px; color: var(--brand-1); font-weight: 700; text-decoration: none; }

.nu-thread-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 0; }
.nu-thread-row {
    display: flex; gap: 12px; align-items: center; padding: 14px;
    text-decoration: none; color: inherit;
}
.nu-thread-row .tr-ava {
    width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 800; font-size: 16px;
    background: var(--grad-soft); color: var(--brand-1); border: 1px solid var(--stroke-strong);
}
.nu-thread-row .tr-body { flex: 1; min-width: 0; }
.nu-thread-row .tr-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.nu-thread-row .tr-name { font-size: 14px; font-weight: 700; }
.nu-thread-row .tr-time { font-size: 10.5px; color: var(--faint); flex: 0 0 auto; }
.nu-thread-row .tr-preview { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-thread-row .tr-unread {
    flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
    display: grid; place-items: center; font-size: 11px; font-weight: 800;
    background: var(--grad); color: #fff;
}

.nu-inbox-context {
    margin: 10px 20px 0; padding: 10px 14px; border-radius: 12px;
    background: var(--grad-soft); border: 1px solid var(--stroke);
    font-size: 12.5px; color: var(--muted);
}
.nu-inbox-context a { color: var(--brand-1); font-weight: 700; text-decoration: none; margin-left: 6px; }

.nu-inbox-product { margin: 14px 20px 0; padding: 16px; }
.nu-inbox-product .ip-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.nu-inbox-product a { display: block; font-size: 15px; font-weight: 800; margin: 6px 0; color: var(--brand-1); text-decoration: none; }
.nu-inbox-product p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }

.nu-compose-form { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.nu-compose-form .cf-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.nu-compose-form textarea {
    width: 100%; min-height: 120px; padding: 14px; border-radius: 14px;
    border: 1px solid var(--stroke); background: var(--surface-2); color: var(--text);
    font-size: 14px; line-height: 1.45; resize: vertical;
}

.nu-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px 100px;
    min-height: 50vh;
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
}
.nu-bubble-wrap { display: flex; }
.nu-bubble-wrap.is-me { justify-content: flex-end; }
.nu-bubble {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--stroke);
}
.nu-bubble-wrap.is-me .nu-bubble {
    background: var(--grad-soft);
    border-color: var(--stroke-brand-soft);
}
.nu-bubble .b-user { font-size: 11px; font-weight: 700; color: var(--brand-1); margin-bottom: 4px; }
.nu-bubble .b-text { font-size: 14px; line-height: 1.4; word-break: break-word; }
.nu-bubble .b-time { font-size: 10px; color: var(--faint); margin-top: 6px; text-align: right; }

.nu-chat-compose {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--nu-compose-bottom, calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px));
    top: var(--nu-compose-top, auto);
    width: min(100%, var(--maxw));
    display: flex;
    gap: 8px;
    padding: 0 16px;
    z-index: 60;
}
body.nu-keyboard-open .nu-bottomnav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(110%);
}
body.nu-keyboard-open {
    padding-bottom: env(safe-area-inset-bottom);
}
body.nu-page-inbox-chat .nu-chat {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    max-height: none;
}
body.nu-keyboard-open .nu-compose-form {
    padding-bottom: calc(24px + var(--nu-keyboard-inset, 0px) + env(safe-area-inset-bottom));
}
.nu-chat-compose input {
    flex: 1; padding: 13px 14px; border-radius: 14px;
    border: 1px solid var(--stroke-strong); background: var(--surface);
    color: var(--text); font-size: 14px;
}
.nu-chat-compose button {
    width: 46px; height: 46px; border-radius: 14px; border: 0;
    display: grid; place-items: center; background: var(--grad); color: #fff;
}

/* ---------- Notifications ---------- */
.nu-notif-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px 0;
}
.nu-notif-section-after { margin-top: 8px; }
.nu-notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nu-notif-row {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.nu-notif-row .nr-hit {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
a.nu-notif-row .nr-hit { display: flex; }
.nu-notif-row .nr-hit:active { transform: scale(0.99); }
.nu-notif-row.is-unread .nr-hit {
    border-color: var(--stroke-brand);
    background: var(--panel-tint);
}
.nu-notif-row .nr-ico {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--grad-soft);
    color: var(--brand-1);
}
.nu-notif-row .nr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nu-notif-row .nr-title { font-size: 14px; font-weight: 700; line-height: 1.25; }
.nu-notif-row .nr-msg { font-size: 13px; color: var(--muted); line-height: 1.35; }
.nu-notif-row .nr-time { font-size: 11px; color: var(--faint); margin-top: 2px; }
.nu-notif-row .nr-dot {
    flex: 0 0 auto;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-1);
    margin-top: 6px;
}

/* ---------- Home hub + explore pages ---------- */
.nu-home-hub { margin-top: 18px; }

/* ---------- Guest home start (classic framing) ---------- */
.nu-start {
    margin: 8px 0 0;
    padding: 22px 18px 20px;
    border-radius: var(--radius);
    background: var(--hero-panel);
    border: 1px solid var(--stroke-brand-soft);
    box-shadow: var(--shadow);
}
.nu-start-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-3);
    margin-bottom: 10px;
}
.nu-start-title {
    margin: 0;
    font-size: clamp(1.45rem, 5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: var(--text);
}
.nu-start-title span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nu-start-sub {
    margin: 10px 0 18px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
    max-width: 34em;
}
.nu-start-flow { position: relative; }
.nu-start-search {
    position: relative;
    display: flex;
    align-items: center;
}
.nu-start-search-ico {
    position: absolute;
    left: 16px;
    color: var(--brand-3);
    pointer-events: none;
    opacity: 0.9;
}
.nu-start-input {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px 14px 48px;
    border-radius: 16px;
    border: 1px solid var(--stroke-strong);
    background: rgba(0, 0, 0, 0.28);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nu-start-input::placeholder { color: var(--faint); font-weight: 450; }
.nu-start-input:focus {
    outline: none;
    border-color: var(--stroke-brand-strong);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 0 0 3px var(--glow-1);
}
.nu-start-suggestions {
    margin-top: 10px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-2);
    box-shadow: var(--shadow);
}
.nu-start-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--stroke);
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.nu-start-suggestion:last-child { border-bottom: 0; }
.nu-start-suggestion:hover,
.nu-start-suggestion:focus-visible { background: var(--surface-2); }
.nu-start-suggestion img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--surface);
    flex: 0 0 auto;
    border: 1px solid var(--stroke);
}
.nu-start-suggestion strong { display: block; font-size: 14px; font-weight: 700; }
.nu-start-suggestion small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.nu-start-notfound {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: var(--surface);
}
.nu-start-notfound strong { display: block; font-size: 14px; }
.nu-start-notfound p { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.nu-start-selected {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: var(--surface);
}
.nu-start-selected-head {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}
.nu-start-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--surface-2);
    border: 1px solid var(--stroke);
}
.nu-start-selected-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.nu-start-selected-meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.nu-start-selected-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
}
.nu-start-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nu-start-actions .nu-btn { width: auto; flex: 1 1 auto; min-width: 0; }
.nu-start-do { margin-top: 14px; }
.nu-start-do-label {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text);
}
.nu-start-do-grid {
    display: grid;
    gap: 8px;
}
.nu-start-do-card {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: var(--surface-2);
    text-decoration: none;
    color: inherit;
}
.nu-start-do-card:active { transform: scale(0.98); }
.nu-start-do-card strong { display: block; font-size: 14px; }
.nu-start-do-card span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.nu-start-status {
    margin: 12px 0 0;
    font-size: 13px;
}
.nu-start-status.is-ok { color: #4ade80; }
.nu-start-status.is-err { color: var(--danger); }
.nu-start-continue { margin-top: 18px; }
.nu-start-fav-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.nu-start-fav {
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}
.nu-start-fav strong { font-size: 13px; }
.nu-start-foot {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 13px;
    color: var(--muted);
}
.nu-start-foot a {
    color: var(--brand-3);
    font-weight: 700;
    text-decoration: none;
}
.nu-start-foot a:hover { color: var(--text); }

.nu-guest-new { margin-top: 28px; }
.nu-guest-new-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.nu-guest-new-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}
.nu-guest-new-card:active { transform: scale(0.98); }
.nu-guest-new-card .gn-img {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--stroke);
}
.nu-guest-new-card .gn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nu-guest-new-card .gn-body { margin-top: 8px; min-width: 0; }
.nu-guest-new-card .gn-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nu-guest-new-card .gn-coll {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Guest signup sheet ---------- */
.nu-guest-gate {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.nu-guest-gate.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.nu-guest-gate-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(2, 8, 24, 0.62);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.nu-guest-gate-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, var(--maxw));
    margin: 0 auto;
    padding: 10px 20px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 88%, #1a2b55), var(--bg));
    border: 1px solid var(--stroke-brand-soft);
    border-bottom: 0;
    box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, 0.75);
    transform: translateY(18px);
    transition: transform .22s ease;
}
.nu-guest-gate.is-open .nu-guest-gate-sheet { transform: translateY(0); }
.nu-guest-gate-handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: var(--stroke-strong);
    margin: 2px auto 14px;
}
.nu-guest-gate-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--muted);
    display: grid;
    place-items: center;
}
.nu-guest-gate-close:active { transform: scale(0.94); }
.nu-guest-gate-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-3);
}
.nu-guest-gate-title {
    margin: 0 40px 8px 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}
.nu-guest-gate-copy {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}
.nu-guest-gate-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.nu-guest-gate-list li {
    position: relative;
    padding: 10px 12px 10px 34px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.nu-guest-gate-list li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--grad);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 22%, transparent);
}
.nu-guest-gate-actions {
    display: grid;
    gap: 10px;
}
.nu-guest-gate-dismiss {
    margin-top: 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
}
.nu-guest-gate-dismiss:hover { color: var(--text); }

/* ---------- Auth (register) ---------- */
body.nu-auth-page {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, color-mix(in srgb, var(--brand-1) 34%, transparent), transparent 70%),
        radial-gradient(ellipse 70% 40% at 100% 80%, color-mix(in srgb, var(--soft-blue) 14%, transparent), transparent 60%),
        var(--bg);
}
.nu-auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 8px;
}
.nu-auth-top-login {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-3);
    text-decoration: none;
    padding: 8px 10px;
}
.nu-auth-main {
    padding: 8px 22px 28px;
    max-width: 420px;
    margin: 0 auto;
}
.nu-auth-brand {
    text-align: center;
    margin: 6px 0 22px;
}
.nu-auth-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}
.nu-auth-title {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}
.nu-auth-sub {
    margin: 8px auto 0;
    max-width: 28em;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}
.nu-auth-main .nu-flash {
    margin: 0 0 14px;
}
.nu-auth-google-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--stroke-strong);
    background: rgba(255, 255, 255, 0.96);
    color: #1f1f1f;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.55);
}
.nu-auth-google-cta:active { transform: scale(0.98); }
.nu-auth-google-ico { flex: 0 0 auto; }
.nu-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 16px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.nu-auth-divider::before,
.nu-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--stroke);
}
.nu-auth-divider span { flex: 0 0 auto; }
.nu-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nu-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.nu-auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--stroke-strong);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
}
.nu-auth-field input::placeholder {
    color: var(--faint);
    font-weight: 450;
}
.nu-auth-field input:focus {
    outline: none;
    border-color: var(--stroke-brand-strong);
    box-shadow: 0 0 0 3px var(--glow-1);
    background: rgba(0, 0, 0, 0.38);
}
.nu-auth-pass {
    position: relative;
    display: block;
}
.nu-auth-pass input { padding-right: 64px; }
.nu-auth-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--brand-3);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    cursor: pointer;
}
.nu-auth-submit { margin-top: 6px; }
.nu-auth-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.nu-auth-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.nu-auth-foot a {
    color: var(--brand-3);
    font-weight: 700;
    text-decoration: none;
}
.nu-auth-foot-sep {
    margin: 0 6px;
    color: var(--faint);
}
.nu-auth-demo {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--faint);
    line-height: 1.45;
}
.nu-auth-demo a {
    color: var(--brand-3);
    font-weight: 700;
    text-decoration: none;
}
.nu-auth-demo code {
    font-size: 11px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 6px;
    padding: 1px 5px;
}

.nu-hub-grid { display: flex; flex-direction: column; gap: 10px; }
.nu-hub-card {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    text-decoration: none; color: inherit;
}
.nu-hub-card .hc-ico {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-1);
}
.nu-hub-card .hc-body { flex: 1; min-width: 0; }
.nu-hub-card .hc-body strong { display: block; font-size: 14px; }
.nu-hub-card .hc-body small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.nu-hub-card .hc-arrow { color: var(--brand-1); font-weight: 800; flex: 0 0 auto; }

.nu-hub-actions { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 0; }
.nu-hub-action {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
    width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.nu-hub-action .ha-ico {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-1);
}
.nu-hub-action .ha-body strong { display: block; font-size: 14px; }
.nu-hub-action .ha-body small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.nu-hub-panel { margin: 14px 20px 0; padding: 16px; }
.nu-hub-panel .hp-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.nu-hub-panel .hp-desc { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.sf-optional { font-weight: 500; color: var(--faint); }

.nu-faq-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 0; }
.nu-faq-item { padding: 0; overflow: hidden; }
.nu-faq-item summary {
    list-style: none; cursor: pointer; padding: 14px 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.nu-faq-item summary::-webkit-details-marker { display: none; }
.nu-faq-item .fq-title { font-size: 14px; font-weight: 700; }
.nu-faq-item .fq-excerpt { font-size: 12px; color: var(--muted); line-height: 1.35; }
.nu-faq-item .fq-body { padding: 0 16px 16px; font-size: 14px; line-height: 1.5; color: var(--text); }
.nu-faq-item .fq-body p { margin: 0 0 10px; }
.nu-faq-item .fq-body a { color: var(--brand-1); font-weight: 600; }
.nu-faq-foot { padding: 16px 20px 0; font-size: 12px; color: var(--muted); text-align: center; }
.nu-faq-foot a { color: var(--brand-1); font-weight: 700; text-decoration: none; }

.nu-geek-filters { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.nu-geek-filters .gf-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.nu-geek-filters .gf-check { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.nu-geek-hero { margin: 14px 20px 0; padding: 16px; }
.nu-geek-hero .gh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nu-geek-hero .gh-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.nu-geek-hero .gh-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.nu-geek-spotlight { margin: 12px 20px 0; padding: 14px 16px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.nu-geek-spotlight p { margin: 0 0 8px; }
.nu-geek-spotlight strong { color: var(--text); }
.nu-geek-spotlight .gh-meta { margin: 0; font-size: 12px; color: var(--faint); }
.nu-geek-table { padding: 4px 0; }
.nu-geek-table .gt-row {
    display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
    padding: 11px 14px; border-bottom: 1px solid var(--stroke);
}
.nu-geek-table .gt-row:last-child { border-bottom: 0; }
.nu-geek-table .gt-label { font-size: 13px; font-weight: 600; min-width: 0; }
.nu-geek-table .gt-val { font-size: 13px; font-weight: 800; color: var(--brand-1); flex: 0 0 auto; }
.nu-geek-foot { padding: 16px 20px 24px; font-size: 12px; color: var(--muted); text-align: center; }
.nu-geek-foot a { color: var(--brand-1); font-weight: 700; text-decoration: none; }

.nu-browse-search { padding: 14px 20px 0; }
.nu-browse-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    padding: 14px 20px 0;
}
.nu-browse-card { padding: 10px; text-decoration: none; color: inherit; }
.nu-browse-card .bc-img {
    aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2);
}
.nu-browse-card .bc-img img { width: 100%; height: 100%; object-fit: cover; }
.nu-browse-card .bc-name {
    margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (min-width: 481px) {
    body { box-shadow: 0 0 80px rgba(0,0,0,0.6); }
}

/* ---------- First-visit coach marks ---------- */
body.nu-tour-open { overflow: hidden; }

.nu-tour {
    position: fixed;
    inset: 0;
    z-index: 260;
    pointer-events: none;
}
.nu-tour[hidden] { display: none !important; }
.nu-tour:not([hidden]) { pointer-events: auto; }

.nu-tour-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 12, 0.82);
}

.nu-tour-spotlight {
    position: fixed;
    z-index: 261;
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(4, 4, 12, 0.82);
    border: 2px solid var(--stroke-brand-strong);
    pointer-events: none;
    transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.nu-tour-card {
    position: fixed;
    z-index: 262;
    width: min(calc(100vw - 24px), 360px);
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: var(--bg-2);
    border: 1px solid var(--stroke-brand);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.nu-tour-card.is-centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.nu-tour-progress {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-2);
}
.nu-tour-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}
.nu-tour-body {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}
.nu-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.nu-tour-skip {
    border: 0;
    background: transparent;
    color: var(--faint);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
}
.nu-tour-nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.nu-tour-nav .nu-btn {
    min-width: 84px;
    padding: 10px 14px;
    font-size: 13px;
}
.nu-tour-back[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

/* ---------- Admin import tools workspace ---------- */
body.nu-import-page {
    max-width: none;
    width: 100%;
    padding-bottom: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}
body.nu-import-page .nu-topbar {
    flex: 0 0 auto;
    max-width: none;
}
body.nu-import-page .nu-bottomnav,
body.nu-import-page .nu-fab {
    display: none !important;
}

.nu-import-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 12px 12px;
    gap: 10px;
}
.nu-import-note {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke-brand-soft);
    background: var(--grad-soft);
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}
.nu-import-toolbar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.nu-import-tabs {
    flex: 1 1 280px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.nu-import-tab {
    text-align: left;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: inherit;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.nu-import-tab strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}
.nu-import-tab small {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
}
.nu-import-tab.is-active {
    border-color: var(--stroke-brand-strong);
    background: var(--grad-soft);
    box-shadow: 0 0 0 1px var(--stroke-brand-soft);
}
.nu-import-open {
    align-self: center;
    flex: 0 0 auto;
    white-space: nowrap;
}
.nu-import-stage {
    flex: 1 1 auto;
    min-height: calc(100dvh - 170px);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0a0f1c;
    position: relative;
}
.nu-import-panel {
    position: absolute;
    inset: 0;
}
.nu-import-panel[hidden] {
    display: none !important;
}
.nu-import-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    display: block;
}

@media (max-width: 760px) {
    .nu-import-tabs {
        grid-template-columns: 1fr;
    }
    .nu-import-tab {
        min-height: 0;
        padding: 10px 12px;
    }
    .nu-import-toolbar {
        flex-direction: column;
    }
    .nu-import-open {
        align-self: stretch;
        text-align: center;
    }
    .nu-import-stage {
        min-height: calc(100dvh - 280px);
    }
}

/* ---------- Zach (collector chat bot) ---------- */
.nu-agent-launcher {
    position: fixed;
    right: max(12px, calc(50% - var(--maxw) / 2 + 12px));
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
    z-index: 90;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 28px -10px var(--fab-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nu-agent-launcher:active { transform: scale(0.94); }
body.nu-agent-open .nu-agent-launcher { opacity: 0; pointer-events: none; }

.nu-agent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 10, 24, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.nu-agent-root.is-open .nu-agent-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.nu-agent-sheet {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    bottom: 0;
    width: min(100%, var(--maxw));
    max-height: min(88dvh, 720px);
    z-index: 201;
    background: linear-gradient(180deg, rgba(16, 26, 51, 0.98), rgba(11, 28, 61, 0.99));
    border: 1px solid var(--stroke-brand);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px -28px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, bottom 0.12s ease;
    padding-bottom: env(safe-area-inset-bottom);
    pointer-events: none;
}
.nu-agent-root.is-open .nu-agent-sheet {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
/* Shrink chrome when the soft keyboard is up so the type box stays visible */
.nu-agent-root.is-keyboard-open .nu-agent-chips {
    display: none;
}
.nu-agent-root.is-keyboard-open .nu-agent-log {
    min-height: 64px;
}
.nu-agent-root.is-keyboard-open .nu-agent-head {
    padding-top: 10px;
    padding-bottom: 8px;
}
.nu-agent-root.is-keyboard-open .nu-agent-sheet {
    padding-bottom: 0;
    border-radius: 16px 16px 0 0;
}
body.nu-agent-keyboard-open .nu-bottomnav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(110%);
}

.nu-agent-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--stroke);
}
.nu-agent-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    flex: 1;
}
.nu-agent-head p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: var(--muted);
}
.nu-agent-head-text { flex: 1; min-width: 0; }
.nu-agent-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
}

.nu-agent-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 16px 0;
    scrollbar-width: none;
}
.nu-agent-chips::-webkit-scrollbar { display: none; }
.nu-agent-chip {
    flex: 0 0 auto;
    border: 1px solid var(--stroke-brand-soft);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.nu-agent-log {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}
.nu-agent-msg { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.nu-agent-msg.is-user { align-self: flex-end; }
.nu-agent-msg.is-assistant { align-self: flex-start; }
.nu-agent-bubble {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    background: var(--surface-2);
    border: 1px solid var(--stroke);
}
.nu-agent-msg.is-user .nu-agent-bubble {
    background: rgba(30, 94, 255, 0.22);
    border-color: var(--stroke-brand);
}
.nu-agent-bubble a {
    color: var(--soft-blue);
    text-decoration: underline;
}
.nu-agent-proposals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nu-agent-confirm {
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--grad);
    color: #fff;
}
.nu-agent-item-link {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--surface);
}

.nu-agent-status {
    min-height: 1.1em;
    padding: 0 16px;
    font-size: 0.72rem;
    color: var(--faint);
}
.nu-agent-form {
    display: flex;
    gap: 8px;
    padding: 8px 16px 14px;
}
.nu-agent-form input {
    flex: 1;
    border-radius: 14px;
    border: 1px solid var(--stroke-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
    /* 16px avoids iOS focus-zoom that pushes the field under the keyboard */
    font-size: 16px;
}
.nu-agent-form input:focus {
    outline: none;
    border-color: var(--stroke-brand-strong);
}
.nu-agent-form button[type="submit"] {
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    font-weight: 700;
    background: var(--grad);
    color: #fff;
}
.nu-agent-form button[type="submit"]:disabled {
    opacity: 0.55;
}
