.nx, [data-theme="dark"] .nx {
    --bg: #0b1120; --surface: #101a2e; --surface-2: #17223a; --surface-3: #202d49;
    --ink: #f8fafc; --ink-2: #cbd5e1; --ink-3: #94a3b8;
    --line: #1d2a45; --line-strong: #2b3b5e;
    --brand-rgb: 0, 242, 254; --brand: #00f2fe; --link: #00f2fe; --on-brand: #0b1120;
    --grad: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --cov-0: #062a3a; --cov-1: #0aa5c0; --cov-2: #2f7de0; --cov-3: #00f2fe;
    --pc-1: #1ab6e8; --pc-2: #1565a8; --pc-3: #06182e;
}
[data-theme="cyberpunk"] .nx {
    --bg: #09090b; --surface: #130a10; --surface-2: #1e0f18; --surface-3: #2b1521;
    --ink: #fbbf24; --ink-2: #dcbf86; --ink-3: #a1a1aa;
    --line: #3a1824; --line-strong: #52202f;
    --brand-rgb: 244, 63, 94; --brand: #f43f5e; --link: #fb7185; --on-brand: #09090b;
    --grad: linear-gradient(135deg, #f43f5e 0%, #eab308 100%);
    --cov-0: #3a0a1a; --cov-1: #f43f5e; --cov-2: #eab308; --cov-3: #ec4899;
    --pc-1: #f43f5e; --pc-2: #a3173b; --pc-3: #2a0813;
}
[data-theme="light"] .nx {
    --bg: #f8fafc; --surface: #ffffff; --surface-2: #f1f5f9; --surface-3: #e2e8f0;
    --ink: #0f172a; --ink-2: #334155; --ink-3: #5e6e83;
    --line: #e2e8f0; --line-strong: #cbd5e1;
    --brand-rgb: 37, 99, 235; --brand: #2563eb; --link: #1d4ed8; --on-brand: #ffffff;
    --grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    --cov-0: #dbeafe; --cov-1: #60a5fa; --cov-2: #2563eb; --cov-3: #10b981;
    --pc-1: #3b82f6; --pc-2: #2563eb; --pc-3: #1e3a8a;
}
[data-theme="mint"] .nx {
    --bg: #f4faf7; --surface: #ffffff; --surface-2: #eaf6f0; --surface-3: #d8ece2;
    --ink: #0f172a; --ink-2: #2d3748; --ink-3: #5e6e83;
    --line: #d1fae5; --line-strong: #a7f3d0;
    --brand-rgb: 16, 185, 129; --brand: #10b981; --link: #047857; --on-brand: #022c22;
    --grad: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --cov-0: #d1fae5; --cov-1: #6ee7b7; --cov-2: #10b981; --cov-3: #059669;
    --pc-1: #34d399; --pc-2: #10b981; --pc-3: #047857;
}
[data-theme="god-mode"] .nx {
    --bg: #000000; --surface: #060f08; --surface-2: #0b1a0f; --surface-3: #112516;
    --ink: #00ff00; --ink-2: #4ade80; --ink-3: #22c55e;
    --line: #163d20; --line-strong: #1f5a2c;
    --brand-rgb: 0, 255, 0; --brand: #00ff00; --link: #00ff00; --on-brand: #000000;
    --grad: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    --cov-0: #020a02; --cov-1: #00ff00; --cov-2: #16a34a; --cov-3: #4ade80;
    --pc-1: #22c55e; --pc-2: #15803d; --pc-3: #021006;
}
.nx {
    --brand-soft: rgba(var(--brand-rgb), .14);
    --shadow-btn: 0 6px 16px -8px rgba(0, 0, 0, .55), inset 0 1px 6px rgba(255, 255, 255, .22);
    --font: 'Poppins', 'Poppins Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.nx *, .nx *::before, .nx *::after { box-sizing: border-box; }
.nx { scroll-behavior: smooth; }
.nx { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
.nx a { color: inherit; text-decoration: none; }
.nx h1, .nx h2, .nx h3, .nx h4, .nx p, .nx ul { margin: 0; padding: 0; }
.nx ul { list-style: none; }
.nx button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.nx img { max-width: 100%; display: block; }
.nx .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }
.nx .shell { display: flex; max-width: 1400px; margin: 0 auto; }
.nx .brand { display: flex; align-items: center; gap: 10px; height: 70px; padding: 0 8px; }
.nx .menu { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nx .menu a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; font-size: 18px; transition: background .15s; }
@media (hover: hover) and (pointer: fine){.nx .menu a:hover { background: var(--surface-2); }}
.nx .menu a[aria-current="page"] { background: var(--surface-2); font-weight: 700; }
.nx .menu svg { width: 24px; height: 24px; flex-shrink: 0; transition: transform .15s; }
.nx .menu a:active svg { transform: scale(.9); }
.nx .round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: background .15s, transform .15s; }
@media (hover: hover) and (pointer: fine){.nx .round:hover { background: var(--surface-3); }}
.nx .round:active { transform: scale(.93); }
.nx .round svg { width: 18px; height: 18px; }
.nx .copy { font-size: 14px; color: var(--ink-3); }
.nx .main { flex: 1; min-width: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding-bottom: 0; }
.nx .verified { width: 18px; height: 18px; color: var(--link); flex-shrink: 0; }
.nx .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; height: 40px; border-radius: 11px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: transform .15s, filter .15s, background .15s; }
.nx .btn:active { transform: scale(.97); }
.nx .btn-primary { color: var(--on-brand); background: var(--grad); box-shadow: var(--shadow-btn); }
@media (hover: hover) and (pointer: fine){.nx .btn-primary:hover { filter: brightness(1.08); }}
.nx .btn-secondary { background: var(--surface-2); border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine){.nx .btn-secondary:hover { background: var(--surface-3); }}
.nx .btn-sm { height: 32px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.nx .btn svg { width: 16px; height: 16px; }
.nx .pad { padding: 28px 32px 48px; }
.nx .lead { color: var(--ink-2); margin-bottom: 28px; }
.nx .cover { position: relative; height: 220px; overflow: hidden; background: var(--cov-0); }
.nx .cover i { position: absolute; width: 55%; height: 140%; border-radius: 50%; filter: blur(60px); opacity: .85; animation: drift 24s ease-in-out infinite alternate; }
.nx .cover i:nth-child(1) { background: var(--cov-1); left: -10%; top: -50%; }
.nx .cover i:nth-child(2) { background: var(--cov-2); left: 30%; top: 10%; animation-delay: -6s; }
.nx .cover i:nth-child(3) { background: var(--cov-3); left: 60%; top: -60%; animation-delay: -12s; }
@keyframes drift{ to { transform: translate(8%, 10%) scale(1.1); } }
.nx .nx-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px 0; }
.nx .avatar { width: 136px; height: 136px; margin-top: -68px; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--brand) 45%, transparent), 0 16px 36px -6px rgba(0, 0, 0, 0.32); position: relative; z-index: 10; transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease; }
@media (hover: hover) and (pointer: fine){.nx .avatar:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--brand), 0 20px 42px -6px rgba(0, 0, 0, 0.4); }}
.nx .nx-hero .nx-name, .nx .nx-hero h2 { margin-top: 14px; margin-bottom: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); line-height: 1.2; }
.nx .nx-hero .verified-badge, .nx .nx-hero h2 .verified { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }
.nx .nx-hero .verified-badge svg, .nx .nx-hero h2 .verified { width: 26px; height: 26px; color: var(--link); display: block; }
.nx .tagline { margin-top: 4px; font-size: 18px; }
.nx .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.nx .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ping 2s infinite; }
@keyframes ping{ 75%, 100% { transform: scale(2.6); opacity: 0; } }
.nx .facts { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--ink-2); font-size: 16px; }
.nx .facts li { display: inline-flex; align-items: center; gap: 8px; }
.nx .facts svg { width: 18px; height: 18px; }
.nx .facts .t { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nx .pills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 560px; }
.nx .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nx .pill img, .nx .pill i, .nx .pill svg { width: 14px; height: 14px; font-size: 13px; }
.nx .pill.ai { background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.nx .tabs { margin-top: 28px; display: flex; justify-content: center; gap: 36px; border-bottom: 1px solid var(--line); }
.nx .tab { position: relative; padding: 14px 4px; font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--ink-3); }
.nx .tab[aria-selected="true"] { color: var(--link); }
.nx .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.nx .panel[hidden] { display: none; }
.nx .sec-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.nx .sec-title svg { width: 24px; height: 24px; }
.nx .prose p { color: var(--ink-2); margin-bottom: 14px; }
.nx .card { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nx .card h4 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.nx .card .big { font-size: 20px; font-weight: 600; }
.nx .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nx .chip { padding: 2px 10px; border-radius: 8px; font-size: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.nx .exp { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.nx .exp-meta { color: var(--ink-3); font-size: 15px; margin: 2px 0 10px; }
.nx .metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.nx .grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.nx .proj { display: flex; flex-direction: column; padding: 6px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine){.nx .proj:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--brand), 0 18px 40px -22px var(--shade, rgba(0, 0, 0, 0.4)); }}
.nx .proj-cover { position: relative; height: 168px; border-radius: 22px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 120% at 20% 0%, var(--pc-1) 0%, var(--pc-2) 45%, var(--pc-3) 100%); }
.nx .proj-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 14px 14px; }
.nx .badge { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--link); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nx .proj-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nx .proj-body h3 { font-size: 18px; font-weight: 600; }
.nx .proj-body p { color: var(--ink-3); font-size: 15px; line-height: 1.45; }
.nx .proj-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx .proj-links { display: flex; gap: 8px; }
.nx .proj-links a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
@media (hover: hover) and (pointer: fine){.nx .proj-links a:hover { background: var(--surface-3); }}
.nx .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.nx .tag { padding: 1px 9px; border-radius: 7px; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }
.nx .empty { text-align: center; padding: 56px 20px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.nx .posts { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.nx .post { display: block; padding: 18px 20px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
@media (hover: hover) and (pointer: fine){.nx .post:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand); }}
.nx .post h3 { font-size: 17px; font-weight: 600; }
.nx .post small { color: var(--ink-3); font-size: 14px; }
.nx .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.nx .fchip { padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; display: inline-flex; align-items: center; gap: 6px; }
@media (hover: hover) and (pointer: fine){.nx .fchip:hover { background: var(--surface-3); }}
.nx .fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.nx .fchip em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.nx .fchip[aria-pressed="true"] em { color: inherit; opacity: .8; }
.nx .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.nx .person[hidden] { display: none; }
.nx .person { padding: 18px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine){.nx .person:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong); }}
.nx .p-head { display: flex; align-items: center; gap: 12px; }
.nx .av { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--on-brand); background: var(--grad); flex-shrink: 0; }
.nx .av .plat { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; font-size: 10px; box-shadow: 0 0 0 1px var(--line); }
.nx .p-id { flex: 1; min-width: 0; }
.nx .p-id b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx .p-id small { color: var(--ink-3); font-size: 14px; }
.nx .person p { font-size: 15px; color: var(--ink-2); }
.nx .person .why { color: var(--ink-3); }
.nx .person .why b { color: var(--ink-2); font-weight: 600; }
.nx .cta-hero { position: relative; overflow: hidden; padding: 40px; border-radius: 28px; background: radial-gradient(90% 120% at 10% 0%, rgba(var(--brand-rgb), .28), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .35); }
.nx .cta-hero h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.nx .cta-hero p { margin: 10px 0 20px; color: var(--ink-2); max-width: 460px; }
.nx .cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nx .cta-row .pill { padding: 7px 14px; background: var(--bg); }
.nx .work-title { margin: 40px 0 16px; font-size: 20px; font-weight: 600; }
.nx .svc { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.nx .svc-card { padding: 22px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.nx .svc-card.wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; background: radial-gradient(90% 140% at 0% 0%, rgba(var(--brand-rgb), .2), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .35); }
.nx .svc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; color: var(--link); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); flex-shrink: 0; }
.nx .svc-card h3 { font-size: 20px; font-weight: 600; }
.nx .svc-card p { color: var(--ink-2); font-size: 15px; }
.nx .svc-card .btn { align-self: flex-start; margin-top: auto; }
.nx .wide .svc-body { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.nx .form { margin-top: 14px; display: grid; gap: 12px; padding: 22px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.nx .form input, .nx .form textarea { font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.nx .form input:focus, .nx .form textarea:focus { outline: 2px solid var(--link); border-color: transparent; }
.nx .rail {
    width: 392px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100dvh;
    overflow-y: auto;
    scrollbar-width: none;
}
.nx .rail::-webkit-scrollbar { display: none; }
.nx .rail-top {
    height: 74px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
}
.nx .btn-rail-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine){.nx .btn-rail-top:hover {
        transform: translateY(-1px);
        border-color: var(--brand);
        color: var(--link);
    }}
.nx .btn-rail-top i {
    font-size: 14px;
}
.nx .rail-body {
    padding: 20px 16px 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nx .r-card {
    position: relative;
    padding: 20px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
@media (hover: hover) and (pointer: fine){.nx .r-card:hover {
        border-color: var(--line-strong);
        box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08);
    }}
.nx .r-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0;
}
.nx .r-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.nx .r-head-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(var(--brand-rgb), 0.1);
    color: var(--link);
    flex-shrink: 0;
    border: 1px solid rgba(var(--brand-rgb), 0.18);
    transition: all 0.2s ease;
}
@media (hover: hover) and (pointer: fine){.nx .r-card:hover .r-head-ico {
        transform: scale(1.05);
    }}
.nx .r-card-open {
    background: radial-gradient(130% 120% at 100% 0%, rgba(var(--brand-rgb), 0.12), transparent 70%), var(--surface);
    border-color: rgba(var(--brand-rgb), 0.22);
}
@media (hover: hover) and (pointer: fine){.nx .r-card-open:hover {
        border-color: rgba(var(--brand-rgb), 0.35);
        box-shadow: 0 8px 24px -6px var(--shade, rgba(0, 0, 0, 0.4));
    }}
.nx .r-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(var(--brand-rgb), 0.15), rgba(var(--brand-rgb), 0.05));
    border: 1px solid rgba(var(--brand-rgb), 0.2);
    color: var(--link);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px -2px var(--shade, rgba(0, 0, 0, 0.4));
}
.nx .live-dot-wrap {
    position: relative;
    width: 8px;
    height: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nx .live-dot-core {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: none;
}
.nx .live-dot-ping {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--brand);
    background: transparent;
    animation: live-ping-smooth 2.5s cubic-bezier(0.1, 0, 0.2, 1) infinite;
}
@keyframes live-ping-smooth{
    0% { transform: scale(0.5); opacity: 1; }
    50%, 100% { transform: scale(2.2); opacity: 0; }
}
.nx .r-card-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
    line-height: 1.35;
}
.nx .r-card-desc {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 0 0 18px;
}
.nx .r-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 42px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: var(--brand) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px -2px var(--shade, rgba(0, 0, 0, 0.4)) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
}
.nx .r-cta-btn span {
    color: #ffffff !important;
}
@media (hover: hover) and (pointer: fine){.nx .r-cta-btn:hover {
        color: #ffffff !important;
        transform: translateY(-1.5px) !important;
        box-shadow: 0 8px 22px -3px var(--shade, rgba(0, 0, 0, 0.4)) !important;
        filter: brightness(1.08) !important;
    }}
.nx .r-cta-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    transition: transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine){.nx .r-cta-btn:hover svg {
        stroke: #ffffff !important;
        transform: translateX(3px);
    }}
.nx .follow-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.nx .f-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 12px;
    transition: background 0.15s ease;
    margin: 0;
}
@media (hover: hover) and (pointer: fine){.nx .f-row:hover {
        background: var(--surface-2);
    }
.nx .f-row:hover .p-id b {
        color: var(--link);
    }}
.nx .f-row .av {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px var(--line);
    background-size: cover;
    background-position: center;
}
.nx .f-row .plat {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 9px;
    box-shadow: 0 0 0 2px var(--surface);
    border: 1px solid var(--line);
}
.nx .f-row .p-id {
    flex: 1;
    min-width: 0;
}
.nx .f-row .p-id b {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    transition: color 0.15s;
}
.nx .f-row .p-id small {
    font-size: 12px;
    color: var(--ink-3);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    margin-top: 1px;
}
.nx .f-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
}
@media (hover: hover) and (pointer: fine){.nx .f-btn:hover {
        background: var(--ink) !important;
        color: var(--bg) !important;
        border-color: var(--ink) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2) !important;
    }}
.nx .see-all-people {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px 4px 2px;
    border-top: 1px solid var(--line);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--link) !important;
    transition: opacity 0.15s ease;
}
@media (hover: hover) and (pointer: fine){.nx .see-all-people:hover {
        opacity: 0.85;
    }}
.nx .see-all-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nx .see-all-label svg {
    transition: transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine){.nx .see-all-people:hover .see-all-label svg {
        transform: translateX(3px);
    }}
.nx .see-all-avs {
    display: inline-flex;
    align-items: center;
    padding-left: 8px;
}
.nx .find-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
}
.nx .find-item {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
@media (hover: hover) and (pointer: fine){.nx .find-item:hover {
        background: var(--surface-2) !important;
        transform: translateX(3px) !important;
    }}
.nx .find-ico {
    flex-shrink: 0 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    display: grid !important;
    place-items: center !important;
    background: var(--surface-2) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    transition: all 0.18s ease !important;
}
@media (hover: hover) and (pointer: fine){.nx .find-item:hover .find-ico {
        background: rgba(var(--brand-rgb), 0.12) !important;
        color: var(--link) !important;
        border-color: rgba(var(--brand-rgb), 0.25) !important;
        transform: scale(1.05) !important;
    }}
.nx .find-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
}
.nx .find-info b {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    transition: color 0.15s ease !important;
}
@media (hover: hover) and (pointer: fine){.nx .find-item:hover .find-info b {
        color: var(--link) !important;
    }}
.nx .find-info small {
    color: var(--ink-3) !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 1px !important;
    line-height: 1.3 !important;
}
.nx .find-arr {
    color: var(--ink-3) !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    transition: transform 0.18s ease, color 0.18s ease !important;
}
@media (hover: hover) and (pointer: fine){.nx .find-item:hover .find-arr {
        transform: translate(2px, -2px) !important;
        color: var(--link) !important;
    }}
.nx .find-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.nx .see-all-profiles {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--link) !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 6px 10px !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
}
@media (hover: hover) and (pointer: fine){.nx .see-all-profiles:hover {
        background: var(--surface-2) !important;
        opacity: 0.9 !important;
    }}
.nx .see-all-profiles svg {
    transition: transform 0.15s ease !important;
    flex-shrink: 0 !important;
}
@media (hover: hover) and (pointer: fine){.nx .see-all-profiles:hover svg {
        transform: translateX(3px) !important;
    }}
