/* NSP file explorer — Windows Explorer–style document manager. */

/* --- Shell: the explorer owns the main area on the Documents view ------- */
.nsp-app.is-explorer .nsp-pagehead,
.nsp-app.is-explorer .nsp-stats { display: none !important; }
.nsp-app.is-explorer .nsp-main { padding: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--nsp-bg); }
.nsp-app.is-explorer .nsp-main > .nsp-notice { margin: 10px 14px 0; flex: 0 0 auto; }
.nsp-panel--explorer { flex: 1 1 auto; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; display: flex; }
.nsp-panel--explorer[hidden] { display: none; }

.nx {
  --nx-nav-w: 260px; --nx-pane-w: 320px;
  --nx-sel: #cce4ff; --nx-sel-line: #8cc2fb; --nx-hover: #eef5fd; --nx-focus: #0969da;
  --nx-line: var(--nsp-line, #e1e6ed); --nx-muted: var(--nsp-muted, #5c6c80); --nx-ink: var(--nsp-ink, #172b43);
  position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  background: #fff; color: var(--nx-ink); font-size: 13px; line-height: 1.35; user-select: none; -webkit-user-select: none;
}
.nx .nx-i { width: 16px; height: 16px; flex: 0 0 auto; }
.nx button { font: inherit; color: inherit; }
.nx-folder-art { width: 100%; height: 100%; display: block; }

/* --- Tabs ---------------------------------------------------------------- */
.nx-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; background: #eef2f7; border-bottom: 1px solid var(--nx-line); min-height: 40px; }
.nx-tablist { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nx-tab { position: relative; display: flex; align-items: center; gap: 8px; min-width: 120px; max-width: 240px; height: 34px; padding: 0 6px 0 12px; border-radius: 8px 8px 0 0; color: var(--nx-muted); cursor: default; }
.nx-tab:hover { background: rgba(255, 255, 255, .6); }
.nx-tab.is-active { background: #fff; color: var(--nx-ink); box-shadow: 0 -1px 0 var(--nx-line), 1px 0 0 var(--nx-line), -1px 0 0 var(--nx-line); }
.nx-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff; }
.nx-tab.is-drop { background: var(--nx-sel); }
.nx-tab-icon { width: 18px; height: 16px; flex: 0 0 auto; }
.nx-tab-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-tab-close, .nx-tab-add { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--nx-muted); cursor: pointer; }
.nx-tab-close .nx-i { width: 13px; height: 13px; }
.nx-tab-close:hover, .nx-tab-add:hover { background: rgba(16, 35, 59, .08); color: var(--nx-ink); }
.nx-tab-add { margin: 0 0 5px 4px; }

/* --- Command bar ----------------------------------------------------------- */
.nx-cmdbar { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--nx-line); overflow-x: auto; scrollbar-width: none; }
.nx-cmdbar button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; white-space: nowrap; }
.nx-cmdbar button:hover:not(:disabled) { background: var(--nx-hover); }
.nx-cmdbar button:disabled { opacity: .38; cursor: default; }
.nx-cmdbar button[aria-pressed="true"] { background: var(--nx-sel); }
.nx-cmdbar .nx-cmd-primary { background: var(--nsp-accent, #0969da); color: #fff; padding: 0 14px; }
.nx-cmdbar .nx-cmd-primary:hover:not(:disabled) { background: var(--nsp-accent-dark, #0758b8); }
.nx-cmdbar .nx-cmd-primary .nx-i { color: #fff; }
.nx-sep { width: 1px; height: 22px; margin: 0 6px; background: var(--nx-line); flex: 0 0 auto; }
.nx-spacer { flex: 1 1 auto; }
@media (max-width: 1280px) { .nx-cmdbar button:not(.nx-cmd-primary) span { display: none; } .nx-cmdbar button { padding: 0 8px; } }

/* --- Address row ------------------------------------------------------------ */
.nx-addressrow { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--nx-line); }
.nx-navbtns { display: flex; gap: 2px; }
.nx-navbtns button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.nx-navbtns button:hover:not(:disabled) { background: var(--nx-hover); }
.nx-navbtns button:disabled { opacity: .32; cursor: default; }
.nx-address { position: relative; flex: 1 1 auto; min-width: 0; height: 32px; display: flex; align-items: center; padding: 0 4px; border: 1px solid var(--nx-line); border-radius: 6px; background: #fff; cursor: text; }
.nx-address:hover { border-color: #b8c4d2; }
.nx-crumbs { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.nx-crumb, .nx-crumb-menu, .nx-crumb-overflow { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; flex: 0 1 auto; min-width: 0; }
.nx-crumb span { overflow: hidden; text-overflow: ellipsis; }
.nx-crumb .nx-folder-art { width: 18px; height: 16px; flex: 0 0 auto; }
.nx-crumb-menu { padding: 0 2px; flex: 0 0 auto; color: var(--nx-muted); }
.nx-crumb-menu .nx-i { width: 13px; height: 13px; }
.nx-crumb:hover, .nx-crumb-menu:hover, .nx-crumb-overflow:hover { background: var(--nx-hover); }
.nx-crumb.is-drop { background: var(--nx-sel); }
.nx-crumb.is-static { cursor: default; color: var(--nx-muted); }
.nx-address-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 10px; border: 0; border-radius: 6px; outline: 2px solid var(--nx-focus); font: inherit; background: #fff; }
.nx-searchbox { position: relative; display: flex; align-items: center; width: clamp(180px, 22%, 320px); height: 32px; border: 1px solid var(--nx-line); border-radius: 6px; background: #fff; }
.nx-searchbox:focus-within { outline: 2px solid var(--nx-focus); outline-offset: -1px; }
.nx-searchicon { display: grid; place-items: center; width: 30px; color: var(--nx-muted); }
.nx-search-input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent; font: inherit; padding: 0 !important; box-shadow: none !important; }
.nx-search-options { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; color: var(--nx-muted); }
.nx-search-options:hover { background: var(--nx-hover); }

/* --- Body layout ------------------------------------------------------------- */
.nx-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 0 0 minmax(0, 1fr) 0 0; }
.nx.has-nav .nx-body { grid-template-columns: var(--nx-nav-w) 5px minmax(0, 1fr) 0 0; }
.nx.has-pane .nx-body { grid-template-columns: 0 0 minmax(0, 1fr) 5px var(--nx-pane-w); }
.nx.has-nav.has-pane .nx-body { grid-template-columns: var(--nx-nav-w) 5px minmax(0, 1fr) 5px var(--nx-pane-w); }
.nx-nav, .nx-pane { min-width: 0; overflow: auto; }
.nx:not(.has-nav) .nx-nav, .nx:not(.has-nav) [data-split="nav"], .nx:not(.has-pane) .nx-pane, .nx:not(.has-pane) [data-split="pane"] { visibility: hidden; overflow: hidden; }
.nx-splitter { cursor: col-resize; background: transparent; border-left: 1px solid var(--nx-line); }
.nx-splitter[data-split="pane"] { border-left: 0; border-right: 1px solid var(--nx-line); }
.nx-splitter:hover { background: rgba(9, 105, 218, .08); }

/* --- Navigation pane (tree) ---------------------------------------------------- */
.nx-nav { padding: 6px 4px 18px; }
.nx-tree { outline: 0; }
.nx-tree-section { padding: 12px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--nx-muted); }
.nx-tree-hint { padding: 2px 12px 6px; font-size: 12px; color: var(--nsp-subtle, #8a9aae); }
.nx-tree-gap { height: 10px; }
.nx-node { display: flex; align-items: center; gap: 6px; height: 28px; padding-left: calc(6px + var(--depth, 0) * 14px); padding-right: 8px; border-radius: 4px; cursor: default; white-space: nowrap; outline: 0; }
.nx-node:hover { background: var(--nx-hover); }
.nx-node.is-current { background: var(--nx-sel); }
.nx-node:focus-visible { box-shadow: inset 0 0 0 1px var(--nx-focus); }
.nx-node.is-drop { background: var(--nx-sel); box-shadow: inset 0 0 0 1px var(--nx-sel-line); }
.nx-twisty, .nx-twisty-spacer { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; background: transparent; color: var(--nx-muted); cursor: pointer; flex: 0 0 auto; }
.nx-twisty .nx-i { width: 12px; height: 12px; transition: transform .12s; }
.nx-node[aria-expanded="true"] > .nx-twisty .nx-i { transform: rotate(90deg); }
.nx-twisty.is-leaf { visibility: hidden; pointer-events: none; }
.nx-node--quick { padding-left: 24px; }
.nx-node-ico { width: 18px; height: 16px; flex: 0 0 auto; }
.nx-node-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nx-pin, .nx-recent { color: var(--nx-muted); opacity: .7; }
.nx-pin .nx-i, .nx-recent .nx-i { width: 12px; height: 12px; }

/* --- Content: column header + viewport ----------------------------------------- */
.nx-content { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.nx-colhead { flex: 0 0 auto; overflow: hidden; border-bottom: 1px solid var(--nx-line); background: #fff; }
.nx-colhead[hidden] { display: none; }
.nx-colhead-inner { display: flex; padding-left: 12px; }
.nx-col { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; color: var(--nx-muted); cursor: default; border-right: 1px solid transparent; }
.nx-col:hover { background: var(--nx-hover); border-right-color: var(--nx-line); }
.nx-col.is-end { justify-content: flex-end; }
.nx-col > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-col-sort { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: 0; }
.nx-col.is-sorted .nx-col-sort { opacity: .7; }
.nx-col.is-asc .nx-col-sort { border-bottom: 5px solid currentColor; }
.nx-col.is-desc .nx-col-sort { border-top: 5px solid currentColor; }
.nx-col-resize { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 1; }

.nx-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; }
.nx .nx-viewport:focus, .nx .nx-viewport:focus-visible, .nx .nx-tree:focus { outline: 0 !important; box-shadow: none !important; }
.nx-viewport.is-drop { box-shadow: inset 0 0 0 2px var(--nx-sel-line); background: #f6fbff; }
.nx-canvas { position: relative; min-width: 100%; }
.nx.is-loading .nx-canvas { opacity: .45; }
.nx.is-loading .nx-viewport::before { content: ""; position: sticky; top: 0; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--nx-focus), transparent); background-size: 50% 100%; animation: nx-load 1s linear infinite; z-index: 2; }
@keyframes nx-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.nx-empty { position: absolute; inset: 64px 0 auto; text-align: center; color: var(--nx-muted); pointer-events: none; }
.nx-empty strong { display: block; color: var(--nx-ink); font-weight: 500; margin-bottom: 4px; }
.nx-empty p { margin: 0; }
.nx-marquee { position: absolute; border: 1px solid #3c8be0; background: rgba(60, 139, 224, .14); pointer-events: none; z-index: 3; }
.nx-group { position: absolute; left: 8px; right: 8px; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 6px; color: #1d4f91; cursor: default; }
.nx-group small { color: var(--nx-muted); }
.nx-group i { flex: 1; height: 1px; margin-left: 8px; background: var(--nx-line); }

/* --- Items ------------------------------------------------------------------------- */
.nx-item { position: absolute; display: flex; align-items: center; border: 1px solid transparent; border-radius: 4px; cursor: default; }
.nx-item:hover { background: var(--nx-hover); }
.nx-item.is-selected { background: var(--nx-sel); }
.nx-item.is-selected:hover { background: #bcdcff; }
.nx-viewport:focus-visible .nx-item.is-focus, .nx-viewport:focus .nx-item.is-focus { border-color: var(--nx-sel-line); }
.nx-item.is-cut { opacity: .5; }
.nx-item.is-drop { background: var(--nx-sel); border-color: var(--nx-sel-line); }
.nx-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-ico { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; }
.nx-ico img, .nx-ico svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.nx-ico--thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); background: #fff; }
.nx-check { position: absolute; display: none; place-items: center; width: 16px; height: 16px; border: 1px solid #8a9aae; border-radius: 3px; background: #fff; color: #fff; z-index: 1; }
.nx-check .nx-i { width: 12px; height: 12px; }
.nx.show-checks .nx-check { display: grid; }
.nx-item.is-selected .nx-check { background: var(--nx-focus); border-color: var(--nx-focus); }
.nx-badge { margin-left: 8px; padding: 1px 6px; border-radius: 999px; background: var(--nsp-amber-soft, #fdf1e3); color: #9a5a05; font-size: 11px; flex: 0 0 auto; }

/* Details */
.nx-item--details { padding-left: 8px; }
.nx-item--details .nx-check { position: static; margin-right: -12px; transform: translateX(-2px); }
.nx.show-checks .nx-item--details .nx-check { margin-right: 0; }
.nx-cell { flex: 0 0 auto; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nx-muted); }
.nx-cell.is-end { text-align: right; }
.nx-cell--name { display: flex; align-items: center; gap: 8px; color: var(--nx-ink); }
.nx-cell--name .nx-ico { width: 18px; height: 18px; }
/* Content */
.nx-item--content { gap: 12px; padding: 0 14px 0 30px; border-bottom-color: var(--nx-line); border-radius: 0; }
.nx-item--content .nx-check { left: 8px; }
.nx-item--content .nx-ico { width: 44px; height: 44px; }
.nx-content-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nx-content-main small, .nx-content-meta small { color: var(--nx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-content-meta { flex: 0 0 220px; display: flex; flex-direction: column; gap: 3px; }
/* Icon grids */
.nx-item--xl, .nx-item--lg, .nx-item--md { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 8px 6px 6px; text-align: center; }
.nx-item--xl .nx-ico { width: 196px; height: 196px; }
.nx-item--lg .nx-ico { width: 112px; height: 112px; }
.nx-item--md .nx-ico { width: 60px; height: 60px; }
.nx-item--xl .nx-name, .nx-item--lg .nx-name, .nx-item--md .nx-name { width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; line-height: 1.3; }
.nx-item--xl.is-selected .nx-name, .nx-item--lg.is-selected .nx-name, .nx-item--md.is-selected .nx-name { -webkit-line-clamp: 4; }
.nx-item--xl .nx-check, .nx-item--lg .nx-check, .nx-item--md .nx-check { top: 6px; left: 6px; }
.nx-item--sm, .nx-item--list { gap: 8px; padding: 0 8px 0 26px; }
.nx-item--sm .nx-check, .nx-item--list .nx-check { left: 5px; }
.nx-item--sm .nx-ico, .nx-item--list .nx-ico { width: 18px; height: 18px; }
.nx-item--tiles { gap: 10px; padding: 0 8px 0 26px; }
.nx-item--tiles .nx-check { left: 5px; }
.nx-item--tiles .nx-ico { width: 52px; height: 52px; }
.nx-tile-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nx-tile-text small { color: var(--nx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* File-type images from the portal's icon set */
.nx-ico img[src*="file-types"] { width: 100%; height: 100%; object-fit: contain; }
.nx-item--details .nx-ico img[src*="file-types"], .nx-item--sm .nx-ico img[src*="file-types"], .nx-item--list .nx-ico img[src*="file-types"] { width: 18px; height: 18px; }

/* Inline rename */
.nx-rename { position: absolute; z-index: 4; min-height: 24px; padding: 2px 4px; border: 1px solid var(--nx-focus); border-radius: 2px; background: #fff; font: inherit; color: var(--nx-ink); resize: none; overflow: hidden; outline: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); user-select: text; -webkit-user-select: text; }
.nx[data-view="xl"] .nx-rename, .nx[data-view="lg"] .nx-rename, .nx[data-view="md"] .nx-rename { text-align: center; }
.nx-measure { position: absolute; visibility: hidden; white-space: nowrap; font-size: 13px; }

/* --- Details / preview pane ----------------------------------------------------- */
.nx-pane { padding: 16px; background: #fbfcfe; }
.nx-pane-empty { padding: 40px 12px; text-align: center; color: var(--nx-muted); }
.nx-pane-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 16px; text-align: center; border-bottom: 1px solid var(--nx-line); margin-bottom: 12px; }
.nx-pane-head strong { font-size: 15px; font-weight: 600; word-break: break-word; }
.nx-pane-head small { color: var(--nx-muted); }
.nx-pane-icon { width: 96px; height: 96px; display: grid; place-items: center; }
.nx-pane-icon img { width: 80px; height: 80px; }
.nx-pane-thumb { max-width: 100%; max-height: 220px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.nx-props { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; }
.nx-props dt { color: var(--nx-muted); }
.nx-props dd { margin: 0; word-break: break-word; user-select: text; -webkit-user-select: text; }
.nx-pane-desc { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--nx-line); color: var(--nx-ink); white-space: pre-wrap; user-select: text; }
.nx-pane-preview { height: 100%; min-height: 300px; overflow: auto; background: #f1f4f8; border-radius: 6px; }
.nx.has-pane .nx-pane:has(.nx-pane-preview) { padding: 8px; }

/* --- Status bar ------------------------------------------------------------------ */
.nx-status { display: flex; align-items: center; gap: 18px; height: 28px; padding: 0 12px; border-top: 1px solid var(--nx-line); color: var(--nx-muted); font-size: 12px; white-space: nowrap; }
.nx-status-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--nx-ink); }
.nx-status-views { display: flex; gap: 2px; }
.nx-status-views button { display: grid; place-items: center; width: 26px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; color: var(--nx-muted); }
.nx-status-views button:hover { background: var(--nx-hover); }
.nx-status-views button.is-on { background: var(--nx-sel); color: var(--nx-ink); }
.nx[data-drop-hint]::after { content: attr(data-drop-hint); position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); padding: 6px 12px; border-radius: 6px; background: #1f2d3d; color: #fff; font-size: 12px; pointer-events: none; z-index: 30; }

/* --- Menus ------------------------------------------------------------------------- */
.nx-menu { position: fixed; z-index: 100000; min-width: 220px; max-width: 340px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 4px; border: 1px solid #d7dde5; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px rgba(16, 35, 59, .2); font-size: 13px; color: var(--nsp-ink, #172b43); user-select: none; }
.nx-menu[hidden] { display: none; }
.nx-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; text-align: left; cursor: default; font: inherit; color: inherit; }
.nx-menu-item:hover:not(:disabled), .nx-menu-item:focus { background: var(--nsp-accent-soft, #eaf3ff); outline: 0; }
.nx-menu-item:disabled { opacity: .4; }
.nx-menu-ico { display: grid; place-items: center; width: 18px; height: 16px; flex: 0 0 auto; }
.nx-menu-ico .nx-i, .nx-menu-sub .nx-i { width: 15px; height: 15px; }
.nx-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-menu-key { color: var(--nsp-subtle, #8a9aae); font-size: 12px; }
.nx-menu-sep { height: 1px; margin: 4px 6px; background: #e6eaf0; }
.nx-drag-ghost { position: fixed; top: -100px; left: -100px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--nsp-line, #e1e6ed); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 13px; }
.nx-drag-ghost svg, .nx-drag-ghost img { width: 20px; height: 18px; }

/* --- Operations, conflicts, properties ------------------------------------------- */
.nx-ops { position: absolute; right: 16px; bottom: 40px; z-index: 20; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.nx-op { pointer-events: auto; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgba(16, 35, 59, .18); transition: opacity .3s; }
.nx-op.is-done { opacity: 0; }
.nx-op-head { display: flex; align-items: center; gap: 10px; }
.nx-op-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nx-op-cancel { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.nx-op-cancel:hover { background: var(--nx-hover); }
.nx-op progress { width: 100%; height: 6px; margin: 8px 0 4px; accent-color: #16a34a; }
.nx-op small { display: block; color: var(--nx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-conflict-options { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.nx-conflict-options button { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--nsp-line, #e1e6ed); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.nx-conflict-options button:hover, .nx-conflict-options button:focus { border-color: var(--nsp-accent, #0969da); background: var(--nsp-accent-softer, #f5f9ff); outline: 0; }
.nx-conflict-options button > svg { width: 22px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.nx-conflict-options span { display: flex; flex-direction: column; gap: 2px; }
.nx-conflict-options small { color: var(--nsp-muted, #5c6c80); }
.nx-conflict-all { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nx-props-dialog { width: min(460px, calc(100vw - 32px)); }
.nx-props-title { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--nsp-line, #e1e6ed); }
.nx-props-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; }
.nx-props-icon img, .nx-props-icon svg { width: 36px; height: 36px; }
.nx-props-title input { flex: 1; min-width: 0; border: 1px solid var(--nsp-line, #e1e6ed); border-radius: 4px; padding: 6px 8px; font: inherit; background: #fff; }
.nx-props-dialog .nx-props { margin-bottom: 14px; }
.nx-props-dialog label { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; }
.nx-props-dialog textarea, .nx-props-dialog label input { font: inherit; padding: 6px 8px; border: 1px solid var(--nsp-line, #e1e6ed); border-radius: 4px; }

/* --- Responsive -------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nsp-app.is-explorer .nsp-main { min-height: calc(100dvh - 140px); }
  .nx { min-height: calc(100dvh - 150px); }
  .nx.has-nav .nx-body, .nx.has-nav.has-pane .nx-body { grid-template-columns: minmax(0, 1fr); }
  .nx-nav, .nx-pane, .nx-splitter { display: none; }
  .nx.has-nav .nx-nav { display: block; position: absolute; z-index: 15; top: 0; bottom: 0; left: 0; width: min(300px, 82vw); background: #fff; box-shadow: 8px 0 24px rgba(0, 0, 0, .15); visibility: visible; }
  .nx-body { position: relative; grid-template-columns: minmax(0, 1fr) !important; }
  .nx-content { grid-column: 1; }
  .nx-searchbox { width: 40%; }
  .nx-navbtns [data-cmd="refresh"] { display: none; }
  .nx-tab { min-width: 90px; }
}
@media (max-width: 600px) {
  .nx-addressrow { flex-wrap: wrap; }
  .nx-searchbox { width: 100%; order: 3; }
  .nx-status-sel { display: none; }
}

/* --- Installable app ----------------------------------------------------------- */
.nsp-install-app { height: 32px; padding: 0 14px; border: 1px solid var(--nsp-accent, #0969da); border-radius: 8px; background: var(--nsp-accent-soft, #eaf3ff); color: var(--nsp-accent-dark, #0758b8); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nsp-install-app:hover { background: var(--nsp-accent, #0969da); color: #fff; }
.nsp-install-app[hidden] { display: none; }

/* --- Full screen: the explorer fills the window ------------------------------------ */
.nsp-app.is-fullscreen { height: 100dvh !important; min-height: 0; overflow: hidden; }
.nsp-app.is-fullscreen .nsp-topbar, .nsp-app.is-fullscreen .nsp-sidebar { display: none !important; }
.nsp-app.is-fullscreen .nsp-app__body { display: block; height: 100% !important; min-height: 0; }
.nsp-app.is-fullscreen .nsp-main { height: 100% !important; min-height: 0 !important; }
.nsp-app.is-fullscreen .nx { min-height: 0; }
