/* NexHost shared surfaces. Existing page layouts and actions are intentionally left intact. */
html[data-theme="dark"]:not([data-nx-legacy]) body {
  --bg:#080808;--panel:#111;--panel-2:#151515;--panel-3:#1d1d1d;
  --line:#292929;--line-soft:#202020;--line-hover:#414141;
  --ink:#f0f0f0;--ink-2:#aaa;--ink-3:#858585;
  --black:#080808;--charcoal:#111;--graphite:#151515;--graphite-2:#1d1d1d;
  --silver:#aaa;--silver-dim:#858585;--chrome:#f0f0f0;--line-strong:#414141;
  --accent:#f4f4f4;--on-accent:#090909;
}
/* The same sidebar sheen as the dashboard, including its selected state. */
html[data-theme="dark"] .sidebar {
  background-color:#0a0b0d;
  background-image:none;
  border-right:1px solid #191919;
  box-shadow:none;
}
html[data-theme="dark"] .sb-head{border-bottom-color:rgba(255,255,255,.055)}
html[data-theme="dark"] .sb-foot{border-top-color:rgba(255,255,255,.055)}
html[data-theme="dark"] .sb-mark{background:#171717 url('/assets/nx-logo-n-35a7054aa9ab.svg') center/19px 19px no-repeat;border:1px solid #262626;box-shadow:none;color:transparent;font-size:0}
html[data-theme="dark"] .sb-word{color:#f2f4f6}
html[data-theme="dark"] .sb-lbl{color:#616973;border-top-color:rgba(255,255,255,.055)}
html[data-theme="dark"] .sb-nav>.sb-lbl:first-child{border-top-color:transparent}
html[data-theme="dark"] .sb-item{color:#a6acb4}
html[data-theme="dark"] .sb-item svg{opacity:.82}
html[data-theme="dark"] .sb-item:hover{background:rgba(255,255,255,.045);color:#eef1f4}
html[data-theme="dark"] .sb-item.on{background:rgba(255,255,255,.07);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 1px 2px rgba(0,0,0,.35)}
html[data-theme="dark"] .sb-item.sb-adm{color:#d8b64a}
html[data-theme="dark"] .sb-item.sb-adm:hover{color:#ecc95c}
html[data-theme="dark"] .sb-item.sb-adm.on{color:#f0d26b}
html[data-theme="dark"] .topbar{background:#0b0b0b;border-bottom-color:#242424;box-shadow:none}
html[data-theme="dark"] :where(.fh-select,.fh-input,input[type="text"],input[type="password"],input[type="email"]){background-color:#0b0b0b}

/* Older screens originally used a separate gold/green always-dark theme.
   Their structure remains unchanged; their surfaces now use the same tokens. */
html[data-nx-legacy][data-theme="dark"],html[data-nx-legacy][data-theme="dark"] body{
  color-scheme:dark;
  --nx-bg:#080808;--nx-panel:#111;--nx-panel-2:#151515;--nx-input:#0b0b0b;
  --nx-text:#f0f0f0;--nx-muted:#aaa;--nx-dim:#858585;--nx-line:#292929;--nx-line-hot:#414141;
  --bg:#080808;--panel:#111;--panel-2:#151515;--panel-3:#1d1d1d;--surface:#111;--surface2:#151515;--surface-2:#151515;--surface-3:#1d1d1d;
  --black:#080808;--charcoal:#111;--graphite:#151515;--graphite-2:#1d1d1d;
  --silver:#aaa;--silver-dim:#858585;--chrome:#f0f0f0;--white:#fff;
  --text:#f0f0f0;--text-main:#f0f0f0;--text-muted:#aaa;--text-dim:#aaa;--text-faint:#858585;--muted:#aaa;--muted2:#858585;
  --line:#292929;--line-strong:#414141;--border:#292929;--border-soft:#202020;
  --nh-bg:#080808;--nh-panel:#111;--nh-panel-strong:#0b0b0b;--nh-line:#292929;--nh-line-hot:#414141;--nh-text:#f0f0f0;--nh-muted:#aaa;--nh-gold:#f0f0f0;--nh-gold-bright:#fff;--nh-gold-dim:#aaa;
  --nhx-bg:#080808;--nhx-bg-2:#111;--nhx-panel:#111;--nhx-panel-strong:#0b0b0b;--nhx-panel-soft:#151515;--nhx-line:#292929;--nhx-line-hot:#414141;--nhx-text:#f0f0f0;--nhx-muted:#aaa;--nhx-dim:#858585;--nhx-gold:#e7e7e7;--nhx-gold-bright:#f0f0f0;
  --ds-ink:#080808;--ds-panel:#111;--ds-panel-2:#151515;--ds-line:#292929;--ds-accent:#e7e7e7;--ds-accent-2:#aaa;--ds-text:#f0f0f0;--ds-muted:#aaa;
}
html[data-nx-legacy][data-theme="light"],html[data-nx-legacy][data-theme="light"] body{
  color-scheme:light;
  --nx-bg:#f7f7f8;--nx-panel:#fff;--nx-panel-2:#fafafa;--nx-input:#fff;
  --nx-text:#17171a;--nx-muted:#5f5f68;--nx-dim:#767680;--nx-line:#e4e4e7;--nx-line-hot:#d4d4da;
  --bg:#f7f7f8;--panel:#fff;--panel-2:#fafafa;--panel-3:#f4f4f5;--surface:#fff;--surface2:#fafafa;--surface-2:#fafafa;--surface-3:#f4f4f5;
  --black:#f7f7f8;--charcoal:#fff;--graphite:#fafafa;--graphite-2:#f4f4f5;
  --silver:#5f5f68;--silver-dim:#767680;--chrome:#17171a;--white:#17171a;
  --text:#17171a;--text-main:#17171a;--text-muted:#5f5f68;--text-dim:#5f5f68;--text-faint:#767680;--muted:#5f5f68;--muted2:#767680;
  --line:#e4e4e7;--line-strong:#d4d4da;--border:#e4e4e7;--border-soft:#efeff1;
  --nh-bg:#f7f7f8;--nh-panel:#fff;--nh-panel-strong:#fff;--nh-line:#e4e4e7;--nh-line-hot:#d4d4da;--nh-text:#17171a;--nh-muted:#5f5f68;--nh-gold:#17171a;--nh-gold-bright:#17171a;--nh-gold-dim:#5f5f68;
  --nhx-bg:#f7f7f8;--nhx-bg-2:#fff;--nhx-panel:#fff;--nhx-panel-strong:#fff;--nhx-panel-soft:#fafafa;--nhx-line:#e4e4e7;--nhx-line-hot:#d4d4da;--nhx-text:#17171a;--nhx-muted:#5f5f68;--nhx-dim:#767680;--nhx-gold:#17171a;--nhx-gold-bright:#17171a;
  --ds-ink:#f7f7f8;--ds-panel:#fff;--ds-panel-2:#fafafa;--ds-line:#e4e4e7;--ds-accent:#17171a;--ds-accent-2:#5f5f68;--ds-text:#17171a;--ds-muted:#5f5f68;
}
html[data-nx-legacy][data-theme] body{background:var(--nx-bg)!important;color:var(--nx-text)!important}
html[data-nx-legacy][data-theme] :where(header,.app-header,.site-header,.header,.navbar,.nav-bar,.sticky-header,.smtp-header){background:var(--nx-panel)!important;color:var(--nx-text);border-color:var(--nx-line)!important;box-shadow:none}
html[data-nx-legacy][data-theme="dark"] :where(header,.app-header,.site-header,.header,.navbar,.nav-bar,.sticky-header,.smtp-header){background:#0b0b0b!important;border-color:#242424!important}
html[data-nx-legacy][data-theme] :where(.brand,.app-header .brand){color:var(--nx-text)!important}
html[data-nx-legacy][data-theme] :where(.brand .dot,.brand-dot){background:currentColor!important;box-shadow:none!important}
html[data-nx-legacy][data-theme] :where(.card,.panel,.stat-card,.stat,.box,.server-card,.product-card,.plan-card,.module-card,.content-card,.form-card,.info-card,.modal-box,.modal-content,.empty-state,.spec,.why-item,.feature-card,.widget,.fh-server-card,.fh-card,.profile-card,.vps-card,.retry-card,.job-item,.req-card,.badge-box,.table-card,.user-card,.audit-panel){
  color:var(--nx-text);background:var(--nx-panel)!important;border-color:var(--nx-line)!important;
  box-shadow:0 1px 2px rgba(16,18,26,.06),inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-nx-legacy][data-theme="dark"] :where(.card,.panel,.stat-card,.stat,.box,.server-card,.product-card,.plan-card,.module-card,.content-card,.form-card,.info-card,.modal-box,.modal-content,.empty-state,.spec,.why-item,.feature-card,.widget,.fh-server-card,.fh-card,.profile-card,.vps-card,.retry-card,.job-item,.req-card,.badge-box,.table-card,.user-card,.audit-panel){background:linear-gradient(180deg,#171717,#111 110px)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 1px 3px rgba(0,0,0,.18)}
html[data-nx-legacy][data-theme] :where(.card,.panel,.stat-card,.server-card,.product-card,.plan-card,.module-card,.req-card,.vps-card,.job-item,.widget):hover{border-color:var(--nx-line-hot)!important;transform:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 1px 3px rgba(0,0,0,.12)}
html[data-nx-legacy][data-theme] :where(h1,h2,h3,h4,.card-title){color:var(--nx-text)}
html[data-nx-legacy][data-theme] :where(.muted,.dim,.text-muted,.stat-label,.spec-label,.req-user,.req-meta span){color:var(--nx-muted)!important}
html[data-nx-legacy][data-theme] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),select,textarea,.fh-input,.form-control,.input){color:var(--nx-text)!important;background:var(--nx-input)!important;border-color:var(--nx-line-hot)!important}
html[data-nx-legacy][data-theme] :where(input,select,textarea,.fh-input,.form-control):focus{border-color:var(--nx-dim)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--nx-dim) 14%,transparent)!important}
html[data-nx-legacy][data-theme] ::placeholder{color:var(--nx-dim)!important}
html[data-nx-legacy][data-theme] :where(.btn.primary,.btn-main,.primary):not(.reject):not(.danger){background:var(--nx-text)!important;color:var(--nx-bg)!important;border-color:var(--nx-text)!important}
html[data-nx-legacy][data-theme] :where(thead th){background:var(--nx-panel-2)!important;color:var(--nx-text)!important;border-color:var(--nx-line)!important}
html[data-nx-legacy][data-theme] :where(tbody td){border-color:var(--nx-line)!important}
html[data-nx-legacy][data-theme] :where(.table-wrap,.table-responsive,.table-scroll-wrapper){background:var(--nx-panel)!important;border-color:var(--nx-line)!important}
html[data-nx-legacy][data-theme] :where(tbody tr:hover){background:color-mix(in srgb,var(--nx-text) 5%,transparent)!important}
html[data-nx-legacy][data-theme] :where(button,.btn,.action-btn){border-color:var(--nx-line-hot)!important}
html[data-nx-legacy][data-theme] :where(code,.mono){color:var(--nx-muted)}
html[data-nx-legacy][data-theme] :where(.drawer,.sidebar,.side-nav,.menu-panel,.dev-bottom-nav){
  --black:#080808;--charcoal:#111;--graphite:#151515;--graphite-2:#1d1d1d;--chrome:#f0f0f0;--silver:#aaa;--silver-dim:#858585;--white:#fff;--text-main:#f0f0f0;--text-muted:#aaa;--surface:#111;--border:#292929;--line:#292929;
  background:#0b0b0b!important;color:#a6acb4;border-color:rgba(255,255,255,.055)!important;
}
html[data-nx-legacy][data-theme="dark"] :where(.drawer,.sidebar,.side-nav,.menu-panel,.dev-bottom-nav){background:none!important}
html[data-nx-legacy][data-theme] :where(.drawer a,.sidebar a,.side-nav a,.menu-panel a,.dev-bottom-nav a){color:#a6acb4!important}
html[data-nx-legacy][data-theme] :where(.drawer a:hover,.sidebar a:hover,.side-nav a:hover,.menu-panel a:hover,.dev-bottom-nav a:hover,.drawer a[aria-current="page"],.drawer a.active,.dev-bottom-nav a[aria-current="page"]){background:rgba(255,255,255,.075)!important;color:#f2f4f6!important;border-color:rgba(255,255,255,.09)!important}
html[data-nx-legacy][data-theme] :where(.dev-bottom-nav::before,.dev-bottom-nav::after,.dev-bottom-nav .nav-number,.dev-bottom-nav .nav-label){color:#a6acb4!important}
/* Authentication's flip effect is unchanged; only its surfaces adapt. */
html[data-nx-auth][data-theme] #container{background:var(--nx-panel)!important;border-color:var(--nx-line)!important;box-shadow:0 24px 64px rgba(0,0,0,.12)!important}
html[data-nx-auth][data-theme] .content h1{color:var(--nx-text)}
/* A compact theme switch joins the existing header controls on older screens. */
:is(html[data-nx-legacy],html[data-nx-shell]) .nx-theme-control{
  box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-height:34px!important;
  margin:0 0 0 auto;padding:0;border:1px solid var(--nx-line-hot)!important;border-radius:6px!important;
  background:var(--nx-panel)!important;color:var(--nx-text)!important;cursor:pointer;
}
:is(html[data-nx-legacy],html[data-nx-shell]) .nx-theme-control:hover{background:var(--nx-panel-2)!important;transform:none!important;box-shadow:none!important}
:is(html[data-nx-legacy],html[data-nx-shell]) .nx-theme-control svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
:is(html[data-nx-legacy],html[data-nx-shell]) .nx-theme-control .nx-sun{display:none}
:is(html[data-nx-legacy],html[data-nx-shell])[data-theme="dark"] .nx-theme-control .nx-moon{display:none}
:is(html[data-nx-legacy],html[data-nx-shell])[data-theme="dark"] .nx-theme-control .nx-sun{display:block}
:is(html[data-nx-legacy],html[data-nx-shell]) .nx-theme-control:focus-visible{outline:2px solid var(--nx-text);outline-offset:2px}

/* Full dashboard navigation on older authenticated member screens. */
body.nx-member-shell{padding-left:236px!important;min-height:100vh}
body.nx-member-shell .sidebar{
  --sb-ink-hi:#eeeef2;box-sizing:border-box;position:fixed;inset:0 auto 0 0;width:236px;
  display:flex;flex-direction:column;z-index:60;background:#0b0b0b!important;
  color:#aeb4bc;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.5;transition:transform .22s cubic-bezier(.4,0,.2,1);
}
body.nx-member-shell .sidebar *{box-sizing:border-box}
body.nx-member-shell .sidebar a{text-decoration:none}
body.nx-member-shell .sb-head{height:52px;display:flex;align-items:center;gap:9px;padding:0 14px;flex-shrink:0;border-bottom:1px solid rgba(255,255,255,.07)}
body.nx-member-shell .sb-mark{width:24px;height:24px;border-radius:6px;display:grid;place-items:center;background:#171717 url('/assets/nx-logo-n-35a7054aa9ab.svg') center/19px 19px no-repeat;border:1px solid #262626;color:transparent;font-size:0;flex-shrink:0}
body.nx-member-shell .sb-word{font-size:13.5px;font-weight:650;letter-spacing:-.01em;color:#fff;white-space:nowrap}
body.nx-member-shell .sb-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:8px 8px 12px}
body.nx-member-shell .sb-nav::-webkit-scrollbar{width:0}
body.nx-member-shell .sb-lbl{display:flex;align-items:center;gap:5px;font-size:8.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#5c636b;padding:16px 7px 6px;margin-top:2px;white-space:nowrap;border-top:1px solid rgba(255,255,255,.06)}
body.nx-member-shell .sb-nav>.sb-lbl:first-child{border-top:0;margin-top:0;padding-top:6px}
body.nx-member-shell .sb-lbl svg{width:9px;height:9px;stroke:currentColor;fill:none;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;opacity:.7;flex-shrink:0;margin-top:-1px}
body.nx-member-shell .sb-lbl span{overflow:hidden;text-overflow:ellipsis}
body.nx-member-shell .sb-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:5px!important;font-size:12.5px;font-weight:450;color:#aeb4bc;white-space:nowrap;transition:background-color .1s,color .1s}
body.nx-member-shell .sb-item svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.65;opacity:.9;flex-shrink:0}
body.nx-member-shell .sb-item:hover{background:rgba(255,255,255,.05)!important;color:#eeeef2!important}
body.nx-member-shell .sb-item.on{background:rgba(255,255,255,.08)!important;color:#fff!important;font-weight:600}
body.nx-member-shell .sb-item.sb-adm{color:#c9a227!important;margin-top:2px}
body.nx-member-shell .sb-item.sb-adm:hover{background:rgba(201,162,39,.10)!important;color:#e0b843!important}
body.nx-member-shell .sb-foot{border-top:1px solid rgba(255,255,255,.07);padding:7px 6px;flex-shrink:0}
body.nx-member-shell .sb-me{display:flex;align-items:center;gap:8px;padding:5px;border-radius:5px}
body.nx-member-shell .sb-av{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;display:grid;place-items:center;font-size:10.5px;font-weight:700;flex-shrink:0;overflow:hidden}
body.nx-member-shell .sb-me-t{min-width:0;flex:1}
body.nx-member-shell .sb-me-n{font-size:12px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.nx-member-shell .sb-me-e{font-size:10px;color:#6e6e7a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.nx-member-shell .sb-out{display:flex;align-items:center;gap:9px;padding:6px 8px;margin-top:3px;border-radius:5px;font-size:12.5px;color:#b45a64;transition:background-color .1s,color .1s}
body.nx-member-shell .sb-out:hover{background:rgba(191,43,58,.12)!important;color:#e0747f!important}
body.nx-member-shell .sb-out svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6}
html[data-theme="dark"] body.nx-member-shell .sidebar{background:none!important;border-right:1px solid #191919;box-shadow:none}
html[data-theme="dark"] body.nx-member-shell .sb-mark{background:#171717 url('/assets/nx-logo-n-35a7054aa9ab.svg') center/19px 19px no-repeat;border:1px solid #262626;box-shadow:none;color:transparent;font-size:0}
html[data-theme="dark"] body.nx-member-shell .sb-item{color:#a6acb4}
html[data-theme="dark"] body.nx-member-shell .sb-item.on{background:rgba(255,255,255,.07)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 1px 2px rgba(0,0,0,.35)}
html[data-theme="dark"] body.nx-member-shell .sb-item.sb-adm{color:#d8b64a!important}
body.nx-member-shell :where(.desktop-nav-links,.drawer,.drawer-overlay,.menu-trigger){display:none!important}
body.nx-member-shell :where(header,.app-header,.smtp-header){height:52px!important;min-height:52px;max-width:none!important;width:100%;padding:0 20px!important;display:flex;align-items:center;gap:10px;box-sizing:border-box}
body.nx-member-shell .topbar-in{gap:10px}
body.nx-member-shell .nx-shell-menu{display:none;box-sizing:border-box;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;min-height:30px!important;padding:0;margin:0;border:1px solid var(--line)!important;border-radius:6px!important;background:var(--panel)!important;color:var(--ink);cursor:pointer}
body.nx-member-shell .nx-shell-menu svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9}
body.nx-member-shell .nx-shell-menu:hover{transform:none!important;box-shadow:none!important}
body.nx-member-shell .nx-shell-scrim{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:55}
body.nx-member-shell .nx-shell-scrim.on{display:block}
@media(max-width:900px){
  body.nx-member-shell{padding-left:0!important}
  body.nx-member-shell .sidebar{width:270px;max-width:85vw;transform:translateX(-100%);box-shadow:0 0 40px rgba(0,0,0,.3)}
  body.nx-member-shell .sidebar.open{transform:none}
  body.nx-member-shell .nx-shell-menu{display:inline-flex}
  body.nx-member-shell :where(header,.app-header,.smtp-header){padding:0 14px!important}
}

html[data-nx-shell]:not([data-nx-legacy]) body{--nx-panel:var(--panel);--nx-panel-2:var(--panel-2);--nx-text:var(--ink);--nx-line-hot:var(--line-strong)}

/* Override old high-specificity form rules without touching checkboxes,
   switches, native file controls, or action buttons. */
html[data-nx-legacy][data-theme] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
html[data-nx-legacy][data-theme] select,
html[data-nx-legacy][data-theme] textarea,
html[data-nx-legacy][data-theme] .form-control,
html[data-nx-legacy][data-theme] .fh-input{background:var(--nx-input)!important;color:var(--nx-text)!important;border-color:var(--nx-line-hot)!important}
html[data-nx-legacy][data-theme] .desktop-nav-links{background:transparent!important}
html[data-nx-legacy][data-theme="light"] :where(.nav-dropdown-menu,.dropdown-menu){background:var(--nx-panel)!important;color:var(--nx-text)!important;border-color:var(--nx-line)!important}
html[data-nx-legacy][data-theme="light"] p:not([class]){color:var(--nx-muted)}
html[data-nx-legacy][data-theme="light"] :where(a,span,p,div)[style*="#9ca3af" i],
html[data-nx-legacy][data-theme="light"] :where(a,span,p,div)[style*="#94a3b8" i]{color:var(--nx-muted)!important}
html[data-nx-legacy][data-theme="light"] :where(a,span,p,div)[style*="#f87171" i]{color:#b32636!important}
html[data-nx-legacy][data-theme="light"] :where(a,span,p,div)[style*="#4ade80" i],
html[data-nx-legacy][data-theme="light"] :where(.live-badge,.badge.ok,.badge.approved){color:#0d7a4d!important}
html[data-nx-legacy][data-theme="light"] body.dev-standalone .btn:not(.primary):not(.danger){background:#fff!important;color:#17171a!important;border-color:#d4d4da!important}
/* Long-form documents previously hard-coded light text on black. */
html[data-nx-article][data-theme="light"] :where(p,li){color:#41414a}
/* Product artwork stays in place; ensure its light variant has light surfaces. */
html[data-nx-product][data-theme="light"] :where(.srv-bg,.hero-banner){background:#f7f7f8!important}
html[data-nx-product][data-theme="light"] .srv-bg::after{background:radial-gradient(ellipse 90% 70% at 50% 0%,transparent 0%,#f7f7f8 75%)}
html[data-nx-product][data-theme="light"] .hero-title .hero-brand{background:none;-webkit-text-fill-color:currentColor;color:var(--nx-text)}
html[data-nx-product][data-theme] :where(.spec,.proc,.benefit-box){background:transparent!important;box-shadow:none!important;border:0!important}
html[data-nx-product][data-theme] .spec{padding:0!important}

html[data-nx-legacy][data-theme="light"] :where(.logout-link){color:#b32636!important}
html[data-nx-legacy][data-theme="light"] .sticky-header .brand span[style*="rgb(74, 222, 128)" i]{color:#0d7a4d!important}
html[data-nx-legacy][data-theme="light"] body.dev-standalone .badge:not(.danger):not(.err):not(.rejected){color:#0d7a4d!important}
html[data-nx-legacy][data-theme="light"] input[name="api_key"] ~ button[type="submit"]{color:#17171a!important}
/* Keep the landing page's original dark video and image-backed notice readable. */
html[data-nx-landing][data-theme="light"] :where(.hero,.wa-notice-box){--nx-text:#f0f0f0;--nx-muted:#c7c7c7;--black:#080808;--chrome:#f0f0f0;--white:#fff;--silver:#c7c7c7;--silver-dim:#aaa;--line:rgba(255,255,255,.1);--line-strong:rgba(255,255,255,.18);color:#f0f0f0}
html[data-nx-landing][data-theme="light"] .wa-notice-title{color:#fff!important}
html[data-nx-landing][data-theme="light"] .wa-notice-text{color:#e2e2e2!important}
html[data-nx-landing][data-theme="light"] .wa-notice-join{background:#f0f0f0!important;color:#080808!important}
html[data-nx-landing][data-theme="light"] .wa-notice-dismiss{color:#e2e2e2!important;border-color:rgba(255,255,255,.5)!important}
/* A closed off-canvas drawer must not cast a visible shadow over the page. */
html[data-nx-legacy] .drawer:not(.open){box-shadow:none!important}
body.nx-member-shell select.fh-input{display:block;width:100%;min-height:40px;padding:10px 13px;border:1px solid var(--nx-line-hot);border-radius:6px;font:inherit}
/* Older admin pages contain inline dark-only summary panels and status colors. */
html[data-nx-legacy][data-theme="light"] :where(div,form,section)[style*="background:#0f1117" i],
html[data-nx-legacy][data-theme="light"] :where(div,form,section)[style*="background: #0f1117" i],
html[data-nx-legacy][data-theme="light"] :where(div,form,section)[style*="background: rgb(15, 17, 23)" i],
html[data-nx-legacy][data-theme="light"] form[style*="background:#111" i]{background:var(--nx-panel-2)!important;color:var(--nx-text)!important;border-color:var(--nx-line)!important}
html[data-nx-legacy][data-theme="light"] :where(b,strong,span,summary,p,h1,h2,h3,h4,div)[style*="#e5e7eb" i]{color:var(--nx-text)!important}
html[data-nx-legacy][data-theme="light"] :where(b,strong,span,summary,p,h1,h2,h3,h4,div)[style*="#a5b4fc" i]{color:#4556a3!important}
html[data-nx-legacy][data-theme="light"] :where(b,strong,span,summary,p,h1,h2,h3,h4,div)[style*="#86efac" i]{color:#0d7a4d!important}
html[data-nx-legacy][data-theme="light"] :where(b,strong,span,summary,p,h1,h2,h3,h4,div)[style*="#fbbf24" i],
html[data-nx-legacy][data-theme="light"] :where(b,strong,span,summary,p,h1,h2,h3,h4,div)[style*="#d7bd73" i]{color:#885600!important}
html[data-nx-legacy][data-theme="light"] .sticky-header .brand span[style*="rgb(245, 158, 11)" i]{color:#885600!important}
html[data-nx-legacy][data-theme="light"] .sticky-header .brand span[style*="rgb(248, 113, 113)" i]{color:#b32636!important}
/* Role badges with inherently dark colors need light lettering in both themes. */
.profile-header span[style*="background:#7f1d1d" i],
.profile-header span[style*="background:#15803d" i],
.profile-header span[style*="background:#374151" i]{color:#fff!important}
html[data-nx-legacy] input[placeholder="API key DewaVPS"] ~ button[type="submit"]{color:#17171a!important}

/* Sidebar hitam doff — satu warna solid, tanpa gradien/gloss/transparansi. */
html[data-theme], html[data-nx-legacy][data-theme] {
  --nx-sb-bg:#0b0b0b; --nx-sb-line:#191919;
}
:is(html[data-theme="dark"],html[data-nx-legacy][data-theme="dark"],html[data-theme="light"]) :is(.sidebar,.side-nav,.drawer,.menu-panel,.dev-bottom-nav):not(.nx-keep-glass) {
  background-color:#0b0b0b!important; background-image:none!important;
  -webkit-backdrop-filter:none!important; backdrop-filter:none!important;
  box-shadow:none!important;
}
:is(html[data-theme]) body.nx-member-shell .sidebar {
  background:#0b0b0b!important; background-image:none!important; box-shadow:none!important;
  border-right:1px solid #191919!important;
}
:is(html[data-theme]) :is(.sidebar,.drawer) :is(.sb-item.on,.sb-item[aria-current="page"],a.active) {
  background:rgba(255,255,255,.07)!important; background-image:none!important;
  box-shadow:none!important;
}

/* Tombol tema di sidebar (menggantikan tombol di header). */
.sb-theme{display:flex;align-items:center;gap:9px;width:100%;box-sizing:border-box;
  padding:6px 8px;margin:3px 0 0;border:0;border-radius:5px;background:transparent;
  color:#b4b4b4;font:inherit;font-size:12.5px;line-height:1.5;text-align:left;cursor:pointer;
  transition:background-color .1s,color .1s}
.sb-theme:hover{background:rgba(255,255,255,.05);color:#ededed}
.sb-theme:focus-visible{outline:2px solid #ededed;outline-offset:2px}
.sb-theme svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6;flex-shrink:0;opacity:.9}
.sb-theme .i-sun{display:none}
html[data-theme="dark"] .sb-theme .i-moon{display:none}
html[data-theme="dark"] .sb-theme .i-sun{display:block}