.nx, [data-theme="dark"] .nx {
  --cover-1: #00f2fe;
  --cover-2: #4facfe;
  --cover-3: #0284c7;
  --cover-4: #38bdf8;
  --cover-5: #0369a1;
  --cover-6: #00c6ff;
  --slats-bg: #0b1120;
  --slats-color: #00f2fe;
  --slats-glint: #e0f9ff;
}
[data-theme="light"] .nx {
  --cover-1: #93c5fd;
  --cover-2: #60a5fa;
  --cover-3: #3b82f6;
  --cover-4: #2563eb;
  --cover-5: #bfdbfe;
  --cover-6: #1d4ed8;
  --slats-bg: #f8fafc;
  --slats-color: #2563eb;
  --slats-glint: #ffffff;
}
[data-theme="cyberpunk"] .nx {
  --cover-1: #f43f5e;
  --cover-2: #eab308;
  --cover-3: #ec4899;
  --cover-4: #fb7185;
  --cover-5: #f59e0b;
  --cover-6: #e11d48;
  --slats-bg: #09090b;
  --slats-color: #f43f5e;
  --slats-glint: #fef08a;
}
[data-theme="mint"] .nx {
  --cover-1: #a7f3d0;
  --cover-2: #6ee7b7;
  --cover-3: #34d399;
  --cover-4: #10b981;
  --cover-5: #059669;
  --cover-6: #047857;
  --slats-bg: #f4faf7;
  --slats-color: #10b981;
  --slats-glint: #ffffff;
}
[data-theme="god-mode"] .nx {
  --cover-1: #00ff00;
  --cover-2: #22c55e;
  --cover-3: #16a34a;
  --cover-4: #4ade80;
  --cover-5: #15803d;
  --cover-6: #86efac;
  --slats-bg: #000000;
  --slats-color: #00ff00;
  --slats-glint: #dcfce7;
}
.nx [data-slats] {
  position: relative;
  overflow: hidden;
  height: 280px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--slats-bg, #07100c);
}
@media (max-width: 640px){.nx [data-slats] { height: 180px; }}
.nx .cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.nx .cover-blob {
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--blob), transparent);
  opacity: .85;
  will-change: transform;
  width: 70%;
  animation: cover-drift var(--dur, 22s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  border-radius: 9999px;
  position: absolute;
  filter: blur(40px);
}
.nx .dark .cover-blob, .nx [data-theme="dark"] .cover-blob { opacity: .7; }
@keyframes cover-drift{
  0% { transform: translate(0) scale(1) rotate(0deg); }
  50% { transform: translate(12%, -10%) scale(1.15) rotate(20deg); }
  100% { transform: translate(-10%, 8%) scale(.95) rotate(-15deg); }
}
.nx [data-slats-canvas] {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: auto;
}
.nx [data-slats-canvas] canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 1199px){.nx .rail { display: none; }}
@media (max-width: 767.98px){.nx .main { border: 0; padding-bottom: 84px; }
.nx .bottom-nav { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; width: 100%; display: flex; justify-content: space-around; align-items: center; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 8px)) 6px; border-radius: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card-bg, var(--surface)) 88%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22); }
.nx .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-width: 0; gap: 3px; padding: 6px 4px; border-radius: 12px; font-size: 11px; font-weight: 500; color: var(--text-color, var(--ink-3)); text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.15s; }
.nx .bottom-nav a svg { width: 22px; height: 22px; flex-shrink: 0; }
.nx .bottom-nav a[aria-current="page"] { background: var(--accent-1); color: #ffffff !important; font-weight: 600; }
.nx .bottom-nav a:active { transform: scale(0.94); }
.nx .pad { padding: 20px 16px 32px; }
.nx .cover { height: 150px; }
.nx .svc { grid-template-columns: 1fr; }
.nx .cta-hero { padding: 26px; }}
@media (min-width: 768px){.nx .bottom-nav { display: none; }}
@media (prefers-reduced-motion: reduce){.nx * { animation: none !important; transition: none !important; }
.nx { scroll-behavior: auto; }}
.nx .pad { max-width: 860px; margin-inline: auto; }
.nx .pad .panel, .nx .pad .exp, .nx .pad .prose { max-width: 760px; margin-inline: auto; }
.nx .pad > .lead { text-align: center; max-width: 620px; margin-inline: auto; }
.nx .filters { justify-content: center; }
.nx .theme-btn i { font-size: 15px; }
.nx .main { min-width: 0; }
.nx .shell { max-width: 1180px; align-items: flex-start; }
.nx .main { border-left: 0; border-right: 0; }
.nx .rail { top: 72px; max-height: calc(100dvh - 72px); }
.nx .rail-top { display: none; }
.nx .rail-body { padding-top: 28px; }
@media (max-width: 1239px){.nx .rail { display: none; }}
.nx .sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.nx .sk { padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.nx .sk h4 { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 4px; }
.nx .edu { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.nx .edu h3 { font-size: 18px; }
.nx .edu .exp-meta { margin: 2px 0 0; }
.nx .empty { text-align: center; padding: 44px 16px 28px; display: grid; justify-items: center; gap: 10px; }
.nx .empty h2 { font-size: 22px; font-weight: 600; }
.nx .empty p { color: var(--ink-3); max-width: 420px; }
.nx .empty .btn { margin-top: 8px; }
.nx .people-hero { position: relative; overflow: hidden; padding: 30px; border-radius: 28px; background: radial-gradient(90% 130% at 10% 0%, rgba(var(--brand-rgb), .24), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3); margin-bottom: 24px; max-width: none; }
.nx .people-hero h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 8px; }
.nx .people-hero p { color: var(--ink-2); max-width: 520px; }
.nx .people-hero .meta { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; color: var(--link); }
.nx .av-stack { display: flex; }
.nx .av-stack .av { width: 40px; height: 40px; font-size: 13px; margin-left: -10px; box-shadow: 0 0 0 2px var(--surface); }
.nx .av-stack .av:first-child { margin-left: 0; }
.nx .filters { justify-content: flex-start !important; }
.nx .person .why { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.nx .person .why i { color: var(--link); margin-top: 4px; font-size: 11px; }
.nx .tag.role { align-self: center; color: var(--ink-3); }
.nx .p-head .btn i { font-size: 11px; margin-left: 4px; }
.nx .reach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nx .reach-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
@media (hover: hover) and (pointer: fine){.nx .reach-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--brand); }}
.nx .reach-card .l { flex: 1; min-width: 0; display: grid; }
.nx .reach-card .l b { font-weight: 600; }
.nx .reach-card small { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx .reach-card .arr { color: var(--ink-3); font-size: 13px; }
.nx .svc-card .btn { width: auto; }
@media (max-width: 767px){.nx .reach { grid-template-columns: 1fr; }
.nx .svc { grid-template-columns: 1fr; }}
.nx .svc { grid-template-columns: repeat(3, 1fr); }
.nx .svc-card .btn { font-size: 14px; }
@media (max-width: 900px){.nx .svc { grid-template-columns: 1fr; }}
/* Subpage Layout & Header Geometry */
body.nx-page .nx {
  padding-top: 98px !important;
  padding-bottom: 96px;
  position: relative;
  z-index: 1;
}
body.nx-page[data-page="profile"] .nx {
  padding-top: 0 !important;
}

@media (max-width: 767px) {
  body.nx-page .nx {
    padding-top: 60px !important;
    padding-bottom: 96px;
  }
  body.nx-page[data-page="profile"] .nx {
    padding-top: 0 !important;
  }
}

/* Mobile App Native Flush Bottom Nav */
@media (max-width: 767.98px) {
  .nx .bottom-nav,
  .bottom-nav {
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 8px)) 6px !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12)) !important;
    background: color-mix(in srgb, var(--card-bg, var(--surface, #0b1120)) 88%, transparent) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22) !important;
  }
  .nx .bottom-nav a,
  .bottom-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-color, var(--ink-3)) !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, transform 0.15s !important;
  }
  .nx .bottom-nav a svg,
  .bottom-nav a svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    /* every icon gets the same pill box, so selecting one never shifts the layout */
    padding: 4px 16px !important;
    box-sizing: content-box !important;
    border-radius: 999px !important;
    transition: background 0.2s ease !important;
  }
  /* selected tab: tinted pill behind the icon, icon and label in the theme accent (no filled block) */
  .nx .bottom-nav a[aria-current="page"],
  .bottom-nav a[aria-current="page"] {
    background: transparent !important;
    color: var(--accent-1, #2563eb) !important;
    font-weight: 600 !important;
  }
  .nx .bottom-nav a[aria-current="page"] svg,
  .bottom-nav a[aria-current="page"] svg {
    background: color-mix(in srgb, var(--accent-1, #2563eb) 18%, transparent) !important;
  }
  .nx .bottom-nav a:active,
  .bottom-nav a:active {
    transform: scale(0.94) !important;
  }

  html[data-theme="light"] .nx .bottom-nav,
  html[data-theme="light"] .bottom-nav,
  [data-theme="light"] .nx .bottom-nav,
  [data-theme="light"] .bottom-nav,
  html.light-mode .bottom-nav,
  body.light-mode .bottom-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
  }
  html[data-theme="light"] .nx .bottom-nav a,
  html[data-theme="light"] .bottom-nav a,
  [data-theme="light"] .nx .bottom-nav a,
  [data-theme="light"] .bottom-nav a,
  body.light-mode .bottom-nav a {
    color: #475569 !important;
  }
  html[data-theme="light"] .nx .bottom-nav a[aria-current="page"],
  html[data-theme="light"] .bottom-nav a[aria-current="page"],
  [data-theme="light"] .nx .bottom-nav a[aria-current="page"],
  [data-theme="light"] .bottom-nav a[aria-current="page"],
  body.light-mode .bottom-nav a[aria-current="page"] {
    background: transparent !important;
    color: var(--accent-1, #2563eb) !important;
  }
}

/* Hide telemetry cockpit clutter on subpages */
body.nx-page .sys-monitor {
  display: none !important;
}
body.nx-page #sys-monitor-dock {
  display: none !important;
}

/* the active page's link in the header is styled in style~, the same on every page */

/* Unified Subpage Header Bar */
.sub-header-bar {
  position: sticky;
  top: 98px;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.sub-header-shell {
  max-width: 1180px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.sub-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sub-header-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}
.sub-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand, #00f2fe);
  background: rgba(var(--brand-rgb, 0, 242, 254), 0.1);
  border: 1px solid rgba(var(--brand-rgb, 0, 242, 254), 0.25);
}
.sub-header-pill i {
  font-size: 11px;
}
.sub-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 1239px) {
  .sub-header-shell {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .sub-header-bar {
    top: 60px;
  }
  .sub-header-shell {
    height: 52px;
    padding: 0 16px;
  }
  .sub-header-title {
    font-size: 18px;
  }
  .sub-header-pill {
    display: none;
  }
}

/* Right Rail Alignment & Sticky */
.nx .rail {
  top: 162px !important;
  max-height: calc(100dvh - 162px) !important;
  position: sticky !important;
}
body.nx-page[data-page="profile"] .nx .rail {
  top: 98px !important;
  max-height: calc(100dvh - 98px) !important;
}
.nx .rail-top {
  display: flex !important;
  height: 64px !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px !important;
  gap: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 42%, transparent) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
}
.nx .rail-body {
  padding: 20px 20px 80px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nx .btn-rail-top,
.nx .rail-top .btn-rail-top {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  height: 38px !important;
  padding: 0 16px 0 10px !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--surface-2, #17223a) 85%, rgba(var(--brand-rgb, 0, 242, 254), 0.08)) !important;
  border: 1px solid color-mix(in srgb, var(--line) 65%, rgba(var(--brand-rgb, 0, 242, 254), 0.45)) !important;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  text-decoration: none !important;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}
@media (hover: hover) and (pointer: fine) {
  .nx .btn-rail-top:hover,
  .nx .rail-top .btn-rail-top:hover {
    background: color-mix(in srgb, var(--surface-3, #202d49) 80%, rgba(var(--brand-rgb, 0, 242, 254), 0.2)) !important;
    border-color: var(--brand, #00f2fe) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.55) !important;
    transform: translateY(-1.5px) !important;
  }
}
.nx .btn-rail-top .git-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb, 0, 242, 254), 0.16);
  border: 1px solid rgba(var(--brand-rgb, 0, 242, 254), 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand, #00f2fe);
  font-size: 13px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .nx .btn-rail-top:hover .git-icon-wrap {
    background: var(--brand, #00f2fe);
    color: #050a14;
    border-color: var(--brand, #00f2fe);
    transform: scale(1.06);
  }
}
.nx .btn-rail-top .git-arr {
  color: var(--ink-3, #94a3b8);
  transition: transform .25s ease, color .25s ease;
  flex-shrink: 0;
  margin-left: -2px;
}
@media (hover: hover) and (pointer: fine) {
  .nx .btn-rail-top:hover .git-arr {
    color: var(--brand, #00f2fe);
    transform: translate(2px, -2px);
  }
}
@media (max-width: 1239px) {
  .nx .rail {
    display: none !important;
  }
}

/* Content Area Polish */
.nx .pad {
  padding: 28px 32px 56px !important;
  max-width: 860px;
  margin-inline: auto;
}
@media (max-width: 767px) {
  .nx .pad {
    padding: 20px 16px 40px !important;
  }
}

/* Lead Text - Clean Left Aligned matching Reference */
.nx .pad > .lead {
  text-align: left !important;
  max-width: none !important;
  margin: 0 0 28px 0 !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Theme variables and slats cover */
:root, [data-theme="dark"] {
  --bg: #0b1120;
  --surface: #101a2e;
  --surface-2: #17223a;
  --surface-3: #202d49;
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --line: #1d2a45;
  --line-strong: #2b3b5e;
  --cover-1: #00f2fe;
  --cover-2: #4facfe;
  --cover-3: #0284c7;
  --cover-4: #38bdf8;
  --cover-5: #0369a1;
  --cover-6: #00c6ff;
  --slats-bg: #0b1120;
  --slats-color: #00f2fe;
  --slats-glint: #e0f9ff;
}
[data-theme="light"], .light {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #5e6e83;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --cover-1: #93c5fd;
  --cover-2: #60a5fa;
  --cover-3: #3b82f6;
  --cover-4: #2563eb;
  --cover-5: #bfdbfe;
  --cover-6: #1d4ed8;
  --slats-bg: #f8fafc;
  --slats-color: #2563eb;
  --slats-glint: #ffffff;
}
[data-theme="cyberpunk"] {
  --bg: #09090b;
  --surface: #130a10;
  --surface-2: #1e0f18;
  --surface-3: #2b1521;
  --ink: #fbbf24;
  --ink-2: #dcbf86;
  --ink-3: #a1a1aa;
  --line: #3a1824;
  --line-strong: #52202f;
  --cover-1: #f43f5e;
  --cover-2: #eab308;
  --cover-3: #ec4899;
  --cover-4: #fb7185;
  --cover-5: #f59e0b;
  --cover-6: #e11d48;
  --slats-bg: #09090b;
  --slats-color: #f43f5e;
  --slats-glint: #fef08a;
}
[data-theme="mint"] {
  --bg: #f4faf7;
  --surface: #ffffff;
  --surface-2: #eaf6f0;
  --surface-3: #d8ece2;
  --ink: #0f172a;
  --ink-2: #2d3748;
  --ink-3: #5e6e83;
  --line: #d1fae5;
  --line-strong: #a7f3d0;
  --brand-rgb: 16, 185, 129;
  --brand: #10b981;
  --link: #047857;
  --cover-1: #a7f3d0;
  --cover-2: #6ee7b7;
  --cover-3: #34d399;
  --cover-4: #10b981;
  --cover-5: #059669;
  --cover-6: #047857;
  --slats-bg: #f4faf7;
  --slats-color: #10b981;
  --slats-glint: #ffffff;
}
[data-theme="god-mode"] {
  --bg: #000000;
  --surface: #060f08;
  --surface-2: #0b1a0f;
  --surface-3: #112516;
  --ink: #00ff00;
  --ink-2: #4ade80;
  --ink-3: #22c55e;
  --line: #163d20;
  --line-strong: #1f5a2c;
  --cover-1: #00ff00;
  --cover-2: #22c55e;
  --cover-3: #16a34a;
  --cover-4: #4ade80;
  --cover-5: #15803d;
  --cover-6: #86efac;
  --slats-bg: #000000;
  --slats-color: #00ff00;
  --slats-glint: #dcfce7;
}
[data-slats], .cover-banner-wrap {
  position: relative;
  overflow: hidden;
  height: 230px !important;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--slats-bg, var(--bg));
}
@media (max-width: 767px) {
  [data-slats], .cover-banner-wrap {
    height: 170px !important;
  }
}
.cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cover-blob {
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--blob), transparent);
  opacity: .85;
  will-change: transform;
  width: 70%;
  animation: cover-drift var(--dur, 22s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  border-radius: 9999px;
  position: absolute;
  filter: blur(40px);
}
.dark .cover-blob, [data-theme="dark"] .cover-blob { opacity: .7; }
@keyframes cover-drift {
  0% { transform: translate(0) scale(1) rotate(0deg); }
  50% { transform: translate(12%, -10%) scale(1.15) rotate(20deg); }
  100% { transform: translate(-10%, 8%) scale(.95) rotate(-15deg); }
}
.cover-gradient-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 40%, transparent) 80%, var(--bg) 100%);
  z-index: 2;
}
[data-slats-canvas] {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}
[data-slats-canvas] canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Post Cards Contrast & Surface across Subpages */
.nx .post {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease !important;
}
@media (hover: hover) and (pointer: fine) {
  .nx .post:hover {
    background: var(--surface-2) !important;
    border-color: var(--brand) !important;
    transform: translateY(-2px);
  }
}
.nx .post h3 {
  color: var(--ink) !important;
}
.nx .post small {
  color: var(--ink-3) !important;
}

/* Profile Avatar & Hero Optimization */
.nx .nx-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0 24px 0 !important;
  position: relative;
  z-index: 10;
}
.nx .avatar,
.nx-hero .avatar {
  width: 136px !important;
  height: 136px !important;
  margin-top: -68px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: var(--surface) !important;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--brand) 45%, transparent), 0 16px 36px -6px rgba(0, 0, 0, 0.32) !important;
  position: relative !important;
  z-index: 10 !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}
@media (hover: hover) and (pointer: fine) {
  .nx .avatar:hover,
  .nx-hero .avatar:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--brand), 0 20px 42px -6px rgba(0, 0, 0, 0.4) !important;
  }
}
@media (max-width: 767px) {
  .nx .avatar,
  .nx-hero .avatar {
    width: 112px !important;
    height: 112px !important;
    margin-top: -56px !important;
  }
}

/* Profile Name & Verified Badge SEO Hierarchy */
.nx-hero .nx-name {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: var(--ink) !important;
  line-height: 1.2 !important;
}
.nx-hero .verified-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}
.nx-hero .verified-badge svg,
.nx-hero .verified-badge .verified {
  width: 26px !important;
  height: 26px !important;
  color: var(--link) !important;
  display: block !important;
}
@media (max-width: 767px) {
  .nx-hero .nx-name {
    font-size: 24px !important;
  }
  .nx-hero .verified-badge svg,
  .nx-hero .verified-badge .verified {
    width: 22px !important;
    height: 22px !important;
  }
}
.nx .main { border-left: 1px solid var(--line); }
.av.p-img { background-size: cover !important; background-position: center !important; }

