/* ═══ Z-INDEX DOCTRINE (Jul 22 2026) ═══════════════════════════
   App chrome OWNS the top band: header + its dropdown ride at
   2000+ so the menu is ALWAYS reachable over workspace tools.
   Workspace floating UI (classbar, palette, popovers, mini menus,
   cascades) lives in 600–999. Modal overlays keep 9000 — a modal
   deliberately blocks everything, menu included. */
#app-header { position: relative; z-index: 2000; }
.dropdown-menu, #dropdown-menu { z-index: 2001; }

/* ═══════════════════════════════════════════════════════════
   NP2 Workspace / Classified Workbench / PageCanvas — shared styles
   Extracted from inline cssText (Phase 1, Jul 21 2026).
   Owned by the layout workstream.
   ═══════════════════════════════════════════════════════════ */

/* Light popover card (stylers, library explorer) — bottom-right dock */
.np2-pop {
    position: fixed; bottom: 150px; right: 16px; z-index: 850;
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 12px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-size: 13px; color: #111827;
    display: flex; flex-direction: column; gap: 8px; min-width: 250px;
}
.np2-pop--scroll { min-width: 320px; max-height: 420px; overflow: auto; }

/* Dark quick menus (unflow menu, flow-into list) */
.np2-dkmenu {
    position: fixed; bottom: 96px; z-index: 860;
    background: #1f2937; color: #f9fafb;
    border: 1px solid #4b5563; border-radius: 8px; padding: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    font-size: 12px; min-width: 230px;
}
.np2-dkmenu--tall { font-size: 13px; max-height: 50vh; overflow-y: auto; min-width: 250px; }
.np2-dkhead { color: #c4b5fd; font-weight: 700; padding: 2px 6px 6px; }
.np2-dkrow { padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.np2-dkrow:hover { background: #374151; }
.np2-dkrow--sub { color: #9ca3af; font-size: 11px; }

/* Anchored mini menu (split-button carets, fragment chooser) */
.np2-minimenu {
    position: fixed; z-index: 900;
    background: #1f2937; color: #f9fafb;
    border: 1px solid #4b5563; border-radius: 8px; padding: 8px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
    font-family: inherit; min-width: 320px;
}
.np2-mrow {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.np2-mrow:hover { background: #374151; }
.np2-mrow--open { background: #374151; }
.np2-mrow--dis { opacity: .38; cursor: default; }
.np2-mrow--dis:hover { background: transparent; }
.np2-mrow--compact { padding: 7px 12px; gap: 10px; }
.np2-minimenu--scroll { max-height: 60vh; overflow-y: auto; }

/* Full-screen dark viewer overlays (preview, report) */
.np2-viewer {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 9000;
    display: flex; align-items: center; justify-content: center; padding: 24px;
}

/* Floating size/landing readout during block drags */
.pc-size-tag {
    position: fixed; z-index: 999;
    background: #111827; color: #fbbf24;
    font: 600 13px/1 system-ui, sans-serif;
    padding: 6px 9px; border-radius: 6px; pointer-events: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Shared help "?" button (Help component; we-help-btn kept for legacy css) */
.np2-help-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    border: 1px solid #93c5fd; background: #eff6ff; color: #2563eb;
    font-size: 11px; font-weight: 700; cursor: pointer; line-height: 1;
    vertical-align: middle; margin-left: 4px; padding: 0;
}
.np2-help-btn:hover { background: #dbeafe; }
.np2-help-body p { margin: 0 0 10px; line-height: 1.55; }