/* Al-Raqeem — Number Properties Lab v69 */
#pageNumprops{--npx-bg:var(--bg-card);--npx-soft:var(--bg-input);--npx-line:var(--border);--npx-text:var(--text-pri);--npx-muted:var(--text-sec)}
#pageNumprops>header{max-width:1240px;margin:1rem auto 0;text-align:center}#pageNumprops>header h1{font-family:'Amiri',serif;color:var(--gold);font-size:clamp(1.8rem,4vw,2.8rem);margin:.4rem}
.np-standalone{max-width:1240px!important;padding:0 1rem 4rem!important}.np-standalone .numprops-section{max-width:none!important;width:100%;border-radius:18px;overflow:visible}.np-standalone .numprops-header{padding:1.1rem 1rem .8rem;background:linear-gradient(180deg,rgba(201,168,76,.1),transparent);border-radius:18px 18px 0 0}.np-pre-title{font-family:var(--font-main)!important;letter-spacing:.08em!important}.np-pre-title::before{content:'الملف العددي';font-size:.8rem}.np-pre-title{font-size:0!important}.np-number{color:var(--gold-glow)!important;text-shadow:0 0 24px rgba(201,168,76,.28)!important}.np-factorization{color:var(--text-sec)!important}.np-body{padding:0 1rem 1rem!important}.np-input-section{position:sticky;bottom:.5rem;z-index:20;max-width:650px;margin:1rem auto!important;border:1px solid var(--border-lit);border-radius:14px!important;background:color-mix(in srgb,var(--bg-card) 92%,transparent)!important;backdrop-filter:blur(12px);box-shadow:0 8px 28px rgba(0,0,0,.3)}.np-go-btn{font-family:var(--font-main)!important}.np-go-btn{font-size:0!important}.np-go-btn::after{content:'عرض الخصائص';font-size:.85rem}.np-spin-input{font-size:1.15rem!important}.np-empty-state{font-family:var(--font-main)}
.npx-tagbar{display:flex;justify-content:center;flex-wrap:wrap;gap:.4rem;margin:.5rem 0}.npx-tagbar>span{border:1px solid var(--c);color:var(--c);background:color-mix(in srgb,var(--c) 10%,transparent);padding:.28rem .7rem;border-radius:999px;font-size:.72rem;font-weight:700}
.npx-main-tabs{display:flex;justify-content:center;gap:.45rem;margin:.9rem 0}.npx-main-tabs button{border:1px solid var(--border);border-radius:999px;background:var(--bg-card);color:var(--text-sec);padding:.52rem 1.1rem;cursor:pointer;font:700 .82rem var(--font-main)}.npx-main-tabs button.active{border-color:var(--gold);color:var(--gold);background:rgba(201,168,76,.1)}
.npx-summary-grid,.npx-explore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;max-width:1120px;margin:auto}.npx-card{background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:.9rem 1rem;min-width:0}.npx-card h3{color:var(--gold);font-size:.95rem;margin:0 0 .65rem}.npx-factor{text-align:center;font:700 1.25rem 'Ubuntu Mono',monospace;color:var(--gold);direction:ltr}.npx-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.45rem}.npx-chip{border:1px solid color-mix(in srgb,var(--c) 45%,var(--border));background:color-mix(in srgb,var(--c) 8%,var(--bg-card));border-radius:10px;padding:.55rem;text-align:center;min-width:0}.npx-chip span{display:block;color:var(--text-sec);font-size:.68rem}.npx-chip b{display:block;color:var(--c);font-size:.9rem;margin-top:.2rem;overflow-wrap:anywhere}.npx-numlink{border:none;background:none;color:inherit;font:inherit;font-weight:800;cursor:pointer;border-bottom:1px dotted currentColor;padding:0}.npx-numlink:hover{color:var(--gold)}
.npx-divs{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:center;margin:.65rem 0}.npx-divs details{width:100%;text-align:center}.npx-divs summary{cursor:pointer;color:var(--gold);margin:.4rem}.npx-divs .npx-numlink{background:rgba(169,140,255,.08);color:#a98cff;border:1px solid rgba(169,140,255,.28);border-radius:7px;padding:.25rem .45rem}.npx-pairs,.npx-inline-tags{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:center}.npx-pairs span,.npx-inline-tags span{font-size:.68rem;color:var(--text-sec);border:1px solid var(--border);border-radius:999px;padding:.25rem .55rem}.npx-inline-tags span.yes{color:#43d6a5;border-color:#43d6a5;background:rgba(67,214,165,.08)}.npx-seq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.npx-seq>div{border-right:3px solid var(--c);background:color-mix(in srgb,var(--c) 7%,transparent);border-radius:8px;padding:.45rem .55rem}.npx-seq b{display:block;color:var(--c);font-size:.75rem}.npx-seq span{font-size:.68rem;color:var(--text-sec)}.npx-primes{display:flex;justify-content:space-between;gap:.5rem;margin-top:.65rem;font-size:.72rem;color:var(--text-sec)}.npx-muted{color:var(--text-sec);font-size:.76rem;line-height:1.8;text-align:center}
.npx-rail{max-width:1120px;margin:.75rem auto 0}.npx-rail-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.npx-rail-head h3{margin:0}.npx-rail-head>div{font-size:.65rem;color:var(--text-sec)}.npx-rail-head i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-inline:.2rem}.npx-rail-head i.prime{background:#ff7868}.npx-rail-head i.square{background:#57baff}.npx-rail-head i.tri{background:#43d6a5}.npx-number-rail{display:grid;grid-template-columns:repeat(11,1fr);gap:.35rem}.npx-number-rail button{position:relative;border:1px solid var(--border);background:var(--bg-input);color:var(--text-sec);border-radius:8px;padding:.55rem .2rem;cursor:pointer}.npx-number-rail button.current{border-color:var(--gold);color:var(--gold);transform:scale(1.08);background:rgba(201,168,76,.12)}.npx-number-rail button.prime::after,.npx-number-rail button.square::before,.npx-number-rail button.tri span{content:'';position:absolute;width:5px;height:5px;border-radius:50%}.npx-number-rail button.prime::after{background:#ff7868;top:3px;right:3px}.npx-number-rail button.square::before{background:#57baff;top:3px;left:3px}.npx-number-rail button.tri{box-shadow:inset 0 -2px #43d6a5}
.npx-reps{display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem}.npx-reps>div{background:var(--bg-input);border:1px solid var(--border);border-radius:8px;padding:.5rem}.npx-reps b{display:block;color:var(--text-sec);font-size:.67rem}.npx-reps code{display:block;color:#42c9c5;direction:ltr;overflow-wrap:anywhere;margin-top:.2rem}.npx-dots{display:grid;grid-template-columns:repeat(var(--cols),8px);gap:4px;justify-content:center;max-height:230px;overflow:auto;padding:.5rem}.npx-dots i{width:8px;height:8px;border-radius:50%;background:#57baff;box-shadow:0 0 5px rgba(87,186,255,.35)}.npx-path{display:flex;align-items:center;flex-wrap:wrap;gap:.28rem;justify-content:center;direction:ltr}.npx-path.compact{max-height:140px;overflow:auto}.npx-path>span{color:var(--text-muted)}.npx-const-list{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.npx-const-list>div{background:var(--bg-input);border:1px solid var(--border);border-radius:9px;padding:.55rem;display:grid;gap:.25rem}.npx-const-list b{font-size:1.3rem;color:#d982e8}.npx-const-list span{font-size:.7rem;color:var(--text-sec)}.npx-const-list code{direction:ltr;overflow-wrap:anywhere}.npx-const-list mark{background:rgba(217,130,232,.2);color:#e7a6f1}.npx-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem}.npx-actions button,.npx-compare-form button{border:1px solid var(--gold);color:var(--gold);background:rgba(201,168,76,.08);border-radius:8px;padding:.48rem .75rem;cursor:pointer;font-family:var(--font-main)}
.npx-compare{max-width:1120px;margin:auto}.npx-compare-form{display:flex;justify-content:center;align-items:center;gap:.5rem;flex-wrap:wrap}.npx-compare-form input{width:150px;background:var(--bg-input);border:1px solid var(--border);color:var(--text-pri);border-radius:8px;padding:.55rem;text-align:center;font-size:1rem}.npx-compare-cols{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:.6rem;margin-top:1rem}.npx-compare-cols article{border:1px solid var(--border);border-radius:10px;padding:.7rem;text-align:center;background:var(--bg-input)}.npx-compare-cols h4{font-size:1.5rem;margin:.2rem}.npx-between>div{display:grid;grid-template-columns:repeat(2,1fr);gap:.35rem}.npx-error{color:#ff7868;text-align:center}
html[data-theme="light"] .npx-card{box-shadow:0 4px 14px rgba(80,60,20,.05)}html[data-theme="light"] .np-input-section{background:rgba(255,255,255,.92)!important}
@media(max-width:820px){.npx-summary-grid,.npx-explore-grid{grid-template-columns:1fr}.npx-number-rail{grid-template-columns:repeat(6,1fr)}.npx-compare-cols{grid-template-columns:1fr}.npx-between{order:3}.npx-const-list{grid-template-columns:1fr}}
@media(max-width:520px){.np-body{padding:0 .5rem .7rem!important}.npx-card{padding:.75rem}.npx-number-rail{grid-template-columns:repeat(4,1fr)}.npx-seq,.npx-reps{grid-template-columns:1fr}.npx-primes{flex-direction:column;text-align:center}.np-input-section{padding:.5rem!important}.np-spin-btn{display:none}.np-spin-input{width:100px!important}}

.npx-all-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;max-width:1120px;margin:.75rem auto}.npx-wide{max-width:1120px;margin:.75rem auto}.npx-nth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.npx-nth-grid>div{border-right:3px solid var(--c);background:color-mix(in srgb,var(--c) 7%,transparent);border-radius:9px;padding:.5rem}.npx-nth-grid span{display:block;color:var(--text-sec);font-size:.68rem}.npx-nth-grid b{display:block;color:var(--c);font-size:.92rem;margin-top:.15rem}.npx-subhead{color:var(--gold);font-weight:800;font-size:.75rem;margin:.65rem 0 .35rem}.npx-const-list>div header{display:flex;align-items:center;gap:.5rem}.npx-const-list>div header span{font-weight:700;color:var(--text-pri)}
@media(max-width:820px){.npx-all-grid{grid-template-columns:1fr}.npx-nth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.npx-nth-grid{grid-template-columns:1fr}}

/* v68 — bilingual list layout and improved light mode */
.npx-inline-tags span.no{color:var(--text-sec);border-color:var(--border);background:var(--bg-input)}
.npx-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.npx-status-grid article{border-right:3px solid var(--c);background:color-mix(in srgb,var(--c) 7%,transparent);border-radius:10px;padding:.65rem .75rem}
.npx-status-grid b{display:block;color:var(--c);font-size:.82rem;margin-bottom:.25rem}
.npx-status-grid span{display:block;color:var(--text-sec);font-size:.73rem;line-height:1.75}
.npx-low-priority{margin-top:.75rem!important;opacity:.94}
@media(max-width:600px){.npx-status-grid{grid-template-columns:1fr}}

/* Bilingual headings and compact list presentation */
.npx-card h3 small{display:block;margin-top:.12rem;color:var(--text-sec);font:600 .62rem/1.3 'JetBrains Mono','Ubuntu Mono',monospace;direction:ltr;text-align:right;letter-spacing:.02em}
.npx-metrics{display:flex!important;flex-direction:column;gap:.32rem!important}
.npx-chip{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;text-align:right!important;padding:.48rem .65rem!important;border-radius:8px!important}
.npx-chip .npx-bi-label{min-width:0}.npx-chip b{margin:0!important;text-align:left;direction:ltr;font-size:1rem!important;white-space:normal}
.npx-bi-label{display:flex!important;flex-direction:column;gap:.08rem;color:var(--text-pri)}
.npx-bi-label strong{font-size:.72rem;font-weight:700;color:var(--text-pri)}
.npx-bi-label small{font:500 .58rem/1.25 'JetBrains Mono','Ubuntu Mono',monospace;color:var(--text-sec);direction:ltr;text-align:right}
.npx-seq b small,.npx-status-grid b small,.npx-const-list header span small{display:block;margin-top:.08rem;font:500 .56rem/1.25 'JetBrains Mono','Ubuntu Mono',monospace;color:var(--text-sec);direction:ltr;text-align:right}
.npx-nth-grid>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:center}.npx-nth-grid>div .npx-bi-label span{display:none}.npx-nth-grid>div b{margin:0!important;text-align:left;direction:ltr}
.npx-reps{display:flex!important;flex-direction:column;gap:.35rem!important}.npx-reps>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem}.npx-reps code{margin:0!important;text-align:left;font-weight:800;font-size:.9rem}
.npx-const-list>div header span{display:block;color:var(--text-pri);font-weight:700}
/* Stronger contrast in light mode */
html[data-theme="light"] .np-number{color:#5f4700!important;text-shadow:none!important}
html[data-theme="light"] .npx-factor{color:#5f4700!important}
html[data-theme="light"] .npx-chip b,html[data-theme="light"] .npx-nth-grid b,html[data-theme="light"] .npx-seq b,html[data-theme="light"] .npx-numlink{color:color-mix(in srgb,var(--c,#5f4700) 58%,#111)!important}
html[data-theme="light"] .npx-reps code{color:#075d5b!important}
html[data-theme="light"] .npx-number-rail button{color:#2d2920!important;background:#fff!important;border-color:rgba(80,65,30,.35)!important;font-weight:700}
html[data-theme="light"] .npx-number-rail button.current{color:#5f4700!important;background:#fff5d8!important;border-color:#8b6800!important}
html[data-theme="light"] .npx-const-list code{color:#34233d!important}html[data-theme="light"] .npx-const-list mark{color:#65156f!important;background:#f3d9f6!important}
html[data-theme="light"] .npx-divs .npx-numlink{color:#4e318d!important;background:#f1ebff!important;border-color:#8b70bd!important}
@media(max-width:520px){.npx-chip{grid-template-columns:minmax(0,1fr) auto}.npx-nth-grid>div{grid-template-columns:minmax(0,1fr) auto}}


/* v69 — spacious structured lists, no editorial notes */
#pageNumprops>header,.np-standalone{max-width:1420px!important}
.np-standalone{padding-inline:clamp(.7rem,2vw,1.6rem)!important}
.np-body{padding-inline:clamp(.65rem,1.5vw,1.35rem)!important}
.npx-summary-grid,.npx-all-grid,.npx-wide,.npx-rail,.npx-compare{max-width:1340px!important}
.npx-summary-grid{grid-template-columns:minmax(0,.92fr) minmax(0,1.18fr);gap:1rem}
.npx-all-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}
.npx-card{padding:1rem 1.15rem;border-radius:15px}
.npx-card h3{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;font-size:1rem;margin-bottom:.8rem;white-space:nowrap}
.npx-card h3 small{display:inline!important;margin:0!important;flex:none;text-align:left!important;white-space:nowrap;font-size:.62rem!important}
.npx-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem!important}
.npx-chip{min-height:52px;grid-template-columns:minmax(150px,1fr) minmax(70px,auto);padding:.55rem .75rem!important;gap:1rem}
.npx-bi-label{min-width:0;display:grid!important;grid-template-columns:minmax(max-content,1fr) auto;align-items:baseline;gap:.55rem!important}
.npx-bi-label strong{font-size:.77rem;line-height:1.35;white-space:nowrap}
.npx-bi-label small{font-size:.57rem;line-height:1.2;white-space:nowrap;text-align:left!important}
.npx-chip b{white-space:nowrap!important;overflow:visible!important;text-align:left!important;font-size:1.02rem!important}
.npx-factor{font-size:1.35rem;padding:.2rem 0 .7rem;white-space:nowrap;overflow-x:auto}
.npx-divs{justify-content:flex-start;gap:.38rem}.npx-pairs{justify-content:flex-start;gap:.4rem}
.npx-pairs span,.npx-inline-tags span{white-space:nowrap}
.npx-seq{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.npx-seq>div{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr);align-items:center;gap:.7rem;min-height:58px;padding:.58rem .7rem}
.npx-seq b,.npx-seq b small,.npx-seq span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.npx-seq span{text-align:left;font-size:.72rem}
.npx-status-grid{grid-template-columns:1fr 1fr;gap:.7rem}
.npx-status-grid article{min-height:118px;padding:.8rem .9rem}
.npx-status-grid article b{white-space:nowrap}.npx-status-grid article span{line-height:1.75}
.npx-nth-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.npx-nth-grid>div{grid-template-columns:minmax(250px,1fr) minmax(90px,auto);min-height:58px;padding:.58rem .72rem}
.npx-nth-grid>div .npx-bi-label{grid-template-columns:minmax(max-content,1fr) auto}
.npx-nth-grid>div .npx-bi-label strong,.npx-nth-grid>div .npx-bi-label small{white-space:nowrap}
.npx-nth-grid>div b{white-space:nowrap;font-size:1rem}
.npx-const-list{grid-template-columns:1fr 1fr;gap:.75rem}
.npx-const-list>div{min-height:142px;padding:.75rem .9rem}.npx-const-list>div header span,.npx-const-list>div header span small{white-space:nowrap}
.npx-const-list code{white-space:nowrap;overflow-x:auto;display:block;padding-bottom:.15rem}
.npx-reps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem!important}
.npx-reps>div{display:grid;grid-template-columns:1fr;gap:.35rem;min-height:82px;align-content:center;text-align:center;padding:.65rem .75rem}
.npx-reps .npx-bi-label{display:flex!important;justify-content:center;gap:.45rem!important}.npx-reps code{text-align:center!important;font-size:1rem;white-space:nowrap;overflow-x:auto}
.npx-number-rail{gap:.45rem}.npx-number-rail button{font-weight:800;font-size:.83rem;min-height:42px}
.npx-primes{justify-content:flex-start;gap:1.5rem}.npx-primes span{white-space:nowrap}
.npx-compare-form{margin-block:.4rem 1rem}.npx-compare-cols{gap:.9rem}.npx-between>div{gap:.5rem}
html[data-theme="light"] .npx-card{background:#fff;border-color:rgba(87,68,20,.28);box-shadow:0 5px 16px rgba(55,42,10,.06)}
html[data-theme="light"] .npx-chip{background:#fbfaf6;border-color:color-mix(in srgb,var(--c) 38%,#b6aa8b)}
html[data-theme="light"] .npx-chip b,html[data-theme="light"] .npx-nth-grid b,html[data-theme="light"] .npx-seq b{color:color-mix(in srgb,var(--c,#5f4700) 72%,#111)!important}
html[data-theme="light"] .npx-bi-label strong{color:#231f17!important}html[data-theme="light"] .npx-bi-label small{color:#655d50!important}
@media(max-width:1050px){
 .npx-summary-grid,.npx-all-grid{grid-template-columns:1fr}
 .npx-reps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 .npx-card h3{white-space:normal;align-items:flex-start}.npx-card h3 small{white-space:normal}
 .npx-metrics,.npx-seq,.npx-nth-grid,.npx-status-grid,.npx-const-list{grid-template-columns:1fr!important}
 .npx-chip{grid-template-columns:minmax(0,1fr) auto}.npx-bi-label{display:flex!important;flex-direction:column;gap:.08rem!important}.npx-bi-label strong,.npx-bi-label small{white-space:normal}
 .npx-nth-grid>div{grid-template-columns:minmax(0,1fr) auto}.npx-nth-grid>div .npx-bi-label{display:flex!important}
 .npx-seq>div{grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr)}
 .npx-reps{grid-template-columns:1fr}
}

/* v70 — stable non-overlapping layout */
#pageNumprops,
#pageNumprops *{box-sizing:border-box}
#pageNumprops>header,.np-standalone{max-width:1380px!important}
.np-standalone{padding-inline:clamp(.65rem,2vw,1.5rem)!important}
.np-standalone .numprops-section{overflow:visible!important}
.np-body{padding-inline:clamp(.55rem,1.4vw,1.15rem)!important;overflow:visible!important}
.np-input-section{position:static!important;max-width:760px!important;margin:1.1rem auto 0!important;backdrop-filter:none!important}

.npx-summary-grid,.npx-all-grid,.npx-wide,.npx-rail,.npx-compare{max-width:1320px!important;width:100%;margin-inline:auto}
.npx-summary-grid,.npx-all-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.npx-wide,.npx-rail{margin-top:1rem}
.npx-card{min-width:0;overflow:hidden;padding:1.05rem 1.15rem}
.npx-card h3{display:block!important;white-space:normal!important;line-height:1.45;margin:0 0 .85rem!important}
.npx-card h3 small{display:block!important;white-space:normal!important;text-align:right!important;margin-top:.12rem!important;line-height:1.35}

/* Main metric lists */
.npx-metrics{display:grid!important;grid-template-columns:1fr!important;gap:.42rem!important}
.npx-chip{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(90px,max-content)!important;align-items:center;gap:1rem;min-height:54px;padding:.58rem .75rem!important;overflow:hidden}
.npx-bi-label{display:block!important;min-width:0}
.npx-bi-label strong,.npx-bi-label small{display:block!important;white-space:normal!important;overflow-wrap:anywhere}
.npx-bi-label strong{font-size:.79rem;line-height:1.45}
.npx-bi-label small{margin-top:.08rem;text-align:right!important;line-height:1.3}
.npx-chip b{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word;text-align:left!important;line-height:1.4}

/* Divisors and tags */
.npx-factor{white-space:normal!important;overflow-wrap:anywhere;line-height:1.6}
.npx-divs,.npx-pairs,.npx-inline-tags{align-items:flex-start}
.npx-divs .npx-numlink,.npx-pairs span,.npx-inline-tags span{white-space:normal!important;overflow-wrap:anywhere}

/* Sequence membership: clean vertical rows */
.npx-seq{display:grid!important;grid-template-columns:1fr!important;gap:.5rem!important}
.npx-seq>div{display:grid!important;grid-template-columns:minmax(170px,.8fr) minmax(0,1.2fr)!important;align-items:center;gap:1rem;min-height:60px;padding:.62rem .75rem}
.npx-seq b,.npx-seq b small,.npx-seq span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.45}
.npx-seq span{text-align:left;overflow-wrap:anywhere}

/* Happy/Harshad cards */
.npx-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.npx-status-grid article{min-width:0;min-height:0;padding:.85rem .95rem}
.npx-status-grid article b,.npx-status-grid article span{white-space:normal!important;overflow-wrap:anywhere}

/* nth-term list */
.npx-nth-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.62rem!important}
.npx-nth-grid>div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(105px,max-content)!important;align-items:center;gap:1rem;min-width:0;min-height:62px;padding:.62rem .78rem}
.npx-nth-grid>div .npx-bi-label{display:block!important;min-width:0}
.npx-nth-grid>div .npx-bi-label strong,.npx-nth-grid>div .npx-bi-label small{white-space:normal!important;overflow-wrap:anywhere}
.npx-nth-grid>div b{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important;line-height:1.4}

/* Constants */
.npx-const-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.npx-const-list>div{min-width:0;min-height:0;padding:.85rem .95rem;overflow:hidden}
.npx-const-list>div header{min-width:0;align-items:flex-start}
.npx-const-list>div header span,.npx-const-list>div header span small{white-space:normal!important;overflow-wrap:anywhere}
.npx-const-list code{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;word-break:break-all;line-height:1.7}

/* Representations */
.npx-reps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.65rem!important}
.npx-reps>div{min-width:0;min-height:92px;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;padding:.72rem}
.npx-reps .npx-bi-label{display:block!important;text-align:center}
.npx-reps .npx-bi-label small{text-align:center!important}
.npx-reps code{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;word-break:break-all;text-align:center!important}

/* Nearby numbers */
.npx-number-rail{grid-template-columns:repeat(11,minmax(0,1fr));gap:.45rem}
.npx-number-rail button{min-width:0;transform:none!important}

/* Comparison */
.npx-compare-cols{grid-template-columns:minmax(0,.9fr) minmax(340px,1.35fr) minmax(0,.9fr);gap:1rem;align-items:start}
.npx-compare-cols article{min-width:0;overflow:hidden}
.npx-between>div{grid-template-columns:1fr!important}

@media(max-width:1100px){
 .npx-summary-grid,.npx-all-grid{grid-template-columns:1fr}
 .npx-reps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .npx-compare-cols{grid-template-columns:1fr}
}
@media(max-width:760px){
 .npx-nth-grid,.npx-status-grid,.npx-const-list{grid-template-columns:1fr!important}
 .npx-chip,.npx-nth-grid>div{grid-template-columns:minmax(0,1fr) minmax(76px,max-content)!important;gap:.65rem}
 .npx-seq>div{grid-template-columns:1fr!important;gap:.25rem}
 .npx-seq span{text-align:right}
 .npx-reps{grid-template-columns:1fr!important}
 .npx-number-rail{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:480px){
 .npx-chip,.npx-nth-grid>div{grid-template-columns:1fr!important}
 .npx-chip b,.npx-nth-grid>div b{text-align:right!important}
 .npx-card{padding:.8rem}
}


/* v71 mobile/card overlap fix for sequences */
.npx-seq{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
  gap:.75rem!important;
  align-items:stretch!important;
}
.npx-seq>div{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:.5rem!important;
  min-width:0!important;
  min-height:110px!important;
  padding:.8rem .9rem!important;
  overflow:hidden!important;
}
.npx-seq>div>*{min-width:0!important;max-width:100%!important}
.npx-seq b{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:.14rem!important;
  min-width:0!important;
  width:100%!important;
  color:var(--c)!important;
  font-size:1rem!important;
  line-height:1.35!important;
  text-align:right!important;
}
.npx-seq b small{
  display:block!important;
  width:100%!important;
  margin:0!important;
  color:#9ec5ff!important;
  font-size:.76rem!important;
  line-height:1.35!important;
  text-align:right!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
.npx-seq span{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  align-self:stretch!important;
  padding:.42rem .65rem!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.03)!important;
  color:var(--text-pri)!important;
  font-size:.86rem!important;
  line-height:1.55!important;
  text-align:right!important;
  direction:rtl!important;
  unicode-bidi:plaintext!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
.npx-primes{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:.6rem!important;
  align-items:stretch!important;
}
.npx-primes>span{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:.55rem!important;
  min-width:0!important;
  padding:.55rem .7rem!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.02)!important;
  line-height:1.5!important;
  white-space:normal!important;
}
.npx-primes>span .npx-numlink{flex:0 0 auto}

@media(max-width:760px){
  .npx-seq{grid-template-columns:1fr!important}
  .npx-seq>div{min-height:unset!important}
  .npx-primes{grid-template-columns:1fr!important}
}
@media(max-width:480px){
  .npx-seq>div{padding:.72rem .78rem!important}
  .npx-seq b{font-size:.95rem!important}
  .npx-seq b small{font-size:.72rem!important}
  .npx-seq span{font-size:.82rem!important;padding:.38rem .58rem!important}
  .npx-primes>span{flex-direction:row!important;align-items:center!important}
}


/* v72 — simplified number properties layout */
.np-pre-title{display:none!important}
.np-standalone .numprops-header,.numprops-section .numprops-header{padding-top:1.25rem!important}
.np-factorization{font-size:1rem!important;color:var(--text-sec)!important;text-align:center!important;margin-top:.15rem!important}
.np-head-divs{margin:.7rem auto .35rem;max-width:920px}
.np-head-divs-wrap{border:1px solid var(--border);background:var(--bg-input);border-radius:14px;padding:.7rem .9rem;display:grid;gap:.35rem}
.np-head-divs-title{color:var(--gold);font-weight:800;text-align:center}
.np-head-divs-title b{font-size:1.02rem}
.np-head-divs-list{direction:rtl;text-align:center;line-height:1.9;font-size:.95rem;color:var(--text-pri)}
.np-head-divs-list .npx-numlink{font-weight:800}
.np-head-divs-meta,.np-head-divs-empty{color:var(--text-sec);text-align:center;font-size:.85rem}
.np-sep{opacity:.6;padding:0 .14rem}
.np-head-divs-more{color:var(--gold);font-weight:800}
.npx-all-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1rem!important;max-width:1320px!important;margin:.75rem auto 0!important;align-items:start!important}
.npx-all-grid>.npx-card{margin:0!important;max-width:none!important;width:100%}
.npx-span-2{grid-column:1 / -1!important}
.npx-card.npx-representations .npx-reps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.npx-card.npx-constants .npx-const-list{grid-template-columns:1fr!important}
.npx-card.npx-constants .npx-const-list code{font-size:1.18rem!important;font-weight:800!important;letter-spacing:.02em}
.npx-card.npx-constants .npx-const-list span{font-size:.84rem!important}
.npx-card.npx-constants .npx-const-list mark{padding:0 .18rem;border-radius:4px}
.npx-tagbar{margin-top:.6rem!important}
.npx-tagbar>span{font-size:.75rem!important}
.npx-nth-grid{grid-template-columns:1fr!important}
@media (max-width:900px){
  .npx-all-grid{grid-template-columns:1fr!important}
  .npx-span-2{grid-column:auto!important}
}


/* v73 — single-column minimalist layout inspired by reference */
.npx-main-tabs{display:none!important}
.np-body{padding-top:.5rem!important}
.np-standalone,.np-standalone .numprops-section{max-width:860px!important;margin-inline:auto!important}
.numprops-header,.np-standalone .numprops-header{background:none!important;border-radius:0!important;padding:1rem 1rem .35rem!important}
.np-number{font-size:clamp(3rem,7vw,4.5rem)!important;line-height:1!important;color:#ffffff!important;text-shadow:none!important}
.np-factorization{margin-top:.2rem!important;text-align:center!important}
.npv-head-factor{font-size:1.6rem;font-weight:800;color:#ffffff;line-height:1.25}
.npv-head-root{font-size:1rem;color:#d7deee;line-height:1.5;margin-top:.15rem}
.npv-top-highlights,.np-identity-tags .npv-top-highlights{display:grid;gap:.18rem;margin-top:.55rem;text-align:center}
.npv-top-highlights div{color:#28dd52;font-weight:800;font-size:1.1rem;line-height:1.35}
.np-head-divs{margin-top:.85rem!important}
.npv-head-section{padding-top:.35rem}
.npv-head-title{font-size:1.75rem;font-weight:900;color:#1f74ff;text-align:center;line-height:1.1;margin-bottom:.55rem;text-transform:none}
.npv-head-empty{text-align:center;color:var(--text-sec)}
.npv-head-grid{display:grid;gap:.45rem}
.npv-head-grid>div{display:grid;grid-template-columns:120px 1fr;gap:.7rem;align-items:start;padding:.18rem 0;border-bottom:1px solid rgba(255,255,255,.06)}
.npv-head-grid>div:last-child{border-bottom:none}
.npv-head-grid span{color:#ffffff;font-weight:700}
.npv-head-grid b{color:#7ec3ff;font-size:1.02rem;font-weight:800}
.npv-head-list{line-height:1.9}
.npv-list-sep{opacity:.65;padding:0 .18rem}
.npv-head-list .npx-numlink,.npv-row .npx-numlink{font-weight:800;color:#7ec3ff;border-bottom:none}
.npv-page{max-width:760px;margin:0 auto;display:grid;gap:1.05rem;padding:0 .2rem 1rem}
.npv-highlights{display:none}
.npv-section{padding:.2rem 0}
.npv-section h3{margin:0 0 .55rem;text-align:center;color:#1f74ff;font-size:1.65rem;font-weight:900;line-height:1.1}
.npv-section h3 small{display:block;color:#ffffff;font-size:.92rem;font-weight:700;margin-top:.2rem}
.npv-rows{display:grid;gap:.38rem}
.npv-row{display:grid;grid-template-columns:230px 1fr;gap:.8rem;align-items:start;padding:.16rem 0;border-bottom:1px solid rgba(255,255,255,.06)}
.npv-row:last-child{border-bottom:none}
.npv-label{color:#ffffff;font-weight:700;line-height:1.55}
.npv-value{color:#7ec3ff;font-weight:800;line-height:1.65;overflow-wrap:anywhere}
.npv-value code,.npv-constant-item code{font-family:'Ubuntu Mono',monospace;color:#7ec3ff;font-size:1.03rem;background:none;padding:0}
.npv-constants{display:grid;gap:.75rem}
.npv-constant-item{padding:.2rem 0;border-bottom:1px solid rgba(255,255,255,.06)}
.npv-constant-item:last-child{border-bottom:none}
.npv-constant-head{display:flex;align-items:flex-start;gap:.55rem;margin-bottom:.18rem}
.npv-constant-head b{font-size:1.35rem;color:#1f74ff;line-height:1}
.npv-constant-head span{display:block;color:#ffffff;font-weight:700;line-height:1.4}
.npv-constant-head small{display:block;color:#d7deee;font-size:.82rem}
.npv-constant-note{color:#d7deee;line-height:1.5;margin-bottom:.16rem}
.npv-constant-item mark{background:rgba(31,116,255,.18);color:#ffffff;padding:0 .14rem;border-radius:4px}
.npv-note{text-align:center;color:#d7deee;font-size:.88rem;line-height:1.6;margin:.45rem 0 0}
.np-input-section{max-width:540px!important}
.np-go-btn::after{content:'عرض الخصائص';font-size:1rem}
@media (max-width:720px){
  .npv-head-grid>div,.npv-row{grid-template-columns:1fr;gap:.18rem}
  .npv-head-grid span,.npv-label{text-align:center}
  .npv-head-grid b,.npv-value{text-align:center}
  .npv-section h3{font-size:1.45rem}
  .npv-top-highlights div{font-size:1rem}
  .npv-head-title{font-size:1.55rem}
}


/* v74 — unified label/value columns for all number properties rows */
:root{
  --npv-label-col: 240px;
}

.npv-head-grid,
.npv-rows{
  display:grid!important;
  gap:.3rem!important;
}

.npv-head-grid>div,
.npv-row{
  display:grid!important;
  grid-template-columns: var(--npv-label-col) minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:1rem!important;
}

.npv-head-grid span,
.npv-label{
  display:block!important;
  text-align:right!important;
  white-space:normal!important;
}

.npv-head-grid b,
.npv-value{
  display:block!important;
  text-align:left!important;
  white-space:normal!important;
}

.npv-row .npx-numlink,
.npv-head-list .npx-numlink,
.npv-value code,
.npv-constant-item code{
  display:inline-block;
}

.npv-head-list{
  text-align:left!important;
}

.npv-head-grid>div{
  padding:.22rem 0!important;
}

.npv-row{
  padding:.22rem 0!important;
}

.npv-section,
.npv-head-section{
  max-width:760px;
  margin-inline:auto;
}

.npv-constant-head{
  display:grid!important;
  grid-template-columns:42px 1fr;
  column-gap:.7rem;
}

.npv-constant-head span,
.npv-constant-note,
.npv-constant-item code{
  text-align:right;
}

@media (max-width:720px){
  :root{
    --npv-label-col: 150px;
  }
  .npv-head-grid>div,
  .npv-row{
    grid-template-columns: var(--npv-label-col) minmax(0,1fr)!important;
    column-gap:.7rem!important;
  }
  .npv-head-grid span,
  .npv-label{
    text-align:right!important;
  }
  .npv-head-grid b,
  .npv-value,
  .npv-head-list{
    text-align:left!important;
  }
}

@media (max-width:520px){
  :root{
    --npv-label-col: 132px;
  }
  .npv-section h3,
  .npv-head-title{
    font-size:1.35rem!important;
  }
  .npv-head-grid>div,
  .npv-row{
    grid-template-columns: var(--npv-label-col) minmax(0,1fr)!important;
    column-gap:.55rem!important;
  }
}


/* v75 — english term for every row + aligned colon column */
.npv-label,
.npv-head-grid span{display:block!important}
.npv-label-block{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem;width:100%}
.npv-label-text{display:block;text-align:right;line-height:1.25}
.npv-label-ar{display:block;color:#ffffff;font-weight:700}
.npv-label-text small{display:block;color:#c9d3ea;font-size:.76rem;line-height:1.2;margin-top:.08rem}
.npv-colon{color:#ffffff;font-weight:800;line-height:1;align-self:center}
.npv-head-grid span,.npv-label{text-align:right!important}
.npv-head-grid b,.npv-value{text-align:left!important;justify-self:start!important}
.npv-note-label{display:block;width:var(--npv-label-col);min-width:var(--npv-label-col)}
.npv-constant-note{display:flex;align-items:flex-start;gap:1rem}
.npv-note-value{color:#7ec3ff;font-weight:800;line-height:1.5}
@media (max-width:720px){.npv-label-text small{font-size:.72rem}.npv-constant-note{gap:.7rem}}


/* v76 fixes based on review */
.np-go-btn{font-size:0!important}
.np-go-btn::after{content:'عرض'!important;font-size:1rem}
.np-standalone #npStandalone>.np-input-section{position:static!important;max-width:460px!important;margin:1rem auto 0!important;border:none!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;padding:0!important}
#npEmptyState2{padding:2.2rem 1rem 1rem!important}
#npEmptyState2 + .np-input-section{margin-top:.4rem!important}

.npv-nav-row{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap;margin:.25rem 0 .65rem}
.npv-nav-btn{display:flex;align-items:center;gap:.45rem;border:1px solid var(--border-lit);background:rgba(201,168,76,.08);color:var(--gold);border-radius:12px;padding:.45rem .7rem;cursor:pointer;font-family:var(--font-main)}
.npv-nav-btn small{color:var(--text-sec);font-size:.72rem}
.npv-nav-btn span{font-weight:800}
.npv-nav-btn .arr{font-size:1rem;line-height:1}

.npv-page{max-width:820px!important}
.npv-rows{max-width:700px;margin-inline:auto;display:grid!important;gap:.18rem!important}
.npv-row{grid-template-columns:320px 220px!important;justify-content:center!important;align-items:center!important;border-bottom:none!important;padding:.14rem 0!important}
.npv-row:last-child{border-bottom:none!important}
.npv-label{display:flex!important;justify-content:flex-end!important}
.npv-label-block{max-width:100%}
.npv-value{text-align:center!important;justify-self:center!important}
.npv-head-grid>div{border-bottom:none!important}
.npv-head-title small{display:inline-block;margin-inline-start:.35rem;color:#c9d3ea;font-size:.8rem;font-weight:700}
.npv-div-inline{max-width:760px;margin:.15rem auto 0;text-align:center;line-height:2}
.npv-div-values{display:block;color:#7ec3ff;font-weight:800}
.npv-div-sum{display:block;color:#d7deee;margin-top:.1rem}
.npv-div-sum b{color:var(--gold)}
.npv-head-list,.npv-value code{text-align:center!important}
.npv-head-grid,.npv-constant-item{max-width:760px;margin-inline:auto}
.npv-constant-note-grid{display:grid;gap:.28rem}
.npv-constant-note{border-bottom:none!important;display:grid;grid-template-columns:320px 1fr;justify-content:center;align-items:start;gap:1rem}
.npv-note-label{width:auto!important;min-width:0!important;justify-self:end}
.npv-note-value{justify-self:center;text-align:center}
.npv-constant-note code{display:inline-block}
.npv-note-value code{font-size:1rem}
.npv-section h3,.npv-head-title{text-align:center!important}
@media (max-width:760px){
  .npv-row{grid-template-columns:230px minmax(120px,1fr)!important}
  .npv-constant-note{grid-template-columns:230px minmax(120px,1fr)!important;gap:.6rem}
}
@media (max-width:520px){
  .npv-row{grid-template-columns:1fr!important}
  .npv-label{justify-content:center!important}
  .npv-value{justify-self:center!important}
  .npv-constant-note{grid-template-columns:1fr!important}
  .npv-note-label,.npv-note-value{justify-self:center}
}


/* v77 — tighter centered columns + bilingual top highlights */
.npv-page{max-width:720px!important}
.npv-rows{max-width:610px!important;margin-inline:auto!important}
.npv-row{grid-template-columns:270px minmax(90px,130px)!important;column-gap:.15rem!important;justify-content:center!important}
.npv-label{justify-content:flex-end!important}
.npv-label-block{gap:.22rem!important}
.npv-value{text-align:center!important;justify-self:center!important;min-width:90px}

.npv-top-highlights,.np-identity-tags .npv-top-highlights{display:grid;gap:.24rem;margin-top:.45rem;text-align:center}
.npv-top-highlights div{color:#28dd52;font-weight:800;font-size:1.08rem;line-height:1.2}
.npv-top-highlights .npv-top-ar{display:block;color:#28dd52;font-weight:800}
.npv-top-highlights .npv-top-en{display:block;color:#d7deee;font-size:.78rem;font-weight:700;margin-top:.08rem;line-height:1.2}

.npv-constant-note{grid-template-columns:270px minmax(120px,1fr)!important;gap:.45rem!important}
.npv-note-value{justify-self:center!important;text-align:center!important}

@media (max-width:760px){
  .npv-rows{max-width:560px!important}
  .npv-row{grid-template-columns:240px minmax(86px,120px)!important}
  .npv-constant-note{grid-template-columns:240px minmax(100px,1fr)!important}
}
@media (max-width:520px){
  .npv-row{grid-template-columns:1fr!important}
  .npv-constant-note{grid-template-columns:1fr!important}
}


/* v78 — move blue values closer to the colon */
.npv-page{max-width:690px!important}
.npv-rows{max-width:560px!important;margin-inline:auto!important}
.npv-row{grid-template-columns:300px 56px!important;column-gap:0!important;justify-content:center!important}
.npv-label{justify-content:flex-end!important;padding-inline-end:.1rem!important}
.npv-label-block{gap:.12rem!important}
.npv-value{min-width:56px!important;width:56px!important;justify-self:start!important;text-align:left!important;padding-inline-start:0!important}
.npv-row .npx-numlink,.npv-value code{margin:0!important}

.npv-constant-note{grid-template-columns:300px minmax(90px,1fr)!important;column-gap:0!important}
.npv-note-value{justify-self:start!important;text-align:left!important}

@media (max-width:760px){
  .npv-rows{max-width:520px!important}
  .npv-row{grid-template-columns:270px 52px!important}
  .npv-value{min-width:52px!important;width:52px!important}
  .npv-constant-note{grid-template-columns:270px minmax(86px,1fr)!important}
}
@media (max-width:520px){
  .npv-row{grid-template-columns:1fr!important}
  .npv-value{width:auto!important;min-width:0!important;justify-self:center!important;text-align:center!important}
  .npv-constant-note{grid-template-columns:1fr!important}
  .npv-note-value{justify-self:center!important;text-align:center!important}
}


/* v79 — center the two columns and keep exactly one visual space between colon and value */
.npv-page{max-width:670px!important}
.npv-rows{max-width:540px!important;margin-inline:auto!important}
.npv-row{
  grid-template-columns: 280px 72px !important;
  column-gap: .45ch !important;
  justify-content: center !important;
  align-items: center !important;
}
.npv-label{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  text-align:right!important;
}
.npv-label-block{
  gap:.18ch!important;
}
.npv-colon{
  display:inline-block!important;
  width:1ch!important;
  text-align:center!important;
}
.npv-value{
  width:72px!important;
  min-width:72px!important;
  justify-self:start!important;
  align-self:center!important;
  text-align:left!important;
  padding-inline-start:.35ch!important;
  margin:0!important;
}
.npv-row .npx-numlink,
.npv-value code{
  display:inline-block!important;
  margin:0!important;
}

.npv-constant-note{
  grid-template-columns: 280px minmax(95px,1fr) !important;
  column-gap: .45ch !important;
  justify-content:center!important;
}
.npv-note-label{
  justify-self:end!important;
}
.npv-note-value{
  justify-self:start!important;
  text-align:left!important;
  padding-inline-start:.35ch!important;
}

@media (max-width:760px){
  .npv-rows{max-width:500px!important}
  .npv-row{grid-template-columns:250px 68px!important}
  .npv-value{width:68px!important;min-width:68px!important}
  .npv-constant-note{grid-template-columns:250px minmax(90px,1fr)!important}
}
@media (max-width:520px){
  .npv-row{grid-template-columns:1fr!important;column-gap:0!important}
  .npv-label{justify-content:center!important}
  .npv-value{width:auto!important;min-width:0!important;justify-self:center!important;text-align:center!important;padding-inline-start:0!important}
  .npv-constant-note{grid-template-columns:1fr!important;column-gap:0!important}
  .npv-note-label,.npv-note-value{justify-self:center!important;text-align:center!important;padding-inline-start:0!important}
}


/* v80 — wider value column, no wrapping, centered content block */
.npv-page{
  max-width:760px!important;
  margin-inline:auto!important;
}
.npv-section{
  width:100%!important;
  max-width:720px!important;
  margin-inline:auto!important;
}
.npv-rows{
  width:100%!important;
  max-width:620px!important;
  margin-inline:auto!important;
}
.npv-row{
  grid-template-columns:270px 180px!important;
  column-gap:.5ch!important;
  justify-content:center!important;
  align-items:center!important;
}
.npv-label{
  justify-content:flex-end!important;
}
.npv-value{
  width:180px!important;
  min-width:180px!important;
  max-width:180px!important;
  justify-self:start!important;
  text-align:left!important;
  white-space:nowrap!important;
  overflow:visible!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  padding-inline-start:.35ch!important;
}
.npv-value .npx-numlink,
.npv-value code{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.npv-constant-note{
  grid-template-columns:270px minmax(180px,1fr)!important;
  max-width:620px!important;
  margin-inline:auto!important;
  column-gap:.5ch!important;
}
.npv-note-value{
  min-width:180px!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
@media (max-width:760px){
  .npv-rows{max-width:560px!important}
  .npv-row{grid-template-columns:240px 170px!important}
  .npv-value{width:170px!important;min-width:170px!important;max-width:170px!important}
  .npv-constant-note{grid-template-columns:240px minmax(170px,1fr)!important;max-width:560px!important}
  .npv-note-value{min-width:170px!important}
}
@media (max-width:520px){
  .npv-row{grid-template-columns:minmax(180px,1fr) minmax(135px,160px)!important}
  .npv-value{width:auto!important;min-width:135px!important;max-width:160px!important;justify-self:start!important;text-align:left!important}
  .npv-label{justify-content:flex-end!important}
  .npv-constant-note{grid-template-columns:minmax(180px,1fr) minmax(135px,160px)!important}
  .npv-note-label{justify-self:end!important}
  .npv-note-value{min-width:135px!important;justify-self:start!important;text-align:left!important}
}


/* v81 — English-first simple layout like the reference */
#pageNumprops>header{display:none!important}
.np-standalone{max-width:980px!important;padding:0 1rem 2rem!important}
.np-back-btn{font-size:.9rem!important}
.numprops-section{max-width:940px!important;margin:0 auto!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:22px!important;background:rgba(11,12,18,.82)!important;box-shadow:0 0 0 1px rgba(255,255,255,.05), 0 10px 30px rgba(0,0,0,.35)!important;overflow:hidden!important}
.numprops-header{padding:1rem 1rem .2rem!important;background:transparent!important;border-radius:0!important}
.np-number{font-size:4rem!important;line-height:1!important;color:#fff7ef!important;text-shadow:none!important;text-align:center!important;margin-top:.2rem}
.np-factorization{font-size:1.1rem!important;text-align:center!important;color:#fff!important;margin-top:.25rem!important}
.npe-top-title{font-size:1.05rem;font-weight:900;letter-spacing:.02em;color:#1f74ff;text-align:center;margin-bottom:.35rem}
.npe-top-title small{display:block;color:#d7deee;font-size:.75rem;margin-top:.08rem;font-weight:700}
.npe-head-factor{font-weight:900;color:#fff;font-size:1.02rem}
.np-head-divs{margin-top:.7rem!important}
.np-identity-tags{margin-top:.7rem!important}
.npe-nav-row{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap;margin:0 0 .5rem}
.npe-nav-btn{display:flex;align-items:center;gap:.45rem;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.04);color:#e8c96a;border-radius:10px;padding:.4rem .65rem;cursor:pointer;font-family:var(--font-main)}
.npe-nav-btn small{display:block;color:#d7deee;font-size:.68rem;font-weight:600}.npe-nav-btn b{color:#fff;font-size:.95rem}

.npe-section{max-width:760px;margin:0 auto 1.2rem;text-align:center}
.npe-section h2{margin:0 0 .55rem;color:#1f74ff;font-size:1.7rem;font-weight:900;line-height:1.05;text-align:center}
.npe-section h2 small{display:block;color:#ffffff;font-size:.83rem;font-weight:700;margin-top:.15rem}
.npe-div-grid{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:.8rem;align-items:start}
.npe-subhead{display:block;color:#ffffff;font-size:.9rem;font-weight:800;line-height:1.2}
.npe-subhead small{display:block;color:#d7deee;font-size:.72rem;font-weight:700}
.npe-div-grid b{display:block;color:#7ec3ff;font-size:1.05rem;margin-top:.18rem}
.npe-div-list{line-height:1.5}
.npe-div-rank{color:#ffffff;font-weight:800;line-height:1.25;margin-top:.2rem}
.npe-div-rank small{display:block;color:#d7deee;font-size:.72rem;font-weight:700}

.npe-page{max-width:760px;margin:0 auto}
.npe-lines{display:grid;gap:.12rem;max-width:500px;margin:0 auto}
.npe-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;padding:.06rem 0}
.npe-left{text-align:right;justify-self:end;line-height:1.1}
.npe-label strong{display:inline-block;color:#ffffff;font-size:1.02rem;font-weight:900}
.npe-label small{display:block;color:#d7deee;font-size:.72rem;font-weight:700;margin-top:.06rem}
.npe-right{color:#7ec3ff;font-size:1.05rem;font-weight:900;text-align:left;white-space:nowrap}

.npe-conv-head,.npe-conv-row{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:.6rem;align-items:center}
.npe-conv-head{margin-bottom:.25rem}
.npe-conv-head>div{color:#fff;font-weight:800}.npe-conv-head small{display:block;color:#d7deee;font-size:.72rem}
.npe-conv-body{display:grid;gap:.18rem;max-width:600px;margin:0 auto}
.npe-conv-from,.npe-conv-to{color:#7ec3ff;font-size:1.05rem;font-weight:900;white-space:nowrap}
.npe-conv-mid span{display:block;color:#fff;font-weight:800}.npe-conv-mid small{display:block;color:#d7deee;font-size:.72rem}

.npe-constants .npv-constants{display:grid;gap:.7rem;max-width:720px;margin:0 auto}
.npe-constants .npv-constant-item{border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:.65rem .8rem;background:rgba(255,255,255,.03)}
.npe-constants .npv-constant-head{display:flex!important;align-items:flex-start;gap:.5rem;justify-content:center;text-align:center}
.npe-constants .npv-constant-head b{color:#1f74ff;font-size:1.25rem}.npe-constants .npv-constant-head span{color:#fff;font-weight:800}.npe-constants .npv-constant-head small{display:block;color:#d7deee;font-size:.72rem}
.npe-constants .npv-constant-note-grid{display:grid;gap:.3rem;margin-top:.4rem}
.npe-constants .npv-constant-note{display:grid;grid-template-columns:240px 1fr;justify-content:center;gap:.5rem;align-items:center}
.npe-constants .npv-note-label{text-align:right}.npe-constants .npv-note-value{text-align:left;color:#7ec3ff;font-weight:800}
.npe-constants .npv-note-label .npv-label-ar{color:#fff;font-weight:800}.npe-constants .npv-label-text small{color:#d7deee;font-size:.72rem}
.npe-constants code{white-space:normal;overflow-wrap:anywhere;word-break:break-all}
.npe-constants .npv-note{color:#d7deee;text-align:center;font-size:.8rem}

.np-body{padding:0 1rem .6rem!important}
.np-input-section{position:static!important;max-width:430px!important;margin:1rem auto 1.1rem!important;border:none!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;padding:0!important;display:flex;justify-content:center;gap:.5rem;align-items:center;flex-wrap:wrap}
.np-spin-btn{background:#0f121b!important;border:1px solid rgba(255,255,255,.7)!important;color:#b4d0ff!important;border-radius:8px!important;min-width:38px!important;height:36px!important}
.np-spin-input{width:140px!important;height:36px!important;border:1px solid #e8c96a!important;border-radius:8px!important;background:#0a0d13!important;color:#fff!important;text-align:center!important}
.np-go-btn{font-size:0!important;background:#e7e7e7!important;color:#111!important;border-radius:0!important;border:1px solid #bcbcbc!important;min-width:180px;height:38px}
.np-go-btn::after{content:'GET PROPERTIES'!important;font-size:1rem;font-weight:900}
#npEmptyState2{padding:3rem 1rem 1rem!important}
#npEmptyState2 + .np-input-section{margin-top:.4rem!important}

@media (max-width:700px){
 .npe-div-grid,.npe-conv-head,.npe-conv-row{grid-template-columns:1fr!important;gap:.35rem}
 .npe-row{grid-template-columns:1fr!important;gap:.1rem}
 .npe-left,.npe-right,.npe-conv-from,.npe-conv-to,.npe-conv-mid{text-align:center!important;justify-self:center!important}
 .npe-constants .npv-constant-note{grid-template-columns:1fr!important}
}


/* v82 — definitive horizontal centering */
#pageNumprops,
#pageNumprops .np-standalone,
#pageNumprops .numprops-section,
#pageNumprops .numprops-header,
#pageNumprops .np-body,
#pageNumprops .npe-page,
#pageNumprops .npe-section {
  margin-left:auto!important;
  margin-right:auto!important;
}
#pageNumprops .np-standalone{
  width:min(100%,980px)!important;
}
#pageNumprops .numprops-section{
  width:min(100%,940px)!important;
}
#pageNumprops .numprops-header,
#pageNumprops .np-body,
#pageNumprops .npe-page,
#pageNumprops .npe-section{
  width:100%!important;
  text-align:center!important;
}
#pageNumprops .npe-lines{
  width:max-content!important;
  max-width:100%!important;
  margin-inline:auto!important;
}
#pageNumprops .npe-row{
  grid-template-columns:260px 150px!important;
  justify-content:center!important;
  column-gap:.7rem!important;
}
#pageNumprops .npe-left{
  justify-self:end!important;
  text-align:right!important;
}
#pageNumprops .npe-right{
  justify-self:start!important;
  text-align:left!important;
  min-width:150px!important;
  white-space:nowrap!important;
}
#pageNumprops .npe-div-grid,
#pageNumprops .npe-conv-head,
#pageNumprops .npe-conv-body,
#pageNumprops .npe-constants .npv-constants{
  margin-inline:auto!important;
}
#pageNumprops .npe-div-grid{max-width:640px!important}
#pageNumprops .npe-conv-head,
#pageNumprops .npe-conv-body{max-width:600px!important}
#pageNumprops .np-input-section{
  margin-left:auto!important;
  margin-right:auto!important;
  justify-content:center!important;
}
@media(max-width:700px){
  #pageNumprops .npe-lines{width:100%!important}
  #pageNumprops .npe-row{grid-template-columns:1fr!important}
  #pageNumprops .npe-left,
  #pageNumprops .npe-right{justify-self:center!important;text-align:center!important;min-width:0!important}
}


/* v83 — remove blue icon, remove separator line, add green identity lines */
#pageNumprops, #pageNumprops::before, #pageNumprops::after,
#pageNumprops hr, #pageNumprops .divider, #pageNumprops .section-divider {
  border-top:none!important;
  background-image:none!important;
}
#pageNumprops .page-view, #pageNumprops .np-standalone {border-top:none!important}

#npEmptyState2{padding:2rem 1rem .35rem!important}
#npEmptyState2 .np-empty-search-copy{color:var(--gold);font-size:1rem;font-weight:700}
#npEmptyState2{display:grid;place-items:center}
#npEmptyState2 > div:first-child{display:none!important}
#npEmptyState2 + .np-input-section{margin-top:.2rem!important}

.npe-hi-wrap{display:grid;gap:.18rem;justify-content:center;margin:.15rem 0 .35rem}
.npe-hi-line{text-align:center;line-height:1.15}
.npe-hi-en{display:block;color:#25d94b;font-size:1.22rem;font-weight:900}
.npe-hi-ar{display:block;color:#bdf5c8;font-size:.75rem;font-weight:700;margin-top:.03rem}

/* ensure no separator line inside the standalone page */
.numprops-header, .np-body, .npe-section, .npe-div-grid, .npe-lines, .npe-conv-body {border-top:none!important;border-bottom:none!important;box-shadow:none!important}

/* keep input visually as the central search box */
.np-input-section{margin-top:.35rem!important}


/* v84 — add clear spacing around the search box inside the outer frame */
#pageNumprops .numprops-section{
  padding-bottom: 1rem !important;
}

#pageNumprops #npEmptyState2{
  padding: 2rem 1rem .7rem !important;
}

#pageNumprops #npEmptyState2 + .np-input-section,
#pageNumprops .np-input-section{
  margin-top: .8rem !important;
  margin-bottom: .9rem !important;
  padding: .5rem .6rem !important;
  min-height: 3.2rem;
}

#pageNumprops .np-body + .np-input-section,
#pageNumprops .numprops-header + .np-body + .np-input-section{
  margin-top: 1rem !important;
}

#pageNumprops .np-input-section{
  width: fit-content !important;
  max-width: calc(100% - 3rem) !important;
}

@media (max-width: 700px){
  #pageNumprops .np-input-section{
    max-width: calc(100% - 2rem) !important;
    padding: .45rem .5rem !important;
    margin-bottom: .85rem !important;
  }
}


/* v85 — inline Arabic label in nth-term rows and colon directly after # */
#pageNumprops .npe-inline-label{display:inline-flex!important;align-items:baseline!important;gap:.28rem!important;white-space:nowrap!important;flex-wrap:nowrap!important}
#pageNumprops .npe-inline-label strong{display:inline!important}
#pageNumprops .npe-inline-label small{display:inline!important;margin-top:0!important;color:#d7deee!important;font-size:.78rem!important;font-weight:700!important}
#pageNumprops .npe-left{line-height:1.25!important}


/* v86 — nth-term label order: English then Arabic in parentheses then #: */
#pageNumprops .npe-inline-label{display:inline-flex!important;align-items:baseline!important;gap:.28rem!important;white-space:nowrap!important;flex-wrap:nowrap!important}
#pageNumprops .npe-inline-label strong{display:inline!important}
#pageNumprops .npe-inline-label small{display:inline!important;margin-top:0!important;color:#d7deee!important;font-size:.78rem!important;font-weight:700!important}