/* Experience timeline on profile */
.exp-modern { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.exp-item-modern { display: flex; gap: 24px; position: relative; text-align: left; }
#experience, #tools, .exp-item-modern[id], .person[id] { scroll-margin-top: 110px; }
.person:target { box-shadow: 0 0 0 2px var(--brand), 0 18px 40px -24px var(--shade, rgba(0, 0, 0, 0.4)); }   /* links from the dashboard land clear of the top bar */
.exp-timeline { display: flex; flex-direction: column; align-items: center; width: 48px; flex-shrink: 0; }
.exp-logo-box { width: 48px; height: 48px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; position: relative; z-index: 2; }
.status-dot { position: absolute; bottom: -2px; right: -2px; width: 14px; height: 14px; background: var(--brand); border: 2px solid var(--bg); border-radius: 50%; }
.exp-line { flex: 1; width: 2px; background: var(--line); margin-top: 8px; margin-bottom: 8px; min-height: 40px; }
.exp-item-modern:last-child .exp-line { display: none; }
.exp-content { flex: 1; padding-bottom: 40px; }
.exp-item-modern:last-child .exp-content { padding-bottom: 0; }
.exp-header-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.exp-header-row h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0; }
.exp-when { font-size: 15px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.exp-sub { font-size: 16px; color: var(--ink-2); margin-bottom: 16px; font-weight: 500; }
.exp-bullets { list-style: disc; padding-left: 20px; margin: 0 0 16px 0; display: flex; flex-direction: column; gap: 10px; }
.exp-bullets li { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.exp-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.exp-title-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exp-now { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--link); background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 999px; padding: 2px 9px; }
.exp-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.exp-bullets { position: relative; list-style: none; padding-left: 0; gap: 12px; }
.exp-bullets::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, color-mix(in srgb, var(--brand) 55%, transparent), color-mix(in srgb, var(--brand) 12%, transparent)); }
.exp-bullets li { position: relative; padding-left: 28px; }
.xb-ico { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--link); border: 1.5px solid var(--brand); box-sizing: border-box; }
.exp-bullets li b { color: var(--ink); font-weight: 700; }
.exp-more-li { display: none; padding-left: 0; }
.exp-more-btn { display: none; }
.exp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.exp-stat-card { min-height: 150px; padding: 18px 20px; }
.exp-stat-card .exp-stat-num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: #ffffff; margin: 6px 0 8px; }
.exp-stat-card .exp-stat-cap { font-size: 14px; color: #cbd5e1; line-height: 1.4; margin: 0; }
.nx .widget-location.exp-stat-card .exp-stat-num { color: var(--ink) !important; text-shadow: none; }
/* same pastel brand gradient as the Based-in card, theme-adaptive; the dark frost layer is hidden so the tint shows */
/* stat tiles: standard surface like the cards below, with a faint brand tint; light theme gets the white-mint look */
.nx .widget-location.exp-stat-card { background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 6%, var(--surface)) 0%, color-mix(in srgb, var(--brand) 12%, var(--surface)) 100%) !important; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent) !important; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.25) !important; }
.exp-stat-card .cover, .exp-stat-card .cover-frost, .exp-stat-card .halo-spot, .exp-stat-card .halo-glow { display: none !important; }
.nx .widget-location.exp-stat-card .widget-icon { color: var(--link) !important; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, transparent); }
.nx .widget-location.exp-stat-card .widget-label { color: var(--ink-2) !important; }
.nx .widget-location.exp-stat-card .exp-stat-cap { color: color-mix(in srgb, var(--ink) 80%, transparent) !important; }
.exp-stat-num { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: left center; }
.exp-stat-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: 0.8; pointer-events: none; }
.exp-stat-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%); }
@media (hover: hover) and (pointer: fine) {
  .nx .widget-location.exp-stat-card:hover { transform: translateY(-5px) !important; border-color: color-mix(in srgb, var(--brand) 60%, transparent) !important;
    box-shadow: 0 22px 44px -14px var(--shade, rgba(0, 0, 0, 0.4)), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important; }
  .nx .widget-location.exp-stat-card:hover::after { opacity: 1; }
  .nx .widget-location.exp-stat-card:hover .exp-stat-num { transform: scale(1.06); }
}
/* same pointer-following glow as the Open-to-conversations card, painted on the tile's own background */
.chip-logo { display: inline-flex; align-items: center; gap: 6px; }
.chip-core { font-weight: 600; color: var(--ink); }
.chip-more { color: var(--ink-3); }   /* the muted token, not opacity (0.7 fell under 4.5:1 in Light and Mint) */
.sk-desc { font-size: 13px; color: var(--ink-3); margin: 2px 0 10px; line-height: 1.45; }
.chip-logo img { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
.exp-logo-box img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.edu-logo { flex-shrink: 0; width: 48px; height: 48px; object-fit: contain; background: transparent; border: 0; padding: 0; }
.exp-summary { font-size: 14px; color: var(--ink-3); margin: 6px 0 0; }
.exp-dur { color: var(--ink-3); }
.exp-kind { font-weight: 600; color: var(--ink-2); }
.exp-kind.is-volunteer { color: #d97706; }   /* 5.9:1 on the dark page */
[data-theme="light"] .exp-kind.is-volunteer, [data-theme="mint"] .exp-kind.is-volunteer { color: #b45309; }
.exp-sep { color: var(--ink-3); margin: 0 6px; }
@media (max-width: 767px) {
  .exp-item-modern { gap: 14px; }
  .exp-timeline { width: 40px; }
  .exp-logo-box { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
  .exp-content { padding-bottom: 28px; }
  .exp-header-row h3 { font-size: 17px; }
  .exp-header-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .exp-when { display: block; white-space: normal; font-size: 13px; line-height: 1.4; padding: 0; text-align: left; }
  .exp-stat-card:only-child { grid-column: 1 / -1; }
  .exp-sub { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
  .exp-sep { margin: 0 4px; }
  .exp-bullets li { font-size: 14px; }
  .exp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .exp-stat-card { min-height: 0; padding: 14px 16px; }
  .exp-stat-card .exp-stat-num { font-size: 30px; }
  .exp-stat-card .exp-stat-cap { font-size: 13px; }
  .exp-more-li { display: block; }
  .exp-more-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; margin: -6px 0; color: var(--link); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .exp-more-btn svg { transition: transform 0.2s ease; }
  .exp-item-modern.is-expanded .exp-more-btn svg { transform: rotate(180deg); }
  .bullet-rest { display: none; }
  .exp-item-modern.is-expanded .bullet-rest { display: list-item; }
}
/* Open-to-conversations card: white at rest in the light theme only; dark and other themes keep their own standard look.
   The pointer glow works in every theme. */
/* same standard card surface as the cards below in every theme; light theme gets the white look */
.nx .glow-tile.r-card { background-color: var(--surface) !important; border: 1px solid var(--line) !important; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.18) !important; }
:is([data-theme="light"], [data-theme="mint"]) .nx .glow-tile.r-card { background-color: #ffffff !important; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent) !important; }
.glow-tile .cover, .glow-tile .cover-frost, .glow-tile .halo-spot, .glow-tile .halo-glow { display: none !important; }
.nx .glow-tile.r-card { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important; }
.glow-tile-face { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  z-index: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%); }
.glow-tile > *:not(.glow-tile-face) { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .nx .glow-tile.r-card:hover { transform: translateY(-4px) !important; border-color: color-mix(in srgb, var(--brand) 60%, transparent) !important; box-shadow: 0 22px 44px -14px var(--shade, rgba(0, 0, 0, 0.4)) !important; }
  .nx .glow-tile.r-card:hover .glow-tile-face { opacity: 1; }
}
/* glow painted on the card's own background, so it does not depend on the overlay element */
.nx .glow-tile .r-cta-btn { transition: box-shadow 0.3s ease, transform 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .nx .glow-tile .r-cta-btn:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent), 0 10px 28px -6px var(--shade, rgba(0, 0, 0, 0.4)) !important; } }
:is([data-theme="light"], [data-theme="mint"]) .nx .glow-tile.r-card .r-card-title { color: #0f172a !important; }
:is([data-theme="light"], [data-theme="mint"]) .nx .glow-tile.r-card .r-card-desc { color: #334155 !important; }
:is([data-theme="light"], [data-theme="mint"]) .nx .glow-tile.r-card .r-status-label { color: var(--link) !important; }
:is([data-theme="light"], [data-theme="mint"]) .nx .glow-tile.r-card .r-status-pill { background: color-mix(in srgb, var(--brand) 12%, #ffffff) !important; border-color: color-mix(in srgb, var(--brand) 35%, transparent) !important; }
/* pointer glow: soft ellipse that fades in/out and eases toward the pointer */
@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }
.nx .glow-tile.r-card, .nx .widget-location.exp-stat-card { transition: --glow 0.5s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important; }
.nx .glow-tile.r-card, .nx .widget-location.exp-stat-card {
  background-image: radial-gradient(ellipse 260px 190px at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--brand) calc(var(--glow) * 20%), transparent) 0%,
    color-mix(in srgb, var(--brand) calc(var(--glow) * 7%), transparent) 45%,
    transparent 78%), var(--tile-base, linear-gradient(#ffffff, #ffffff)) !important; }
/* base surface: standard tint on dark themes, plain white in light and mint */
.nx .glow-tile.r-card, .nx .widget-location.exp-stat-card { --tile-base: linear-gradient(120deg, color-mix(in srgb, var(--brand) 6%, var(--surface)) 0%, color-mix(in srgb, var(--brand) 12%, var(--surface)) 100%); }
:is([data-theme="light"], [data-theme="mint"]) .nx .glow-tile.r-card, :is([data-theme="light"], [data-theme="mint"]) .nx .widget-location.exp-stat-card { --tile-base: linear-gradient(#ffffff, #ffffff); }
@media (hover: hover) and (pointer: fine) { .nx .glow-tile.r-card:hover, .nx .widget-location.exp-stat-card:hover { --glow: 1; } }
/* certifications: theme-coloured cards in a responsive grid */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.cert-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .cert-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 14px 30px -14px var(--shade, rgba(0, 0, 0, 0.4)); } }
.cert-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--link); }
.cert-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.cert-card p { margin: 0; font-size: 13px; color: var(--ink-3); }
/* additional: same card language as certifications, with a headline stat and tags */
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.extra-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .extra-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 14px 30px -14px var(--shade, rgba(0, 0, 0, 0.4)); } }
.extra-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 40px; }
.extra-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); padding-top: 4px; }
.extra-stat { text-align: right; white-space: nowrap; flex-shrink: 0; }
.extra-stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.extra-stat span { font-size: 12px; color: var(--ink-3); }
.extra-card h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.extra-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.extra-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
/* sidebar: no inner scroller; it stays sticky while the page scrolls and reaches its full height at the page end */
body.nx-page[data-page] .nx .rail { max-height: none !important; overflow: visible !important; }
/* ...except while the keyboard is in it: taller than the window (the profile's), its lower links would stay below the fold
   however the page scrolls, since it is sticky; then it scrolls inside the window, so the focused link is in sight */
body.nx-page[data-page] .nx .rail:has(:focus-visible) { max-height: calc(100dvh - 162px) !important; overflow-y: auto !important; scroll-padding-block: 16px 48px; }
body.nx-page[data-page="profile"] .nx .rail:has(:focus-visible) { max-height: calc(100dvh - 98px) !important; }
/* the sidebar comes after the page in the HTML, and long pages paint before it arrives: its 392px is kept from the first paint,
   so the page column never jumps sideways */
@media (min-width: 1240px) { .nx .shell.has-rail > .main { max-width: calc(100% - 392px); } }
body.nx-page[data-page="profile"] .nx .rail {
  scrollbar-width: thin !important;
  scrollbar-color: color-mix(in srgb, var(--brand) 45%, transparent) transparent !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent 100%);
  padding-bottom: 24px;
}
body.nx-page[data-page="profile"] .nx .rail::-webkit-scrollbar { display: block !important; width: 6px; }
body.nx-page[data-page="profile"] .nx .rail::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 6px; }
/* library (overview + /library/<section>/), laid out like nahian.bd/library; colours come from theme variables */
.nl-page { display: flex; flex-direction: column; gap: 48px; }
.nl-page [hidden] { display: none !important; }
.nl-tile { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--link); background: var(--surface-2); border: 1px solid var(--line); }
.nl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.nl-head-text { min-width: 0; }
.nl-head-text h2, .nl-head-text h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.nl-head-text p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.nl-seeall { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding-block: 6px; margin-block: -6px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-seeall:hover { color: var(--link); } }
.nl-more { align-self: center; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-more:hover { color: var(--link); border-color: color-mix(in srgb, var(--brand) 55%, transparent); } }
.nl-section { display: flex; flex-direction: column; }
.nl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* hero */
.nl-hero { padding: 30px; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--brand) 16%, var(--surface)) 0%, var(--surface) 65%);
  box-shadow: 0 24px 50px -30px var(--shade, rgba(0, 0, 0, 0.4)); }
.nl-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nl-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.nl-hero-title { margin: 16px 0 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.nl-hero > p { margin: 0 0 24px; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.nl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nl-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none;
  background: color-mix(in srgb, var(--surface) 75%, transparent); transition: transform 0.25s ease, border-color 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .nl-stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); } }
.nl-stat-ico { color: var(--link); display: inline-flex; margin-bottom: 6px; }
.nl-stat b { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.nl-stat > span:last-child { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }

/* tabs on the section pages */
.nl-tabs ul { position: relative; display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.nl-tabs ul::-webkit-scrollbar { display: none; }
.nl-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: all 0.2s ease; }
.nl-tabs a b { font-weight: 600; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .nl-tabs a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 45%, transparent); } }
.nl-tabs a.is-active { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.nl-tabs a.is-active b { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.nl-page > .nl-tabs + .nl-section { margin-top: -20px; }

/* skill cards */
.nl-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  .nl-card:hover, .nl-bm:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, transparent);
    box-shadow: 0 18px 36px -20px var(--shade, rgba(0, 0, 0, 0.4)); }
}
.nl-card-head { display: flex; align-items: flex-start; gap: 12px; }
.nl-card-title { min-width: 0; flex: 1; }
.nl-card-title h3 { margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.nl-card-title h3 a { display: inline-block; min-height: 24px; color: var(--ink); text-decoration: none; }
.nl-card-title code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }
.nl-card-title code span { color: var(--link); }
.nl-by { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13.5px; color: var(--ink-3); }
.nl-by img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.nl-count { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); border: 1px solid var(--line); background: var(--surface-2); }
.nl-count i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.nl-open { flex-shrink: 0; color: var(--ink-3); display: inline-flex; padding: 7px; margin: -7px; border-radius: 10px; transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-open:hover { color: var(--link); } }
.nl-card > p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.nl-cmd { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 5%, var(--surface)); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.nl-cmd code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: inherit; line-height: 1.5; color: var(--ink-2); }
.nl-cmd code span { color: var(--link); }
.nl-copy { flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
.nl-copy svg { grid-area: 1 / 1; transition: opacity 0.2s ease, transform 0.2s ease; }
.nl-copy svg:last-child { opacity: 0; transform: scale(0.6); }
@media (hover: hover) and (pointer: fine) { .nl-copy:hover { color: var(--link); border-color: color-mix(in srgb, var(--brand) 55%, transparent); } }
.nl-copy.is-copied { color: var(--link); }
.nl-copy.is-copied svg:first-child { opacity: 0; transform: scale(0.6); }
.nl-copy.is-copied svg:last-child { opacity: 1; transform: none; }
.nl-group + .nl-group { margin-top: 36px; }
.nl-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.nl-group-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.nl-group-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.nl-group-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.nl-group-head p a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nl-group-head p a:hover { color: var(--link); } }

/* bookmarks */
.nl-chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; scroll-behavior: smooth; }
.nl-chips.fade-r, .nl-tabs ul.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.nl-chips.fade-l, .nl-tabs ul.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.nl-chips.fade-l.fade-r, .nl-tabs ul.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.nl-chips::-webkit-scrollbar { display: none; }
.nl-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: all 0.2s ease; }
.nl-chips button b { font-weight: 600; color: var(--ink-3); }
.nl-chips button.is-active { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.nl-chips button.is-active b { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.nl-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 10px 26px 10px 10px; margin-bottom: 20px;
  border-radius: 28px; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 18%, var(--surface)) 0%, var(--surface) 70%); }
.nl-feature-img img { display: block; width: 100%; aspect-ratio: 960 / 504; object-fit: cover; border-radius: 20px; }
.nl-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.nl-badges span, .nl-bm-badges span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.nl-badges .nl-top, .nl-bm-badges .nl-top { color: var(--link); }
.nl-feature-body h3 { margin: 14px 0 4px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.nl-feature-by { margin: 0 0 10px; font-size: 14px; color: var(--ink-3); }
.nl-feature-body > p:not(.nl-badges):not(.nl-feature-by) { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.nl-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 700; text-decoration: none;
  background: var(--brand); color: color-mix(in srgb, var(--bg) 92%, #000); transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--shade, rgba(0, 0, 0, 0.4)); } }
.nl-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-ghost:hover { color: var(--link); border-color: color-mix(in srgb, var(--brand) 55%, transparent); } }
.nl-bm { display: flex; flex-direction: column; padding: 6px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.nl-bm-thumb { position: relative; display: block; overflow: hidden; border-radius: 19px; background: var(--surface-2); }
.nl-bm-thumb img { display: block; width: 100%; aspect-ratio: 960 / 504; object-fit: cover; transition: transform 0.4s ease; }
@media (hover: hover) and (pointer: fine) { .nl-bm:hover .nl-bm-thumb img { transform: scale(1.03); } }
.nl-bm-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.nl-bm-badges span { color: #fff; background: rgba(15, 23, 42, 0.78); border-color: transparent; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nl-bm-badges .nl-top { color: #fff; }
.nl-bm-badges .nl-top svg { color: #34d399; }
.nl-bm-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; flex: 1; }
.nl-bm-body h3 { margin: 0; font-size: 16.5px; font-weight: 700; }
.nl-bm-body h3 a { display: inline-block; min-height: 24px; color: var(--ink); text-decoration: none; }
.nl-bm-body > p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.nl-domain { display: flex; align-items: center; gap: 8px; margin-top: auto !important; padding-top: 8px; font-size: 13px !important; color: var(--ink-3) !important; }
.nl-domain span { flex: 1; }
.nl-bm-sec { margin-top: 28px; }
.nl-bm-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nl-bm-sec-head h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.nl-bm-sec-head h3 svg { color: var(--link); }
.nl-bm-sec-head p { margin: 0; font-size: 14px; color: var(--ink-3); }
.nl-ext { margin-top: 36px; }
.nl-ext-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--link); }
.nl-ext-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.nl-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); }
.nl-ext-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); }
.nl-ext-id { display: flex; align-items: center; gap: 12px; }
.nl-ext-id img { width: 48px; height: 48px; border-radius: 12px; }
.nl-ext-id h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.nl-ext-feature-body > p { margin: 14px 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.nl-ext-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-ext-shot img { display: block; width: 100%; aspect-ratio: 960 / 504; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.nl-ext-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nl-ext-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-ext-list a:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); } }
.nl-ext-ico img { display: block; width: 40px; height: 40px; border-radius: 10px; }
.nl-ext-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nl-ext-meta span:first-child { font-size: 15px; font-weight: 700; color: var(--ink); }
.nl-ext-meta span:last-child { font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* music */
.nl-player { padding: 8px; border-radius: 28px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  box-shadow: 0 24px 50px -32px var(--shade, rgba(0, 0, 0, 0.4)); }
.nl-screen, .nl-ep-screen { position: relative; overflow: hidden; border-radius: 22px; background: #000; aspect-ratio: 16 / 9; }
.nl-screen { width: 100%; min-height: 200px; }   /* YouTube's smallest player, on a phone too; the set width keeps the box from widening */
.nl-screen-thumb, .nl-ep-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-page .nl-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff !important; background: #ef233c !important; box-shadow: 0 10px 30px var(--shade, rgba(0, 0, 0, 0.4)); transition: transform 0.2s ease; padding: 0; }
@media (hover: hover) and (pointer: fine) { .nl-page .nl-play:hover { transform: scale(1.06); } }
.nl-page .nl-play svg { margin-left: 4px; }
.nl-frame, .nl-frame iframe, .nl-ep-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nl-frame { display: none; }
.nl-player.is-playing .nl-frame { display: block; }
.nl-player.is-playing .nl-play, .nl-player.is-playing .nl-screen-thumb { display: none !important; }
.nl-player-bar { display: flex; align-items: center; gap: 14px; padding: 14px 10px 8px; }
.nl-player-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nl-player-meta { flex: 1; min-width: 0; }
.nl-player-meta p { margin: 0; }
.nl-upnext { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--link); }
.nl-eq { display: none; align-items: flex-end; gap: 2px; height: 10px; }
.nl-eq i { width: 2px; background: var(--brand); animation: nl-eq 0.9s ease-in-out infinite; }
.nl-eq i:nth-child(2) { animation-delay: 0.2s; } .nl-eq i:nth-child(3) { animation-delay: 0.4s; } .nl-eq i:nth-child(4) { animation-delay: 0.1s; }
.nl-player.is-playing .nl-eq { display: inline-flex; }
/* the track plays in the site's dock (TubeDock in focus/focus.js), which sits in this screen while the page is in view */
.nl-player.is-docked.is-dock-playing .nl-eq { display: inline-flex; }
@keyframes nl-eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.nl-player-title { font-size: 16.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-player-sub { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.nl-player-ctrl { display: flex; gap: 8px; flex-shrink: 0; }
.nl-player-ctrl button { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-player-ctrl button:hover { color: var(--link); border-color: color-mix(in srgb, var(--brand) 55%, transparent); } }
.nl-tracks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nl-tracks button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; cursor: pointer; text-align: left;
  font: inherit; color: inherit; background: transparent; border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-tracks button:hover { background: var(--surface); } }
.nl-tracks button.is-current { background: var(--surface); border-color: var(--line); }
.nl-n { width: 24px; text-align: center; font-size: 13px; color: var(--ink-3); flex-shrink: 0; }
.nl-tthumb { position: relative; flex-shrink: 0; width: 80px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.nl-tthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nl-tthumb span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .nl-tracks button:hover .nl-tthumb span { opacity: 1; } }
.nl-tmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nl-tmeta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-tmeta span:first-child { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nl-tmeta span:last-child { font-size: 12.5px; color: var(--ink-3); }
.nl-tracks button.is-current .nl-tmeta span:first-child { color: var(--link); }
.nl-ar { flex-shrink: 0; font-size: 13.5px; color: var(--ink-3); }
.nl-artist { margin-top: 26px; }
.nl-block { margin-top: 8px; }
.nl-block + .nl-block { margin-top: 26px; }
/* touch screens: a Library section below the first screen is laid out and painted only when it comes near (Bookmarks is
   17,000px tall on a phone, Watch & Listen 8,000px), so a tab change paints sooner; auto keeps the size it last had.
   Not with a mouse: this clips what a section paints outside itself, and a hovered card lifts with a shadow */
@media (hover: none), (pointer: coarse) {
  .nl-block ~ .nl-block, .nl-feats, .nl-bm-sec, .nl-ext, .nl-section + .nl-section { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
  .nl-bm-sec { contain-intrinsic-size: auto 2000px; }   /* a bookmark group is about twice as tall */
}
.nl-block-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-2); }
.nl-gap { margin-top: 36px; }
.nl-block .nl-artist-head { margin-bottom: 12px; }
/* the channel up on the stage leaves the cards below; the category filter cannot bring it back */
.nl-page .is-up { display: none !important; }
.nl-stage:focus:not(:focus-visible) { outline: none; }
.nl-feat { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; margin-bottom: 14px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.nl-vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nl-vid p { margin: 8px 2px 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-vid-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.nl-vid-screen img, .nl-vid-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.nl-page .nl-play.nl-play-sm { width: 44px; height: 44px; }
.nl-ch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
@media (hover: hover) and (pointer: fine) { a.nl-ch:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); transform: translateY(-2px); } }
.nl-ch img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nl-ch-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nl-ch-meta b { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-ch-meta small { font-size: 12px; color: var(--ink-3); }
.nl-ch-meta span { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.nl-ch-big { flex-direction: column; align-items: flex-start; height: 100%; padding: 6px; border: 0; background: transparent; }
@media (hover: hover) and (pointer: fine) { a.nl-ch-big:hover { transform: none; } }
.nl-ch-big img { width: 56px; height: 56px; }
.nl-ch-big .nl-ch-meta b { font-size: 17px; white-space: normal; }
.nl-ch-big .nl-ch-meta span { font-size: 13.5px; margin-top: 6px; }
.nl-ch-visit { margin-top: auto; font-size: 13px; padding: 7px 12px; }
.nl-ch-visit svg { color: #ef233c; }
.nl-learn { margin-top: 44px !important; }
.nl-more-head { margin-top: 48px; margin-bottom: 6px; }
.nl-learn-head.nl-more-head h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.nl-learn-head.nl-more-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-3); }
.nl-block.nl-cat { margin-top: 22px; }
.nl-cat-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); }
.nl-cat-label b { font-size: 11.5px; font-weight: 700; letter-spacing: 0; padding: 1px 8px; border-radius: 999px; color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line); }

