/* PARTNEX Tools — premium light-first cards, workspaces, history. */
.nav-item.is-off { display: none !important; }
.nx-tools { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.nx-tools-hero { padding: 4px 2px 2px; }
.nx-tools-kicker { font: 700 11px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.nx-tools-hero h1 { font: 800 26px/1.1 var(--px-head, Sora, Inter, sans-serif); letter-spacing: -.03em; margin: 0 0 6px; color: var(--text); }
.nx-tools-hero p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.nx-tools-grid { display: grid; gap: 10px; }
.nx-tool-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 14px; border: 1px solid var(--border, #e4e7ef);
  border-radius: 18px; background: var(--card, #fff); color: var(--text); box-shadow: var(--shadow-card, 0 1px 2px rgba(16,18,34,.04), 0 4px 16px rgba(16,18,34,.05));
  cursor: pointer; transition: transform .16s cubic-bezier(.22,1,.36,1), box-shadow .2s, border-color .2s; }
.nx-tool-card:active { transform: scale(.985); }
@media (hover: hover) { .nx-tool-card:hover { border-color: rgba(91,69,240,.35); box-shadow: var(--nx-lift, 0 10px 30px rgba(16,18,34,.1)); } }
.nx-tool-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--grad, linear-gradient(135deg, #6a52ff, #4f6dff)); }
.nx-tool-card.is-wait .nx-tool-ico { background: var(--surface2, #e6e9f1); color: var(--muted); }
.nx-tool-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nx-tool-body b { font: 700 15px/1.2 var(--px-head, Sora, Inter, sans-serif); }
.nx-tool-body small { font: 500 12.5px/1.4 Inter, sans-serif; color: var(--muted); }
.nx-tool-st { flex: none; font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.nx-tool-st.ok { background: var(--nx-ok-bg, rgba(18,161,80,.1)); color: var(--nx-ok, #12a150); }
.nx-tool-st.wait { background: var(--nx-low-bg, rgba(245,158,11,.13)); color: var(--nx-low, #d97706); }
.nx-tools-empty { text-align: center; padding: 36px 18px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nx-tools-empty i { font-size: 36px; color: var(--primary); }
.nx-tools-empty b { color: var(--text); font-size: 16px; }
.nx-tools-back { align-self: flex-start; border: 0; background: var(--surface, #f0f2f7); color: var(--text); height: 34px; padding: 0 12px; border-radius: 11px;
  font: 600 13px Inter, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nx-tools-back:active { transform: scale(.97); }
.nx-tools-workhead { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.nx-tools-workhead .mbc-hero-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--grad); flex: none; }
.nx-tools-workhead .mbc-hero-title { font: 800 18px/1.15 var(--px-head, Sora, Inter, sans-serif); letter-spacing: -.02em; }
.nx-tools-workhead .mbc-hero-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nx-tools-card { background: var(--card, #fff); border: 1px solid var(--border, #e4e7ef); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-card, 0 1px 2px rgba(16,18,34,.04)); display: flex; flex-direction: column; gap: 10px; }
.nx-tools-maint { padding: 10px 12px; border-radius: 12px; background: var(--nx-low-bg, rgba(245,158,11,.13)); color: var(--nx-low, #d97706); font-size: 13px; font-weight: 600; }
.nx-tools-hist { margin-top: 8px; padding: 12px; border-radius: 16px; background: var(--surface, #f0f2f7); display: grid; gap: 8px; }
.nx-tools-hist-h { display: flex; justify-content: space-between; align-items: center; font: 700 11px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nx-tools-hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--border, #e4e7ef); }
.nx-tools-hist-row div { flex: 1; min-width: 0; }
.nx-tools-hist-row b { display: block; font-size: 13px; }
.nx-tools-hist-row small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbt-panel { display: none; flex-direction: column; gap: 10px; }
.mbt-panel.active { display: flex; }
html[data-theme="dark"] .nx-tool-card, html[data-theme="dark"] .nx-tools-card, html[data-theme="dark"] .nx-tools-hist-row { background: var(--card); }
html[data-theme="dark"] .nx-tools-back { background: var(--surface); }

#page-mbcheck [hidden]{display:none!important}