.nl-learn-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.nl-learn-head h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.nl-learn-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-3); }
.nl-shelf { padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.nl-shelf + .nl-shelf { margin-top: 14px; }
.nl-shelf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nl-shelf-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nl-shelf-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nl-shelf-id b { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.nl-shelf-id span { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.nl-shelf-visit { flex-shrink: 0; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease; }
.nl-shelf-visit svg { color: #ef233c; }
@media (hover: hover) and (pointer: fine) { .nl-shelf-visit:hover { color: var(--link); border-color: color-mix(in srgb, var(--brand) 55%, transparent); } }
.nl-shelf-row { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-behavior: smooth; }
.nl-shelf-row::-webkit-scrollbar { display: none; }
.nl-shelf-row .nl-vid { flex: 0 0 190px; scroll-snap-align: start; }
.nl-shelf-row .nl-vid p { font-size: 12.5px; }
.nl-shelf-row.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.nl-shelf-row.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px); mask-image: linear-gradient(to right, transparent, #000 48px); }
.nl-shelf-row.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
@media (max-width: 767px) {
  .nl-shelf { padding: 14px; }
  .nl-shelf-id span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nl-shelf-visit { padding: 7px 9px; }
  .nl-shelf-visit span { display: none; }
  .nl-shelf-row .nl-vid { flex-basis: 62%; }
}
.nl-ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nl-ch-strip { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nl-ch-strip .nl-ch-meta span { display: none; }
@media (max-width: 767px) {
  .nl-feat { grid-template-columns: 1fr; }
  .nl-ch-big { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nl-ch-big .nl-ch-meta { flex-basis: calc(100% - 70px); }
  .nl-ch-visit { margin-top: 4px; }
  .nl-vids { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .nl-vids::-webkit-scrollbar { display: none; }
  .nl-vid { flex: 0 0 78%; scroll-snap-align: start; }
  .nl-ch-grid { grid-template-columns: 1fr; }
}
.nl-artist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px; }
.nl-artist-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.nl-artist-head h3 img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nl-artist-head h3 span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.nl-artist-head a { display: inline-flex; align-items: center; gap: 6px; padding-block: 6px; margin-block: -6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nl-artist-head a:hover { color: var(--link); } }

@media (max-width: 767px) {
  .nl-page { gap: 40px; }
  .nl-hero { padding: 20px; border-radius: 22px; }
  .nl-hero-title { font-size: 28px; }
  .nl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-grid, .nl-ext-list { grid-template-columns: 1fr; }
  .nl-feature, .nl-ext-feature { grid-template-columns: 1fr; padding: 8px 8px 18px; gap: 14px; }
  .nl-feature-body, .nl-ext-feature-body { padding: 0 10px; }
  .nl-feature-body h3 { font-size: 21px; }
  .nl-head { flex-wrap: wrap; }
  .nl-head-text { flex: 1; min-width: 0; }
  .nl-ar { display: none; }
}
/* ================= button system: one primary and one secondary style, theme-aware ================= */
html body :is(.mobile-contact-btn, .btn.btn-primary, .nl-cta, .r-cta-btn, .lib-cta):not(#_btn) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  padding: 10px 20px !important; border-radius: 999px !important; border: 1px solid transparent !important;
  font-weight: 700 !important; font-size: 14px !important; letter-spacing: 0.01em !important; text-transform: none !important; text-decoration: none !important;
  color: var(--accent-active-color, #0b1120) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 55%), var(--gradient-accent, var(--accent-1)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), var(--b3-drop, 0 6px 16px -8px rgba(0,0,0,0.55)) !important;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, filter .2s ease !important;
}
@media (hover: hover) and (pointer: fine) {
  html body :is(.mobile-contact-btn, .btn.btn-primary, .nl-cta, .r-cta-btn, .lib-cta):not(#_btn):hover {
    transform: translateY(-2px) !important; filter: brightness(1.06) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--b3-drop-hover, 0 10px 22px -10px rgba(0,0,0,0.6)) !important;
  }
}
html body :is(.mobile-contact-btn, .btn.btn-primary, .nl-cta, .r-cta-btn, .lib-cta):not(#_btn) * { color: inherit !important; }
html body :is(.mobile-contact-btn, .btn.btn-primary, .nl-cta, .r-cta-btn, .lib-cta):not(#_btn) svg { stroke: currentColor !important; }
html body :is(.btn-rail-top, .btn.btn-secondary, .btn.secondary-btn, .nl-more, .nl-shelf-visit, .nl-ghost, .f-btn):not(#_btn) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  border-radius: 999px !important; border: 1px solid transparent !important;
  font-weight: 600 !important; text-transform: none !important; letter-spacing: 0.01em !important; text-decoration: none !important;
  color: var(--text-primary, inherit) !important;
  background:
    linear-gradient(color-mix(in srgb, var(--bg-color, #0b1120) 82%, transparent), color-mix(in srgb, var(--bg-color, #0b1120) 82%, transparent)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--accent-1) 75%, transparent), color-mix(in srgb, var(--accent-1) 12%, transparent) 55%, color-mix(in srgb, var(--accent-2, var(--accent-1)) 55%, transparent)) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, color .2s ease !important;
}
html body :is(.btn.btn-secondary, .btn.secondary-btn, .nl-more):not(#_btn) { padding: 10px 20px !important; font-size: 14px !important; }
html body :is(.btn-rail-top, .nl-shelf-visit, .nl-ghost, .f-btn):not(#_btn) { padding: 7px 14px !important; font-size: 13px !important; }
@media (hover: hover) and (pointer: fine) {
  html body :is(.btn-rail-top, .btn.btn-secondary, .btn.secondary-btn, .nl-more, .nl-shelf-visit, .nl-ghost, .f-btn):not(#_btn):hover {
    transform: translateY(-1px) !important; color: var(--accent-1) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), var(--b3-drop, 0 6px 16px -8px rgba(0,0,0,0.55)) !important;
  }
}
html body :is(.mobile-contact-btn, .btn, .nl-cta, .r-cta-btn, .lib-cta, .btn-rail-top, .nl-more, .nl-shelf-visit, .nl-ghost, .f-btn):not(#_btn):active { transform: scale(0.97) !important; }
html body :is(.mobile-contact-btn, .btn, .nl-cta, .r-cta-btn, .btn-rail-top, .nl-more, .nl-shelf-visit, .nl-ghost, .f-btn):not(#_btn):focus-visible {
  outline: 2px solid var(--accent-1) !important; outline-offset: 3px !important;
}
/* ================= bottom tab bar: 64px glass bar, sliding pill, muted inactive tabs ================= */
@media (max-width: 1023.98px) {
  html body .bottom-nav:not(#_bn) {
    height: calc(64px + env(safe-area-inset-bottom)) !important; padding: 0 6px env(safe-area-inset-bottom) !important; box-sizing: border-box !important;
    align-items: center !important; border-radius: 0 !important;
    background: color-mix(in srgb, var(--bg-color, #0b1120) 94%, transparent) !important;   /* 94%: bright thumbnails behind the bar pulled the 12px labels under 4.5:1 at 80% */
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important; backdrop-filter: blur(18px) saturate(160%) !important;
    border-top: 1px solid color-mix(in srgb, var(--text-primary, #fff) 9%, transparent) !important; box-shadow: none !important;
  }
  html body .bottom-nav:not(#_bn) a {
    position: relative; z-index: 1; height: 56px !important; min-width: 44px; gap: 4px !important; padding: 0 !important; background: transparent !important;
    font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0.01em;   /* phone text never under 12px */
    color: color-mix(in srgb, var(--text-primary, #fff) 72%, transparent) !important; transition: color .2s ease, transform .15s ease !important;
  }
  html body .bottom-nav:not(#_bn) a svg { width: 24px !important; height: 24px !important; padding: 0 !important; background: none !important; box-sizing: content-box !important; }
  html body .bottom-nav:not(#_bn) a.is-pending { color: var(--accent-1) !important; }
  html body .bottom-nav:not(#_bn) a[aria-current="page"] { color: var(--accent-1) !important; font-weight: 700 !important; background: transparent !important; }
  html body .bottom-nav:not(#_bn) a[aria-current="page"] svg { background: none !important; }
  html body .bottom-nav:not(#_bn) a:active { transform: scale(0.92) !important; }
  .bottom-nav .bn-pill { position: absolute; left: 0; top: 0; width: 56px; height: 32px; border-radius: 999px; pointer-events: none; opacity: 0;
    background: color-mix(in srgb, var(--accent-1) 18%, transparent); transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .2s ease; }
  /* mint: the brand green is too light for text on the pale bar */
  [data-theme="mint"] body .bottom-nav:not(#_bn) a:is([aria-current="page"], .is-pending) { color: #047857 !important; }
}
/* tablets (768-1023px): same tab bar as phones, fixed to the bottom, with room reserved below the content */
/* (portrait-height only: phones held sideways already show the desktop menu) */
@media (min-width: 768px) and (max-width: 1023.98px) and (min-height: 600px) {
  html body .bottom-nav:not(#_bn) { display: flex !important; position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    z-index: 9990 !important; justify-content: space-around !important; }
  html body .bottom-nav:not(#_bn) a { flex: 0 1 120px !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; }
  html body:not(#_bn) { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  html body.drawer-open .bottom-nav:not(#_bn):not(#_bn2) { display: none !important; }
}
/* tab press feedback: no grey browser flash; the icon squeezes at once and eases back, like a native tab bar (the tab
   itself never shrinks: the touch layer's press scale skips it) */
@media (max-width: 1023.98px) {
  html body .bottom-nav:not(#_bn) a { -webkit-tap-highlight-color: transparent !important; -webkit-touch-callout: none; user-select: none; }
  html body .bottom-nav:not(#_bn) a:active { transform: none !important; }
  .bottom-nav .bn-ico { position: relative; display: grid; place-items: center; width: 56px; height: 32px; border-radius: 999px; overflow: hidden; isolation: isolate;
    transition: transform .18s cubic-bezier(.2,.8,.2,1); }
  .bottom-nav a:active .bn-ico { transform: scale(.88); transition-duration: 0s; }
  .bottom-nav .bn-ico svg { position: relative; z-index: 1; }
  .bottom-nav .bn-label { line-height: 1.1; }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-nav .bn-ico, .bottom-nav a:active .bn-ico { transition: none; transform: none; }
}
/* phones: featured channels as compact shelves (one-row header, swipeable videos with dots) */
.nl-dots { display: none; }
@media (max-width: 767px) {
  .nl-feat { display: block; padding: 14px; }
  .nl-feat .nl-ch-big { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "img name visit" "img handle visit" "desc desc desc";
    column-gap: 12px; row-gap: 0; align-items: center; padding: 0 0 12px; height: auto; }
  .nl-feat .nl-ch-big img { grid-area: img; width: 40px; height: 40px; }
  .nl-feat .nl-ch-big .nl-ch-meta { display: contents; }
  .nl-feat .nl-ch-big .nl-ch-meta b { grid-area: name; font-size: 15.5px; align-self: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nl-feat .nl-ch-big .nl-ch-meta small { grid-area: handle; align-self: start; }
  .nl-feat .nl-ch-big .nl-ch-meta span { grid-area: desc; margin-top: 8px; font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html body .nl-feat .nl-ch-visit:not(#_btn) { grid-area: visit; margin: 0 !important; padding: 6px 11px !important; font-size: 0 !important; gap: 0 !important; }
  .nl-feat .nl-ch-visit svg { width: 15px; height: 15px; }
  .nl-feat .nl-ch-visit::after { content: "Visit"; font-size: 12.5px; font-weight: 600; margin-left: 5px; }
  .nl-feat .nl-vids { gap: 12px; scroll-snap-type: x mandatory; }
  .nl-feat .nl-vid { flex: 0 0 75%; }
  .nl-vids.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .nl-vids.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
  .nl-vids.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  .nl-dots { display: flex; justify-content: center; gap: 0; margin-top: 3px; }
  .nl-dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: none; }
  .nl-dots button::before { content: ""; position: absolute; top: 9px; left: 9px; width: 6px; height: 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .25s ease, left .25s ease, background .25s ease; }
  .nl-dots button.is-on { width: 30px; }
  .nl-dots button.is-on::before { left: 6px; width: 18px; background: var(--brand); }
  .nl-dots button:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
}
.chip-solid { background: var(--surface-2); color: var(--ink-2); padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; border: 1px solid var(--line); }

/* Floating Controls (Theme, Sound, WhatsApp) & AI Widget */

@media (max-width: 767px) {
  .nx .filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 8px;
    scrollbar-width: none;
  }
  .nx .filters::-webkit-scrollbar {
    display: none;
  }
}

/* Project Cards with Visual Image Covers & Matrix Halftone Dot Animation */
.nx .proj {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}
.nx .proj-cover {
  position: relative;
  height: 195px;
  border-radius: 20px;
  overflow: hidden;
  background: #090e17;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.nx .proj-cover::after {
  display: none !important;
}
.nx .proj-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1), filter .4s ease;
  z-index: 1;
  filter: brightness(1);
}
.nx .proj-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 11, 20, 0.5) 0%, rgba(6, 11, 20, 0.82) 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.nx .proj-dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s ease;
}
.nx .proj-cover .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
}
.nx .proj-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  border-radius: 9999px;
  background: rgba(8, 14, 26, 0.88);
  border: 1px solid rgba(var(--brand-rgb, 0, 242, 254), 0.5);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  text-decoration: none !important;
  pointer-events: none;
  opacity: 0;
  cursor: pointer;
  transition: opacity .18s cubic-bezier(0.16, 1, 0.3, 1), transform .18s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nx .proj-center-btn .btn-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb, 0, 242, 254), 0.2);
  border: 1px solid rgba(var(--brand-rgb, 0, 242, 254), 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1, #00f2fe);
  font-size: 11px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  flex-shrink: 0;
}
.nx .proj-center-btn .btn-text {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Universal Hover & Active Animation (Desktop Mouse + Mobile Touch & Tap) */
.nx .proj:active,
.nx .proj:focus-within,
.nx .proj.is-active,
.nx .proj.is-touch-active {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb, 0, 242, 254), .85), 0 20px 40px -20px var(--shade, rgba(0, 0, 0, 0.4));
}
@media (hover: hover) and (pointer: fine) {
  .nx .proj:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb, 0, 242, 254), .85), 0 20px 40px -20px var(--shade, rgba(0, 0, 0, 0.4));
  }
}
.nx .proj:active .proj-img,
.nx .proj:focus-within .proj-img,
.nx .proj.is-active .proj-img,
.nx .proj.is-touch-active .proj-img {
  transform: scale(1.05);
  filter: brightness(0.4);
}
@media (hover: hover) and (pointer: fine) {
  .nx .proj:hover .proj-img {
    transform: scale(1.05);
    filter: brightness(0.4);
  }
}
.nx .proj:active .proj-overlay,
.nx .proj:focus-within .proj-overlay,
.nx .proj.is-active .proj-overlay,
.nx .proj.is-touch-active .proj-overlay {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (hover: hover) and (pointer: fine) {
  .nx .proj:hover .proj-overlay {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
.nx .proj:active .proj-dots-canvas,
.nx .proj:focus-within .proj-dots-canvas,
.nx .proj.is-active .proj-dots-canvas,
.nx .proj.is-touch-active .proj-dots-canvas {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (hover: hover) and (pointer: fine) {
  .nx .proj:hover .proj-dots-canvas {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
.nx .proj:active .proj-center-btn,
.nx .proj:focus-within .proj-center-btn,
.nx .proj.is-active .proj-center-btn,
.nx .proj.is-touch-active .proj-center-btn {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .nx .proj:hover .proj-center-btn {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (hover: hover) and (pointer: fine) {
  .nx .proj-center-btn:hover {
    background: rgba(10, 18, 34, 0.98) !important;
    border-color: rgba(var(--brand-rgb, 0, 242, 254), 0.9) !important;
    transform: translate(-50%, -50%) scale(1.08) !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(var(--brand-rgb, 0, 242, 254), 0.8) !important;
  }
  .nx .proj-center-btn:hover .btn-ico {
    transform: translate(1px, -1px);
    background: rgba(var(--brand-rgb, 0, 242, 254), 0.45) !important;
    color: #ffffff;
  }
}

/* AI Tools and Tech Stack Pills (Design Specified Soft Gradient Badges) */
.nx .pills {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 640px;
}
.nx .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  user-select: none;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-1);
}
.nx .pill img,
.nx .pill svg,
.nx .pill i {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.nx .pill.ai {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, var(--line)), 0 2px 8px -2px var(--shade, rgba(0, 0, 0, 0.4));
  color: var(--ink-1);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  animation: ai-pill-breathe 4.5s ease-in-out infinite alternate;
}
.nx .pill.ai:nth-child(1) { animation-delay: 0s; }
.nx .pill.ai:nth-child(2) { animation-delay: 0.8s; }
.nx .pill.ai:nth-child(3) { animation-delay: 1.6s; }
.nx .pill.ai:nth-child(4) { animation-delay: 2.4s; }
.nx .pill.ai:nth-child(5) { animation-delay: 3.2s; }

:is([data-theme="dark"], [data-theme="cyberpunk"], [data-theme="god-mode"]) .nx .pill.ai {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, color-mix(in srgb, var(--c) 16%, rgba(15, 23, 42, 0.78)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 46%, transparent), 0 2px 10px -2px var(--shade, rgba(0, 0, 0, 0.4));
  color: #f8fafc;
}

:is([data-theme="light"], [data-theme="mint"], .light) .nx .pill.ai {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, var(--line)), 0 2px 8px -2px var(--shade, rgba(0, 0, 0, 0.4));
  color: var(--ink-1);
}

/* Glass Shimmer Sheen Light Reflection */
.nx .pill.ai::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
:is([data-theme="light"], [data-theme="mint"], .light) .nx .pill.ai::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
}
@media (hover: hover) and (pointer: fine) {
  .nx .pill.ai:hover::after {
    left: 170%;
  }
}

/* Hover: Elevation, Brand Glow Aura & Expansion */
@media (hover: hover) and (pointer: fine) {
  .nx .pill.ai:hover {
    transform: translateY(-2.5px) scale(1.04);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 80%, transparent), 0 10px 24px -3px var(--shade, rgba(0, 0, 0, 0.4));
  }
}
.nx .pill.ai:active {
  transform: translateY(0) scale(0.96);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 2px 6px var(--shade, rgba(0, 0, 0, 0.4));
}

/* Icon Micro-Spring Interaction */
.nx .pill.ai img,
.nx .pill.ai svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .nx .pill.ai:hover img,
  .nx .pill.ai:hover svg {
    transform: scale(1.18) rotate(5deg);
  }
}

/* Ambient Breathing Glow Keyframes */
@keyframes ai-pill-breathe {
  0% {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, var(--line)), 0 2px 6px -2px var(--shade, rgba(0, 0, 0, 0.4));
  }
  100% {
    box-shadow: inset 0 0 0 1.2px color-mix(in srgb, var(--c) 55%, var(--line)), 0 4px 12px 0px var(--shade, rgba(0, 0, 0, 0.4));
  }
}

/* Modern Profile Meta Widgets (Location, Works, Languages - Theme Adaptive) */
.meta-widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.meta-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .meta-grid-2 {
    grid-template-columns: 1fr;
  }
}

.widget-card {
  border-radius: 22px;
  padding: 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* 1. Location Card (Theme Adaptive Pastel Gradient) */
.widget-location {
  background: linear-gradient(120deg, 
    color-mix(in srgb, var(--brand) 4%, var(--surface)) 0%, 
    color-mix(in srgb, var(--brand) 12%, var(--surface)) 45%, 
    color-mix(in srgb, var(--brand) 22%, var(--surface)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  box-shadow: 0 8px 24px -6px var(--shade, rgba(0, 0, 0, 0.4));
  color: var(--ink);
  transition: all .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .widget-location:hover {
    border-color: color-mix(in srgb, var(--brand) 48%, transparent);
    box-shadow: 0 12px 28px -6px var(--shade, rgba(0, 0, 0, 0.4));
  }
}
.widget-location .location-ico {
  color: var(--link);
}
.widget-location .widget-label {
  color: var(--ink-2);
  font-weight: 600;
  opacity: 1;
}
.widget-location .widget-title {
  color: var(--ink);
}
.widget-location .clock-time {
  color: var(--ink);
}
.widget-location .clock-tz {
  color: var(--ink-2);
}
.widget-location .daypart-svg {
  color: #f59e0b;
}
.widget-location .daypart-text {
  color: var(--ink-2);
  font-weight: 500;
}

.widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--link);
}
.widget-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-2);
}

.widget-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}

.clock-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.clock-time {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.clock-tz {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin-left: 2px;
}

.clock-daypart {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  margin-top: auto;
  padding-top: 10px;
}
.daypart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.daypart-svg {
  color: #f59e0b;
  width: 16px;
  height: 16px;
}
.daypart-text {
  color: var(--ink-2);
  font-weight: 500;
}

/* 2. Works Card */
.widget-works {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .widget-works {
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.35);
}
.widget-works .widget-title {
  color: var(--ink);
  margin-bottom: 6px;
}
.widget-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.works-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.work-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8.5px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s ease;
}
.work-chip svg {
  color: #10b981;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .work-chip:hover {
    background: var(--surface-3, var(--surface-2));
    border-color: rgba(var(--brand-rgb), 0.45);
  }
}
.work-chip-cv {
  background: rgba(var(--brand-rgb), 0.1);
  border-color: rgba(var(--brand-rgb), 0.3);
  color: var(--link);
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .work-chip-cv:hover {
    background: rgba(var(--brand-rgb), 0.18);
    border-color: var(--brand);
  }
}
.work-chip-cv svg {
  color: var(--link);
}

/* 3. Languages Card */
.widget-languages {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .widget-languages {
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.35);
}
.widget-languages .widget-head {
  margin-bottom: 20px;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 768px) {
  .lang-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.lang-col {
  display: flex;
  flex-direction: column;
}
.lang-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lang-name {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.lang-audio-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .lang-audio-btn:hover {
    background: rgba(var(--brand-rgb), 0.14);
    border-color: var(--brand);
    color: var(--link);
    transform: scale(1.08);
  }
}
.lang-audio-btn.playing {
  animation: pulse-audio .6s ease infinite alternate;
  background: var(--brand);
  color: var(--on-brand, #ffffff);
  border-color: var(--brand);
}
@keyframes pulse-audio {
  from { transform: scale(1); }
  to { transform: scale(1.15); box-shadow: none; }
}

.lang-bars {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.bar-seg {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: var(--line);
  transition: background .3s;
}
.bar-seg.active {
  background: var(--brand);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  width: fit-content;
  margin-bottom: 10px;
}
.lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.lang-legend { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
.lang-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Theme-Adaptive Emerald/Cyan/Rose/Matrix Aurora Glass & Spotlight
   Applied ONLY to the 4 Screenshot Cards:
   1. Location Card (.widget-location)
   2. Open to Work Card (.r-card-open)
   3. People Hero (.people-hero)
   4. Contact Heroes (.cta-hero, .svc-card.wide)
   ========================================================================== */

/* --- 1. DARK THEME (Default: Deep Midnight Navy & Electric Cyan / Blue) --- */
:root,
[data-theme="dark"],
:root[data-theme="dark"] {
  --color-brand-300: #38bdf8;
  --color-brand-400: #00f2fe;
  --cover-base-1: #071326;
  --cover-base-2: #0a1931;
  --cover-1: #00f2fe;
  --cover-2: #38bdf8;
  --cover-3: #2563eb;
  --cover-4: #0ea5e9;
  --cover-5: #818cf8;
  --cover-6: #06b6d4;
  --aurora-frost: rgba(7, 19, 38, 0.55);
  --aurora-border: linear-gradient(150deg, rgba(255, 255, 255, 0.28), color-mix(in srgb, #00f2fe 50%, transparent) 30%, transparent 55%, color-mix(in srgb, #2563eb 55%, transparent));
  --aurora-title: #ffffff;
  --aurora-label: #7dd3fc;
  --aurora-ico: #00f2fe;
  --aurora-tz: #b4c0d0;   /* #94a3b8 was 4.3:1 on the blue clock tile */
  --aurora-daypart: #cbd5e1;
}

/* --- 2. LIGHT THEME (Clean Royal Sapphire Blue & Ice Sky) --- */
[data-theme="light"],
:root[data-theme="light"] {
  --color-brand-300: #60a5fa;
  --color-brand-400: #2563eb;
  --cover-base-1: #eff6ff;
  --cover-base-2: #f0fdf4;
  --cover-1: #3b82f6;
  --cover-2: #60a5fa;
  --cover-3: #2563eb;
  --cover-4: #93c5fd;
  --cover-5: #a5f3fc;
  --cover-6: #1d4ed8;
  --aurora-frost: rgba(255, 255, 255, 0.65);
  --aurora-border: linear-gradient(150deg, rgba(255, 255, 255, 0.85), color-mix(in srgb, #2563eb 45%, transparent) 30%, transparent 55%, color-mix(in srgb, #38bdf8 45%, transparent));
  --aurora-title: #0f172a;
  --aurora-label: #1e40af;
  --aurora-ico: #2563eb;
  --aurora-tz: #475569;
  --aurora-daypart: #334155;
}

/* --- 3. CYBERPUNK THEME (Neon Rose Pink, Magenta & Cyber Gold) --- */
[data-theme="cyberpunk"],
:root[data-theme="cyberpunk"] {
  --color-brand-300: #fb7185;
  --color-brand-400: #f43f5e;
  --cover-base-1: #16060f;
  --cover-base-2: #120409;
  --cover-1: #f43f5e;
  --cover-2: #eab308;
  --cover-3: #ec4899;
  --cover-4: #fb7185;
  --cover-5: #f59e0b;
  --cover-6: #be123c;
  --aurora-frost: rgba(22, 6, 15, 0.55);
  --aurora-border: linear-gradient(150deg, rgba(255, 255, 255, 0.28), color-mix(in srgb, #f43f5e 50%, transparent) 30%, transparent 55%, color-mix(in srgb, #eab308 50%, transparent));
  --aurora-title: #fbbf24;
  --aurora-label: #fda4af;
  --aurora-ico: #f43f5e;
  --aurora-tz: #a1a1aa;
  --aurora-daypart: #dcbf86;
}

/* --- 4. MINT THEME (Nahian.bd Emerald & Pine Signature) --- */
[data-theme="mint"],
:root[data-theme="mint"] {
  --color-brand-300: #34d399;
  --color-brand-400: #10b981;
  --cover-base-1: #ecfdf5;
  --cover-base-2: #f0fdfa;
  --cover-1: #10b981;
  --cover-2: #34d399;
  --cover-3: #059669;
  --cover-4: #6ee7b7;
  --cover-5: #99f6e4;
  --cover-6: #047857;
  --aurora-frost: rgba(255, 255, 255, 0.65);
  --aurora-border: linear-gradient(150deg, rgba(255, 255, 255, 0.85), color-mix(in srgb, #10b981 45%, transparent) 30%, transparent 55%, color-mix(in srgb, #2dd4bf 45%, transparent));
  --aurora-title: #0f172a;
  --aurora-label: #047857;
  --aurora-ico: #059669;
  --aurora-tz: #475569;
  --aurora-daypart: #334155;
}

/* --- 4. GOD-MODE THEME (Matrix Phosphor Green & Pure Cyber Black) --- */
[data-theme="god-mode"],
:root[data-theme="god-mode"] {
  --color-brand-300: #4ade80;
  --color-brand-400: #00ff00;
  --cover-base-1: #020a02;
  --cover-base-2: #010601;
  --cover-1: #00ff00;
  --cover-2: #00cc00;
  --cover-3: #008800;
  --cover-4: #22c55e;
  --cover-5: #15803d;
  --cover-6: #16a34a;
  --aurora-frost: rgba(2, 10, 2, 0.58);
  --aurora-border: linear-gradient(150deg, rgba(255, 255, 255, 0.35), color-mix(in srgb, #00ff00 55%, transparent) 30%, transparent 55%, color-mix(in srgb, #008800 60%, transparent));
  --aurora-title: #00ff00;
  --aurora-label: #86efac;
  --aurora-ico: #00ff00;
  --aurora-tz: #4ade80;   /* #00aa00 was 4.0:1 on the green clock tile */
  --aurora-daypart: #4ade80;
}

@property --halo-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes halo-spin {
  to {
    --halo-angle: 360deg;
  }
}

@keyframes cover-drift {
  0% {
    transform: translate(0) scale(1) rotate(0);
  }
  50% {
    transform: translate(12%, -10%) scale(1.15) rotate(20deg);
  }
  to {
    transform: translate(-10%, 8%) scale(.95) rotate(-15deg);
  }
}

/* Base Card Shell matching Nahian.bd */
.nx .widget-location,
.nx .r-card-open,
.nx .people-hero,
.nx .cta-hero,
.nx .svc-card.wide {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
              inset 0 -1px 0 0 rgba(255, 255, 255, 0.05),
              0 18px 40px -24px rgba(0, 0, 0, 0.35) !important;
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nx .widget-location { border-radius: 24px !important; }
.nx .r-card-open { border-radius: 22px !important; }
.nx .people-hero { border-radius: 28px !important; }
.nx .cta-hero { border-radius: 28px !important; }
.nx .svc-card.wide { border-radius: 24px !important; }

/* Hairline Glass Border with theme-adaptive light reflection */
.nx .widget-location::after,
.nx .r-card-open::after,
.nx .people-hero::after,
.nx .cta-hero::after,
.nx .svc-card.wide::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  padding: 1px !important;
  background: var(--aurora-border) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0) !important;
  mask-composite: exclude !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

/* Ambient Edge Aura behind card */
.halo-glow {
  position: absolute !important;
  inset: 2px !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background: conic-gradient(
    from var(--halo-angle, 0deg),
    var(--color-brand-400),
    transparent 22%,
    var(--cover-3) 38%,
    transparent 55%,
    var(--cover-4) 72%,
    transparent 88%,
    var(--color-brand-400)
  ) !important;
  filter: blur(22px) !important;
  opacity: .25 !important;
  pointer-events: none !important;
  transition: opacity .4s ease !important;
  animation: 9s linear infinite halo-spin !important;
}

@media (hover: hover) and (pointer: fine) {
  .nx .widget-location:hover .halo-glow,
  .nx .r-card-open:hover .halo-glow,
  .nx .people-hero:hover .halo-glow,
  .nx .cta-hero:hover .halo-glow,
  .nx .svc-card.wide:hover .halo-glow {
    opacity: .55 !important;
  }
}

/* Aurora Cover Layer */
.cover {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  isolation: isolate !important;
  background: linear-gradient(120deg, var(--cover-base-1), var(--cover-base-2)) !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: .85 !important;
}

/* Drifting Aurora Blobs */
.cover-blob {
  aspect-ratio: 1 !important;
  background: radial-gradient(closest-side, var(--blob), transparent) !important;
  opacity: .75 !important;
  will-change: transform !important;
  width: 70% !important;
  animation: cover-drift var(--dur, 22s) ease-in-out infinite alternate !important;
  animation-delay: var(--delay, 0s) !important;
  border-radius: 9999px !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Frosted Glass Blur Overlay */
.cover-frost {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  border-radius: inherit !important;
  background: var(--aurora-frost) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  pointer-events: none !important;
}

/* Cursor Tracking Spotlight */
.halo-spot {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  border-radius: inherit !important;
  background: radial-gradient(
    26rem circle at var(--mx, 50%) var(--my, -20%),
    color-mix(in srgb, var(--color-brand-300) 24%, transparent),
    transparent 60%
  ) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .35s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .nx .widget-location:hover .halo-spot,
  .nx .r-card-open:hover .halo-spot,
  .nx .people-hero:hover .halo-spot,
  .nx .cta-hero:hover .halo-spot,
  .nx .svc-card.wide:hover .halo-spot {
    opacity: 1 !important;
  }
}

/* Foreground content stays crisp, vibrant & clickable */
.nx .widget-location > *:not(.halo-glow):not(.cover):not(.cover-frost):not(.halo-spot),
.nx .r-card-open > *:not(.halo-glow):not(.cover):not(.cover-frost):not(.halo-spot),
.nx .people-hero > *:not(.halo-glow):not(.cover):not(.cover-frost):not(.halo-spot),
.nx .cta-hero > *:not(.halo-glow):not(.cover):not(.cover-frost):not(.halo-spot),
.nx .svc-card.wide > *:not(.halo-glow):not(.cover):not(.cover-frost):not(.halo-spot) {
  position: relative !important;
  z-index: 4 !important;
}

/* Typography auto-updates with current theme */
.nx .widget-location .widget-title,
.nx .widget-location .clock-time {
  color: var(--aurora-title) !important;
}
.nx .widget-location .widget-label {
  color: var(--aurora-label) !important;
}
.nx .widget-location .location-ico {
  color: var(--aurora-ico) !important;
}
.nx .widget-location .clock-tz {
  color: var(--aurora-tz) !important;
}
.nx .widget-location .daypart-text {
  color: var(--aurora-daypart) !important;
}

.nx .r-card-open .r-card-title,
.nx .people-hero h2,
.nx .cta-hero h2,
.nx .svc-card.wide h3 {
  color: var(--aurora-title) !important;
}

.nx .r-card-open .r-status-label {
  color: var(--aurora-label) !important;
}

.nx .r-card-open .r-card-desc,
.nx .people-hero p,
.nx .cta-hero p,
.nx .svc-card.wide p {
  color: var(--aurora-daypart) !important;
}

/* CTA Buttons in Aurora Cards: Both Sidebar "Let's talk" (.r-card-open .r-cta-btn) and Contact Page "Let's talk" (.svc-card.wide .btn-primary) */
.nx .r-card-open .r-cta-btn,
.nx .svc-card.wide .btn-primary {
  background: color-mix(in srgb, var(--color-brand-400) 22%, var(--cover-base-1)) !important;
  color: var(--aurora-title) !important;
  border: 1px solid color-mix(in srgb, var(--color-brand-400) 45%, transparent) !important;
  box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--color-brand-400) 25%, transparent) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.nx .r-card-open .r-cta-btn span,
.nx .svc-card.wide .btn-primary span {
  color: var(--aurora-title) !important;
  font-weight: 600 !important;
}
.nx .r-card-open .r-cta-btn svg,
.nx .svc-card.wide .btn-primary i,
.nx .svc-card.wide .btn-primary svg {
  color: var(--aurora-title) !important;
  stroke: var(--aurora-title) !important;
  transition: transform 0.2s ease !important;
}
@media (hover: hover) and (pointer: fine) {
  .nx .r-card-open .r-cta-btn:hover,
  .nx .svc-card.wide .btn-primary:hover {
    background: var(--color-brand-400) !important;
    color: var(--on-brand, #ffffff) !important;
    border-color: var(--color-brand-400) !important;
    box-shadow: 0 8px 22px -3px color-mix(in srgb, var(--color-brand-400) 50%, transparent) !important;
    transform: translateY(-1.5px) !important;
  }
  .nx .r-card-open .r-cta-btn:hover span,
  .nx .svc-card.wide .btn-primary:hover span {
    color: var(--on-brand, #ffffff) !important;
  }
  .nx .r-card-open .r-cta-btn:hover svg,
  .nx .svc-card.wide .btn-primary:hover i,
  .nx .svc-card.wide .btn-primary:hover svg {
    color: var(--on-brand, #ffffff) !important;
    stroke: var(--on-brand, #ffffff) !important;
    transform: translateX(3px) !important;
  }
}

/* Light Theme: Vibrant Royal Blue CTA Button with Crisp White Text (Standard Primary Button) */
:is([data-theme="light"], :root[data-theme="light"]) .nx .r-card-open .r-cta-btn,
:is([data-theme="light"], :root[data-theme="light"]) .nx .svc-card.wide .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px -2px var(--shade, rgba(0, 0, 0, 0.4)), 0 2px 6px -1px rgba(0, 0, 0, 0.08) !important;
}
:is([data-theme="light"], :root[data-theme="light"]) .nx .r-card-open .r-cta-btn span,
:is([data-theme="light"], :root[data-theme="light"]) .nx .svc-card.wide .btn-primary span {
  color: #ffffff !important;
  font-weight: 600 !important;
}
:is([data-theme="light"], :root[data-theme="light"]) .nx .r-card-open .r-cta-btn svg,
:is([data-theme="light"], :root[data-theme="light"]) .nx .svc-card.wide .btn-primary i,
:is([data-theme="light"], :root[data-theme="light"]) .nx .svc-card.wide .btn-primary svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
@media (hover: hover) and (pointer: fine) {
  :is([data-theme="light"], :root[data-theme="light"]) .nx .r-card-open .r-cta-btn:hover,
  :is([data-theme="light"], :root[data-theme="light"]) .nx .svc-card.wide .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 8px 22px -3px var(--shade, rgba(0, 0, 0, 0.4)) !important;
    transform: translateY(-2px) !important;
  }
}

/* Hover elevation */
@media (hover: hover) and (pointer: fine) {
  .nx .widget-location:hover,
  .nx .r-card-open:hover,
  .nx .people-hero:hover,
  .nx .cta-hero:hover,
  .nx .svc-card.wide:hover {
    transform: translateY(-2px) !important;
  }
}

/* About Bio Read More / Clamp Across Mobile, Tablet & Web */
.nx .about-bio-wrap {
  position: relative;
  margin-bottom: 24px;
}

.nx .about-prose {
  position: relative;
  max-height: 84px;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx .about-prose::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.nx .about-bio-wrap.is-expanded .about-prose {
  max-height: 1400px;
}

.nx .about-bio-wrap.is-expanded .about-prose::after {
  opacity: 0;
}

.nx .about-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--link);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2, transparent));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line, transparent));
  cursor: pointer;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .nx .about-toggle-btn:hover {
    background: var(--brand);
    color: var(--on-brand, #ffffff);
    border-color: var(--brand);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px -2px var(--shade, rgba(0, 0, 0, 0.4));
  }
}

.nx .about-toggle-btn .about-btn-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: currentColor;
}

.nx .about-bio-wrap.is-expanded .about-toggle-btn .about-btn-icon {
  transform: rotate(180deg);
}

/* Light Theme Button Tuning */
:is([data-theme="light"], :root[data-theme="light"]) .nx .about-toggle-btn {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}
@media (hover: hover) and (pointer: fine) {
  :is([data-theme="light"], :root[data-theme="light"]) .nx .about-toggle-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
  }
}
/* ===== Profile hero: name, role, status, two actions, one row of tools ===== */
.nx .nx-hero .facts { margin-top: 12px; font-size: 15px; }
.nx .nx-hero .stack-rows { margin: 22px auto 0; max-width: 680px; }
.nx .nx-hero .stack-row { margin: 0; justify-content: center; gap: 8px; }
.nx .nx-hero button.pill { border: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .nx .nx-hero button.pill:hover { transform: translateY(-1px); }
  .nx .nx-hero button.pill:not(.ai):hover { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .5); }
}
.nx .nx-hero button.pill:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.nx .nx-hero .ask-chip.is-extra { display: none; }
.nx .nx-hero .stack-row.is-open .ask-chip.is-extra { display: inline-flex; animation: chipIn .3s ease both; }
@keyframes chipIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
/* "Ultra" chips: the soft brand-tinted pill, with a streak of brand light running round its edge */
@property --ultra-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.nx .nx-hero .ask-chip.ultra {
  --soft: color-mix(in srgb, var(--c) 22%, transparent);
  color: var(--ink); font-weight: 600;
  border: 1.5px solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--c) 10%, var(--bg, #fff)), color-mix(in srgb, var(--c) 10%, var(--bg, #fff))) padding-box,
    conic-gradient(from var(--ultra-a), var(--soft) 0deg, var(--soft) 200deg, var(--c) 270deg, color-mix(in srgb, var(--c) 55%, #fff) 300deg, var(--soft) 360deg) border-box;
  box-shadow: 0 2px 10px -4px var(--shade, rgba(0, 0, 0, 0.4));
  animation: ultraTurn 4.5s linear infinite;
}
.nx .nx-hero .ask-chip.ultra:nth-child(2) { animation-delay: -1.1s; }
.nx .nx-hero .ask-chip.ultra:nth-child(3) { animation-delay: -2.2s; }
.nx .nx-hero .ask-chip.ultra:nth-child(4) { animation-delay: -3.3s; }
@media (hover: hover) and (pointer: fine) {
  .nx .nx-hero .ask-chip.ultra:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -6px var(--shade, rgba(0, 0, 0, 0.4)), 0 0 0 3px color-mix(in srgb, var(--c) 12%, transparent);
    animation-duration: 1.6s;
  }
}
@keyframes ultraTurn { to { --ultra-a: 360deg; } }
:is([data-theme="dark"], [data-theme="cyberpunk"], [data-theme="god-mode"]) .nx .nx-hero .ask-chip.ultra {
  background:
    linear-gradient(color-mix(in srgb, var(--c) 16%, #0b1120), color-mix(in srgb, var(--c) 16%, #0b1120)) padding-box,
    conic-gradient(from var(--ultra-a), var(--soft) 0deg, var(--soft) 200deg, var(--c) 270deg, color-mix(in srgb, var(--c) 45%, #fff) 300deg, var(--soft) 360deg) border-box;
}
:is([data-theme="dark"], [data-theme="cyberpunk"], [data-theme="god-mode"]) .nx .nx-hero .ask-chip.ultra img[src*="ollama"] { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { .nx .nx-hero .ask-chip.ultra { animation: none; } }
.nx .nx-hero .pill-more { color: var(--link) !important; font-weight: 600 !important; background: transparent !important; box-shadow: inset 0 0 0 1px var(--line) !important; }
/* where I use it: one floating tip shared by all chips (pointer devices) */
.hero-tip { position: fixed; z-index: 100000; max-width: 240px; padding: 7px 10px; border-radius: 10px; pointer-events: none;
  font: 500 12px/1.4 var(--font, inherit); text-align: center; color: var(--bg, #fff); background: var(--ink, #0f172a);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); opacity: 0; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease; }
.hero-tip.is-on { opacity: 1; transform: none; }
.hero-tip-cue { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; opacity: .7; }
@media (max-width: 640px) {
  .nx .nx-hero .facts { font-size: 13.5px; gap: 4px 12px; }
  .nx .nx-hero .facts li { text-align: center; }
  .nx .nx-hero .facts li:first-child svg { display: none; }
          .nx .nx-hero .stack-row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .nx .nx-hero .stack-row.is-open .ask-chip.is-extra { animation: none; } }

/* ===== Share button and panel (top bar) ===== */
.nx .share-wrap { position: relative; }
.nx .btn-share { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--link);
  background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3); transition: transform .2s ease, box-shadow .2s ease; }
.nx .btn-share[aria-expanded="true"] { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .6), 0 8px 18px -10px var(--shade, rgba(0, 0, 0, 0.4)); }
@media (hover: hover) and (pointer: fine) { .nx .btn-share:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .6), 0 8px 18px -10px var(--shade, rgba(0, 0, 0, 0.4)); } }
.nx .btn-share:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.share-panel { position: fixed; z-index: 100004; width: 300px; padding: 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -20px rgba(0, 0, 0, .55); animation: shareIn .18s ease both; }
.share-panel[hidden] { display: none; }
@keyframes shareIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
body .share-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
body .share-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
body .share-link span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .share-copy { flex-shrink: 0; border: 0; border-radius: 9px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: #fff; background: var(--accent-1, #2563eb); }
:is([data-theme="dark"], [data-theme="cyberpunk"], [data-theme="god-mode"]) body .share-copy { color: #04121a; }
body .share-copy.is-done { background: #10b981; }
body .share-nets { margin-top: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
body .share-nets a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; font-size: 11px; color: var(--ink-2); text-decoration: none; transition: background .2s ease, color .2s ease; }
body .share-nets a i, body .share-nets a svg { font-size: 18px; color: var(--text-primary); }
@media (hover: hover) and (pointer: fine) { body .share-nets a:hover { background: var(--surface-2); color: var(--ink); } }
.nx .sub-header-right, .nx .rail-top { display: flex; align-items: center; gap: 10px; }

/* status dot follows the theme in god-mode too */
html[data-theme="god-mode"] .nx .live-dot-core { background: #00ff00 !important; box-shadow: none !important; }
html[data-theme="god-mode"] .nx .live-dot-ping { background: #00ff00 !important; border-color: #00ff00 !important; }

/* no stray divider beside the content column now that the page background shows through */
html body .nx .main:not(#_m) { border-left: 0 !important; border-right: 0 !important; }

/* ===== Profile WORK tab ===== */
.nx .work2-summary { margin: -4px 0 12px; font-size: 14px; color: var(--ink-3); }
.nx .work2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nx .work2-chip { border: 0; cursor: pointer; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nx .work2-chip:hover { color: var(--ink); } }
.nx .work2-chip[aria-pressed="true"] { color: #fff; background: var(--brand); box-shadow: none; }
.nx .work2-list { display: flex; flex-direction: column; gap: 12px; }
.nx .work2-row { display: flex; gap: 16px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s ease, transform .2s ease; }
.nx .work2-row[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .nx .work2-row:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .45), 0 14px 30px -20px var(--shade, rgba(0, 0, 0, 0.4)); } }
.nx .work2-thumb { flex-shrink: 0; width: 132px; height: 88px; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-2); }
.nx .work2-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nx .work2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nx .work2-top h3 { margin: 0; font-size: 16.5px; font-weight: 600; }
.nx .work2-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  --s: var(--link); color: var(--s); background: color-mix(in srgb, var(--s) 12%, transparent); }
.nx .work2-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nx .work2-status.is-live { --s: #16a34a; }
.nx .work2-status.is-dev { --s: #d97706; }
.nx .work2-status.is-vol { --s: #db2777; }
:is([data-theme="dark"], [data-theme="cyberpunk"], [data-theme="god-mode"]) .nx .work2-status.is-live { --s: #4ade80; }
:is([data-theme="dark"], [data-theme="cyberpunk"], [data-theme="god-mode"]) .nx .work2-status.is-dev { --s: #fbbf24; }
:is([data-theme="dark"], [data-theme="cyberpunk"], [data-theme="god-mode"]) .nx .work2-status.is-vol { --s: #f472b6; }
.nx .work2-impact { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.nx .work2-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.nx .work2-acts { display: flex; gap: 6px; }
.nx .work2-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  text-decoration: none; color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nx .work2-btn:hover { color: var(--link); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .5); } }
.nx .work2-btn.is-ai { color: var(--link); background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .3); }
@media (max-width: 640px) {
  .nx .work2-row { flex-direction: column; gap: 10px; }
  .nx .work2-thumb { width: 100%; height: 140px; }
  .nx .work2-top { flex-wrap: wrap; }
}

/* ===== Library cards: pointer glow and lift, matching the other cards ===== */
.nx :is(.nl-hero, .nl-feature, .nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch) { position: relative; isolation: isolate; overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease; }
.nx :is(.nl-hero, .nl-feature, .nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch)::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 65%);
}
/* a ring of light that slides along the border with the pointer */
.nx :is(.nl-hero, .nl-feature, .nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch)::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--brand) 85%, transparent), color-mix(in srgb, var(--brand) 25%, transparent) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) and (pointer: fine) {
  .nx :is(.nl-hero, .nl-feature, .nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch):hover::before { opacity: 1; }
  .nx :is(.nl-hero, .nl-feature, .nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch):hover::after { opacity: 1; }
  .nx :is(.nl-hero, .nl-feature):hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent) !important;
    box-shadow: 0 22px 46px -18px var(--shade, rgba(0, 0, 0, 0.4)) !important; }
  .nx :is(.nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch):hover { box-shadow: 0 16px 34px -16px var(--shade, rgba(0, 0, 0, 0.4)) !important; }
}
@media (hover: none) { .nx :is(.nl-hero, .nl-feature, .nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch)::after, .nx :is(.nl-hero, .nl-feature, .nl-stat, .nl-card, .nl-bm, .nl-tile, .nl-ch)::before { display: none; } }

/* the slat pattern is painted at once, so the cover is never empty before the animation starts */
.nx .cover-banner-wrap {
  background-color: var(--slats-bg, var(--bg)) !important;
  background-image:
    linear-gradient(180deg, transparent 0 20px, var(--slats-bg, var(--bg)) 20px 23px),
    linear-gradient(90deg, color-mix(in srgb, var(--slats-color, var(--brand)) 26%, transparent) 0 8px, transparent 8px 11px) !important;
  background-size: 11px 23px, 11px 23px !important;
}
.nx [data-slats-canvas] { transition: opacity .2s ease !important; }

/* the bar above the right column: no slab of its own, just the two buttons resting on the page */
body.nx-page[data-page="profile"] .nx .rail-top {
  background: transparent !important; border-bottom: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  height: auto !important; padding: 12px 20px 6px !important; position: static !important;
}

/* profile cover: one simple layer — the slat animation on its own theme colour, no fade, no blending */
html body.nx-page[data-page="profile"] .nx .cover-banner-wrap { background: var(--bg) !important; }
html[data-theme="light"] body.nx-page .nx .cover-banner-wrap { background: #f8fafc !important; }
html[data-theme="mint"] body.nx-page .nx .cover-banner-wrap { background: #f4faf7 !important; }
html[data-theme="cyberpunk"] body.nx-page .nx .cover-banner-wrap { background: #09090b !important; }
html[data-theme="god-mode"] body.nx-page .nx .cover-banner-wrap { background: #000 !important; }
html body.nx-page[data-page="profile"] .nx .cover-banner-wrap .cover,
html body.nx-page[data-page="profile"] .nx .cover-banner-wrap .cover-gradient-vignette { display: none !important; }

/* Follow on GitHub lines up with the right-column cards on every page */
@media (min-width: 1024px) { .nx .sub-header-right { margin-right: -12px; } }

/* before the slat animation loads, the cover already shows a gradient in the theme's colours; the animation then fades in over it */
html body.nx-page .nx .cover-banner-wrap:not(#_cv) {
  background:
    radial-gradient(60% 120% at 18% 30%, color-mix(in srgb, var(--accent-1, var(--brand)) 55%, transparent), transparent 70%),
    radial-gradient(55% 120% at 82% 70%, color-mix(in srgb, var(--accent-2, var(--brand)) 50%, transparent), transparent 70%),
    radial-gradient(45% 100% at 50% 10%, rgba(var(--leak-3, 129, 140, 248), .35), transparent 70%),
    var(--bg) !important;
}
html body.nx-page .nx .cover-banner-wrap [data-slats-canvas] { transition: opacity .6s ease !important; }

/* About: fade the text itself instead of laying a block of page colour over it, so no shade shows on the aurora background */
.nx .about-prose::after { display: none !important; }
.nx .about-bio-wrap:not(.is-expanded) .about-prose {
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

/* phones: tools sit in an even grid, at least three across, scaling with the screen */
@media (max-width: 640px) {
  .nx .nx-hero .stack-rows { width: 100%; max-width: 100%; box-sizing: border-box; padding: 0; }
  .nx .nx-hero .stack-row { display: flex !important; flex-wrap: wrap; justify-content: center; width: 100%; gap: 5px !important; --cols: 3; }
  .nx .nx-hero .stack-row > .pill { flex: 0 0 calc((100% - (var(--cols) - 1) * 5px) / var(--cols)); box-sizing: border-box; }
  .nx .nx-hero .stack-row .pill { justify-content: center; min-width: 0; padding: 5px 4px !important; font-size: clamp(10px, 3.15vw, 13px) !important; gap: 3px !important; letter-spacing: -.01em; }
  .nx .nx-hero .stack-row .pill > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .nx .nx-hero .stack-row .pill img { width: 12px; height: 12px; flex-shrink: 0; }
}

@media (min-width: 480px) and (max-width: 640px) { .nx .nx-hero .stack-row { --cols: 4; } }

@media (max-width: 339px) {
  .nx .nx-hero .stack-rows { width: calc(100% + 16px); max-width: none; margin-left: -8px; margin-right: -8px; }
  .nx .nx-hero .stack-row .pill img { display: none; }
  .nx .nx-hero .stack-row .pill { padding: 5px 3px !important; font-size: 10px !important; letter-spacing: -.02em; }
}

/* an AI chip revealed by "+N" keeps its turning light after the reveal animation */
.nx .nx-hero .stack-row.is-open .ask-chip.ultra.is-extra { animation: chipIn .3s ease both, ultraTurn 4.5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .nx .nx-hero .stack-row.is-open .ask-chip.ultra.is-extra { animation: none; } }

/* phones: the page title and the two buttons always stay on one line */
@media (max-width: 767px) {
  .nx .sub-header-shell { gap: 10px; }
  .nx .sub-header-left { min-width: 0; flex: 1 1 auto; }
  .nx .sub-header-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(16px, 5vw, 20px) !important; line-height: 1.2; }
  .nx .sub-header-right { flex: 0 0 auto; gap: 8px; margin-right: 0 !important; }
  .nx .sub-header-right .btn-share { width: 36px; height: 36px; }
  .nx .sub-header-right .btn-rail-top { white-space: nowrap; padding: 0 12px !important; height: 36px; gap: 7px; }
  .nx .sub-header-right .btn-rail-top .git-arr { display: none; }
}

/* phones: just enough space at the bottom to clear the tab bar (the footer is empty here) */
@media (max-width: 767.98px) {
  html body.nx-page .nx:not(#_pb) { padding-bottom: calc(64px + 20px + env(safe-area-inset-bottom)) !important; }
  html body.nx-page .nx .main:not(#_pb) { padding-bottom: 0 !important; }
  html body.nx-page footer:not(#_pb) { display: none !important; }
}

/* library hero: the Focus tile stands apart from the counts */
.nx .nl-stat.nl-stat-focus { border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 22%, var(--surface)) 0%, color-mix(in srgb, var(--surface) 80%, transparent) 70%); }
.nx .nl-stat-focus b { display: inline-flex; align-items: center; gap: 8px; }
.nx .fx-live { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .6); animation: fx-live 1.6s ease-out infinite; }
html.fp-playing .nx .fx-live { display: inline-block; }
@keyframes fx-live { 70% { box-shadow: 0 0 0 8px rgba(var(--brand-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); } }

/* Focus page (library/focus): drives window.FocusPlayer from focus/focus.js. No right rail here, so the page takes the width */
.nx .pad.fx-page { max-width: 1120px; }
.nx .fx-page [hidden], .nx.fx-view[hidden], .nx.fx-view [hidden] { display: none !important; }
.nx .fx-page :where(button), .nx.fx-view :where(button) { font: inherit; }
.nx [data-tint="rain"] { --tint: #38bdf8; --a1: #38bdf8; --a2: #6366f1; --a3: #67e8f9; }
.nx [data-tint="nature"] { --tint: #34d399; --a1: #34d399; --a2: #bef264; --a3: #0d9488; }
.nx [data-tint="animals"] { --tint: #fbbf24; --a1: #fcd34d; --a2: #fb923c; --a3: #bef264; }
.nx [data-tint="places"] { --tint: #fb923c; --a1: #fdba74; --a2: #fb7185; --a3: #fde68a; }
.nx [data-tint="transport"] { --tint: #818cf8; --a1: #818cf8; --a2: #8b5cf6; --a3: #7dd3fc; }
.nx [data-tint="things"] { --tint: #a78bfa; --a1: #a78bfa; --a2: #e879f9; --a3: #fbcfe8; }
.nx [data-tint="city"] { --tint: #94a3b8; --a1: #3b82f6; --a2: #94a3b8; --a3: #fcd34d; }
.nx [data-tint="noise"] { --tint: #22d3ee; --a1: #67e8f9; --a2: #14b8a6; --a3: #a78bfa; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="rain"] { --tint: #0284c7; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="nature"] { --tint: #059669; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="animals"] { --tint: #d97706; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="places"] { --tint: #ea580c; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="transport"] { --tint: #4f46e5; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="things"] { --tint: #7c3aed; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="city"] { --tint: #475569; }
:is([data-theme="light"], [data-theme="mint"]) .nx [data-tint="noise"] { --tint: #0891b2; }

/* scene photos cross-fade; the one on screen drifts slowly while something plays */
.nx .fx-scenes { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #0b1120; }
.nx .fx-scenes img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.nx .fx-scenes img.is-on { opacity: 1; transform: none; }
.nx .fx-page[data-live] .fx-stage .fx-scenes img.is-on, .nx.fx-view[data-live] .fx-scenes img.is-on { animation: fx-drift 48s ease-in-out infinite alternate; }
@keyframes fx-drift { to { transform: scale(1.09) translate(-1.5%, -1%); } }

/* the stage */
.nx .fx-stage { position: relative; isolation: isolate; overflow: hidden; min-height: 520px; display: flex; align-items: stretch; border-radius: 28px; color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -32px rgba(0, 0, 0, .7); }
.nx .fx-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 7, 18, .82) 0%, rgba(3, 7, 18, .5) 55%, rgba(3, 7, 18, .18) 100%), linear-gradient(0deg, rgba(3, 7, 18, .7) 0%, rgba(3, 7, 18, 0) 50%, rgba(3, 7, 18, .35) 100%); }
.nx .fx-stage-in { display: flex; flex-direction: column; width: 100%; padding: 56px 44px 30px; }
.nx .fx-state { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }   /* .92/.95/.82: 4.5:1 on the brightest scene photos */
.nx .fx-title { margin-top: 10px; max-width: 620px; font-size: 58px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: #fff; text-shadow: 0 4px 26px rgba(0, 0, 0, .45); }
.nx .fx-title > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.nx .fx-quote { margin: 14px 0 auto; display: flex; align-items: flex-start; gap: 10px; max-width: 560px; min-height: 3em; font-size: 15.5px; line-height: 1.5; font-style: italic; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.nx .fx-quote > i { margin-top: 5px; font-size: 11px; opacity: .7; }
.nx .fx-quote-next { flex-shrink: 0; width: 28px; height: 28px; margin-top: -2px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-style: normal; color: rgba(255, 255, 255, .8); transition: background .2s ease, color .2s ease, transform .3s ease; }
@media (hover: hover) and (pointer: fine) { .nx .fx-quote-next:hover { color: #fff; background: rgba(255, 255, 255, .16); transform: rotate(90deg); } }
.nx .fx-ctrls { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.nx .fx-state { display: flex; align-items: center; gap: 8px; }
.nx .fx-page[data-live] .fx-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: fx-ping 1.8s ease-out infinite; }
@keyframes fx-ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.nx .fx-about { margin-top: 8px; max-width: 560px; font-size: 15px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.nx .fx-about:empty, .nx .fx-now-chips:empty { display: none; }
/* a station and a mix together: two chips like tabs, each with its own ✕; the lit one is what the big buttons control */
.nx .fx-layer { display: inline-flex; border-radius: 999px; }
.nx .fx-layer .fx-layer-pick { border-radius: 999px 0 0 999px; padding-right: 8px; }
.nx .fx-now-chip.fx-layer-x { width: 28px; padding: 0 2px 0 0; justify-content: center; border-radius: 0 999px 999px 0; margin-left: -1px; font-size: 10px; color: rgba(255, 255, 255, .65); }
@media (hover: hover) and (pointer: fine) { .nx .fx-now-chip.fx-layer-x:hover { color: #fff; background: rgba(239, 68, 68, .6); } }
.nx .fx-layer.is-on .fx-now-chip { color: #0b1120; background: #fff; box-shadow: none; }
.nx .fx-layer.is-on .fx-layer-x { color: rgba(11, 17, 32, .55); box-shadow: inset 1px 0 0 rgba(11, 17, 32, .12); }
@media (hover: hover) and (pointer: fine) { .nx .fx-layer.is-on .fx-layer-x:hover { color: #fff; background: #ef4444; } }
.nx .fx-layer.is-on .fx-layer-pick { cursor: default; }
.nx .fx-now-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nx .fx-now-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #fff; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s ease; }
.nx .fx-now-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx .fx-now-chip i { font-size: 11px; opacity: .85; }
@media (hover: hover) and (pointer: fine) { .nx .fx-now-chip:hover { background: rgba(255, 255, 255, .24); } }
/* Quran radio: a random live reciter in one tap; once one plays, a round shuffle beside it picks another */
.nx .fx-now-chip.fx-qr { color: #0b1120; background: #fbbf24; box-shadow: 0 6px 16px -8px var(--shade, rgba(0, 0, 0, 0.4)); }
@media (hover: hover) and (pointer: fine) { .nx .fx-now-chip.fx-qr:hover { background: #fcd34d; } }
.nx .fx-now-chip.fx-qr i { opacity: 1; }
.nx .fx-now-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the AI orb and the player bar take turns: wherever the bar would meet the orb (phones, tablets), the orb slides away;
   nor does the orb cover a stage button, it fades in place (no movement, so the check that hides it stays true) */
html.fx-orb-yields body #ai-chat-widget.chat-collapsed:not(#_ai):not(#_fx) { transform: translateY(160%) !important; opacity: 0 !important; pointer-events: none !important; }
html.fx-orb-away body #ai-chat-widget.chat-collapsed:not(#_ai):not(#_fx) { opacity: 0 !important; pointer-events: none !important; }
/* ...but while the orb's toggle has keyboard focus it stays in sight (a Tab stop must be) */
html:is(.fx-orb-yields, .fx-orb-away) body #ai-chat-widget.chat-collapsed:not(#_ai):not(#_fx):has(:focus-visible) { transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
.nx .fx-stage-mix { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nx .fx-glass.fx-mixbtn { display: inline-flex; align-items: center; gap: 7px; width: auto; min-width: 44px; padding: 0 14px; border-radius: 999px; }
.nx .fx-mixbtn b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nx .fx-mixbtn[aria-expanded="true"] { color: #0b1120; background: #fff; }
.nx .fx-more { display: none; }
.nx .fx-play { flex-shrink: 0; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; color: var(--on-brand); background: var(--grad); box-shadow: var(--shadow-btn); transition: transform .2s ease, box-shadow .2s ease; }
.nx .fx-play .fa-play { margin-left: 3px; }
@media (hover: hover) and (pointer: fine) { .nx .fx-play:hover { transform: translateY(-1px) scale(1.04); } }
.nx .fx-play:active { transform: scale(.95); }
.nx .fx-play.fx-play-sm { width: 48px; height: 48px; font-size: 16px; box-shadow: 0 8px 18px -8px var(--shade, rgba(0, 0, 0, 0.4)); }
.nx .fx-glass { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s ease, transform .15s ease, box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) { .nx .fx-glass:hover { background: rgba(255, 255, 255, .26); } }
.nx .fx-glass:active { transform: scale(.94); }
.nx .fx-glass.fx-glass-lg { width: 64px; height: 64px; font-size: 20px; }
.nx .fx-glass.is-active { color: #0b1120; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

/* shortcuts popover */
/* keyboard shortcuts: a quiet "Shortcuts ›" at the end of the presets row that opens into one line; no keyboard, no shortcuts */
.nx .fx-keys { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.nx .fx-keys-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, .82); transition: color .2s ease, background .2s ease; }
.nx .fx-keys-btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
@media (hover: hover) and (pointer: fine) { .nx .fx-keys-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); } }
.nx .fx-keys-btn i { font-size: 11px; }
.nx .fx-keys-arr { font-size: 9px !important; transition: transform .25s ease; }
.nx .fx-keys-btn[aria-expanded="true"] .fx-keys-arr { transform: rotate(180deg); }
.nx .fx-keys-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 11px; font-size: 11.5px; color: rgba(255, 255, 255, .72); animation: fx-keys-in .25s ease both; }
.nx .fx-keys-list[hidden] { display: none; }
.nx .fx-keys-list > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.nx .fx-keys-list kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; font: 600 10.5px/1 var(--font, sans-serif);
  color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .2); }
@keyframes fx-keys-in { from { opacity: 0; transform: translateX(8px); } }
@media (hover: none) { .nx .fx-keys { display: none; } }

/* presets hover wrap & pill */
.nx .fx-presets-wrap { position: relative; margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.nx .fx-presets-bar { align-self: stretch; display: flex; align-items: center; gap: 12px; }
.nx .fx-presets-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  cursor: pointer; transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
  border: 0; outline: none;
}
.nx .fx-presets-wrap.is-open .fx-presets-pill {
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 8px 20px -6px rgba(0, 0, 0, .4);
}
@media (hover: hover) and (pointer: fine) {
  .nx .fx-presets-pill:hover {
    background: rgba(255, 255, 255, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 8px 20px -6px rgba(0, 0, 0, .4);
  }
}
.nx .fx-presets-pill:active { transform: scale(.96); }
.nx .fx-presets-pill i.fa-layer-group { font-size: 11px; color: var(--brand, #00f2fe); }
.nx .fx-presets-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nx .fx-presets-lbl { font-weight: 700; }
.nx .fx-presets-dot { opacity: .85; }
.nx .fx-presets-cur { font-weight: 500; opacity: .92; }
.nx .fx-presets-pill.is-plain :is(.fx-presets-dot, .fx-presets-cur) { display: none; }
.nx .fx-presets-arr { font-size: 10px; opacity: .75; margin-left: 2px; transition: transform .25s ease; }
.nx .fx-presets-wrap.is-open .fx-presets-arr {
  transform: rotate(180deg);
}

.nx .fx-presets-wrap .fx-chips {
  position: relative; margin-top: 0; display: flex; flex-wrap: wrap; gap: 6px;
  opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, max-height .35s cubic-bezier(.16, 1, .3, 1), transform .25s ease, margin .25s ease, visibility 0s linear .35s;
}
.nx .fx-presets-wrap.is-open .fx-chips {
  opacity: 1; max-height: 320px; overflow: visible; pointer-events: auto; visibility: visible;
  transform: translateY(0); margin-top: 12px; transition-delay: 0s;
}
.nx .fx-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .2s ease, color .2s ease, transform .15s ease; }
.nx .fx-chip i { font-size: 10.5px; opacity: .85; }
@media (hover: hover) and (pointer: fine) { .nx .fx-chip:hover { background: rgba(255, 255, 255, .24); } }
.nx .fx-chip:active { transform: scale(.96); }
.nx .fx-chip[aria-pressed="true"] { color: #0b1120; background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.nx .fx-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the timer strip */
.nx .fx-timer { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nx .fx-clock { position: relative; flex-shrink: 0; width: 58px; height: 58px; display: grid; place-items: center; }
.nx .fx-clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.nx .fx-clock circle { fill: none; stroke-width: 9; }
.nx .fx-ring-bg { stroke: var(--surface-3); }
.nx .fx-ring-fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 339.3; transition: stroke-dashoffset .9s linear; }
.nx .fx-tgo { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: var(--ink); background: var(--surface-2); transition: background .2s ease, color .2s ease; }
.nx .fx-tgo .fa-play { margin-left: 2px; }
.nx .fx-timer.is-running .fx-tgo { color: var(--on-brand); background: var(--brand); }
@media (hover: hover) and (pointer: fine) { .nx .fx-tgo:hover { color: var(--on-brand); background: var(--brand); } }
.nx .fx-timer-text { min-width: 0; display: flex; flex-direction: column; }
.nx .fx-timer-text b { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.nx .fx-timer-text small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx .fx-phases { margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.nx .fx-phases button { padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: background .2s ease, color .2s ease; }
.nx .fx-phases button b { font-weight: 700; color: var(--ink-3); }
.nx .fx-phases button[aria-pressed="true"] b { color: inherit; opacity: .72; }   /* .72 keeps the minutes at 4.5:1 on the lit pill */
@media (hover: hover) and (pointer: fine) { .nx .fx-phases button:hover { color: var(--ink); } }
.nx .fx-phases button[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
.nx .fx-icon { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; color: var(--ink-2); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s ease, color .2s ease, transform .15s ease; }
@media (hover: hover) and (pointer: fine) { .nx .fx-icon:hover { color: var(--ink); background: var(--surface-3); } }
.nx .fx-icon:active { transform: scale(.94); }
.nx .fx-icon.fx-ghost { color: var(--ink-3); background: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .nx .fx-icon.fx-ghost:hover { color: var(--ink); background: var(--surface-2); } }
.nx .fx-icon.is-done { color: var(--on-brand); background: var(--brand); box-shadow: none; }

/* volume: a pill that fills from the left */
.nx .fx-vol { --h: 30px; position: relative; isolation: isolate; overflow: hidden; height: var(--h); min-width: 64px; border-radius: 999px; cursor: pointer; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; background: color-mix(in srgb, var(--surface-2) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 2px rgba(0, 0, 0, .12); }
.nx .fx-vol.fx-vol-lg { --h: 44px; }
.nx .fx-vol-fill { position: absolute; inset: 0 auto 0 0; width: max(var(--fill, 50%), var(--h)); border-radius: inherit; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transition: width .12s ease, background .3s ease; }
.nx .fx-vol[data-dragging] .fx-vol-fill { transition: none; }
.nx .fx-vol-ico { position: absolute; inset: 0; display: flex; align-items: center; padding-left: calc(var(--h) / 2 - 7px); font-size: 12px; color: var(--ink-3); pointer-events: none; }
.nx .fx-vol-on { color: var(--on-brand); clip-path: inset(0 calc(100% - max(var(--fill, 50%), var(--h))) 0 0); }
.nx .fx-vol.is-muted .fx-vol-ico i::before { content: "\f6a9"; }
.nx .fx-vol:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.nx .fx-tile:not(.is-on) .fx-vol-fill { background: color-mix(in srgb, var(--ink-3) 30%, transparent); box-shadow: none; }
.nx .fx-tile:not(.is-on) .fx-vol-on { color: var(--ink-2); }
.nx .fx-vol.fx-vol-dark { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nx .fx-vol-dark .fx-vol-fill { background: rgba(255, 255, 255, .92); box-shadow: none; }
.nx .fx-vol-dark .fx-vol-ico { color: rgba(255, 255, 255, .85); }
.nx .fx-vol-dark .fx-vol-on { color: #0b1120; }
.nx .fx-vol-dark:focus-visible { outline-color: #fff; }

/* level bars, shown while a sound plays */
.nx .fx-eq { display: none; flex-shrink: 0; align-items: flex-end; gap: 2px; width: 14px; height: 12px; }
.nx .fx-eq i { flex: 1; height: 30%; border-radius: 1px; background: var(--brand); animation: fx-eq .9s ease-in-out infinite; }
.nx .fx-eq i:nth-child(2) { animation-delay: -.35s; }
.nx .fx-eq i:nth-child(3) { animation-delay: -.6s; }
.nx .fx-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes fx-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.nx .fx-tile.is-playing .fx-eq, .nx .fx-page[data-live] .fx-bar .fx-eq { display: inline-flex; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

/* the sound board */
.nx .fx-tools { display: flex; align-items: center; gap: 12px; }
.nx .fx-rail { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; margin: -4px -2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.nx .fx-rail::-webkit-scrollbar { display: none; }
.nx .fx-cat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s ease, box-shadow .2s ease; }
.nx .fx-cat i { font-size: 12px; color: var(--tint); }
.nx .fx-cat b { font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .nx .fx-cat:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); } }
.nx .fx-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; color: var(--ink-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease; }
.nx .fx-search:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.nx .fx-search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--ink); background: transparent; }
.nx .fx-tools .fx-search { flex-shrink: 0; width: 210px; }
/* the add-a-stream row: the link field takes the width, the Play button sits beside it */
.nx .fx-paste { display: flex; align-items: center; gap: 10px; }
.nx .fx-paste .fx-search { flex: 1; min-width: 0; }
.nx .fx-paste .fx-btn { flex-shrink: 0; height: 40px; }
.nx .fx-groups { display: flex; flex-direction: column; gap: 28px; margin-top: 18px; }
.nx .fx-group { scroll-margin-top: 96px; }
.nx .fx-group h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.nx .fx-group h3 i { font-size: 14px; color: var(--tint); }
.nx .fx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nx .fx-tile { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 11px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s ease, box-shadow .25s ease; }
.nx .fx-tile::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; opacity: .16; filter: blur(20px) saturate(1.15); transition: opacity .6s ease;
  background: radial-gradient(38% 42% at var(--x1) var(--y1), var(--a1), transparent 70%), radial-gradient(34% 40% at var(--x2) var(--y2), var(--a2), transparent 70%), radial-gradient(42% 36% at var(--x3) var(--y3), var(--a3), transparent 70%); }
@media (hover: hover) and (pointer: fine) { .nx .fx-tile:hover::before { opacity: .3; } }
.nx .fx-tile.is-on { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand), 0 12px 28px -16px var(--shade, rgba(0, 0, 0, 0.4)); }
.nx .fx-tile.is-on::before { opacity: .5; animation: fx-glow 18s ease-in-out infinite alternate; }
@keyframes fx-glow { to { transform: translate(6%, -4%) rotate(8deg) scale(1.08); } }
.nx .fx-tile-btn { width: 100%; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); }
.nx .fx-tile-ico { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-size: 14px; color: var(--tint);
  background: color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .2s ease, color .2s ease; }
.nx .fx-tile.is-on .fx-tile-ico { color: var(--on-brand); background: var(--brand); box-shadow: none; }
.nx .fx-tile.is-loading .fx-tile-ico i::before, .nx .fx-layers li.is-loading .fx-layer-ico i::before { content: "\f110"; display: inline-block; animation: fx-spin 1s linear infinite; }
.nx .fx-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nx .fx-tile-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.nx .fx-tile-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; color: var(--ink-3); }
.nx .fx-tile .fx-vol { margin-top: 10px; }
.nx .fx-empty { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* small notes under a field */
.nx .fx-msg { margin-top: -6px; font-size: 12.5px; color: var(--ink-3); }
.nx .fx-msg.is-err { color: #f87171; }

/* sounds and the Quran radio as tabs; on desktop the tab row stays in reach below the header while the sounds scroll by */
.nx .fx-lib { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: calc(var(--fx-stick, 170px) + 4px); }
.nx .fx-libtabs-wrap { position: sticky; top: var(--fx-stick, 170px); z-index: 30; margin: -8px -10px 0; padding: 8px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nx .fx-libtabs { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nx .fx-libtab { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px;
  font-size: 14px; font-weight: 650; color: var(--ink-2); transition: background .2s ease, color .2s ease; }
.nx .fx-libtab svg { width: 16px; height: 16px; flex-shrink: 0; overflow: visible; }
.nx .fx-libtab > span { white-space: nowrap; }
.nx .fx-libtab b { font-size: 12.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .nx .fx-libtab:hover { color: var(--ink); background: var(--surface-2); } }
.nx .fx-libtab:not([aria-selected="true"]) .fx-tab-ico { color: var(--link); }
.nx .fx-libtab[aria-selected="true"] { color: var(--on-brand); background: var(--grad); box-shadow: 0 8px 20px -10px var(--shade, rgba(0, 0, 0, 0.4)); }
.nx .fx-libtab[aria-selected="true"] b { color: var(--on-brand); }   /* at 70% the count fell to 3.6:1 on Light's and Mint's fill */
.nx .fx-libtab:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
/* a tab whose sound plays says so with its icon: the bars bounce, the radio's waves go out; still while paused */
.nx .fx-ico-bars line { transform-box: fill-box; transform-origin: center; }
.nx .fx-libtab.is-live .fx-ico-bars line { animation: fx-bar .9s ease-in-out infinite; }
.nx .fx-libtab.is-live .fx-ico-bars line:nth-child(2) { animation-delay: -.3s; }
.nx .fx-libtab.is-live .fx-ico-bars line:nth-child(3) { animation-delay: -.6s; }
.nx .fx-libtab.is-live .fx-ico-bars line:nth-child(4) { animation-delay: -.15s; }
.nx .fx-libtab.is-live .fx-ico-bars line:nth-child(5) { animation-delay: -.45s; }
@keyframes fx-bar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.nx .fx-libtab.is-live .fx-ico-radio .fx-w1 { animation: fx-wave 1.6s ease-out infinite; }
.nx .fx-libtab.is-live .fx-ico-radio .fx-w2 { animation: fx-wave 1.6s ease-out .3s infinite; }
@keyframes fx-wave { 0%, 100% { opacity: .2; } 35% { opacity: 1; } }
.nx .fx-panel { display: flex; flex-direction: column; gap: 16px; animation: fx-fade .2s ease both; }
.nx .fx-panel[hidden] { display: none; }
.nx .fx-panel-lead { margin: 0 2px; font-size: 13.5px; color: var(--ink-3); }

/* the page ends on one quiet row: backup on the left, credits on the right */
.nx .fx-foot { margin-top: 4px; border-top: 1px solid var(--line); }
.nx .fx-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 2px 0; }
.nx .fx-foot-backup { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--ink-3); }
.nx .fx-foot-backup > i { margin-right: 2px; }
.nx .fx-foot-backup label { cursor: pointer; }
.nx .fx-foot-backup label:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.nx #fx-backup-msg { font-size: 12px; color: var(--link); }
.nx #fx-backup-msg.is-err { color: #f87171; }
.nx #fx-backup-msg:empty { display: none; }
.nx .fx-credits-arr { font-size: 10px; transition: transform .25s ease; }
.nx #fx-credits-btn[aria-expanded="true"] .fx-credits-arr { transform: rotate(180deg); }
.nx .fx-credits-body { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.nx .fx-credits-body[hidden] { display: none; }
.nx .fx-credits-body a { color: var(--link); }
@media (hover: hover) and (pointer: fine) { .nx .fx-credits-body a:hover { text-decoration: underline; } }
.nx .fx-credits-body ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }

/* the player bar, sticky at the bottom while there is a mix, and the mixer above it */
.nx .fx-dock { position: sticky; bottom: 18px; z-index: 40; width: 100%; max-width: 880px; margin: 36px auto 0; pointer-events: none; }
.nx .fx-bar { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 26px; pointer-events: none; opacity: 0; transform: translateY(16px);
  background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 50px -20px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transition: opacity .3s ease, transform .3s ease; }
.nx .fx-page[data-mixed][data-bar] .fx-bar { pointer-events: auto; opacity: 1; transform: none; }
.nx .fx-thumb { position: relative; isolation: isolate; flex-shrink: 0; width: 52px; height: 52px; overflow: hidden; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.nx .fx-thumb-over { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: #fff; background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity .2s ease; }
.nx .fx-thumb:focus-visible .fx-thumb-over { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .nx .fx-thumb:hover .fx-thumb-over { opacity: 1; } }
.nx .fx-now { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 16px; text-align: left; transition: background .2s ease; }
@media (hover: hover) and (pointer: fine) { .nx .fx-now:hover { background: var(--surface-2); } }
.nx .fx-now-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nx .fx-now-text b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 700; color: var(--ink); }
.nx .fx-now-text small { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nx .fx-chev { font-size: 12px; color: var(--ink-3); transition: transform .25s ease; }
.nx .fx-bar.is-open .fx-chev { transform: rotate(180deg); }
.nx .fx-vol.fx-bar-vol { --h: 36px; flex-shrink: 0; width: 150px; }
.nx .fx-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: auto; background: rgba(2, 6, 23, .42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fx-fade .2s ease both; }
.nx .fx-mixer { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); max-height: min(420px, 55dvh); overflow-y: auto; overscroll-behavior: contain; padding: 12px; border-radius: 24px; pointer-events: auto;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 64px -16px rgba(0, 0, 0, .6); transform-origin: bottom center; animation: fx-pop .22s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes fx-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fx-fade { from { opacity: 0; } }
.nx .fx-mixer-head { display: flex; align-items: center; gap: 2px; padding: 2px 2px 10px 6px; }
.nx .fx-mixer-head b { flex: 1; font-size: 14px; font-weight: 700; color: var(--ink); }
.nx .fx-text-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--ink-3); transition: background .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nx .fx-text-btn:hover { color: var(--ink); background: var(--surface-2); } }
.nx .fx-text-btn.is-done { color: var(--link); }
.nx .fx-layers { display: flex; flex-direction: column; gap: 6px; }
.nx .fx-layers li { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 14px; animation: fx-fade .2s ease both; }
.nx .fx-layer-ico { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-size: 13px; color: var(--tint); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nx .fx-layer-name { flex-shrink: 0; width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nx .fx-layers .fx-vol { flex: 1; }
.nx .fx-layers .fx-icon { width: 36px; height: 36px; }

/* the focus view: its own .nx root on <body>, so it covers the header and the floating buttons */
.nx.fx-view { position: fixed; inset: 0; z-index: 2147482000; isolation: isolate; display: flex; overflow: hidden; color: #fff; background: #000; animation: fx-fade .35s ease both; }
/* Ensure native cursor is ALWAYS clearly visible and clickable in focus view and fullscreen mode */
html.fx-view-on,
html.fx-view-on body,
html.fx-view-on body *,
html body .nx.fx-view,
html body .nx.fx-view *,
html body :fullscreen,
html body :fullscreen *,
html body :-webkit-full-screen,
html body :-webkit-full-screen * {
  cursor: default !important;
}
html body .nx.fx-view button,
html body .nx.fx-view a,
html body .nx.fx-view [role="button"],
html body .nx.fx-view .fx-vol,
html body .nx.fx-view .fx-glass,
html body .nx.fx-view input,
html body .nx.fx-view select,
html body :fullscreen button,
html body :fullscreen a,
html body :fullscreen [role="button"],
html body :fullscreen .fx-vol,
html body :fullscreen .fx-glass,
html body :fullscreen input,
html body :fullscreen select,
html body :-webkit-full-screen button,
html body :-webkit-full-screen a,
html body :-webkit-full-screen [role="button"],
html body :-webkit-full-screen .fx-vol,
html body :-webkit-full-screen .fx-glass,
html body :-webkit-full-screen input,
html body :-webkit-full-screen select {
  cursor: pointer !important;
}
/* every page .nx sits at z-index 1, see-through, with room for the header; the view must not */
html body .nx.fx-view:not(#_v) { position: fixed; z-index: 2147482000; margin: 0; padding: 0 !important; min-height: 0; background: #000 !important; }
.nx .fx-view-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .22) 45%, rgba(0, 0, 0, .45) 100%); }
.nx .fx-view-in { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) 32px max(22px, env(safe-area-inset-bottom)); }
.nx .fx-view-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.nx .fx-view-top > p { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.nx.fx-view:focus { outline: none; }
.nx .fx-view-timer { grid-column: 2; white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nx .fx-view-tools { grid-column: 3; justify-self: end; display: flex; gap: 8px; }
.nx .fx-view-mid { flex: 1; display: grid; place-items: center; padding: 32px 8px; }
.nx .fx-view-quote { max-width: 880px; text-align: center; text-wrap: balance; font-size: clamp(24px, 3.6vw, 42px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .92); text-shadow: 0 4px 30px rgba(0, 0, 0, .55); transition: opacity 1s ease; }
.nx .fx-view-quote.is-fading { opacity: 0; }
.nx .fx-view-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.nx .fx-view-name { min-width: 0; max-width: 100%; }
.nx .fx-view-name p { color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(30px, 5vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.nx .fx-view-name small { display: block; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.nx .fx-view-ctrls { display: flex; align-items: center; gap: 12px; }
.nx .fx-view-ctrls .fx-vol { width: 200px; }
.nx .fx-view-credit { margin-top: 16px; font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.nx .fx-view-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nx .fx-fades { transition: opacity .7s ease; }
.nx.fx-view[data-idle] .fx-fades { opacity: 0; }
html.fx-view-on, html.fx-view-on body { overflow: hidden !important; }

/* sleep timer, in the timer strip */
.nx .fx-sleep { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.nx .fx-sleep select { align-self: stretch; appearance: none; -webkit-appearance: none; border: 0; outline: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); background: transparent; cursor: pointer; }
.nx .fx-sleep select option { color: #0b1120; }
.nx .fx-sleep:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.nx .fx-sleep b { font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.nx .fx-sleep b:empty { display: none; }
.nx .fx-timer.is-sleeping .fx-sleep { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent); }
.nx .fx-timer.is-sleeping .fx-sleep > i { color: var(--link); }

/* radio */
.nx .fx-radio { display: flex; flex-direction: column; gap: 14px; }
.nx .fx-stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }      /* eight in sight: two full rows */
.nx .fx-stations li[hidden] { display: none; }
/* station cards take the theme's colours: the glow from its cover palette, the Bangla ones from its accent pair */
.nx [data-tint="quran"] { --tint: var(--link); --a1: var(--cov-1); --a2: var(--cov-2); --a3: var(--cov-3); }
.nx [data-tint="bn"] { --tint: var(--link); --a1: var(--pc-1); --a2: var(--cov-3); --a3: var(--pc-2); }
.nx .fx-station { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 60px; padding: 11px;
  border-radius: 18px; text-align: left; color: var(--ink); background: color-mix(in srgb, var(--surface) 72%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .25s ease, box-shadow .25s ease, transform .15s ease; }
.nx .fx-station::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; opacity: .18; filter: blur(20px) saturate(1.15); transition: opacity .6s ease;
  background: radial-gradient(38% 42% at var(--x1) var(--y1), var(--a1), transparent 70%), radial-gradient(34% 40% at var(--x2) var(--y2), var(--a2), transparent 70%), radial-gradient(42% 36% at var(--x3) var(--y3), var(--a3), transparent 70%); }
@media (hover: hover) and (pointer: fine) { .nx .fx-station:hover::before { opacity: .34; } }
.nx .fx-station:active { transform: scale(.98); }
.nx .fx-station:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.nx .fx-station-ico { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-size: 14px; color: var(--tint);
  background: color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .2s ease, color .2s ease; }
.nx .fx-station-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nx .fx-station-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.nx .fx-station-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 600; color: var(--tint); }
.nx .fx-station-text small:empty { display: none; }
.nx .fx-station.is-on { background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand), 0 12px 28px -16px var(--shade, rgba(0, 0, 0, 0.4)); }
.nx .fx-station.is-on::before { opacity: .55; animation: fx-glow 18s ease-in-out infinite alternate; }
.nx .fx-station.is-on .fx-station-ico { color: var(--on-brand); background: var(--brand); box-shadow: none; }
/* a face: round, the photo filling it; initials on the theme's gradient; playing adds a ring in the theme colour */
.nx .fx-station-ico.fx-face, .nx .fx-station-ico.fx-glyph { position: relative; border-radius: 50%; overflow: visible; }
.nx .fx-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
/* an emblem: the theme's gradient, a fine inner ring, the emblem in the colour that reads on it */
.nx .fx-station-ico.fx-glyph { --glyph-bg: var(--brand); font-size: 14px; color: var(--on-brand); background: var(--grad); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), 0 4px 10px -4px var(--shade, rgba(0, 0, 0, 0.4)); }
.nx .fx-station.is-on .fx-station-ico.fx-face { background: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.nx .fx-station.is-on .fx-station-ico.fx-glyph { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.nx .fx-station.is-loading .fx-station-ico:is(.fx-face, .fx-glyph)::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--brand); animation: fx-spin .9s linear infinite; }
.nx .fx-face-badge { position: absolute; right: -5px; bottom: -4px; padding: 0 3px; border-radius: 6px; font-size: 8.5px; font-weight: 700; line-height: 13px;
  color: var(--on-brand); background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.nx .fx-station.is-loading .fx-station-ico i::before { content: "\f110"; display: inline-block; animation: fx-spin 1s linear infinite; }
.nx .fx-station.is-playing .fx-eq { display: inline-flex; }
.nx .fx-station .fx-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); background: var(--surface); }
@media (min-width: 768px) and (max-width: 1100px) {      /* tablets: four across, a little more compact */
  .nx .fx-station { gap: 8px; padding: 9px; }
  .nx .fx-station-ico { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; }
  .nx .fx-station-text b { font-size: 12.5px; }
  .nx .fx-station .fx-eq { display: none !important; }
}
.nx .fx-layers li[data-radio].is-loading .fx-layer-ico i::before { content: "\f110"; display: inline-block; animation: fx-spin 1s linear infinite; }

/* backup */
/* radio: groups behind "Show more", a picker while a Bangla set plays, a hidden add-a-stream */
.nx .fx-st-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 2px -2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nx .fx-st-group > i { font-size: 12px; color: var(--link); }
.nx .fx-st-group > i { color: var(--link); }
.nx .fx-st-more-item:not([hidden]) { animation: fx-fade .25s ease both; }
.nx .fx-radio-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.nx .fx-showmore { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, background .2s ease; }
@media (hover: hover) and (pointer: fine) { .nx .fx-showmore:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); } }
.nx .fx-showmore:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.nx .fx-showmore > i { font-size: 11px; color: var(--ink-3); }
.nx .fx-addst-panel { display: flex; flex-direction: column; gap: 8px; animation: fx-fade .2s ease both; }
.nx .fx-addst-panel[hidden] { display: none; }
.nx .fx-tuned { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; border-radius: 16px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 28%, transparent); }
.nx .fx-tuned[hidden] { display: none; }
.nx .fx-surah select { max-width: 200px; }
.nx .fx-tuned .fx-icon { width: 36px; height: 36px; }
.nx .fx-radio-err { margin: 0; font-size: 12.5px; color: #f87171; }
.nx .fx-radio-err[hidden] { display: none; }

/* the visualizer and the previous/next buttons in the focus view & stage */
.nx .fx-viz { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; background: #000; }
.nx .fx-stage .fx-viz { border-radius: 28px; }
.nx .fx-stage[data-viz] .fx-scenes { opacity: 0; pointer-events: none; }
.nx .fx-stage[data-viz]::before {
  z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, .35) 100%);
}
.nx .fx-stage-in { position: relative; z-index: 2; }

.nx.fx-view .fx-viz { z-index: 0; }
.nx.fx-view[data-viz] .fx-view-quote, .nx.fx-view[data-viz] .fx-view-credit { opacity: 0; }
.nx.fx-view[data-viz] .fx-view-shade { background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, .35) 100%); }
.nx .fx-view-mid { position: relative; }
.nx .fx-viz-name { position: absolute; left: 50%; bottom: 16px; max-width: min(90%, 640px); translate: -50% 0; padding: 7px 14px; border-radius: 999px; text-align: center;
  font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .5s ease; pointer-events: none; z-index: 10; }
.nx .fx-stage #fx-stage-viz-name { position: absolute; top: 20px; right: 24px; left: auto; bottom: auto; translate: none; }
.nx .fx-viz-name.is-on { opacity: 1; }
.nx .fx-viz-name.is-err { color: #fecaca; }
.nx #fx-viz[aria-pressed="true"], .nx #fx-stage-viz[aria-pressed="true"] { color: #0b1120; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

/* timer: where you are in the four rounds, a nudge when the break is over, a calmer look on breaks */
.nx .fx-timer { margin-top: 28px; }
.nx .fx-timer-text small { display: flex; align-items: center; gap: 8px; }
.nx .fx-dots { display: inline-flex; gap: 4px; }
.nx .fx-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); transition: background .3s ease; }
.nx .fx-dots i.is-on { background: var(--brand); }
.nx .fx-dots i.is-now { background: transparent; box-shadow: inset 0 0 0 1.5px var(--brand); }
.nx .fx-timer.is-waiting .fx-tgo { color: var(--on-brand); background: var(--brand); animation: fx-ready 1.8s ease-out infinite; }
@keyframes fx-ready { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(var(--brand-rgb), 0); } }
.nx .fx-timer.is-break .fx-ring-fg { stroke: #34d399; }
.nx .fx-timer.is-break .fx-tgo { color: #0b1120; background: #34d399; }
.nx .fx-plan select { max-width: 150px; }
/* the visual answers double-clicks, double-taps, swipes and a long press; a kept one shows a small pin on its button */
.nx .fx-stage[data-viz], .nx.fx-view[data-viz] { touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; }
.nx .is-pinned { position: relative; }
.nx .is-pinned::after { content: "08d"; position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%;
  font: 900 8px/1 "Font Awesome 6 Free"; color: #0b1120; background: var(--brand); box-shadow: 0 0 0 2px rgba(3, 7, 18, .6); }


@media (min-width: 1200px) { .nx .fx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .nx .fx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  /* the site-wide phone h2 size would shrink the library hero titles to body size */
  html body .nx .nl-hero-title:not(#_x) { font-size: 28px !important; margin: 14px 0 10px !important; }
  html body .nx .fx-title:not(#_x) { font-size: 38px !important; margin: 8px 0 0 !important; }
  .nx .fx-stage { min-height: 0; border-radius: 22px; }
  /* the stage fills the first screen from the first paint (fit() in focus-page.js sets the same height): 213px above it, the 64px tab bar, 14px gap */
  .nx .fx-stage { min-height: max(460px, calc(100svh - 291px - env(safe-area-inset-bottom, 0px))); }
  .nx .fx-stage::before { background: linear-gradient(0deg, rgba(3, 7, 18, .85) 0%, rgba(3, 7, 18, .5) 55%, rgba(3, 7, 18, .62) 100%); }   /* the title block sits at the top on phones */
  .nx .fx-stage-in { padding: 36px 20px 30px; }      /* the bottom band (the scroll cue and the orb beside it) stays clear of buttons */
  /* the first screen is a player, laid out like any music app: one transport row (shuffle, previous, play, next, the mix),
     then the presets with the focus view and the visualizer beside them (focus-page.js moves those two there on phones) */
  .nx .fx-ctrls { justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  /* arrange() (focus-page.js) moves these two beside the presets on phones; until then they stay out of the row, so it never changes height */
  .nx .fx-ctrls > :is(#fx-expand, #fx-stage-viz) { display: none; }
  .nx #fx-shuffle { order: 1; } .nx #fx-prev { order: 2; } .nx #fx-play { order: 3; } .nx #fx-next { order: 4; } .nx .fx-stage-mix { order: 5; margin: 0; }
  .nx .fx-glass.fx-side, .nx .fx-glass.fx-step { width: 44px; height: 44px; font-size: 15px; }
  /* the mix button: round, its count as a badge; it keeps its place while empty so the row stays balanced */
  .nx .fx-glass.fx-mixbtn { position: relative; justify-content: center; width: 44px; min-width: 0; height: 44px; padding: 0; }
  .nx .fx-mixbtn b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px;
    font-size: 10.5px; color: var(--on-brand); background: var(--brand); box-shadow: 0 0 0 2px rgba(3, 7, 18, .6); }
  html body .nx .fx-page .fx-stage-mix .fx-mixbtn[hidden] { display: inline-flex !important; visibility: hidden; }
  .nx .fx-presets-wrap { width: 100%; }
  .nx .fx-presets-bar { justify-content: flex-start; gap: 10px; }
  .nx .fx-presets-pill { min-width: 0; flex-shrink: 1; height: 40px; }
  .nx .fx-presets-cur { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .nx .fx-bar-tools { margin-left: auto; display: flex; gap: 10px; }
  .nx .fx-bar-tools .fx-glass { width: 40px; height: 40px; font-size: 14px; }
  .nx .fx-keys { display: none; }
  /* library tabs: a touch smaller on phones */
  .nx .nl-tabs a { padding: 7px 13px; gap: 6px; font-size: 13px; }
  .nx .nl-tabs a svg { width: 15px; height: 15px; }
  /* the row spans the stage and scrolls sideways (centred, it would grow past both edges and could not scroll) */
  .nx .fx-presets-wrap .fx-chips { align-self: stretch; }
  .nx .fx-presets-wrap.is-open .fx-chips { max-height: 220px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
  .nx .fx-presets-wrap.is-open .fx-chips::-webkit-scrollbar { display: none; }
  /* the cue to scroll sits left: the bottom-right corner of the first screen is the AI orb's */
  .nx .fx-more { display: flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; margin: 12px 0 0 -10px; padding: 6px 10px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
  .nx .fx-more i { font-size: 11px; animation: fx-nudge 2s ease-in-out infinite; }
  @keyframes fx-nudge { 50% { transform: translateY(3px); } }
  .nx .fx-quote { font-size: 14.5px; }
  .nx .fx-play { width: 64px; height: 64px; font-size: 21px; }
  /* short phones: the first screen drops the quote and tightens, so the player fits above the orb */
  @media (max-height: 760px) {
    .nx .fx-stage-in { padding-top: 22px; }
    .nx .fx-quote { display: none; }
    html body .nx .fx-title:not(#_x) { font-size: 32px !important; }
  }
  @media (max-width: 360px) {
    .nx .fx-ctrls { gap: 6px; }
    .nx .fx-play { width: 56px; height: 56px; font-size: 19px; }
    .nx .fx-glass.fx-side, .nx .fx-glass.fx-step, .nx .fx-glass.fx-mixbtn { width: 40px; height: 40px; font-size: 14px; }
  }
  .nx .fx-chips { margin-top: 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
  .nx .fx-chips::-webkit-scrollbar { display: none; }
  /* phones: ring, time and reset on the first row (the line under the time may wrap, the reset never drops),
     the three modes on the second, round length and sleep sharing the third */
  .nx .fx-timer { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .nx .fx-timer-text { flex: 1; min-width: 0; }
  .nx .fx-timer-text small { white-space: normal; flex-wrap: wrap; row-gap: 3px; line-height: 1.35; }
  .nx #fx-treset { margin-left: 0; }
  .nx .fx-phases { order: 5; width: 100%; margin-left: 0; }
  .nx .fx-phases button { flex: 1; min-width: 0; padding: 8px 4px; font-size: 12.5px; }
  .nx .fx-timer .fx-sleep { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .nx .fx-sleep select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
  @media (max-width: 400px) { .nx .fx-ph-word { display: none; } }
  .nx .fx-tools { flex-direction: column-reverse; align-items: stretch; }
  .nx .fx-tools .fx-search { width: auto; }
  .nx .fx-tiles { gap: 8px; }
  .nx .fx-tile { padding: 9px; }
  .nx .fx-tile-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .nx .fx-tile-text small { display: none; }
  .nx .fx-credits-body ul { grid-template-columns: 1fr; }
  /* phones scroll with overflow set on html and body, where sticky never sticks, so the bar is fixed above the tab bar */
  .nx .fx-dock { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: auto; margin: 0; }
  .nx .fx-page[data-mixed] { padding-bottom: 110px !important; }
  .nx .fx-bar #fx-full { display: none; }
  .nx .fx-bar { gap: 6px; border-radius: 22px; }
  .nx .fx-vol.fx-bar-vol, .nx .fx-wide { display: none; }
  .nx .fx-thumb { width: 46px; height: 46px; border-radius: 15px; }
  .nx .fx-layer-name { width: 92px; }
  .nx .fx-sleep { order: 6; }
  .nx .fx-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nx .fx-station { gap: 8px; padding: 9px; min-height: 56px; border-radius: 16px; }
  .nx .fx-station-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .nx .fx-station-text b { font-size: 13px; }
  .nx .fx-station .fx-eq { display: none !important; }

  /* phones: the tab row scrolls with the page (sticky doesn't hold there), three equal tabs, no counts */
  .nx .fx-libtabs-wrap { position: static; margin: 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nx .fx-libtab { gap: 6px; padding: 0 6px; font-size: 13px; height: 42px; }
  .nx .fx-libtab b { display: none; }
  .nx .fx-tab-q { display: none; }
  .nx .fx-libtab[data-tab="radio"] > span::first-letter { text-transform: uppercase; }
  .nx .fx-tuned .fx-surah { order: 0; flex: 1; } .nx .fx-surah select { max-width: none; width: 100%; }
  .nx .fx-view-in { padding-inline: 18px; }
  /* the top of the focus view on a phone: one row, the timer when it runs (else the "Focus" label), the tools at the right */
  .nx .fx-view-top { display: flex; align-items: center; gap: 8px; }
  .nx .fx-view-top:has(.fx-view-timer:not([hidden])) > p { display: none; }
  .nx .fx-view-timer { padding: 5px 11px; font-size: 12px; }
  .nx .fx-view-tools { margin-left: auto; gap: 6px; }
  .nx .fx-view-tools .fx-glass { width: 38px; height: 38px; font-size: 13px; }
  .nx .fx-view-ctrls .fx-glass:not(.fx-glass-lg) { width: 40px; height: 40px; }
  .nx .fx-view-ctrls { width: 100%; }
  .nx .fx-view-ctrls .fx-vol { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nx .fx-ico-bars line, .nx .fx-ico-radio path, .nx .fx-live, .nx .fx-eq i, .nx .fx-scenes img.is-on, .nx .fx-tile.is-on::before, .nx .fx-more i, .nx .fx-page[data-live] .fx-state::before, .nx .fx-timer.is-waiting .fx-tgo { animation: none !important; }
  .nx .fx-scenes img { transition: opacity .3s ease; transform: none; }
}


/* these sections sit in the page's column, without the site stylesheet's padding for its full-width sections (!important there on phones) */
.nx :is(.arc, .xp, .smp) { padding: 0 !important; }
/* sample designs (Profile > Tools) */
.nx .smp { margin-top: 36px; }
.nx .smp-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; }
.nx .smp-lead { margin: 4px 0 16px; font-size: 14.5px; color: var(--ink-2); }
.nx .smp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.nx .smp-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); }
.nx .smp-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.nx .smp-file code { font-family: 'Fira Code', ui-monospace, monospace; overflow-wrap: anywhere; }
.nx .smp-lang { padding: 2px 8px; border-radius: 6px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nx .smp-card h4 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.nx .smp-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nx .smp-badges { margin-top: 0; }
.nx .smp-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.nx .smp-metrics li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.nx .smp-metrics b { font-family: 'Fira Code', ui-monospace, monospace; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.nx .smp-metrics span { font-size: 12.5px; color: var(--ink-2); }
.nx .smp-more { margin-top: 2px; }
.nx .smp-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px 6px 10px; border-radius: 10px;
  cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nx .smp-more summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .nx .smp-more summary:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent); } }
.nx .smp-more summary svg { transform: rotate(-90deg); transition: transform .2s ease; }
.nx .smp-more[open] summary svg { transform: none; }
.nx .smp-steps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.nx .smp-steps li { padding-left: 14px; box-shadow: inset 2px 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
.nx .smp-step { display: block; font-family: 'Fira Code', ui-monospace, monospace; font-size: 12px; color: var(--ink-3); }
.nx .smp-steps b { display: block; font-size: 14px; color: var(--ink); }
.nx .smp-steps p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.nx .smp-code { margin: 14px 0 0; padding: 14px; max-height: 420px; overflow: auto; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, var(--bg));
  box-shadow: inset 0 0 0 1px var(--line); font: 12.5px/1.6 'Fira Code', ui-monospace, monospace; color: var(--ink-2); tab-size: 4; }
.nx .smp-code code { font: inherit; white-space: pre; }
.nx .smp-code .keyword { color: var(--smp-kw); }
.nx .smp-code .string { color: var(--smp-str); }
.nx .smp-code .function { color: var(--smp-fn); }
.nx .smp-code .comment { color: var(--smp-cm, var(--ink-3)); font-style: italic; }
.nx .smp-code .variable { color: var(--ink); }
.nx .smp-arch { margin-top: 16px; }
.nx { --smp-kw: #67e8f9; --smp-str: #86efac; --smp-fn: #fcd34d; --ldr-up: #4ade80; --ldr-down: #f87171; }
[data-theme="cyberpunk"] .nx { --smp-kw: #fb7185; --smp-str: #86efac; --smp-fn: #fcd34d; --ldr-up: #4ade80; --ldr-down: #fda4af; }
:is([data-theme="light"], [data-theme="mint"]) .nx { --smp-kw: #1d4ed8; --smp-str: #166534; --smp-fn: #92400e; --smp-cm: #475569; --ldr-up: #15803d; --ldr-down: #b91c1c; }
[data-theme="god-mode"] .nx { --smp-kw: #00ff00; --smp-str: #bbf7d0; --smp-fn: #fde68a; --ldr-up: #00ff00; --ldr-down: #fca5a5; }

/* experiments (Projects) */
.nx .xp { margin-top: 48px; scroll-margin-top: 140px; }
.nx .xp-lead { margin: -4px 0 18px; color: var(--ink-2); font-size: 15px; }
.nx .xp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.nx .xp-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nx .xp-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.nx .xp-cat { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.nx .xp-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.nx .xp-line { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* /architecture/ */
.nx .arc-points { display: grid; gap: 10px; margin: -8px 0 40px; padding: 0; list-style: none; }
.nx .arc-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.nx .arc-points svg { flex-shrink: 0; margin-top: 3px; color: var(--link); }
.nx .arc-views { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.nx .arc-view { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, color .2s ease; }
.nx .arc-view i { font-size: 13px; color: var(--ink-3); }
.nx .arc-view b { font-weight: 600; font-family: 'Fira Code', ui-monospace, monospace; font-size: 12.5px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .nx .arc-view:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 45%, transparent); } }
.nx .arc-view[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.nx .arc-view[aria-pressed="true"] :is(i, b) { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.nx .arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.nx .arc-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.nx .arc-card.is-off { display: none; }
.nx .arc-card-head { display: flex; align-items: center; gap: 12px; }
.nx .arc-card-head .nl-tile { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.nx .arc-card h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.nx .arc-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.nx .arc-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.nx .arc-desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.nx .arc-tags { margin-top: auto; padding-top: 4px; }
.nx .arc-tag i { font-size: 12px; color: var(--ink-3); }
.nx .arc-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.nx .arc-next .nl-more { margin-top: 0; }

/* /library/leaderboard/ */
.nx .nl-stat-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
.nx .nl-stat-wide .nl-stat-ico { margin: 0; }
.nx .nl-stat-wide b { font-size: 18px; white-space: nowrap; }
.nx .nl-stat-wide > span:not(.nl-stat-ico) { flex: 1; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.nx .nl-stat-wide > svg { flex-shrink: 0; color: var(--ink-3); }
.nx .ldr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: -6px 0 18px; font-size: 13.5px; color: var(--ink-3); }
.nx .ldr-meta a, .nx .ldr-about a { display: inline-flex; align-items: center; gap: 5px; padding-block: 3px; margin-block: -3px; color: var(--ink-2); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink-2) 40%, transparent); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .nx .ldr-meta a:hover, .nx .ldr-about a:hover { color: var(--link); } }
.nx .ldr-cats { margin-bottom: 12px; }
.nx .ldr-cats button { min-height: 38px; }
.nx .ldr-cats button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.nx .ldr-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.nx .ldr-subs[hidden] { display: none; }
.nx .ldr-subs button { min-height: 32px; padding: 5px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .nx .ldr-subs button:hover { color: var(--ink); } }
.nx .ldr-subs button[aria-pressed="true"] { color: var(--ink); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.nx .ldr-about { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nx .ldr-about [data-lb-desc] { flex-basis: 100%; }
.nx .ldr-about [data-lb-count] { font-family: 'Fira Code', ui-monospace, monospace; font-size: 12.5px; color: var(--ink-3); }
.nx .ldr-card { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.nx .ldr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nx .ldr-table th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.nx .ldr-table td { padding: 12px 14px; vertical-align: middle; border-top: 1px solid var(--line); }
.nx .ldr-table tbody tr:first-child td { border-top: 0; }
.nx .ldr-rank { width: 76px; }
.nx .ldr-pill { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 10px; font: 600 13px 'Fira Code', ui-monospace, monospace;
  color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nx .ldr-pill.is-top { color: var(--ink); background: var(--brand-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent); }
.nx .ldr-range { display: block; margin-top: 4px; font: 12px 'Fira Code', ui-monospace, monospace; color: var(--ink-3); }
.nx .ldr-model b { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.nx .ldr-model > span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ink-3); }
.nx .ldr-num { font-family: 'Fira Code', ui-monospace, monospace; }
.nx .ldr-val { font-weight: 600; color: var(--ink); white-space: nowrap; }
.nx .ldr-up .ldr-val { color: var(--ldr-up); }
.nx .ldr-down .ldr-val { color: var(--ldr-down); }
.nx .ldr-bar { position: relative; display: block; width: 72px; height: 4px; margin: 6px 0 4px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.nx .ldr-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--brand); }
.nx .ldr-margin { display: block; font-size: 12px; color: var(--ink-3); }
.nx td.ldr-lic span { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nx .ldr-state td { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.nx .ldr-retry { margin-left: 8px; min-height: 32px; padding: 4px 12px; border-radius: 10px; font-weight: 600; color: var(--ink); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); }
/* phones: the licence column goes (the lab line under each model names it too), the headings drop their capitals so they
   take less width than the model names, and the view buttons get small enough for two or three to a row */
@media (max-width: 640px) {
  .nx .ldr-table { font-size: 13px; }
  .nx .ldr-table th { padding: 10px 6px; font-size: 12px; letter-spacing: 0; text-transform: none; line-height: 1.3; }
  .nx .ldr-table td { padding: 10px 6px; }
  .nx .ldr-table :is(th, td):first-child { padding-left: 12px; }
  .nx .ldr-table :is(th, td):last-child { padding-right: 12px; }
  .nx .ldr-table .ldr-lic { display: none; }
  .nx .ldr-rank { width: 48px; }
  .nx .ldr-bar { width: 48px; }
  .nx .ldr-cats button { padding: 7px 12px; font-size: 13px; }
  .nx .nl-stat-wide { flex-wrap: wrap; }
  .nx .nl-stat-wide > span:not(.nl-stat-ico) { flex-basis: 100%; order: 3; }
  .nx .nl-stat-wide > svg { margin-left: auto; }
  .nx .arc-views { gap: 6px; }
  .nx .arc-view { min-height: 36px; padding: 6px 11px; gap: 6px; font-size: 13px; }
  .nx .arc-view i { display: none; }
  .nx .arc-grid { grid-template-columns: minmax(0, 1fr); }
  .nx .arc-card { padding: 18px; border-radius: 20px; }
  .nx .smp-grid { grid-template-columns: minmax(0, 1fr); }
}
